@doyourjob/gravity-ui-page-constructor 5.31.147-dev.1 → 5.31.148
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/blocks/Benchmark/Benchmark.css +0 -4
- package/build/cjs/blocks/Benchmark/Benchmark.js +1 -1
- package/build/cjs/blocks/Benchmark/schema.d.ts +145 -4
- package/build/cjs/blocks/Benchmark/schema.js +1 -3
- package/build/cjs/blocks/CardLayout/schema.d.ts +0 -6
- package/build/cjs/blocks/ContentLayout/schema.d.ts +0 -3
- package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +0 -3
- package/build/cjs/blocks/FilterBlock/schema.d.ts +0 -6
- package/build/cjs/blocks/FilterCardLayout/schema.d.ts +0 -3
- package/build/cjs/blocks/Form/schema.d.ts +0 -3
- package/build/cjs/{components → blocks/Header}/BackgroundEffect/BackgroundEffect.css +1 -1
- package/build/cjs/{components → blocks/Header}/BackgroundEffect/BackgroundEffect.js +5 -5
- package/build/cjs/blocks/Header/Header.js +2 -1
- package/build/cjs/blocks/Header/schema.d.ts +0 -3
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +0 -3
- package/build/cjs/blocks/HighlightTable/schema.d.ts +0 -3
- package/build/cjs/blocks/Icons/schema.d.ts +0 -6
- package/build/cjs/blocks/LogoRotator/LogoRotator.css +0 -28
- package/build/cjs/blocks/LogoRotator/LogoRotator.js +4 -8
- package/build/cjs/blocks/LogoRotator/schema.d.ts +0 -10
- package/build/cjs/blocks/LogoRotator/schema.js +1 -3
- package/build/cjs/blocks/Map/schema.d.ts +0 -3
- package/build/cjs/blocks/Media/schema.d.ts +0 -6
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +0 -3
- package/build/cjs/blocks/Questions/schema.d.ts +0 -3
- package/build/cjs/blocks/Slider/schema.d.ts +0 -3
- package/build/cjs/blocks/SliderNew/schema.d.ts +0 -3
- package/build/cjs/blocks/TabLinks/schema.d.ts +0 -3
- package/build/cjs/blocks/Table/schema.d.ts +0 -3
- package/build/cjs/blocks/Tabs/schema.d.ts +0 -3
- package/build/cjs/blocks/TabsHighlightTable/schema.d.ts +0 -3
- package/build/cjs/blocks/index.d.ts +0 -4
- package/build/cjs/blocks/index.js +1 -9
- package/build/cjs/blocks/validators.d.ts +0 -3
- package/build/cjs/blocks/validators.js +0 -3
- package/build/cjs/components/CardBase/CardBase.css +2 -2
- package/build/cjs/components/index.d.ts +0 -2
- package/build/cjs/components/index.js +1 -6
- package/build/cjs/constructor-items.d.ts +1 -5
- package/build/cjs/constructor-items.js +0 -4
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.css +0 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +1 -4
- package/build/cjs/models/constructor-items/blocks.d.ts +3 -82
- package/build/cjs/models/constructor-items/blocks.js +1 -9
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +2 -0
- package/build/cjs/schema/constants.d.ts +0 -6
- package/build/cjs/schema/constants.js +1 -5
- package/build/cjs/schema/validators/blocks.d.ts +0 -4
- package/build/cjs/schema/validators/blocks.js +0 -4
- package/build/cjs/schema/validators/common.d.ts +0 -3
- package/build/cjs/schema/validators/common.js +0 -2
- package/build/cjs/sub-blocks/ContentLayoutCard/schema.d.ts +0 -3
- package/build/cjs/sub-blocks/ImageCard/ImageCard.css +2 -2
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.css +16 -0
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.d.ts +1 -1
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +12 -9
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +58 -0
- package/build/cjs/sub-blocks/LayoutItem/schema.js +6 -3
- package/build/cjs/sub-blocks/Quote/Quote.css +1 -1
- package/build/cjs/sub-blocks/StoryCard/schema.d.ts +0 -3
- package/build/cjs/text-transform/config.js +7 -10
- package/build/esm/blocks/Benchmark/Benchmark.css +0 -4
- package/build/esm/blocks/Benchmark/Benchmark.js +2 -2
- package/build/esm/blocks/Benchmark/schema.d.ts +145 -4
- package/build/esm/blocks/Benchmark/schema.js +2 -4
- package/build/esm/blocks/CardLayout/schema.d.ts +0 -6
- package/build/esm/blocks/ContentLayout/schema.d.ts +0 -3
- package/build/esm/blocks/ExtendedFeatures/schema.d.ts +0 -3
- package/build/esm/blocks/FilterBlock/schema.d.ts +0 -6
- package/build/esm/blocks/FilterCardLayout/schema.d.ts +0 -3
- package/build/esm/blocks/Form/schema.d.ts +0 -3
- package/build/esm/{components → blocks/Header}/BackgroundEffect/BackgroundEffect.css +1 -1
- package/build/esm/{components → blocks/Header}/BackgroundEffect/BackgroundEffect.js +2 -2
- package/build/esm/blocks/Header/Header.js +2 -1
- package/build/esm/blocks/Header/schema.d.ts +0 -3
- package/build/esm/blocks/HeaderSlider/schema.d.ts +0 -3
- package/build/esm/blocks/HighlightTable/schema.d.ts +0 -3
- package/build/esm/blocks/Icons/schema.d.ts +0 -6
- package/build/esm/blocks/LogoRotator/LogoRotator.css +0 -28
- package/build/esm/blocks/LogoRotator/LogoRotator.js +4 -8
- package/build/esm/blocks/LogoRotator/schema.d.ts +0 -10
- package/build/esm/blocks/LogoRotator/schema.js +2 -4
- package/build/esm/blocks/Map/schema.d.ts +0 -3
- package/build/esm/blocks/Media/schema.d.ts +0 -6
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +0 -3
- package/build/esm/blocks/Questions/schema.d.ts +0 -3
- package/build/esm/blocks/Slider/schema.d.ts +0 -3
- package/build/esm/blocks/SliderNew/schema.d.ts +0 -3
- package/build/esm/blocks/TabLinks/schema.d.ts +0 -3
- package/build/esm/blocks/Table/schema.d.ts +0 -3
- package/build/esm/blocks/Tabs/schema.d.ts +0 -3
- package/build/esm/blocks/TabsHighlightTable/schema.d.ts +0 -3
- package/build/esm/blocks/index.d.ts +0 -4
- package/build/esm/blocks/index.js +0 -4
- package/build/esm/blocks/validators.d.ts +0 -3
- package/build/esm/blocks/validators.js +0 -3
- package/build/esm/components/CardBase/CardBase.css +2 -2
- package/build/esm/components/index.d.ts +0 -2
- package/build/esm/components/index.js +0 -2
- package/build/esm/constructor-items.d.ts +1 -5
- package/build/esm/constructor-items.js +1 -5
- package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.css +0 -1
- package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +1 -4
- package/build/esm/models/constructor-items/blocks.d.ts +3 -82
- package/build/esm/models/constructor-items/blocks.js +1 -9
- package/build/esm/models/constructor-items/sub-blocks.d.ts +2 -0
- package/build/esm/schema/constants.d.ts +0 -6
- package/build/esm/schema/constants.js +2 -6
- package/build/esm/schema/validators/blocks.d.ts +0 -4
- package/build/esm/schema/validators/blocks.js +0 -4
- package/build/esm/schema/validators/common.d.ts +0 -3
- package/build/esm/schema/validators/common.js +0 -2
- package/build/esm/sub-blocks/ContentLayoutCard/schema.d.ts +0 -3
- package/build/esm/sub-blocks/ImageCard/ImageCard.css +2 -2
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.css +16 -0
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.d.ts +1 -1
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +6 -3
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +58 -0
- package/build/esm/sub-blocks/LayoutItem/schema.js +4 -1
- package/build/esm/sub-blocks/Quote/Quote.css +1 -1
- package/build/esm/sub-blocks/StoryCard/schema.d.ts +0 -3
- package/build/esm/text-transform/config.js +7 -10
- package/package.json +1 -1
- package/schema/index.js +1 -1
- package/server/models/constructor-items/blocks.d.ts +3 -82
- package/server/models/constructor-items/blocks.js +1 -9
- package/server/models/constructor-items/sub-blocks.d.ts +2 -0
- package/server/text-transform/config.js +7 -10
- package/styles/mixins.scss +1 -1
- package/widget/index.js +1 -1
- package/build/cjs/blocks/BannerMinify/BannerMinify.css +0 -30
- package/build/cjs/blocks/BannerMinify/BannerMinify.d.ts +0 -3
- package/build/cjs/blocks/BannerMinify/BannerMinify.js +0 -22
- package/build/cjs/blocks/BannerMinify/Button/Button.css +0 -28
- package/build/cjs/blocks/BannerMinify/Button/Button.d.ts +0 -3
- package/build/cjs/blocks/BannerMinify/Button/Button.js +0 -15
- package/build/cjs/blocks/BannerMinify/schema.d.ts +0 -172
- package/build/cjs/blocks/BannerMinify/schema.js +0 -36
- package/build/cjs/blocks/Benefits/Benefits.css +0 -76
- package/build/cjs/blocks/Benefits/Benefits.d.ts +0 -3
- package/build/cjs/blocks/Benefits/Benefits.js +0 -42
- package/build/cjs/blocks/Benefits/BenefitsCard/BenefitsCard.css +0 -32
- package/build/cjs/blocks/Benefits/BenefitsCard/BenefitsCard.d.ts +0 -3
- package/build/cjs/blocks/Benefits/BenefitsCard/BenefitsCard.js +0 -17
- package/build/cjs/blocks/Benefits/BenefitsLabel/BenefitsLabel.css +0 -31
- package/build/cjs/blocks/Benefits/BenefitsLabel/BenefitsLabel.d.ts +0 -8
- package/build/cjs/blocks/Benefits/BenefitsLabel/BenefitsLabel.js +0 -16
- package/build/cjs/blocks/Benefits/schema.d.ts +0 -92
- package/build/cjs/blocks/Benefits/schema.js +0 -51
- package/build/cjs/blocks/HeaderMinify/Button/Button.css +0 -28
- package/build/cjs/blocks/HeaderMinify/Button/Button.d.ts +0 -3
- package/build/cjs/blocks/HeaderMinify/Button/Button.js +0 -17
- package/build/cjs/blocks/HeaderMinify/HeaderMinify.css +0 -45
- package/build/cjs/blocks/HeaderMinify/HeaderMinify.d.ts +0 -3
- package/build/cjs/blocks/HeaderMinify/HeaderMinify.js +0 -25
- package/build/cjs/blocks/HeaderMinify/schema.d.ts +0 -221
- package/build/cjs/blocks/HeaderMinify/schema.js +0 -41
- package/build/cjs/blocks/Scroller/Scroller.css +0 -40
- package/build/cjs/blocks/Scroller/Scroller.d.ts +0 -4
- package/build/cjs/blocks/Scroller/Scroller.js +0 -34
- package/build/cjs/blocks/Scroller/schema.d.ts +0 -33
- package/build/cjs/blocks/Scroller/schema.js +0 -22
- package/build/cjs/components/BackgroundUnicorn/BackgroundUnicorn.css +0 -13
- package/build/cjs/components/BackgroundUnicorn/BackgroundUnicorn.d.ts +0 -3
- package/build/cjs/components/BackgroundUnicorn/BackgroundUnicorn.js +0 -15
- package/build/esm/blocks/BannerMinify/BannerMinify.css +0 -30
- package/build/esm/blocks/BannerMinify/BannerMinify.d.ts +0 -4
- package/build/esm/blocks/BannerMinify/BannerMinify.js +0 -18
- package/build/esm/blocks/BannerMinify/Button/Button.css +0 -28
- package/build/esm/blocks/BannerMinify/Button/Button.d.ts +0 -4
- package/build/esm/blocks/BannerMinify/Button/Button.js +0 -11
- package/build/esm/blocks/BannerMinify/schema.d.ts +0 -172
- package/build/esm/blocks/BannerMinify/schema.js +0 -33
- package/build/esm/blocks/Benefits/Benefits.css +0 -76
- package/build/esm/blocks/Benefits/Benefits.d.ts +0 -4
- package/build/esm/blocks/Benefits/Benefits.js +0 -38
- package/build/esm/blocks/Benefits/BenefitsCard/BenefitsCard.css +0 -32
- package/build/esm/blocks/Benefits/BenefitsCard/BenefitsCard.d.ts +0 -4
- package/build/esm/blocks/Benefits/BenefitsCard/BenefitsCard.js +0 -13
- package/build/esm/blocks/Benefits/BenefitsLabel/BenefitsLabel.css +0 -31
- package/build/esm/blocks/Benefits/BenefitsLabel/BenefitsLabel.d.ts +0 -9
- package/build/esm/blocks/Benefits/BenefitsLabel/BenefitsLabel.js +0 -12
- package/build/esm/blocks/Benefits/schema.d.ts +0 -92
- package/build/esm/blocks/Benefits/schema.js +0 -48
- package/build/esm/blocks/HeaderMinify/Button/Button.css +0 -28
- package/build/esm/blocks/HeaderMinify/Button/Button.d.ts +0 -4
- package/build/esm/blocks/HeaderMinify/Button/Button.js +0 -13
- package/build/esm/blocks/HeaderMinify/HeaderMinify.css +0 -45
- package/build/esm/blocks/HeaderMinify/HeaderMinify.d.ts +0 -4
- package/build/esm/blocks/HeaderMinify/HeaderMinify.js +0 -21
- package/build/esm/blocks/HeaderMinify/schema.d.ts +0 -221
- package/build/esm/blocks/HeaderMinify/schema.js +0 -38
- package/build/esm/blocks/Scroller/Scroller.css +0 -40
- package/build/esm/blocks/Scroller/Scroller.d.ts +0 -5
- package/build/esm/blocks/Scroller/Scroller.js +0 -30
- package/build/esm/blocks/Scroller/schema.d.ts +0 -33
- package/build/esm/blocks/Scroller/schema.js +0 -19
- package/build/esm/components/BackgroundUnicorn/BackgroundUnicorn.css +0 -13
- package/build/esm/components/BackgroundUnicorn/BackgroundUnicorn.d.ts +0 -4
- package/build/esm/components/BackgroundUnicorn/BackgroundUnicorn.js +0 -13
- /package/build/cjs/{components → blocks/Header}/BackgroundEffect/BackgroundEffect.d.ts +0 -0
- /package/build/esm/{components → blocks/Header}/BackgroundEffect/BackgroundEffect.d.ts +0 -0
|
@@ -12,7 +12,7 @@ const Benchmark = ({ title, data, duration, animated }) => {
|
|
|
12
12
|
const [playNumbers, setPlayNumbers] = (0, react_1.useState)(false);
|
|
13
13
|
const handleOnAnimateStart = (0, react_1.useCallback)(() => setPlayNumbers(true), []);
|
|
14
14
|
return (react_1.default.createElement(components_1.AnimateBlock, { className: b(), animate: animated, onAnimateStart: handleOnAnimateStart },
|
|
15
|
-
title && react_1.default.createElement(
|
|
15
|
+
title && react_1.default.createElement(components_1.Title, { title: title, className: b('title') }),
|
|
16
16
|
react_1.default.createElement(grid_1.Grid, { className: b('content') },
|
|
17
17
|
react_1.default.createElement(grid_1.Row, null, data.map((column, columnIndex) => (react_1.default.createElement(grid_1.Col, { key: columnIndex, sizes: column.sizes || defaultSizes, className: b('wrap') },
|
|
18
18
|
column.title && (react_1.default.createElement(uikit_1.Text, { variant: "header-2", className: b('wrap-title') }, column.title)),
|
|
@@ -4,7 +4,151 @@ export declare const BenchmarkBlock: {
|
|
|
4
4
|
required: string[];
|
|
5
5
|
properties: {
|
|
6
6
|
title: {
|
|
7
|
-
|
|
7
|
+
oneOf: ({
|
|
8
|
+
type: string;
|
|
9
|
+
optionName: string;
|
|
10
|
+
} | {
|
|
11
|
+
optionName: string;
|
|
12
|
+
type: string;
|
|
13
|
+
additionalProperties: boolean;
|
|
14
|
+
required: string[];
|
|
15
|
+
properties: {
|
|
16
|
+
text: {
|
|
17
|
+
type: string;
|
|
18
|
+
contentType: string;
|
|
19
|
+
};
|
|
20
|
+
link: {
|
|
21
|
+
type: string;
|
|
22
|
+
additionalProperties: boolean;
|
|
23
|
+
required: string[];
|
|
24
|
+
properties: {
|
|
25
|
+
text: {
|
|
26
|
+
type: string;
|
|
27
|
+
contentType: string;
|
|
28
|
+
};
|
|
29
|
+
url: {
|
|
30
|
+
type: string;
|
|
31
|
+
};
|
|
32
|
+
urlTitle: {
|
|
33
|
+
type: string;
|
|
34
|
+
};
|
|
35
|
+
arrow: {
|
|
36
|
+
type: string;
|
|
37
|
+
};
|
|
38
|
+
theme: {
|
|
39
|
+
type: string;
|
|
40
|
+
enum: string[];
|
|
41
|
+
};
|
|
42
|
+
textSize: {
|
|
43
|
+
type: string;
|
|
44
|
+
enum: string[];
|
|
45
|
+
};
|
|
46
|
+
target: {
|
|
47
|
+
type: string;
|
|
48
|
+
enum: string[];
|
|
49
|
+
};
|
|
50
|
+
analyticsEvents: {
|
|
51
|
+
oneOf: ({
|
|
52
|
+
optionName: string;
|
|
53
|
+
type: string;
|
|
54
|
+
additionalProperties: {
|
|
55
|
+
type: string;
|
|
56
|
+
};
|
|
57
|
+
required: string[];
|
|
58
|
+
properties: {
|
|
59
|
+
name: {
|
|
60
|
+
type: string;
|
|
61
|
+
};
|
|
62
|
+
type: {
|
|
63
|
+
type: string;
|
|
64
|
+
};
|
|
65
|
+
counters: {
|
|
66
|
+
type: string;
|
|
67
|
+
additionalProperties: boolean;
|
|
68
|
+
required: never[];
|
|
69
|
+
properties: {
|
|
70
|
+
include: {
|
|
71
|
+
type: string;
|
|
72
|
+
items: {
|
|
73
|
+
type: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
exclude: {
|
|
77
|
+
type: string;
|
|
78
|
+
items: {
|
|
79
|
+
type: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
context: {
|
|
85
|
+
type: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
items?: undefined;
|
|
89
|
+
} | {
|
|
90
|
+
type: string;
|
|
91
|
+
items: {
|
|
92
|
+
type: string;
|
|
93
|
+
additionalProperties: {
|
|
94
|
+
type: string;
|
|
95
|
+
};
|
|
96
|
+
required: string[];
|
|
97
|
+
properties: {
|
|
98
|
+
name: {
|
|
99
|
+
type: string;
|
|
100
|
+
};
|
|
101
|
+
type: {
|
|
102
|
+
type: string;
|
|
103
|
+
};
|
|
104
|
+
counters: {
|
|
105
|
+
type: string;
|
|
106
|
+
additionalProperties: boolean;
|
|
107
|
+
required: never[];
|
|
108
|
+
properties: {
|
|
109
|
+
include: {
|
|
110
|
+
type: string;
|
|
111
|
+
items: {
|
|
112
|
+
type: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
exclude: {
|
|
116
|
+
type: string;
|
|
117
|
+
items: {
|
|
118
|
+
type: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
context: {
|
|
124
|
+
type: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
optionName: string;
|
|
129
|
+
})[];
|
|
130
|
+
};
|
|
131
|
+
type: {};
|
|
132
|
+
when: {
|
|
133
|
+
type: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
textSize: {
|
|
138
|
+
type: string;
|
|
139
|
+
enum: string[];
|
|
140
|
+
};
|
|
141
|
+
url: {
|
|
142
|
+
type: string;
|
|
143
|
+
};
|
|
144
|
+
urlTitle: {
|
|
145
|
+
type: string;
|
|
146
|
+
};
|
|
147
|
+
resetMargin: {
|
|
148
|
+
type: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
})[];
|
|
8
152
|
};
|
|
9
153
|
duration: {
|
|
10
154
|
type: string;
|
|
@@ -147,9 +291,6 @@ export declare const BenchmarkBlock: {
|
|
|
147
291
|
};
|
|
148
292
|
})[];
|
|
149
293
|
};
|
|
150
|
-
blockUnicorn: {
|
|
151
|
-
type: string;
|
|
152
|
-
};
|
|
153
294
|
blockBackground: {
|
|
154
295
|
oneOf: ({
|
|
155
296
|
type: string;
|
|
@@ -6,9 +6,7 @@ exports.BenchmarkBlock = {
|
|
|
6
6
|
'benchmark-block': {
|
|
7
7
|
additionalProperties: false,
|
|
8
8
|
required: ['data'],
|
|
9
|
-
properties: Object.assign(Object.assign(Object.assign({}, common_1.BlockBaseProps), common_1.AnimatableProps), { title: {
|
|
10
|
-
type: 'string',
|
|
11
|
-
}, duration: {
|
|
9
|
+
properties: Object.assign(Object.assign(Object.assign({}, common_1.BlockBaseProps), common_1.AnimatableProps), { title: common_1.BlockHeaderProps.title, duration: {
|
|
12
10
|
type: 'number',
|
|
13
11
|
}, data: {
|
|
14
12
|
type: 'array',
|
|
@@ -357,9 +357,6 @@ export declare const CardLayoutProps: {
|
|
|
357
357
|
};
|
|
358
358
|
})[];
|
|
359
359
|
};
|
|
360
|
-
blockUnicorn: {
|
|
361
|
-
type: string;
|
|
362
|
-
};
|
|
363
360
|
blockBackground: {
|
|
364
361
|
oneOf: ({
|
|
365
362
|
type: string;
|
|
@@ -765,9 +762,6 @@ export declare const CardLayoutBlock: {
|
|
|
765
762
|
};
|
|
766
763
|
})[];
|
|
767
764
|
};
|
|
768
|
-
blockUnicorn: {
|
|
769
|
-
type: string;
|
|
770
|
-
};
|
|
771
765
|
blockBackground: {
|
|
772
766
|
oneOf: ({
|
|
773
767
|
type: string;
|
|
@@ -313,9 +313,6 @@ export declare const FilterProps: {
|
|
|
313
313
|
};
|
|
314
314
|
})[];
|
|
315
315
|
};
|
|
316
|
-
blockUnicorn: {
|
|
317
|
-
type: string;
|
|
318
|
-
};
|
|
319
316
|
blockBackground: {
|
|
320
317
|
oneOf: ({
|
|
321
318
|
type: string;
|
|
@@ -650,9 +647,6 @@ export declare const FilterBlock: {
|
|
|
650
647
|
};
|
|
651
648
|
})[];
|
|
652
649
|
};
|
|
653
|
-
blockUnicorn: {
|
|
654
|
-
type: string;
|
|
655
|
-
};
|
|
656
650
|
blockBackground: {
|
|
657
651
|
oneOf: ({
|
|
658
652
|
type: string;
|
|
@@ -18,7 +18,7 @@ unpredictable css rules order in build */
|
|
|
18
18
|
transition: clip-path 0.5s linear;
|
|
19
19
|
clip-path: inset(0 0 0 99.99%);
|
|
20
20
|
}
|
|
21
|
-
.pc-header-block:hover .pc-background-effect__right
|
|
21
|
+
.pc-header-block:hover .pc-background-effect__right {
|
|
22
22
|
transition: none;
|
|
23
23
|
}
|
|
24
24
|
.pc-background-effect__video {
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BackgroundEffect = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
-
const utils_1 = require("
|
|
7
|
-
const utils_2 = require("
|
|
8
|
-
const b = (0,
|
|
6
|
+
const utils_1 = require("../../../components/Media/Video/utils");
|
|
7
|
+
const utils_2 = require("../../../utils");
|
|
8
|
+
const b = (0, utils_2.block)('background-effect');
|
|
9
9
|
const SYNC_THRESHOLD = 0.03;
|
|
10
10
|
const MAX_DESYNC = 0.5;
|
|
11
11
|
const FAST_RATE = 1.05;
|
|
@@ -139,13 +139,13 @@ const BackgroundEffect = ({ firstSrc, secondSrc, attachRef }) => {
|
|
|
139
139
|
// @ts-ignore
|
|
140
140
|
// eslint-disable-next-line react/no-unknown-property
|
|
141
141
|
pip: "false", autoPlay: true, loop: true, preload: "auto", muted: true, className: b('video') },
|
|
142
|
-
react_1.default.createElement("source", { src: firstSrc, type: (0,
|
|
142
|
+
react_1.default.createElement("source", { src: firstSrc, type: (0, utils_1.parseVideoType)(firstSrc) }))),
|
|
143
143
|
react_1.default.createElement("div", { className: b('right'), ref: drivenWrap },
|
|
144
144
|
react_1.default.createElement("video", { ref: driven, disablePictureInPicture: true, playsInline: true,
|
|
145
145
|
// @ts-ignore
|
|
146
146
|
// eslint-disable-next-line react/no-unknown-property
|
|
147
147
|
pip: "false", autoPlay: true, loop: true, preload: "auto", muted: true, className: b('video') },
|
|
148
|
-
react_1.default.createElement("source", { src: secondSrc, type: (0,
|
|
148
|
+
react_1.default.createElement("source", { src: secondSrc, type: (0, utils_1.parseVideoType)(secondSrc) })))));
|
|
149
149
|
};
|
|
150
150
|
exports.BackgroundEffect = BackgroundEffect;
|
|
151
151
|
exports.default = exports.BackgroundEffect;
|
|
@@ -12,6 +12,7 @@ const theme_1 = require("../../context/theme");
|
|
|
12
12
|
const grid_1 = require("../../grid");
|
|
13
13
|
const utils_2 = require("../../utils");
|
|
14
14
|
const BackButton_1 = tslib_1.__importDefault(require("./BackButton/BackButton"));
|
|
15
|
+
const BackgroundEffect_1 = tslib_1.__importDefault(require("./BackgroundEffect/BackgroundEffect"));
|
|
15
16
|
const Breadcrumbs_1 = tslib_1.__importDefault(require("./Breadcrumbs/Breadcrumbs"));
|
|
16
17
|
const HeaderButtons_1 = tslib_1.__importDefault(require("./HeaderButtons/HeaderButtons"));
|
|
17
18
|
const HeaderDescription_1 = tslib_1.__importDefault(require("./HeaderDescription/HeaderDescription"));
|
|
@@ -53,7 +54,7 @@ const HeaderBlock = (props) => {
|
|
|
53
54
|
}, className) },
|
|
54
55
|
backgroundThemed && fullWidth && react_1.default.createElement(FullWidthBackground, { background: backgroundThemed }),
|
|
55
56
|
backgroundThemed && react_1.default.createElement(Background, { background: backgroundThemed, isMobile: isMobile }),
|
|
56
|
-
backgroundEffect && backgroundEffect.firstSrc && backgroundEffect.secondSrc && (react_1.default.createElement(
|
|
57
|
+
backgroundEffect && backgroundEffect.firstSrc && backgroundEffect.secondSrc && (react_1.default.createElement(BackgroundEffect_1.default, Object.assign({}, backgroundEffect, { attachRef: headerRef }))),
|
|
57
58
|
react_1.default.createElement(grid_1.Grid, { containerClass: b('container-fluid') },
|
|
58
59
|
react_1.default.createElement(Breadcrumbs_1.default, { breadcrumbs: breadcrumbs, theme: textTheme }),
|
|
59
60
|
react_1.default.createElement(BackButton_1.default, { backButton: verticalOffset !== '0' && !breadcrumbs ? backButton : undefined, theme: textTheme }),
|
|
@@ -213,9 +213,6 @@ export declare const IconsProps: {
|
|
|
213
213
|
};
|
|
214
214
|
})[];
|
|
215
215
|
};
|
|
216
|
-
blockUnicorn: {
|
|
217
|
-
type: string;
|
|
218
|
-
};
|
|
219
216
|
blockBackground: {
|
|
220
217
|
oneOf: ({
|
|
221
218
|
type: string;
|
|
@@ -477,9 +474,6 @@ export declare const IconsBlock: {
|
|
|
477
474
|
};
|
|
478
475
|
})[];
|
|
479
476
|
};
|
|
480
|
-
blockUnicorn: {
|
|
481
|
-
type: string;
|
|
482
|
-
};
|
|
483
477
|
blockBackground: {
|
|
484
478
|
oneOf: ({
|
|
485
479
|
type: string;
|
|
@@ -16,16 +16,6 @@ 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
|
-
font-size: 48px;
|
|
26
|
-
line-height: 52px;
|
|
27
|
-
font-weight: 600;
|
|
28
|
-
}
|
|
29
19
|
.pc-logo-rotator-block__items {
|
|
30
20
|
display: flex;
|
|
31
21
|
flex-wrap: wrap;
|
|
@@ -51,22 +41,4 @@ unpredictable css rules order in build */
|
|
|
51
41
|
width: 100%;
|
|
52
42
|
height: 100%;
|
|
53
43
|
object-fit: contain;
|
|
54
|
-
}
|
|
55
|
-
.pc-logo-rotator-block__row-items {
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-wrap: wrap;
|
|
58
|
-
padding-top: 16px;
|
|
59
|
-
padding-bottom: 16px;
|
|
60
|
-
gap: 46px 16px;
|
|
61
|
-
}
|
|
62
|
-
.pc-logo-rotator-block__row-item {
|
|
63
|
-
display: block;
|
|
64
|
-
height: 36px;
|
|
65
|
-
min-width: 160px;
|
|
66
|
-
flex: 1;
|
|
67
|
-
transition: opacity 0.5s ease 0.1s;
|
|
68
|
-
opacity: 1;
|
|
69
|
-
}
|
|
70
|
-
.pc-logo-rotator-block__row-item_hidden {
|
|
71
|
-
opacity: 0;
|
|
72
44
|
}
|
|
@@ -3,15 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.LogoRotatorBlock = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
-
const uikit_1 = require("@gravity-ui/uikit");
|
|
7
|
-
const components_1 = require("../../components");
|
|
8
6
|
const AnimateBlock_1 = tslib_1.__importDefault(require("../../components/AnimateBlock/AnimateBlock"));
|
|
9
7
|
const grid_1 = require("../../grid");
|
|
10
8
|
const utils_1 = require("../../utils");
|
|
11
9
|
const Item_1 = tslib_1.__importDefault(require("./Item"));
|
|
12
10
|
const b = (0, utils_1.block)('logo-rotator-block');
|
|
13
11
|
const LogoRotatorBlock = (props) => {
|
|
14
|
-
const { animated,
|
|
12
|
+
const { animated, items, count, colSizes } = props;
|
|
15
13
|
const [slots, setSlots] = (0, react_1.useState)(new Array(count).fill(0).map((_, index) => index));
|
|
16
14
|
const [hidden, setHidden] = (0, react_1.useState)(() => Array(count).fill(false));
|
|
17
15
|
const nextIndexRef = (0, react_1.useRef)(count - 1);
|
|
@@ -50,11 +48,9 @@ const LogoRotatorBlock = (props) => {
|
|
|
50
48
|
};
|
|
51
49
|
}, [count, items]);
|
|
52
50
|
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]);
|
|
53
|
-
return (react_1.default.createElement(AnimateBlock_1.default, { className: b(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
react_1.default.createElement(components_1.ImageBase, { src: items[slot].src, className: b('image'), alt: "", "aria-hidden": "true" })))))) : (react_1.default.createElement(grid_1.Grid, { className: b('items') },
|
|
57
|
-
react_1.default.createElement(grid_1.Row, { className: b('row') }, renderItems)))));
|
|
51
|
+
return (react_1.default.createElement(AnimateBlock_1.default, { className: b(), animate: animated },
|
|
52
|
+
react_1.default.createElement(grid_1.Grid, { className: b('items') },
|
|
53
|
+
react_1.default.createElement(grid_1.Row, { className: b('row') }, renderItems))));
|
|
58
54
|
};
|
|
59
55
|
exports.LogoRotatorBlock = LogoRotatorBlock;
|
|
60
56
|
exports.default = exports.LogoRotatorBlock;
|
|
@@ -3,13 +3,6 @@ export declare const LogoRotatorBlock: {
|
|
|
3
3
|
additionalProperties: boolean;
|
|
4
4
|
required: string[];
|
|
5
5
|
properties: {
|
|
6
|
-
title: {
|
|
7
|
-
type: string;
|
|
8
|
-
};
|
|
9
|
-
theme: {
|
|
10
|
-
type: string;
|
|
11
|
-
enum: string[];
|
|
12
|
-
};
|
|
13
6
|
items: {
|
|
14
7
|
type: string;
|
|
15
8
|
items: {
|
|
@@ -37,9 +30,6 @@ export declare const LogoRotatorBlock: {
|
|
|
37
30
|
properties: {};
|
|
38
31
|
};
|
|
39
32
|
};
|
|
40
|
-
rowMode: {
|
|
41
|
-
type: string;
|
|
42
|
-
};
|
|
43
33
|
animated: {
|
|
44
34
|
type: string;
|
|
45
35
|
};
|
|
@@ -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), {
|
|
9
|
+
properties: Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.AnimatableProps), { items: {
|
|
10
10
|
type: 'array',
|
|
11
11
|
items: {
|
|
12
12
|
type: 'object',
|
|
@@ -22,8 +22,6 @@ exports.LogoRotatorBlock = {
|
|
|
22
22
|
}, colSizes: {
|
|
23
23
|
type: 'object',
|
|
24
24
|
additionalProperties: common_1.containerSizesObject,
|
|
25
|
-
}, rowMode: {
|
|
26
|
-
type: 'boolean',
|
|
27
25
|
} }),
|
|
28
26
|
},
|
|
29
27
|
};
|
|
@@ -804,9 +804,6 @@ export declare const MediaBlockBaseProps: {
|
|
|
804
804
|
};
|
|
805
805
|
})[];
|
|
806
806
|
};
|
|
807
|
-
blockUnicorn: {
|
|
808
|
-
type: string;
|
|
809
|
-
};
|
|
810
807
|
blockBackground: {
|
|
811
808
|
oneOf: ({
|
|
812
809
|
type: string;
|
|
@@ -1671,9 +1668,6 @@ export declare const MediaBlock: {
|
|
|
1671
1668
|
};
|
|
1672
1669
|
})[];
|
|
1673
1670
|
};
|
|
1674
|
-
blockUnicorn: {
|
|
1675
|
-
type: string;
|
|
1676
|
-
};
|
|
1677
1671
|
blockBackground: {
|
|
1678
1672
|
oneOf: ({
|
|
1679
1673
|
type: string;
|
|
@@ -9,20 +9,16 @@ export { default as SliderNewBlock } from './SliderNew/Slider';
|
|
|
9
9
|
export { default as ExtendedFeaturesBlock } from './ExtendedFeatures/ExtendedFeatures';
|
|
10
10
|
export { default as PromoFeaturesBlock } from './PromoFeaturesBlock/PromoFeaturesBlock';
|
|
11
11
|
export { default as AdvantagesBlock } from './Advantages/Advantages';
|
|
12
|
-
export { default as BenefitsBlock } from './Benefits/Benefits';
|
|
13
|
-
export { default as ScrollerBlock } from './Scroller/Scroller';
|
|
14
12
|
export { default as QuestionsBlock } from './Questions/Questions';
|
|
15
13
|
export { default as TableBlock } from './Table/Table';
|
|
16
14
|
export { default as TabsBlock } from './Tabs/Tabs';
|
|
17
15
|
export { default as TabsHighlightTableBlock } from './TabsHighlightTable/TabsHighlightTable';
|
|
18
16
|
export { default as TabLinksBlock } from './TabLinks/TabLinks';
|
|
19
17
|
export { default as HeaderBlock } from './Header/Header';
|
|
20
|
-
export { default as HeaderMinifyBlock } from './HeaderMinify/HeaderMinify';
|
|
21
18
|
export { default as IconsBlock } from './Icons/Icons';
|
|
22
19
|
export { default as HeaderSliderBlock } from './HeaderSlider/HeaderSlider';
|
|
23
20
|
export { default as CardLayoutBlock } from './CardLayout/CardLayout';
|
|
24
21
|
export { default as ContentLayoutBlock } from './ContentLayout/ContentLayout';
|
|
25
|
-
export { default as BannerMinifyBlock } from './BannerMinify/BannerMinify';
|
|
26
22
|
export { default as ShareBlock } from './Share/Share';
|
|
27
23
|
export { default as FilterBlock } from './FilterBlock/FilterBlock';
|
|
28
24
|
export { default as FilterCardLayoutBlock } from './FilterCardLayout/FilterCardLayout';
|