@doyourjob/gravity-ui-page-constructor 5.31.146 → 5.31.147-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/build/cjs/blocks/BannerMinify/BannerMinify.css +30 -0
  2. package/build/cjs/blocks/BannerMinify/BannerMinify.d.ts +3 -0
  3. package/build/cjs/blocks/BannerMinify/BannerMinify.js +22 -0
  4. package/build/cjs/blocks/BannerMinify/Button/Button.css +28 -0
  5. package/build/cjs/blocks/BannerMinify/Button/Button.d.ts +3 -0
  6. package/build/cjs/blocks/BannerMinify/Button/Button.js +15 -0
  7. package/build/cjs/blocks/BannerMinify/schema.d.ts +172 -0
  8. package/build/cjs/blocks/BannerMinify/schema.js +36 -0
  9. package/build/cjs/blocks/Benchmark/Benchmark.css +4 -0
  10. package/build/cjs/blocks/Benchmark/Benchmark.js +1 -1
  11. package/build/cjs/blocks/Benchmark/schema.d.ts +4 -145
  12. package/build/cjs/blocks/Benchmark/schema.js +3 -1
  13. package/build/cjs/blocks/Benefits/Benefits.css +76 -0
  14. package/build/cjs/blocks/Benefits/Benefits.d.ts +3 -0
  15. package/build/cjs/blocks/Benefits/Benefits.js +42 -0
  16. package/build/cjs/blocks/Benefits/BenefitsCard/BenefitsCard.css +32 -0
  17. package/build/cjs/blocks/Benefits/BenefitsCard/BenefitsCard.d.ts +3 -0
  18. package/build/cjs/blocks/Benefits/BenefitsCard/BenefitsCard.js +17 -0
  19. package/build/cjs/blocks/Benefits/BenefitsLabel/BenefitsLabel.css +31 -0
  20. package/build/cjs/blocks/Benefits/BenefitsLabel/BenefitsLabel.d.ts +8 -0
  21. package/build/cjs/blocks/Benefits/BenefitsLabel/BenefitsLabel.js +16 -0
  22. package/build/cjs/blocks/Benefits/schema.d.ts +92 -0
  23. package/build/cjs/blocks/Benefits/schema.js +51 -0
  24. package/build/cjs/blocks/CardLayout/schema.d.ts +6 -0
  25. package/build/cjs/blocks/ContentLayout/schema.d.ts +3 -0
  26. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +3 -0
  27. package/build/cjs/blocks/FilterBlock/schema.d.ts +6 -0
  28. package/build/cjs/blocks/FilterCardLayout/schema.d.ts +3 -0
  29. package/build/cjs/blocks/Form/schema.d.ts +3 -0
  30. package/build/cjs/blocks/Header/Header.js +1 -2
  31. package/build/cjs/blocks/Header/schema.d.ts +3 -0
  32. package/build/cjs/blocks/HeaderMinify/Button/Button.css +28 -0
  33. package/build/cjs/blocks/HeaderMinify/Button/Button.d.ts +3 -0
  34. package/build/cjs/blocks/HeaderMinify/Button/Button.js +17 -0
  35. package/build/cjs/blocks/HeaderMinify/HeaderMinify.css +45 -0
  36. package/build/cjs/blocks/HeaderMinify/HeaderMinify.d.ts +3 -0
  37. package/build/cjs/blocks/HeaderMinify/HeaderMinify.js +25 -0
  38. package/build/cjs/blocks/HeaderMinify/schema.d.ts +221 -0
  39. package/build/cjs/blocks/HeaderMinify/schema.js +41 -0
  40. package/build/cjs/blocks/HeaderSlider/schema.d.ts +3 -0
  41. package/build/cjs/blocks/HighlightTable/schema.d.ts +3 -0
  42. package/build/cjs/blocks/Icons/schema.d.ts +6 -0
  43. package/build/cjs/blocks/LogoRotator/LogoRotator.css +28 -0
  44. package/build/cjs/blocks/LogoRotator/LogoRotator.js +8 -4
  45. package/build/cjs/blocks/LogoRotator/schema.d.ts +10 -0
  46. package/build/cjs/blocks/LogoRotator/schema.js +3 -1
  47. package/build/cjs/blocks/Map/schema.d.ts +3 -0
  48. package/build/cjs/blocks/Media/schema.d.ts +6 -0
  49. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +3 -0
  50. package/build/cjs/blocks/Questions/schema.d.ts +3 -0
  51. package/build/cjs/blocks/Scroller/Scroller.css +40 -0
  52. package/build/cjs/blocks/Scroller/Scroller.d.ts +4 -0
  53. package/build/cjs/blocks/Scroller/Scroller.js +34 -0
  54. package/build/cjs/blocks/Scroller/schema.d.ts +33 -0
  55. package/build/cjs/blocks/Scroller/schema.js +22 -0
  56. package/build/cjs/blocks/Slider/schema.d.ts +3 -0
  57. package/build/cjs/blocks/SliderNew/schema.d.ts +3 -0
  58. package/build/cjs/blocks/TabLinks/schema.d.ts +3 -0
  59. package/build/cjs/blocks/Table/schema.d.ts +3 -0
  60. package/build/cjs/blocks/Tabs/schema.d.ts +3 -0
  61. package/build/cjs/blocks/TabsHighlightTable/schema.d.ts +3 -0
  62. package/build/cjs/blocks/index.d.ts +4 -0
  63. package/build/cjs/blocks/index.js +9 -1
  64. package/build/cjs/blocks/validators.d.ts +3 -0
  65. package/build/cjs/blocks/validators.js +3 -0
  66. package/build/cjs/{blocks/Header → components}/BackgroundEffect/BackgroundEffect.css +1 -1
  67. package/build/cjs/{blocks/Header → components}/BackgroundEffect/BackgroundEffect.js +5 -5
  68. package/build/cjs/components/BackgroundUnicorn/BackgroundUnicorn.css +13 -0
  69. package/build/cjs/components/BackgroundUnicorn/BackgroundUnicorn.d.ts +3 -0
  70. package/build/cjs/components/BackgroundUnicorn/BackgroundUnicorn.js +15 -0
  71. package/build/cjs/components/CardBase/CardBase.css +2 -2
  72. package/build/cjs/components/FileLink/FileLink.css +11 -12
  73. package/build/cjs/components/FileLink/FileLink.js +2 -3
  74. package/build/cjs/components/index.d.ts +2 -0
  75. package/build/cjs/components/index.js +6 -1
  76. package/build/cjs/constructor-items.d.ts +4 -0
  77. package/build/cjs/constructor-items.js +4 -0
  78. package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.css +1 -0
  79. package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +4 -1
  80. package/build/cjs/models/constructor-items/blocks.d.ts +82 -3
  81. package/build/cjs/models/constructor-items/blocks.js +9 -1
  82. package/build/cjs/schema/constants.d.ts +6 -0
  83. package/build/cjs/schema/constants.js +5 -1
  84. package/build/cjs/schema/validators/blocks.d.ts +4 -0
  85. package/build/cjs/schema/validators/blocks.js +4 -0
  86. package/build/cjs/schema/validators/common.d.ts +3 -0
  87. package/build/cjs/schema/validators/common.js +2 -0
  88. package/build/cjs/sub-blocks/ContentLayoutCard/schema.d.ts +3 -0
  89. package/build/cjs/sub-blocks/ImageCard/ImageCard.css +2 -2
  90. package/build/cjs/sub-blocks/Quote/Quote.css +1 -1
  91. package/build/cjs/sub-blocks/StoryCard/schema.d.ts +3 -0
  92. package/build/cjs/text-transform/config.js +10 -7
  93. package/build/esm/blocks/BannerMinify/BannerMinify.css +30 -0
  94. package/build/esm/blocks/BannerMinify/BannerMinify.d.ts +4 -0
  95. package/build/esm/blocks/BannerMinify/BannerMinify.js +18 -0
  96. package/build/esm/blocks/BannerMinify/Button/Button.css +28 -0
  97. package/build/esm/blocks/BannerMinify/Button/Button.d.ts +4 -0
  98. package/build/esm/blocks/BannerMinify/Button/Button.js +11 -0
  99. package/build/esm/blocks/BannerMinify/schema.d.ts +172 -0
  100. package/build/esm/blocks/BannerMinify/schema.js +33 -0
  101. package/build/esm/blocks/Benchmark/Benchmark.css +4 -0
  102. package/build/esm/blocks/Benchmark/Benchmark.js +2 -2
  103. package/build/esm/blocks/Benchmark/schema.d.ts +4 -145
  104. package/build/esm/blocks/Benchmark/schema.js +4 -2
  105. package/build/esm/blocks/Benefits/Benefits.css +76 -0
  106. package/build/esm/blocks/Benefits/Benefits.d.ts +4 -0
  107. package/build/esm/blocks/Benefits/Benefits.js +38 -0
  108. package/build/esm/blocks/Benefits/BenefitsCard/BenefitsCard.css +32 -0
  109. package/build/esm/blocks/Benefits/BenefitsCard/BenefitsCard.d.ts +4 -0
  110. package/build/esm/blocks/Benefits/BenefitsCard/BenefitsCard.js +13 -0
  111. package/build/esm/blocks/Benefits/BenefitsLabel/BenefitsLabel.css +31 -0
  112. package/build/esm/blocks/Benefits/BenefitsLabel/BenefitsLabel.d.ts +9 -0
  113. package/build/esm/blocks/Benefits/BenefitsLabel/BenefitsLabel.js +12 -0
  114. package/build/esm/blocks/Benefits/schema.d.ts +92 -0
  115. package/build/esm/blocks/Benefits/schema.js +48 -0
  116. package/build/esm/blocks/CardLayout/schema.d.ts +6 -0
  117. package/build/esm/blocks/ContentLayout/schema.d.ts +3 -0
  118. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +3 -0
  119. package/build/esm/blocks/FilterBlock/schema.d.ts +6 -0
  120. package/build/esm/blocks/FilterCardLayout/schema.d.ts +3 -0
  121. package/build/esm/blocks/Form/schema.d.ts +3 -0
  122. package/build/esm/blocks/Header/Header.js +1 -2
  123. package/build/esm/blocks/Header/schema.d.ts +3 -0
  124. package/build/esm/blocks/HeaderMinify/Button/Button.css +28 -0
  125. package/build/esm/blocks/HeaderMinify/Button/Button.d.ts +4 -0
  126. package/build/esm/blocks/HeaderMinify/Button/Button.js +13 -0
  127. package/build/esm/blocks/HeaderMinify/HeaderMinify.css +45 -0
  128. package/build/esm/blocks/HeaderMinify/HeaderMinify.d.ts +4 -0
  129. package/build/esm/blocks/HeaderMinify/HeaderMinify.js +21 -0
  130. package/build/esm/blocks/HeaderMinify/schema.d.ts +221 -0
  131. package/build/esm/blocks/HeaderMinify/schema.js +38 -0
  132. package/build/esm/blocks/HeaderSlider/schema.d.ts +3 -0
  133. package/build/esm/blocks/HighlightTable/schema.d.ts +3 -0
  134. package/build/esm/blocks/Icons/schema.d.ts +6 -0
  135. package/build/esm/blocks/LogoRotator/LogoRotator.css +28 -0
  136. package/build/esm/blocks/LogoRotator/LogoRotator.js +8 -4
  137. package/build/esm/blocks/LogoRotator/schema.d.ts +10 -0
  138. package/build/esm/blocks/LogoRotator/schema.js +4 -2
  139. package/build/esm/blocks/Map/schema.d.ts +3 -0
  140. package/build/esm/blocks/Media/schema.d.ts +6 -0
  141. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +3 -0
  142. package/build/esm/blocks/Questions/schema.d.ts +3 -0
  143. package/build/esm/blocks/Scroller/Scroller.css +40 -0
  144. package/build/esm/blocks/Scroller/Scroller.d.ts +5 -0
  145. package/build/esm/blocks/Scroller/Scroller.js +30 -0
  146. package/build/esm/blocks/Scroller/schema.d.ts +33 -0
  147. package/build/esm/blocks/Scroller/schema.js +19 -0
  148. package/build/esm/blocks/Slider/schema.d.ts +3 -0
  149. package/build/esm/blocks/SliderNew/schema.d.ts +3 -0
  150. package/build/esm/blocks/TabLinks/schema.d.ts +3 -0
  151. package/build/esm/blocks/Table/schema.d.ts +3 -0
  152. package/build/esm/blocks/Tabs/schema.d.ts +3 -0
  153. package/build/esm/blocks/TabsHighlightTable/schema.d.ts +3 -0
  154. package/build/esm/blocks/index.d.ts +4 -0
  155. package/build/esm/blocks/index.js +4 -0
  156. package/build/esm/blocks/validators.d.ts +3 -0
  157. package/build/esm/blocks/validators.js +3 -0
  158. package/build/esm/{blocks/Header → components}/BackgroundEffect/BackgroundEffect.css +1 -1
  159. package/build/esm/{blocks/Header → components}/BackgroundEffect/BackgroundEffect.js +2 -2
  160. package/build/esm/components/BackgroundUnicorn/BackgroundUnicorn.css +13 -0
  161. package/build/esm/components/BackgroundUnicorn/BackgroundUnicorn.d.ts +4 -0
  162. package/build/esm/components/BackgroundUnicorn/BackgroundUnicorn.js +13 -0
  163. package/build/esm/components/CardBase/CardBase.css +2 -2
  164. package/build/esm/components/FileLink/FileLink.css +11 -12
  165. package/build/esm/components/FileLink/FileLink.js +2 -3
  166. package/build/esm/components/index.d.ts +2 -0
  167. package/build/esm/components/index.js +2 -0
  168. package/build/esm/constructor-items.d.ts +4 -0
  169. package/build/esm/constructor-items.js +5 -1
  170. package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.css +1 -0
  171. package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +4 -1
  172. package/build/esm/models/constructor-items/blocks.d.ts +82 -3
  173. package/build/esm/models/constructor-items/blocks.js +9 -1
  174. package/build/esm/schema/constants.d.ts +6 -0
  175. package/build/esm/schema/constants.js +6 -2
  176. package/build/esm/schema/validators/blocks.d.ts +4 -0
  177. package/build/esm/schema/validators/blocks.js +4 -0
  178. package/build/esm/schema/validators/common.d.ts +3 -0
  179. package/build/esm/schema/validators/common.js +2 -0
  180. package/build/esm/sub-blocks/ContentLayoutCard/schema.d.ts +3 -0
  181. package/build/esm/sub-blocks/ImageCard/ImageCard.css +2 -2
  182. package/build/esm/sub-blocks/Quote/Quote.css +1 -1
  183. package/build/esm/sub-blocks/StoryCard/schema.d.ts +3 -0
  184. package/build/esm/text-transform/config.js +10 -7
  185. package/package.json +1 -1
  186. package/schema/index.js +1 -1
  187. package/server/models/constructor-items/blocks.d.ts +82 -3
  188. package/server/models/constructor-items/blocks.js +9 -1
  189. package/server/text-transform/config.js +10 -7
  190. package/styles/mixins.scss +1 -1
  191. package/widget/index.js +1 -1
  192. /package/build/cjs/{blocks/Header → components}/BackgroundEffect/BackgroundEffect.d.ts +0 -0
  193. /package/build/esm/{blocks/Header → components}/BackgroundEffect/BackgroundEffect.d.ts +0 -0
