@doyourjob/gravity-ui-page-constructor 5.31.141 → 5.31.142-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 (204) hide show
  1. package/build/cjs/blocks/Advantages/Advantages.css +132 -0
  2. package/build/cjs/blocks/Advantages/Advantages.d.ts +3 -0
  3. package/build/cjs/blocks/Advantages/Advantages.js +33 -0
  4. package/build/cjs/blocks/Advantages/schema.d.ts +53 -0
  5. package/build/cjs/blocks/Advantages/schema.js +36 -0
  6. package/build/cjs/blocks/BannerMinify/BannerMinify.css +27 -0
  7. package/build/cjs/blocks/BannerMinify/BannerMinify.d.ts +3 -0
  8. package/build/cjs/blocks/BannerMinify/BannerMinify.js +24 -0
  9. package/build/cjs/blocks/BannerMinify/Button/Button.css +27 -0
  10. package/build/cjs/blocks/BannerMinify/Button/Button.d.ts +3 -0
  11. package/build/cjs/blocks/BannerMinify/Button/Button.js +15 -0
  12. package/build/cjs/blocks/BannerMinify/schema.d.ts +310 -0
  13. package/build/cjs/blocks/BannerMinify/schema.js +34 -0
  14. package/build/cjs/blocks/Benchmark/Benchmark.css +75 -0
  15. package/build/cjs/blocks/Benchmark/Benchmark.d.ts +4 -0
  16. package/build/cjs/blocks/Benchmark/Benchmark.js +26 -0
  17. package/build/cjs/blocks/Benchmark/schema.d.ts +342 -0
  18. package/build/cjs/blocks/Benchmark/schema.js +54 -0
  19. package/build/cjs/blocks/CardLayout/schema.d.ts +6 -0
  20. package/build/cjs/blocks/ContentLayout/schema.d.ts +3 -0
  21. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +3 -0
  22. package/build/cjs/blocks/FilterBlock/schema.d.ts +6 -0
  23. package/build/cjs/blocks/FilterCardLayout/schema.d.ts +3 -0
  24. package/build/cjs/blocks/Form/schema.d.ts +3 -0
  25. package/build/cjs/blocks/Header/Header.js +1 -2
  26. package/build/cjs/blocks/Header/schema.d.ts +3 -0
  27. package/build/cjs/blocks/HeaderMinify/Button/Button.css +27 -0
  28. package/build/cjs/blocks/HeaderMinify/Button/Button.d.ts +3 -0
  29. package/build/cjs/blocks/HeaderMinify/Button/Button.js +17 -0
  30. package/build/cjs/blocks/HeaderMinify/HeaderMinify.css +35 -0
  31. package/build/cjs/blocks/HeaderMinify/HeaderMinify.d.ts +3 -0
  32. package/build/cjs/blocks/HeaderMinify/HeaderMinify.js +25 -0
  33. package/build/cjs/blocks/HeaderMinify/schema.d.ts +221 -0
  34. package/build/cjs/blocks/HeaderMinify/schema.js +41 -0
  35. package/build/cjs/blocks/HeaderSlider/schema.d.ts +3 -0
  36. package/build/cjs/blocks/HighlightTable/schema.d.ts +3 -0
  37. package/build/cjs/blocks/Icons/schema.d.ts +6 -0
  38. package/build/cjs/blocks/LogoRotator/LogoRotator.css +7 -0
  39. package/build/cjs/blocks/LogoRotator/LogoRotator.js +5 -2
  40. package/build/cjs/blocks/LogoRotator/schema.d.ts +145 -0
  41. package/build/cjs/blocks/LogoRotator/schema.js +1 -1
  42. package/build/cjs/blocks/Map/schema.d.ts +3 -0
  43. package/build/cjs/blocks/Media/schema.d.ts +6 -0
  44. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +3 -0
  45. package/build/cjs/blocks/Questions/schema.d.ts +3 -0
  46. package/build/cjs/blocks/Slider/schema.d.ts +3 -0
  47. package/build/cjs/blocks/SliderNew/schema.d.ts +3 -0
  48. package/build/cjs/blocks/TabLinks/schema.d.ts +3 -0
  49. package/build/cjs/blocks/Table/schema.d.ts +3 -0
  50. package/build/cjs/blocks/Tabs/schema.d.ts +3 -0
  51. package/build/cjs/blocks/TabsHighlightTable/schema.d.ts +3 -0
  52. package/build/cjs/blocks/index.d.ts +4 -0
  53. package/build/cjs/blocks/index.js +9 -1
  54. package/build/cjs/blocks/validators.d.ts +2 -0
  55. package/build/cjs/blocks/validators.js +2 -0
  56. package/build/cjs/components/AnimateBlock/AnimateBlock.d.ts +1 -0
  57. package/build/cjs/components/AnimateBlock/AnimateBlock.js +2 -1
  58. package/build/cjs/{blocks/Header → components}/BackgroundEffect/BackgroundEffect.css +1 -1
  59. package/build/cjs/{blocks/Header → components}/BackgroundEffect/BackgroundEffect.js +5 -5
  60. package/build/cjs/components/BackgroundUnicorn/BackgroundUnicorn.css +13 -0
  61. package/build/cjs/components/BackgroundUnicorn/BackgroundUnicorn.d.ts +3 -0
  62. package/build/cjs/components/BackgroundUnicorn/BackgroundUnicorn.js +15 -0
  63. package/build/cjs/components/Odometer/Odometer.d.ts +9 -0
  64. package/build/cjs/components/Odometer/Odometer.js +28 -0
  65. package/build/cjs/components/Odometer/useOdometer.d.ts +1 -0
  66. package/build/cjs/components/Odometer/useOdometer.js +106 -0
  67. package/build/cjs/components/index.d.ts +3 -0
  68. package/build/cjs/components/index.js +8 -1
  69. package/build/cjs/constructor-items.d.ts +5 -0
  70. package/build/cjs/constructor-items.js +5 -0
  71. package/build/cjs/containers/PageConstructor/PageConstructor.css +3 -0
  72. package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.css +1 -0
  73. package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +4 -1
  74. package/build/cjs/internal-typings/global.d.ts +8 -0
  75. package/build/cjs/models/constructor-items/blocks.d.ts +73 -3
  76. package/build/cjs/models/constructor-items/blocks.js +9 -1
  77. package/build/cjs/models/constructor-items/sub-blocks.d.ts +19 -2
  78. package/build/cjs/models/constructor-items/sub-blocks.js +1 -0
  79. package/build/cjs/schema/constants.d.ts +326 -1
  80. package/build/cjs/schema/constants.js +7 -2
  81. package/build/cjs/schema/validators/blocks.d.ts +4 -0
  82. package/build/cjs/schema/validators/blocks.js +4 -0
  83. package/build/cjs/schema/validators/common.d.ts +3 -0
  84. package/build/cjs/schema/validators/common.js +2 -0
  85. package/build/cjs/schema/validators/sub-blocks.d.ts +1 -0
  86. package/build/cjs/schema/validators/sub-blocks.js +1 -0
  87. package/build/cjs/sub-blocks/ContentLayoutCard/schema.d.ts +3 -0
  88. package/build/cjs/sub-blocks/StoryCard/StoryCard.css +93 -0
  89. package/build/cjs/sub-blocks/StoryCard/StoryCard.d.ts +4 -0
  90. package/build/cjs/sub-blocks/StoryCard/StoryCard.js +33 -0
  91. package/build/cjs/sub-blocks/StoryCard/schema.d.ts +324 -0
  92. package/build/cjs/sub-blocks/StoryCard/schema.js +22 -0
  93. package/build/cjs/sub-blocks/index.d.ts +1 -0
  94. package/build/cjs/sub-blocks/index.js +3 -1
  95. package/build/cjs/text-transform/config.js +28 -0
  96. package/build/esm/blocks/Advantages/Advantages.css +132 -0
  97. package/build/esm/blocks/Advantages/Advantages.d.ts +4 -0
  98. package/build/esm/blocks/Advantages/Advantages.js +29 -0
  99. package/build/esm/blocks/Advantages/schema.d.ts +53 -0
  100. package/build/esm/blocks/Advantages/schema.js +33 -0
  101. package/build/esm/blocks/BannerMinify/BannerMinify.css +27 -0
  102. package/build/esm/blocks/BannerMinify/BannerMinify.d.ts +4 -0
  103. package/build/esm/blocks/BannerMinify/BannerMinify.js +20 -0
  104. package/build/esm/blocks/BannerMinify/Button/Button.css +27 -0
  105. package/build/esm/blocks/BannerMinify/Button/Button.d.ts +4 -0
  106. package/build/esm/blocks/BannerMinify/Button/Button.js +11 -0
  107. package/build/esm/blocks/BannerMinify/schema.d.ts +310 -0
  108. package/build/esm/blocks/BannerMinify/schema.js +31 -0
  109. package/build/esm/blocks/Benchmark/Benchmark.css +75 -0
  110. package/build/esm/blocks/Benchmark/Benchmark.d.ts +5 -0
  111. package/build/esm/blocks/Benchmark/Benchmark.js +24 -0
  112. package/build/esm/blocks/Benchmark/schema.d.ts +342 -0
  113. package/build/esm/blocks/Benchmark/schema.js +51 -0
  114. package/build/esm/blocks/CardLayout/schema.d.ts +6 -0
  115. package/build/esm/blocks/ContentLayout/schema.d.ts +3 -0
  116. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +3 -0
  117. package/build/esm/blocks/FilterBlock/schema.d.ts +6 -0
  118. package/build/esm/blocks/FilterCardLayout/schema.d.ts +3 -0
  119. package/build/esm/blocks/Form/schema.d.ts +3 -0
  120. package/build/esm/blocks/Header/Header.js +1 -2
  121. package/build/esm/blocks/Header/schema.d.ts +3 -0
  122. package/build/esm/blocks/HeaderMinify/Button/Button.css +27 -0
  123. package/build/esm/blocks/HeaderMinify/Button/Button.d.ts +4 -0
  124. package/build/esm/blocks/HeaderMinify/Button/Button.js +13 -0
  125. package/build/esm/blocks/HeaderMinify/HeaderMinify.css +35 -0
  126. package/build/esm/blocks/HeaderMinify/HeaderMinify.d.ts +4 -0
  127. package/build/esm/blocks/HeaderMinify/HeaderMinify.js +21 -0
  128. package/build/esm/blocks/HeaderMinify/schema.d.ts +221 -0
  129. package/build/esm/blocks/HeaderMinify/schema.js +38 -0
  130. package/build/esm/blocks/HeaderSlider/schema.d.ts +3 -0
  131. package/build/esm/blocks/HighlightTable/schema.d.ts +3 -0
  132. package/build/esm/blocks/Icons/schema.d.ts +6 -0
  133. package/build/esm/blocks/LogoRotator/LogoRotator.css +7 -0
  134. package/build/esm/blocks/LogoRotator/LogoRotator.js +5 -2
  135. package/build/esm/blocks/LogoRotator/schema.d.ts +145 -0
  136. package/build/esm/blocks/LogoRotator/schema.js +2 -2
  137. package/build/esm/blocks/Map/schema.d.ts +3 -0
  138. package/build/esm/blocks/Media/schema.d.ts +6 -0
  139. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +3 -0
  140. package/build/esm/blocks/Questions/schema.d.ts +3 -0
  141. package/build/esm/blocks/Slider/schema.d.ts +3 -0
  142. package/build/esm/blocks/SliderNew/schema.d.ts +3 -0
  143. package/build/esm/blocks/TabLinks/schema.d.ts +3 -0
  144. package/build/esm/blocks/Table/schema.d.ts +3 -0
  145. package/build/esm/blocks/Tabs/schema.d.ts +3 -0
  146. package/build/esm/blocks/TabsHighlightTable/schema.d.ts +3 -0
  147. package/build/esm/blocks/index.d.ts +4 -0
  148. package/build/esm/blocks/index.js +4 -0
  149. package/build/esm/blocks/validators.d.ts +2 -0
  150. package/build/esm/blocks/validators.js +2 -0
  151. package/build/esm/components/AnimateBlock/AnimateBlock.d.ts +1 -0
  152. package/build/esm/components/AnimateBlock/AnimateBlock.js +2 -1
  153. package/build/esm/{blocks/Header → components}/BackgroundEffect/BackgroundEffect.css +1 -1
  154. package/build/esm/{blocks/Header → components}/BackgroundEffect/BackgroundEffect.js +2 -2
  155. package/build/esm/components/BackgroundUnicorn/BackgroundUnicorn.css +13 -0
  156. package/build/esm/components/BackgroundUnicorn/BackgroundUnicorn.d.ts +4 -0
  157. package/build/esm/components/BackgroundUnicorn/BackgroundUnicorn.js +13 -0
  158. package/build/esm/components/Odometer/Odometer.d.ts +9 -0
  159. package/build/esm/components/Odometer/Odometer.js +25 -0
  160. package/build/esm/components/Odometer/useOdometer.d.ts +1 -0
  161. package/build/esm/components/Odometer/useOdometer.js +102 -0
  162. package/build/esm/components/index.d.ts +3 -0
  163. package/build/esm/components/index.js +3 -0
  164. package/build/esm/constructor-items.d.ts +5 -0
  165. package/build/esm/constructor-items.js +7 -2
  166. package/build/esm/containers/PageConstructor/PageConstructor.css +3 -0
  167. package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.css +1 -0
  168. package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +4 -1
  169. package/build/esm/internal-typings/global.d.ts +8 -0
  170. package/build/esm/models/constructor-items/blocks.d.ts +73 -3
  171. package/build/esm/models/constructor-items/blocks.js +9 -1
  172. package/build/esm/models/constructor-items/sub-blocks.d.ts +19 -2
  173. package/build/esm/models/constructor-items/sub-blocks.js +1 -0
  174. package/build/esm/schema/constants.d.ts +326 -1
  175. package/build/esm/schema/constants.js +9 -4
  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/schema/validators/sub-blocks.d.ts +1 -0
  181. package/build/esm/schema/validators/sub-blocks.js +1 -0
  182. package/build/esm/sub-blocks/ContentLayoutCard/schema.d.ts +3 -0
  183. package/build/esm/sub-blocks/StoryCard/StoryCard.css +93 -0
  184. package/build/esm/sub-blocks/StoryCard/StoryCard.d.ts +5 -0
  185. package/build/esm/sub-blocks/StoryCard/StoryCard.js +31 -0
  186. package/build/esm/sub-blocks/StoryCard/schema.d.ts +324 -0
  187. package/build/esm/sub-blocks/StoryCard/schema.js +19 -0
  188. package/build/esm/sub-blocks/index.d.ts +1 -0
  189. package/build/esm/sub-blocks/index.js +1 -0
  190. package/build/esm/text-transform/config.js +28 -0
  191. package/package.json +1 -1
  192. package/schema/index.js +1 -1
  193. package/server/models/constructor-items/blocks.d.ts +73 -3
  194. package/server/models/constructor-items/blocks.js +9 -1
  195. package/server/models/constructor-items/sub-blocks.d.ts +19 -2
  196. package/server/models/constructor-items/sub-blocks.js +1 -0
  197. package/server/text-transform/config.js +28 -0
  198. package/styles/mixins.scss +8 -0
  199. package/styles/root.scss +4 -0
  200. package/styles/styles.css +3 -0
  201. package/widget/290.index.js +1 -1
  202. package/widget/index.js +1 -1
  203. /package/build/cjs/{blocks/Header → components}/BackgroundEffect/BackgroundEffect.d.ts +0 -0
  204. /package/build/esm/{blocks/Header → components}/BackgroundEffect/BackgroundEffect.d.ts +0 -0
