@doyourjob/gravity-ui-page-constructor 5.31.215 → 5.31.217
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/HeaderMinify/Button/Button.css +8 -8
- package/build/cjs/blocks/HeaderMinify/Button/Button.js +2 -4
- package/build/cjs/blocks/HeaderMinify/HeaderMinify.css +27 -20
- package/build/cjs/blocks/HeaderMinify/HeaderMinify.js +21 -12
- package/build/cjs/blocks/HeaderMinify/schema.d.ts +38 -46
- package/build/cjs/blocks/HeaderMinify/schema.js +16 -16
- package/build/cjs/blocks/UnicornCards/Item/Item.css +34 -0
- package/build/cjs/blocks/UnicornCards/Item/Item.d.ts +3 -0
- package/build/cjs/blocks/UnicornCards/Item/Item.js +17 -0
- package/build/cjs/blocks/UnicornCards/UnicornCards.css +22 -0
- package/build/cjs/blocks/UnicornCards/UnicornCards.d.ts +3 -0
- package/build/cjs/blocks/UnicornCards/UnicornCards.js +27 -0
- package/build/cjs/blocks/UnicornCards/schema.d.ts +190 -0
- package/build/cjs/blocks/UnicornCards/schema.js +32 -0
- package/build/cjs/blocks/index.d.ts +1 -0
- package/build/cjs/blocks/index.js +4 -2
- package/build/cjs/constructor-items.d.ts +1 -0
- package/build/cjs/constructor-items.js +1 -0
- package/build/cjs/models/constructor-items/blocks.d.ts +18 -7
- package/build/cjs/models/constructor-items/blocks.js +1 -0
- package/build/cjs/schema/constants.d.ts +1 -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/esm/blocks/HeaderMinify/Button/Button.css +8 -8
- package/build/esm/blocks/HeaderMinify/Button/Button.js +3 -5
- package/build/esm/blocks/HeaderMinify/HeaderMinify.css +27 -20
- package/build/esm/blocks/HeaderMinify/HeaderMinify.js +20 -11
- package/build/esm/blocks/HeaderMinify/schema.d.ts +38 -46
- package/build/esm/blocks/HeaderMinify/schema.js +16 -16
- package/build/esm/blocks/UnicornCards/Item/Item.css +34 -0
- package/build/esm/blocks/UnicornCards/Item/Item.d.ts +4 -0
- package/build/esm/blocks/UnicornCards/Item/Item.js +13 -0
- package/build/esm/blocks/UnicornCards/UnicornCards.css +22 -0
- package/build/esm/blocks/UnicornCards/UnicornCards.d.ts +4 -0
- package/build/esm/blocks/UnicornCards/UnicornCards.js +23 -0
- package/build/esm/blocks/UnicornCards/schema.d.ts +190 -0
- package/build/esm/blocks/UnicornCards/schema.js +29 -0
- package/build/esm/blocks/index.d.ts +1 -0
- package/build/esm/blocks/index.js +1 -0
- package/build/esm/constructor-items.d.ts +1 -0
- package/build/esm/constructor-items.js +2 -1
- package/build/esm/models/constructor-items/blocks.d.ts +18 -7
- package/build/esm/models/constructor-items/blocks.js +1 -0
- package/build/esm/schema/constants.d.ts +1 -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/package.json +1 -1
- package/schema/index.js +1 -1
- package/server/models/constructor-items/blocks.d.ts +18 -7
- package/server/models/constructor-items/blocks.js +1 -0
- package/widget/index.js +1 -1
|
@@ -4,22 +4,22 @@ unpredictable css rules order in build */
|
|
|
4
4
|
display: flex;
|
|
5
5
|
align-items: center;
|
|
6
6
|
justify-content: center;
|
|
7
|
-
padding:
|
|
7
|
+
padding: 0 28px;
|
|
8
8
|
border-radius: 16px;
|
|
9
9
|
background: #001a2b;
|
|
10
10
|
color: #ffffff;
|
|
11
11
|
height: 61px;
|
|
12
|
-
font-size:
|
|
13
|
-
line-height:
|
|
12
|
+
font-size: var(--g-text-header-2-font-size, var(--pc-text-header-2-font-size));
|
|
13
|
+
line-height: var(--g-text-header-2-line-height, var(--pc-text-header-2-line-height));
|
|
14
14
|
font-weight: 500;
|
|
15
|
-
letter-spacing:
|
|
15
|
+
letter-spacing: 1%;
|
|
16
16
|
text-decoration: none;
|
|
17
17
|
transition: opacity 0.3s ease;
|
|
18
18
|
}
|
|
19
|
-
.pc-header-minify-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
.pc-header-minify-button_outline {
|
|
20
|
+
background: transparent;
|
|
21
|
+
border: 2px solid #001a2b;
|
|
22
|
+
color: #001a2b;
|
|
23
23
|
}
|
|
24
24
|
@media (hover: hover) and (pointer: fine) {
|
|
25
25
|
.pc-header-minify-button:hover {
|
|
@@ -7,11 +7,9 @@ const components_1 = require("../../../components");
|
|
|
7
7
|
const utils_1 = require("../../../utils");
|
|
8
8
|
const b = (0, utils_1.block)('header-minify-button');
|
|
9
9
|
const Button = (props) => {
|
|
10
|
-
const { url,
|
|
10
|
+
const { url, text, outline } = props;
|
|
11
11
|
return (react_1.default.createElement(components_1.RouterLink, { href: url },
|
|
12
|
-
react_1.default.createElement("a", { href: url, className: b(
|
|
13
|
-
icon ? (react_1.default.createElement(components_1.ImageBase, { className: b('icon'), src: icon, alt: "", "aria-hidden": "true" })) : null,
|
|
14
|
-
text)));
|
|
12
|
+
react_1.default.createElement("a", { href: url, className: b({ outline }) }, text)));
|
|
15
13
|
};
|
|
16
14
|
exports.Button = Button;
|
|
17
15
|
exports.default = exports.Button;
|
|
@@ -1,45 +1,52 @@
|
|
|
1
1
|
/* use this for style redefinitions to awoid problems with
|
|
2
2
|
unpredictable css rules order in build */
|
|
3
3
|
.pc-header-minify-block {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
align-items: center;
|
|
7
4
|
position: relative;
|
|
8
5
|
z-index: 1;
|
|
9
6
|
color: #001a2b;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
}
|
|
8
|
+
.pc-header-minify-block_header-space {
|
|
9
|
+
padding-top: var(--header-height);
|
|
10
|
+
margin-top: calc(var(--header-height) * -1);
|
|
11
|
+
}
|
|
12
|
+
.pc-header-minify-block__video {
|
|
13
|
+
position: absolute;
|
|
14
|
+
inset: 0;
|
|
15
|
+
z-index: -1;
|
|
16
|
+
object-fit: cover;
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
}
|
|
20
|
+
.pc-header-minify-block__container {
|
|
21
|
+
padding-top: 256px;
|
|
22
|
+
padding-bottom: 155px;
|
|
13
23
|
}
|
|
14
24
|
.pc-header-minify-block__title {
|
|
15
|
-
font-size:
|
|
16
|
-
|
|
17
|
-
line-height: 102px;
|
|
25
|
+
font-size: var(--g-text-display-4-font-size, var(--pc-text-display-4-font-size));
|
|
26
|
+
line-height: var(--g-text-display-4-line-height, var(--pc-text-display-4-line-height));
|
|
18
27
|
margin: 0;
|
|
19
28
|
position: relative;
|
|
29
|
+
margin-bottom: 24px;
|
|
20
30
|
}
|
|
21
|
-
|
|
22
|
-
letter-spacing: -0.014em;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@media (max-width: 769px) {
|
|
31
|
+
@media (max-width: 577px) {
|
|
26
32
|
.pc-header-minify-block__title {
|
|
27
|
-
font-size:
|
|
28
|
-
line-height:
|
|
33
|
+
font-size: var(--g-text-display-2-font-size, var(--pc-text-display-2-font-size));
|
|
34
|
+
line-height: var(--g-text-display-2-line-height, var(--pc-text-display-2-line-height));
|
|
29
35
|
}
|
|
30
36
|
}
|
|
31
37
|
.pc-header-minify-block__description {
|
|
32
|
-
margin-top: 24px;
|
|
33
38
|
position: relative;
|
|
39
|
+
margin-bottom: 32px;
|
|
34
40
|
opacity: 0.8;
|
|
35
|
-
max-width: 1024px;
|
|
36
41
|
}
|
|
37
42
|
.pc-header-minify-block__description .yfm {
|
|
38
43
|
font-size: var(--g-text-header-2-font-size, var(--pc-text-header-2-font-size));
|
|
39
44
|
line-height: var(--g-text-header-2-line-height, var(--pc-text-header-2-line-height));
|
|
40
|
-
font-weight:
|
|
45
|
+
font-weight: 500;
|
|
41
46
|
}
|
|
42
47
|
.pc-header-minify-block__buttons {
|
|
48
|
+
display: flex;
|
|
49
|
+
gap: 8px;
|
|
43
50
|
position: relative;
|
|
44
|
-
|
|
51
|
+
flex-wrap: wrap;
|
|
45
52
|
}
|
|
@@ -2,24 +2,33 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.HeaderMinifyBlock = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const components_1 = require("../../components");
|
|
7
|
-
const utils_1 = require("../../utils");
|
|
7
|
+
const utils_1 = require("../../components/Media/Video/utils");
|
|
8
|
+
const grid_1 = require("../../grid");
|
|
9
|
+
const utils_2 = require("../../utils");
|
|
8
10
|
const Button_1 = tslib_1.__importDefault(require("./Button/Button"));
|
|
9
|
-
const b = (0,
|
|
11
|
+
const b = (0, utils_2.block)('header-minify-block');
|
|
12
|
+
const colSizes = { all: 12, md: 8 };
|
|
10
13
|
const modifiers = {
|
|
11
14
|
constructor: true,
|
|
12
15
|
};
|
|
13
16
|
const HeaderMinifyBlock = (props) => {
|
|
14
|
-
const { title, description,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
const { title, description, buttons, video, headerSpace } = props;
|
|
18
|
+
return (react_1.default.createElement("header", { className: b({ ['header-space']: headerSpace }) },
|
|
19
|
+
video && (react_1.default.createElement("video", { disablePictureInPicture: true, playsInline: true,
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
// eslint-disable-next-line react/no-unknown-property
|
|
22
|
+
pip: "false", autoPlay: true, loop: true, preload: "auto", muted: true, className: b('video') },
|
|
23
|
+
react_1.default.createElement("source", { src: video, type: (0, utils_1.parseVideoType)(video) }))),
|
|
24
|
+
react_1.default.createElement(grid_1.Grid, null,
|
|
25
|
+
react_1.default.createElement(grid_1.Row, { className: b('container') },
|
|
26
|
+
react_1.default.createElement(grid_1.Col, { sizes: colSizes },
|
|
27
|
+
react_1.default.createElement("h1", { className: b('title') },
|
|
28
|
+
react_1.default.createElement(components_1.HTML, null, title)),
|
|
29
|
+
description && (react_1.default.createElement("div", { className: b('description') },
|
|
30
|
+
react_1.default.createElement(components_1.YFMWrapper, { content: description, modifiers: modifiers }))),
|
|
31
|
+
(buttons === null || buttons === void 0 ? void 0 : buttons.length) ? (react_1.default.createElement("div", { className: b('buttons') }, buttons.map((button, index) => (react_1.default.createElement(Button_1.default, Object.assign({ key: index }, button)))))) : null)))));
|
|
23
32
|
};
|
|
24
33
|
exports.HeaderMinifyBlock = HeaderMinifyBlock;
|
|
25
34
|
exports.default = exports.HeaderMinifyBlock;
|
|
@@ -8,34 +8,30 @@ export declare const HeaderMinifyProperties: {
|
|
|
8
8
|
contentType: string;
|
|
9
9
|
inputType: string;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
buttons: {
|
|
12
12
|
type: string;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
items: {
|
|
14
|
+
type: string;
|
|
15
|
+
additionalProperties: boolean;
|
|
16
|
+
required: string[];
|
|
17
|
+
properties: {
|
|
18
|
+
text: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
url: {
|
|
22
|
+
type: string;
|
|
23
|
+
};
|
|
24
|
+
outline: {
|
|
25
|
+
type: string;
|
|
26
|
+
};
|
|
24
27
|
};
|
|
25
28
|
};
|
|
26
29
|
};
|
|
27
|
-
|
|
30
|
+
video: {
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
headerSpace: {
|
|
28
34
|
type: string;
|
|
29
|
-
additionalProperties: boolean;
|
|
30
|
-
required: string[];
|
|
31
|
-
properties: {
|
|
32
|
-
firstSrc: {
|
|
33
|
-
type: string;
|
|
34
|
-
};
|
|
35
|
-
secondSrc: {
|
|
36
|
-
type: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
35
|
};
|
|
40
36
|
};
|
|
41
37
|
export declare const HeaderMinifyBlock: {
|
|
@@ -52,34 +48,30 @@ export declare const HeaderMinifyBlock: {
|
|
|
52
48
|
contentType: string;
|
|
53
49
|
inputType: string;
|
|
54
50
|
};
|
|
55
|
-
|
|
51
|
+
buttons: {
|
|
56
52
|
type: string;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
53
|
+
items: {
|
|
54
|
+
type: string;
|
|
55
|
+
additionalProperties: boolean;
|
|
56
|
+
required: string[];
|
|
57
|
+
properties: {
|
|
58
|
+
text: {
|
|
59
|
+
type: string;
|
|
60
|
+
};
|
|
61
|
+
url: {
|
|
62
|
+
type: string;
|
|
63
|
+
};
|
|
64
|
+
outline: {
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
68
67
|
};
|
|
69
68
|
};
|
|
70
69
|
};
|
|
71
|
-
|
|
70
|
+
video: {
|
|
71
|
+
type: string;
|
|
72
|
+
};
|
|
73
|
+
headerSpace: {
|
|
72
74
|
type: string;
|
|
73
|
-
additionalProperties: boolean;
|
|
74
|
-
required: string[];
|
|
75
|
-
properties: {
|
|
76
|
-
firstSrc: {
|
|
77
|
-
type: string;
|
|
78
|
-
};
|
|
79
|
-
secondSrc: {
|
|
80
|
-
type: string;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
75
|
};
|
|
84
76
|
anchor: {
|
|
85
77
|
type: string;
|
|
@@ -12,24 +12,24 @@ exports.HeaderMinifyProperties = {
|
|
|
12
12
|
contentType: 'yfm',
|
|
13
13
|
inputType: 'textarea',
|
|
14
14
|
},
|
|
15
|
-
|
|
16
|
-
type: '
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
buttons: {
|
|
16
|
+
type: 'array',
|
|
17
|
+
items: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
additionalProperties: false,
|
|
20
|
+
required: ['text', 'url'],
|
|
21
|
+
properties: {
|
|
22
|
+
text: { type: 'string' },
|
|
23
|
+
url: { type: 'string' },
|
|
24
|
+
outline: { type: 'boolean' },
|
|
25
|
+
},
|
|
23
26
|
},
|
|
24
27
|
},
|
|
25
|
-
|
|
26
|
-
type: '
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
firstSrc: { type: 'string' },
|
|
31
|
-
secondSrc: { type: 'string' },
|
|
32
|
-
},
|
|
28
|
+
video: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
},
|
|
31
|
+
headerSpace: {
|
|
32
|
+
type: 'boolean',
|
|
33
33
|
},
|
|
34
34
|
};
|
|
35
35
|
exports.HeaderMinifyBlock = {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-unicorn-cards-item {
|
|
4
|
+
position: relative;
|
|
5
|
+
padding: 20px 24px;
|
|
6
|
+
border-radius: 20px;
|
|
7
|
+
min-height: 410px;
|
|
8
|
+
}
|
|
9
|
+
.pc-unicorn-cards-item__title {
|
|
10
|
+
font-size: var(--g-text-display-2-font-size, var(--pc-text-display-2-font-size));
|
|
11
|
+
line-height: var(--g-text-display-2-line-height, var(--pc-text-display-2-line-height));
|
|
12
|
+
font-weight: bold;
|
|
13
|
+
margin-bottom: 12px;
|
|
14
|
+
position: relative;
|
|
15
|
+
z-index: 1;
|
|
16
|
+
}
|
|
17
|
+
.pc-unicorn-cards-item__text {
|
|
18
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
19
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
20
|
+
position: relative;
|
|
21
|
+
z-index: 1;
|
|
22
|
+
}
|
|
23
|
+
.pc-unicorn-cards-item__background {
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 0;
|
|
26
|
+
left: 0;
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
border-radius: 20px;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
}
|
|
32
|
+
.pc-unicorn-cards-item__background-item {
|
|
33
|
+
height: 100%;
|
|
34
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Item = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const unicornstudio_react_1 = tslib_1.__importDefault(require("unicornstudio-react"));
|
|
7
|
+
const utils_1 = require("../../../utils");
|
|
8
|
+
const b = (0, utils_1.block)('unicorn-cards-item');
|
|
9
|
+
const Item = ({ title, text, unicorn }) => {
|
|
10
|
+
return (react_1.default.createElement("div", { className: b() },
|
|
11
|
+
title && react_1.default.createElement("div", { className: b('title') }, title),
|
|
12
|
+
text && react_1.default.createElement("div", { className: b('text') }, text),
|
|
13
|
+
unicorn && (react_1.default.createElement("div", { className: b('background') },
|
|
14
|
+
react_1.default.createElement(unicornstudio_react_1.default, { className: b('background-item'), jsonFilePath: unicorn, width: "100%" })))));
|
|
15
|
+
};
|
|
16
|
+
exports.Item = Item;
|
|
17
|
+
exports.default = exports.Item;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
@media (min-width: 769px) {
|
|
4
|
+
.pc-unicorn-cards-block.pc-AnimateBlock .pc-unicorn-cards-block__root, .pc-AnimateBlock .pc-unicorn-cards-block .pc-unicorn-cards-block__root {
|
|
5
|
+
position: relative;
|
|
6
|
+
top: 100px;
|
|
7
|
+
opacity: 0;
|
|
8
|
+
}
|
|
9
|
+
.pc-unicorn-cards-block.pc-AnimateBlock.animate .pc-unicorn-cards-block__root, .pc-AnimateBlock .pc-unicorn-cards-block.animate .pc-unicorn-cards-block__root {
|
|
10
|
+
top: 0;
|
|
11
|
+
opacity: 1;
|
|
12
|
+
transition: top 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
13
|
+
transition-delay: 0s;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
.pc-unicorn-cards-block__title {
|
|
17
|
+
margin-bottom: 48px;
|
|
18
|
+
text-align: center;
|
|
19
|
+
}
|
|
20
|
+
.pc-unicorn-cards-block__items {
|
|
21
|
+
row-gap: 16px;
|
|
22
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnicornCardsBlock = 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 AnimateBlock_1 = tslib_1.__importDefault(require("../../components/AnimateBlock/AnimateBlock"));
|
|
8
|
+
const grid_1 = require("../../grid");
|
|
9
|
+
const utils_1 = require("../../utils");
|
|
10
|
+
const Item_1 = tslib_1.__importDefault(require("./Item/Item"));
|
|
11
|
+
const b = (0, utils_1.block)('unicorn-cards-block');
|
|
12
|
+
const colSizes = { all: 12, xl: 3, lg: 4, md: 6 };
|
|
13
|
+
const UnicornCardsBlock = (props) => {
|
|
14
|
+
const { animated, title, items } = props;
|
|
15
|
+
const titleProps = !title || typeof title === 'string'
|
|
16
|
+
? { text: title, textSize: 'l' }
|
|
17
|
+
: title;
|
|
18
|
+
const hasTitle = Boolean(title);
|
|
19
|
+
return (react_1.default.createElement(AnimateBlock_1.default, { className: b(), animate: animated },
|
|
20
|
+
react_1.default.createElement("div", { className: b('root') },
|
|
21
|
+
hasTitle && (react_1.default.createElement(components_1.Title, { title: titleProps, className: b('title'), colSizes: { all: 12 } })),
|
|
22
|
+
react_1.default.createElement(grid_1.Grid, null,
|
|
23
|
+
react_1.default.createElement(grid_1.Row, { className: b('items') }, items === null || items === void 0 ? void 0 : items.map((item, index) => (react_1.default.createElement(grid_1.Col, { key: index, sizes: colSizes },
|
|
24
|
+
react_1.default.createElement(Item_1.default, Object.assign({}, item))))))))));
|
|
25
|
+
};
|
|
26
|
+
exports.UnicornCardsBlock = UnicornCardsBlock;
|
|
27
|
+
exports.default = exports.UnicornCardsBlock;
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
export declare const UnicornCardsBlock: {
|
|
2
|
+
'unicorn-cards-block': {
|
|
3
|
+
additionalProperties: boolean;
|
|
4
|
+
required: boolean;
|
|
5
|
+
properties: {
|
|
6
|
+
title: {
|
|
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
|
+
})[];
|
|
161
|
+
};
|
|
162
|
+
items: {
|
|
163
|
+
type: string;
|
|
164
|
+
items: {
|
|
165
|
+
type: string;
|
|
166
|
+
additionalProperties: boolean;
|
|
167
|
+
required: boolean;
|
|
168
|
+
properties: {
|
|
169
|
+
title: {
|
|
170
|
+
type: string;
|
|
171
|
+
};
|
|
172
|
+
text: {
|
|
173
|
+
type: string;
|
|
174
|
+
};
|
|
175
|
+
unicorn: {
|
|
176
|
+
type: string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
animated: {
|
|
182
|
+
type: string;
|
|
183
|
+
};
|
|
184
|
+
type: {};
|
|
185
|
+
when: {
|
|
186
|
+
type: string;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnicornCardsBlock = void 0;
|
|
4
|
+
const common_1 = require("../../schema/validators/common");
|
|
5
|
+
exports.UnicornCardsBlock = {
|
|
6
|
+
'unicorn-cards-block': {
|
|
7
|
+
additionalProperties: false,
|
|
8
|
+
required: false,
|
|
9
|
+
properties: Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.AnimatableProps), { title: {
|
|
10
|
+
oneOf: [
|
|
11
|
+
{
|
|
12
|
+
type: 'string',
|
|
13
|
+
contentType: 'text',
|
|
14
|
+
optionName: 'text',
|
|
15
|
+
},
|
|
16
|
+
Object.assign(Object.assign({}, common_1.TitleProps), { optionName: 'options' }),
|
|
17
|
+
],
|
|
18
|
+
}, items: {
|
|
19
|
+
type: 'array',
|
|
20
|
+
items: {
|
|
21
|
+
type: 'object',
|
|
22
|
+
additionalProperties: false,
|
|
23
|
+
required: false,
|
|
24
|
+
properties: {
|
|
25
|
+
title: { type: 'string' },
|
|
26
|
+
text: { type: 'string' },
|
|
27
|
+
unicorn: { type: 'string' },
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
} }),
|
|
31
|
+
},
|
|
32
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as BannerBlock } from './Banner/Banner';
|
|
2
2
|
export { default as LogoRotatorBlock } from './LogoRotator/LogoRotator';
|
|
3
|
+
export { default as UnicornCardsBlock } from './UnicornCards/UnicornCards';
|
|
3
4
|
export { default as CompaniesBlock } from './Companies/Companies';
|
|
4
5
|
export { default as InfoBlock } from './Info/Info';
|
|
5
6
|
export { default as MediaBlock } from './Media/Media';
|