@@ -0,0 +1,30 @@
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
+ font-size: 48px;
14
+ line-height: 52px;
15
+ font-weight: 600;
16
+ color: var(--dc-accent-color);
17
+ }
18
+ .pc-banner-minify-block__text {
19
+ color: var(--dc-accent-color);
20
+ margin-top: 48px;
21
+ font-size: 24px;
22
+ line-height: 28px;
23
+ }
24
+ .pc-banner-minify-block__buttons {
25
+ display: flex;
26
+ justify-content: end;
27
+ flex-wrap: wrap;
28
+ gap: 24px;
29
+ padding-top: 32px;
30
+ }
@@ -0,0 +1,3 @@
1
+ import { BannerMinifyBlockProps } from '../../models';
2
+ export declare const BannerMinifyBlock: (props: BannerMinifyBlockProps) => JSX.Element;
3
+ export default BannerMinifyBlock;
@@ -0,0 +1,22 @@
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 grid_1 = require("../../grid");
7
+ const utils_1 = require("../../utils");
8
+ const Button_1 = tslib_1.__importDefault(require("./Button/Button"));
9
+ const b = (0, utils_1.block)('banner-minify-block');
10
+ const leftColSizes = { lg: 5, all: 12 };
11
+ const rightColSizes = { lg: 7, all: 12 };
12
+ const BannerMinifyBlock = (props) => {
13
+ const { title, text, buttons, theme } = props;
14
+ return (react_1.default.createElement(grid_1.Row, { className: b({ theme }) },
15
+ react_1.default.createElement(grid_1.Col, { sizes: leftColSizes },
16
+ title && react_1.default.createElement("div", { className: b('title') }, title),
17
+ text && react_1.default.createElement("div", { className: b('text') }, text)),
18
+ react_1.default.createElement(grid_1.Col, { sizes: rightColSizes },
19
+ 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))))))));
20
+ };
21
+ exports.BannerMinifyBlock = BannerMinifyBlock;
22
+ exports.default = exports.BannerMinifyBlock;
@@ -0,0 +1,28 @@
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
+ height: 61px;
15
+ letter-spacing: 0.03em;
16
+ text-decoration: none;
17
+ transition: opacity 0.3s ease;
18
+ }
19
+ .pc-banner-minify-button_theme_outline {
20
+ border: 1px solid var(--dc-accent-color);
21
+ background: transparent;
22
+ color: var(--dc-accent-color);
23
+ }
24
+ @media (hover: hover) and (pointer: fine) {
25
+ .pc-banner-minify-button:hover {
26
+ opacity: 0.8;
27
+ }
28
+ }
@@ -0,0 +1,3 @@
1
+ import { BannerMinifyButtonProps } from '../../../models';
2
+ export declare const Button: (props: BannerMinifyButtonProps) => JSX.Element;
3
+ export default Button;
@@ -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,172 @@
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
+ };
12
+ text: {
13
+ type: string;
14
+ };
15
+ buttons: {
16
+ type: string;
17
+ items: {
18
+ type: string;
19
+ additionalProperties: boolean;
20
+ required: string[];
21
+ properties: {
22
+ text: {
23
+ type: string;
24
+ };
25
+ url: {
26
+ type: string;
27
+ };
28
+ theme: {
29
+ type: string;
30
+ enum: string[];
31
+ };
32
+ };
33
+ };
34
+ };
35
+ anchor: {
36
+ type: string;
37
+ additionalProperties: boolean;
38
+ required: string[];
39
+ properties: {
40
+ text: {
41
+ type: string;
42
+ contentType: string;
43
+ };
44
+ url: {
45
+ type: string;
46
+ };
47
+ urlTitle: {
48
+ type: string;
49
+ };
50
+ };
51
+ };
52
+ visibility: {
53
+ oneOf: ({
54
+ type: string;
55
+ enum: string[];
56
+ additionalProperties?: undefined;
57
+ properties?: undefined;
58
+ } | {
59
+ type: string;
60
+ additionalProperties: boolean;
61
+ properties: {
62
+ xs: {
63
+ type: string;
64
+ };
65
+ sm: {
66
+ type: string;
67
+ };
68
+ md: {
69
+ type: string;
70
+ };
71
+ lg: {
72
+ type: string;
73
+ };
74
+ xl: {
75
+ type: string;
76
+ };
77
+ xxl: {
78
+ type: string;
79
+ };
80
+ };
81
+ enum?: undefined;
82
+ })[];
83
+ };
84
+ visible: {
85
+ type: string;
86
+ enum: string[];
87
+ };
88
+ hidden: {
89
+ type: string;
90
+ enum: string[];
91
+ };
92
+ resetPaddings: {
93
+ type: string;
94
+ };
95
+ context: {
96
+ type: string;
97
+ };
98
+ indent: {
99
+ type: string;
100
+ additionalProperties: boolean;
101
+ properties: {
102
+ top: {
103
+ enum: string[];
104
+ };
105
+ bottom: {
106
+ enum: string[];
107
+ };
108
+ };
109
+ };
110
+ backgroundFull: {
111
+ type: string;
112
+ };
113
+ visibilityFilter: {
114
+ oneOf: ({
115
+ type: string;
116
+ items?: undefined;
117
+ } | {
118
+ type: string;
119
+ items: {
120
+ type: string;
121
+ };
122
+ })[];
123
+ };
124
+ blockUnicorn: {
125
+ type: string;
126
+ };
127
+ blockBackground: {
128
+ oneOf: ({
129
+ type: string;
130
+ additionalProperties?: undefined;
131
+ properties?: undefined;
132
+ } | {
133
+ type: string;
134
+ additionalProperties: boolean;
135
+ properties: {
136
+ color: {
137
+ type: string;
138
+ };
139
+ image: {
140
+ type: string;
141
+ };
142
+ size: {
143
+ type: string;
144
+ };
145
+ repeat: {
146
+ type: string;
147
+ };
148
+ position: {
149
+ type: string;
150
+ };
151
+ attachment: {
152
+ type: string;
153
+ };
154
+ clip: {
155
+ type: string;
156
+ };
157
+ origin: {
158
+ type: string;
159
+ };
160
+ blendMode: {
161
+ type: string;
162
+ };
163
+ };
164
+ })[];
165
+ };
166
+ type: {};
167
+ when: {
168
+ type: string;
169
+ };
170
+ };
171
+ };
172
+ };
@@ -0,0 +1,36 @@
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: {
12
+ type: 'string',
13
+ }, text: {
14
+ type: 'string',
15
+ }, buttons: {
16
+ type: 'array',
17
+ items: {
18
+ type: 'object',
19
+ additionalProperties: false,
20
+ required: ['text', 'url'],
21
+ properties: {
22
+ text: {
23
+ type: 'string',
24
+ },
25
+ url: {
26
+ type: 'string',
27
+ },
28
+ theme: {
29
+ type: 'string',
30
+ enum: ['normal', 'outline'],
31
+ },
32
+ },
33
+ },
34
+ } }),
35
+ },
36
+ };
@@ -7,6 +7,10 @@ unpredictable css rules order in build */
7
7
  }