@@ -0,0 +1,132 @@
1
+ .pc-advantages-block__item-desc, .pc-advantages-block__item-title, .pc-advantages-block__link, .pc-advantages-block__title {
2
+ margin: 0;
3
+ }
4
+
5
+ /* use this for style redefinitions to awoid problems with
6
+ unpredictable css rules order in build */
7
+ @media (min-width: 769px) {
8
+ .pc-advantages-block.pc-AnimateBlock, .pc-AnimateBlock .pc-advantages-block {
9
+ position: relative;
10
+ top: 100px;
11
+ opacity: 0;
12
+ }
13
+ .pc-advantages-block.pc-AnimateBlock.animate, .pc-AnimateBlock .pc-advantages-block.animate {
14
+ top: 0;
15
+ opacity: 1;
16
+ 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);
17
+ transition-delay: 0s;
18
+ }
19
+ }
20
+ .pc-advantages-block__header {
21
+ flex: 1;
22
+ display: flex;
23
+ flex-direction: column;
24
+ }
25
+ .pc-advantages-block__header.pc-advantages-block__header {
26
+ padding-top: 32px;
27
+ padding-bottom: 32px;
28
+ }
29
+
30
+ .pc-advantages-block__title {
31
+ font-weight: var(--g-text-accent-font-weight);
32
+ font-size: 48px;
33
+ line-height: 52px;
34
+ color: var(--pc-color-ab-base);
35
+ }
36
+ .pc-advantages-block__title p {
37
+ margin: 0;
38
+ }
39
+ @media (max-width: 577px) {
40
+ .pc-advantages-block__title {
41
+ font-size: var(--g-text-display-2-font-size, var(--pc-text-display-2-font-size));
42
+ line-height: var(--g-text-display-2-line-height, var(--pc-text-display-2-line-height));
43
+ }
44
+ }
45
+ .pc-advantages-block__link {
46
+ font-weight: var(--g-text-accent-font-weight);
47
+ font-size: 48px;
48
+ line-height: 52px;
49
+ transition: color 0.3s ease;
50
+ color: var(--pc-color-ab-second);
51
+ margin-bottom: 32px;
52
+ }
53
+ @media (hover: hover) and (pointer: fine) {
54
+ .pc-advantages-block__link:hover {
55
+ color: var(--pc-color-ab-base);
56
+ }
57
+ }
58
+ @media (max-width: 577px) {
59
+ .pc-advantages-block__link {
60
+ font-size: var(--g-text-display-2-font-size, var(--pc-text-display-2-font-size));
61
+ line-height: var(--g-text-display-2-line-height, var(--pc-text-display-2-line-height));
62
+ }
63
+ }
64
+ .pc-advantages-block__wrap-logo {
65
+ margin-top: auto;
66
+ }
67
+ .pc-advantages-block__logo {
68
+ display: block;
69
+ object-fit: contain;
70
+ height: 76px;
71
+ }
72
+ .pc-advantages-block__item {
73
+ display: flex;
74
+ margin-left: 0;
75
+ margin-bottom: 16px;
76
+ border-left: none;
77
+ border-right: none;
78
+ border-top: 1px var(--pc-color-ab-border) solid;
79
+ transition: opacity 0.3s ease;
80
+ }
81
+ @media (hover: hover) and (pointer: fine) {
82
+ .pc-advantages-block__item:hover {
83
+ opacity: 0.5;
84
+ }
85
+ }
86
+ .pc-advantages-block__item-wrap {
87
+ padding: 32px 0;
88
+ }
89
+ .pc-advantages-block__item-image {
90
+ width: 230px;
91
+ height: 230px;
92
+ display: block;
93
+ margin-left: 32px;
94
+ }
95
+ .pc-advantages-block__item-title {
96
+ font-size: var(--g-text-header-2-font-size, var(--pc-text-header-2-font-size));
97
+ line-height: var(--g-text-header-2-line-height, var(--pc-text-header-2-line-height));
98
+ color: var(--pc-text-header-color);
99
+ font-weight: var(--g-text-accent-font-weight);
100
+ color: var(--pc-color-ab-second);
101
+ margin-bottom: 8px;
102
+ }
103
+ .pc-advantages-block__item-desc {
104
+ font-size: var(--g-text-header-2-font-size, var(--pc-text-header-2-font-size));
105
+ line-height: var(--g-text-header-2-line-height, var(--pc-text-header-2-line-height));
106
+ color: var(--pc-text-header-color);
107
+ font-weight: var(--g-text-accent-font-weight);
108
+ color: var(--pc-color-ab-base);
109
+ opacity: 0.6;
110
+ }
111
+ @media (min-width: 1185px) {
112
+ .pc-advantages-block__item {
113
+ border-left: 1px var(--pc-color-ab-border) solid;
114
+ border-right: 1px var(--pc-color-ab-border) solid;
115
+ margin-left: 8px;
116
+ margin-bottom: 0;
117
+ }
118
+ .pc-advantages-block__item + .pc-advantages-block__item {
119
+ border-top: 1px var(--pc-color-ab-border) solid;
120
+ }
121
+ .pc-advantages-block__item-wrap {
122
+ padding: 32px;
123
+ }
124
+ }
125
+ @media (max-width: 769px) {
126
+ .pc-advantages-block__item {
127
+ flex-direction: column;
128
+ }
129
+ .pc-advantages-block__item-wrap {
130
+ padding: 16px 0;
131
+ }
132
+ }
@@ -0,0 +1,3 @@
1
+ import { AdvantagesBlockProps } from '../../models';
2
+ export declare const AdvantagesBlock: (props: AdvantagesBlockProps) => JSX.Element;
3
+ export default AdvantagesBlock;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdvantagesBlock = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const react_1 = tslib_1.__importDefault(require("react"));
6
+ const uikit_1 = require("@gravity-ui/uikit");
7
+ const components_1 = require("../../components");
8
+ const grid_1 = require("../../grid");
9
+ const utils_1 = require("../../utils");
10
+ const b = (0, utils_1.block)('advantages-block');
11
+ const colSizesHeader = { all: 12, xl: 6 };
12
+ const colSizesBody = { all: 12, xl: 6 };
13
+ const AdvantagesBlock = (props) => {
14
+ const { title, link, logo, items } = props;
15
+ return (react_1.default.createElement("div", { className: b() },
16
+ react_1.default.createElement(grid_1.Grid, null,
17
+ react_1.default.createElement(grid_1.Row, null,
18
+ react_1.default.createElement(grid_1.Col, { sizes: colSizesHeader, className: b('header') },
19
+ title && (react_1.default.createElement("h2", { className: b('title') },
20
+ react_1.default.createElement(components_1.HTML, null, title))),
21
+ link && (react_1.default.createElement(uikit_1.Link, { className: b('link'), href: link.url }, link.text)),
22
+ logo && (react_1.default.createElement("div", { className: b('wrap-logo') },
23
+ react_1.default.createElement(components_1.Image, { className: b('logo'), src: logo, alt: "", "aria-hidden": "true" })))),
24
+ react_1.default.createElement(grid_1.Col, { sizes: colSizesBody },
25
+ react_1.default.createElement(grid_1.Grid, null, items === null || items === void 0 ? void 0 : items.map((item, index) => (react_1.default.createElement(components_1.RouterLink, { href: item.url, key: index },
26
+ react_1.default.createElement(uikit_1.Link, { href: item.url, className: b('item') },
27
+ react_1.default.createElement("div", { className: b('item-wrap') },
28
+ react_1.default.createElement("h3", { className: b('item-title') }, item.title),
29
+ react_1.default.createElement("div", { className: b('item-desc') }, item.description)),
30
+ item.image && (react_1.default.createElement(components_1.Image, { className: b('item-image'), src: item.image, alt: "", "aria-hidden": "true" }))))))))))));
31
+ };
32
+ exports.AdvantagesBlock = AdvantagesBlock;
33
+ exports.default = exports.AdvantagesBlock;
@@ -0,0 +1,53 @@
1
+ export declare const AdvantagesBlock: {
2
+ 'advantages-block': {
3
+ additionalProperties: boolean;
4
+ required: boolean;
5
+ properties: {
6
+ title: {
7
+ type: string;
8
+ };
9
+ link: {
10
+ type: string;
11
+ additionalProperties: boolean;
12
+ required: boolean;
13
+ properties: {
14
+ url: {
15
+ type: string;
16
+ };
17
+ text: {
18
+ type: string;
19
+ };
20
+ };
21
+ };
22
+ logo: {
23
+ type: string;
24
+ };
25
+ items: {
26
+ type: string;
27
+ items: {
28
+ type: string;
29
+ additionalProperties: boolean;
30
+ required: boolean;
31
+ properties: {
32
+ url: {
33
+ type: string;
34
+ };
35
+ image: {
36
+ type: string;
37
+ };
38
+ title: {
39
+ type: string;
40
+ };
41
+ description: {
42
+ type: string;
43
+ };
44
+ };
45
+ };
46
+ };
47
+ type: {};
48
+ when: {
49
+ type: string;
50
+ };
51
+ };
52
+ };
53
+ };
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdvantagesBlock = void 0;
4
+ const common_1 = require("../../schema/validators/common");
5
+ exports.AdvantagesBlock = {
6
+ 'advantages-block': {
7
+ additionalProperties: false,
8
+ required: false,
9
+ properties: Object.assign(Object.assign({}, common_1.BaseProps), { title: {
10
+ type: 'string',
11
+ }, link: {
12
+ type: 'object',
13
+ additionalProperties: false,
14
+ required: true,
15
+ properties: {
16
+ url: { type: 'string' },
17
+ text: { type: 'string' },
18
+ },
19
+ }, logo: {
20
+ type: 'string',
21
+ }, items: {
22
+ type: 'array',
23
+ items: {
24
+ type: 'object',
25
+ additionalProperties: false,
26
+ required: true,
27
+ properties: {
28
+ url: { type: 'string' },
29
+ image: { type: 'string' },
30
+ title: { type: 'string' },
31
+ description: { type: 'string' },
32
+ },
33
+ },
34
+ } }),
35
+ },
36
+ };
@@ -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,3 @@
1
+ import { BannerMinifyBlockProps } from '../../models';
2
+ export declare const BannerMinifyBlock: (props: BannerMinifyBlockProps) => JSX.Element;
3
+ export default BannerMinifyBlock;
@@ -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,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,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
+ };