8
8
  .pc-benchmark-block__title {
9
9
  margin-bottom: 32px;
10
+ text-align: center;
11
+ font-size: 48px;
12
+ line-height: 52px;
13
+ font-weight: 600;
10
14
  }
11
15
  .pc-benchmark-block__content {
12
16
  flex: 1;
@@ -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(components_1.Title, { title: title, className: b('title') }),
15
+ title && react_1.default.createElement("div", { className: b('title') }, 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,151 +4,7 @@ export declare const BenchmarkBlock: {
4
4
  required: string[];
5
5
  properties: {
6
6
  title: {
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
- })[];
7
+ type: string;
152
8
  };
153
9
  duration: {
154
10
  type: string;
@@ -291,6 +147,9 @@ export declare const BenchmarkBlock: {
291
147
  };
292
148
  })[];
293
149
  };
150
+ blockUnicorn: {
151
+ type: string;
152
+ };
294
153
  blockBackground: {
295
154
  oneOf: ({
296
155
  type: string;
@@ -6,7 +6,9 @@ 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: common_1.BlockHeaderProps.title, duration: {
9
+ properties: Object.assign(Object.assign(Object.assign({}, common_1.BlockBaseProps), common_1.AnimatableProps), { title: {
10
+ type: 'string',
11
+ }, duration: {
10
12
  type: 'number',
11
13
  }, data: {
12
14
  type: 'array',
@@ -0,0 +1,76 @@
1
+ /* use this for style redefinitions to awoid problems with
2
+ unpredictable css rules order in build */
3
+ .pc-benefits-block {
4
+ position: relative;
5
+ z-index: 0;
6
+ --local-base-color: #001a2b;
7
+ --local-bg-color: #ffffff;
8
+ }
9
+ .pc-benefits-block_theme_dark {
10
+ --local-base-color: #ffffff;
11
+ --local-bg-color: #001a2b;
12
+ }
13
+ .pc-benefits-block__background {
14
+ position: absolute;
15
+ top: 0;
16
+ left: -27px;
17
+ right: -27px;
18
+ bottom: 0;
19
+ z-index: -1;
20
+ border-radius: 24px;
21
+ }
22
+ .pc-benefits-block__header {
23
+ padding-top: 48px;
24
+ margin-bottom: 32px;
25
+ display: flex;
26
+ flex-direction: column;
27
+ gap: 16px;
28
+ }
29
+ .pc-benefits-block__title {
30
+ color: var(--local-base-color);
31
+ font-size: 48px;
32
+ line-height: 52px;
33
+ font-weight: 600;
34
+ text-align: center;
35
+ }
36
+ .pc-benefits-block__title > span {
37
+ color: var(--local-accent-color);
38
+ }
39
+ .pc-benefits-block__text {
40
+ color: var(--local-base-color);
41
+ font-size: 24px;
42
+ line-height: 28px;
43
+ text-align: center;
44
+ opacity: 0.6;
45
+ }
46
+ .pc-benefits-block__text p {
47
+ margin: 0;
48
+ }
49
+ .pc-benefits-block__cards {
50
+ display: flex;
51
+ flex-wrap: wrap;
52
+ gap: 16px;
53
+ padding-bottom: 64px;
54
+ }
55
+ .pc-benefits-block__labels {
56
+ display: flex;
57
+ flex-wrap: wrap;
58
+ gap: 16px;
59
+ padding-top: 16px;
60
+ padding-bottom: 16px;
61
+ }
62
+ .pc-benefits-block__images {
63
+ display: grid;
64
+ grid-template-columns: repeat(12, 1fr);
65
+ grid-auto-rows: 300px;
66
+ gap: 12px;
67
+ padding-top: 12px;
68
+ padding-bottom: 27px;
69
+ }
70
+ .pc-benefits-block__image {
71
+ display: block;
72
+ width: 100%;
73
+ height: 100%;
74
+ object-fit: cover;
75
+ border-radius: 24px;
76
+ }
@@ -0,0 +1,3 @@
1
+ import { BenefitsBlockProps } from '../../models';
2
+ export declare const BenefitsBlock: (props: BenefitsBlockProps) => JSX.Element;
3
+ export default BenefitsBlock;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BenefitsBlock = 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 BenefitsCard_1 = tslib_1.__importDefault(require("./BenefitsCard/BenefitsCard"));
9
+ const BenefitsLabel_1 = tslib_1.__importDefault(require("./BenefitsLabel/BenefitsLabel"));
10
+ const b = (0, utils_1.block)('benefits-block');
11
+ const BenefitsBlock = (props) => {
12
+ const { titleOne, postTitleOne, textOne, titleTwo, postTitleTwo, textTwo, background, cards, items, theme, accentColor, } = props;
13
+ const [activeIndex, setActiveIndex] = (0, react_1.useState)(0);
14
+ const data = items === null || items === void 0 ? void 0 : items[activeIndex];
15
+ const handleClick = (0, react_1.useCallback)((index) => setActiveIndex(index), []);
16
+ const styles = (0, react_1.useMemo)(() => accentColor
17
+ ? {
18
+ ['--local-accent-color']: accentColor,
19
+ }
20
+ : {}, [accentColor]);
21
+ return (react_1.default.createElement("div", { className: b({ theme }), style: styles },
22
+ react_1.default.createElement("div", { className: b('background'), style: { background } }),
23
+ (titleOne || postTitleOne || textOne) && (react_1.default.createElement("div", { className: b('header') },
24
+ (titleOne || postTitleOne) && (react_1.default.createElement("div", { className: b('title') },
25
+ titleOne,
26
+ react_1.default.createElement("span", null, postTitleOne))),
27
+ textOne && react_1.default.createElement(components_1.HTML, { className: b('text') }, textOne))),
28
+ Boolean(cards === null || cards === void 0 ? void 0 : cards.length) && (react_1.default.createElement("div", { className: b('cards') }, cards === null || cards === void 0 ? void 0 : cards.map((card, index) => (react_1.default.createElement(BenefitsCard_1.default, Object.assign({ key: index }, card)))))),
29
+ (titleTwo || postTitleTwo || textTwo) && (react_1.default.createElement("div", { className: b('header') },
30
+ (titleTwo || postTitleTwo) && (react_1.default.createElement("div", { className: b('title') },
31
+ titleTwo,
32
+ react_1.default.createElement("span", null, postTitleTwo))),
33
+ textTwo && react_1.default.createElement(components_1.HTML, { className: b('text') }, textTwo))),
34
+ Boolean(items === null || items === void 0 ? void 0 : items.length) && (react_1.default.createElement("div", { className: b('labels') }, items === null || items === void 0 ? void 0 : items.map((item, index) => (react_1.default.createElement(BenefitsLabel_1.default, Object.assign({ key: index }, item, { active: index === activeIndex, index: index, onClick: handleClick })))))),
35
+ data && (react_1.default.createElement("div", { className: b('images') }, data.images.map((image, index) => (react_1.default.createElement("div", { key: index, style: {
36
+ gridColumn: `span ${data.columns[index]}`,
37
+ gridRow: `span ${data.rows[index]}`,
38
+ } },
39
+ react_1.default.createElement(components_1.ImageBase, { className: b('image'), src: image }))))))));
40
+ };
41
+ exports.BenefitsBlock = BenefitsBlock;
42
+ exports.default = exports.BenefitsBlock;
@@ -0,0 +1,32 @@
1
+ /* use this for style redefinitions to awoid problems with
2
+ unpredictable css rules order in build */
3
+ .pc-benefits-card {
4
+ background-color: rgba(31, 47, 61, 0.3);
5
+ display: flex;
6
+ flex-direction: column;
7
+ gap: 8px;
8
+ padding: 32px;
9
+ min-height: 360px;
10
+ min-width: 270px;
11
+ border-radius: 24px;
12
+ flex: 1;
13
+ }
14
+ .pc-benefits-card__icon {
15
+ display: block;
16
+ width: 64px;
17
+ height: 64px;
18
+ object-fit: contain;
19
+ margin-bottom: 24px;
20
+ }
21
+ .pc-benefits-card__title {
22
+ font-size: var(--g-text-header-2-font-size, var(--pc-text-header-2-font-size));
23
+ line-height: var(--g-text-header-2-line-height, var(--pc-text-header-2-line-height));
24
+ color: var(--local-accent-color);
25
+ letter-spacing: 0.01em;
26
+ }
27
+ .pc-benefits-card__text {
28
+ font-size: var(--g-text-body-3-font-size, var(--pc-text-body-3-font-size));
29
+ line-height: var(--g-text-body-3-line-height, var(--pc-text-body-3-line-height));
30
+ color: var(--local-base-color);
31
+ opacity: 0.8;
32
+ }
@@ -0,0 +1,3 @@
1
+ import { BenefitsBlockCard } from '../../../models';
2
+ export declare const BenefitsCard: (props: BenefitsBlockCard) => JSX.Element;
3
+ export default BenefitsCard;