@gravity-ui/page-constructor 4.30.0 → 4.31.1-alpha.0

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 (126) hide show
  1. package/build/cjs/blocks/Banner/schema.d.ts +9 -0
  2. package/build/cjs/blocks/CardLayout/schema.d.ts +12 -0
  3. package/build/cjs/blocks/ContentLayout/schema.d.ts +6 -0
  4. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +9 -0
  5. package/build/cjs/blocks/FilterBlock/schema.d.ts +12 -0
  6. package/build/cjs/blocks/Form/Form.css +136 -0
  7. package/build/cjs/blocks/Form/Form.d.ts +4 -0
  8. package/build/cjs/blocks/Form/Form.js +61 -0
  9. package/build/cjs/blocks/Form/HubspotInlineForm.d.ts +7 -0
  10. package/build/cjs/blocks/Form/HubspotInlineForm.js +14 -0
  11. package/build/cjs/blocks/Form/InnerForm/InnerForm.d.ts +9 -0
  12. package/build/cjs/blocks/Form/InnerForm/InnerForm.js +28 -0
  13. package/build/cjs/blocks/Form/schema.d.ts +202 -0
  14. package/build/cjs/blocks/Form/schema.js +44 -0
  15. package/build/cjs/blocks/Header/schema.d.ts +3 -0
  16. package/build/cjs/blocks/HeaderSlider/schema.d.ts +3 -0
  17. package/build/cjs/blocks/Icons/schema.d.ts +6 -0
  18. package/build/cjs/blocks/Info/schema.d.ts +6 -0
  19. package/build/cjs/blocks/Map/schema.d.ts +9 -0
  20. package/build/cjs/blocks/Media/schema.d.ts +18 -0
  21. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +6 -0
  22. package/build/cjs/blocks/Questions/schema.d.ts +6 -0
  23. package/build/cjs/blocks/Slider/schema.d.ts +6 -0
  24. package/build/cjs/blocks/Table/schema.d.ts +3 -0
  25. package/build/cjs/blocks/Tabs/schema.d.ts +12 -0
  26. package/build/cjs/blocks/index.d.ts +1 -0
  27. package/build/cjs/blocks/index.js +3 -1
  28. package/build/cjs/components/Button/Button.d.ts +1 -0
  29. package/build/cjs/components/Button/Button.js +2 -2
  30. package/build/cjs/components/YandexForm/YandexForm.d.ts +2 -17
  31. package/build/cjs/components/YandexForm/YandexForm.js +6 -4
  32. package/build/cjs/components/YandexForm/schema.d.ts +16 -0
  33. package/build/cjs/components/YandexForm/schema.js +13 -0
  34. package/build/cjs/constructor-items.d.ts +1 -0
  35. package/build/cjs/constructor-items.js +1 -0
  36. package/build/cjs/editor/data/templates/form-block.json +20 -0
  37. package/build/cjs/models/constructor-items/blocks.d.ts +31 -4
  38. package/build/cjs/models/constructor-items/blocks.js +13 -1
  39. package/build/cjs/models/constructor-items/common.d.ts +17 -1
  40. package/build/cjs/models/constructor-items/sub-blocks.d.ts +2 -0
  41. package/build/cjs/models/guards.d.ts +3 -1
  42. package/build/cjs/models/guards.js +9 -1
  43. package/build/cjs/schema/constants.d.ts +18 -0
  44. package/build/cjs/schema/constants.js +2 -1
  45. package/build/cjs/schema/validators/blocks.d.ts +1 -0
  46. package/build/cjs/schema/validators/blocks.js +1 -0
  47. package/build/cjs/schema/validators/common.d.ts +21 -0
  48. package/build/cjs/schema/validators/common.js +11 -0
  49. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +6 -0
  50. package/build/cjs/sub-blocks/BackgroundCard/schema.js +2 -0
  51. package/build/cjs/sub-blocks/BasicCard/schema.d.ts +6 -0
  52. package/build/cjs/sub-blocks/BasicCard/schema.js +2 -0
  53. package/build/cjs/sub-blocks/Content/schema.d.ts +6 -0
  54. package/build/cjs/sub-blocks/HubspotForm/schema.d.ts +22 -0
  55. package/build/cjs/sub-blocks/HubspotForm/schema.js +17 -0
  56. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +3 -0
  57. package/build/cjs/sub-blocks/Quote/Quote.js +2 -2
  58. package/build/cjs/sub-blocks/Quote/schema.d.ts +3 -0
  59. package/build/cjs/sub-blocks/Quote/schema.js +2 -0
  60. package/build/esm/blocks/Banner/schema.d.ts +9 -0
  61. package/build/esm/blocks/CardLayout/schema.d.ts +12 -0
  62. package/build/esm/blocks/ContentLayout/schema.d.ts +6 -0
  63. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +9 -0
  64. package/build/esm/blocks/FilterBlock/schema.d.ts +12 -0
  65. package/build/esm/blocks/Form/Form.css +136 -0
  66. package/build/esm/blocks/Form/Form.d.ts +5 -0
  67. package/build/esm/blocks/Form/Form.js +59 -0
  68. package/build/esm/blocks/Form/HubspotInlineForm.d.ts +7 -0
  69. package/build/esm/blocks/Form/HubspotInlineForm.js +12 -0
  70. package/build/esm/blocks/Form/InnerForm/InnerForm.d.ts +9 -0
  71. package/build/esm/blocks/Form/InnerForm/InnerForm.js +26 -0
  72. package/build/esm/blocks/Form/schema.d.ts +202 -0
  73. package/build/esm/blocks/Form/schema.js +40 -0
  74. package/build/esm/blocks/Header/schema.d.ts +3 -0
  75. package/build/esm/blocks/HeaderSlider/schema.d.ts +3 -0
  76. package/build/esm/blocks/Icons/schema.d.ts +6 -0
  77. package/build/esm/blocks/Info/schema.d.ts +6 -0
  78. package/build/esm/blocks/Map/schema.d.ts +9 -0
  79. package/build/esm/blocks/Media/schema.d.ts +18 -0
  80. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +6 -0
  81. package/build/esm/blocks/Questions/schema.d.ts +6 -0
  82. package/build/esm/blocks/Slider/schema.d.ts +6 -0
  83. package/build/esm/blocks/Table/schema.d.ts +3 -0
  84. package/build/esm/blocks/Tabs/schema.d.ts +12 -0
  85. package/build/esm/blocks/index.d.ts +1 -0
  86. package/build/esm/blocks/index.js +1 -0
  87. package/build/esm/components/Button/Button.d.ts +1 -0
  88. package/build/esm/components/Button/Button.js +2 -2
  89. package/build/esm/components/YandexForm/YandexForm.d.ts +2 -17
  90. package/build/esm/components/YandexForm/YandexForm.js +5 -3
  91. package/build/esm/components/YandexForm/schema.d.ts +16 -0
  92. package/build/esm/components/YandexForm/schema.js +10 -0
  93. package/build/esm/constructor-items.d.ts +1 -0
  94. package/build/esm/constructor-items.js +2 -1
  95. package/build/esm/editor/data/templates/form-block.json +20 -0
  96. package/build/esm/models/constructor-items/blocks.d.ts +31 -4
  97. package/build/esm/models/constructor-items/blocks.js +12 -0
  98. package/build/esm/models/constructor-items/common.d.ts +17 -1
  99. package/build/esm/models/constructor-items/sub-blocks.d.ts +2 -0
  100. package/build/esm/models/guards.d.ts +3 -1
  101. package/build/esm/models/guards.js +7 -1
  102. package/build/esm/schema/constants.d.ts +18 -0
  103. package/build/esm/schema/constants.js +3 -2
  104. package/build/esm/schema/validators/blocks.d.ts +1 -0
  105. package/build/esm/schema/validators/blocks.js +1 -0
  106. package/build/esm/schema/validators/common.d.ts +21 -0
  107. package/build/esm/schema/validators/common.js +11 -0
  108. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +6 -0
  109. package/build/esm/sub-blocks/BackgroundCard/schema.js +2 -0
  110. package/build/esm/sub-blocks/BasicCard/schema.d.ts +6 -0
  111. package/build/esm/sub-blocks/BasicCard/schema.js +2 -0
  112. package/build/esm/sub-blocks/Content/schema.d.ts +6 -0
  113. package/build/esm/sub-blocks/HubspotForm/schema.d.ts +22 -0
  114. package/build/esm/sub-blocks/HubspotForm/schema.js +14 -0
  115. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +3 -0
  116. package/build/esm/sub-blocks/Quote/Quote.js +2 -2
  117. package/build/esm/sub-blocks/Quote/schema.d.ts +3 -0
  118. package/build/esm/sub-blocks/Quote/schema.js +2 -0
  119. package/package.json +1 -1
  120. package/server/models/constructor-items/blocks.d.ts +31 -4
  121. package/server/models/constructor-items/blocks.js +13 -1
  122. package/server/models/constructor-items/common.d.ts +17 -1
  123. package/server/models/constructor-items/sub-blocks.d.ts +2 -0
  124. package/server/models/guards.d.ts +3 -1
  125. package/server/models/guards.js +9 -1
  126. package/widget/index.js +1 -1
@@ -8,6 +8,9 @@ export declare const cardSchemas: {
8
8
  url: {
9
9
  type: string;
10
10
  };
11
+ urlTitle: {
12
+ type: string;
13
+ };
11
14
  icon: {
12
15
  oneOf: ({
13
16
  type: string;
@@ -52,6 +55,9 @@ export declare const cardSchemas: {
52
55
  url: {
53
56
  type: string;
54
57
  };
58
+ urlTitle: {
59
+ type: string;
60
+ };
55
61
  resetMargin: {
56
62
  type: string;
57
63
  };
@@ -163,6 +169,9 @@ export declare const cardSchemas: {
163
169
  url: {
164
170
  type: string;
165
171
  };
172
+ urlTitle: {
173
+ type: string;
174
+ };
166
175
  buttonText: {
167
176
  type: string;
168
177
  };
@@ -219,6 +228,9 @@ export declare const cardSchemas: {
219
228
  url: {
220
229
  type: string;
221
230
  };
231
+ urlTitle: {
232
+ type: string;
233
+ };
222
234
  background: {
223
235
  oneOf: (({
224
236
  type: string;
@@ -376,6 +388,9 @@ export declare const cardSchemas: {
376
388
  url: {
377
389
  type: string;
378
390
  };
391
+ urlTitle: {
392
+ type: string;
393
+ };
379
394
  resetMargin: {
380
395
  type: string;
381
396
  };
@@ -593,6 +608,9 @@ export declare const cardSchemas: {
593
608
  url: {
594
609
  type: string;
595
610
  };
611
+ urlTitle: {
612
+ type: string;
613
+ };
596
614
  primary: {
597
615
  type: string;
598
616
  };
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.constructorCardSchemaNames = exports.constructorBlockSchemaNames = exports.cardSchemas = exports.blockSchemas = void 0;
4
4
  const blocks_1 = require("./validators/blocks");
5
5
  const sub_blocks_1 = require("./validators/sub-blocks");
6
- exports.blockSchemas = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, sub_blocks_1.Divider), blocks_1.ExtendedFeaturesBlock), blocks_1.PromoFeaturesBlock), blocks_1.SliderBlock), blocks_1.QuestionsBlock), blocks_1.HeaderBlock), blocks_1.BannerBlock), blocks_1.CompaniesBlock), blocks_1.MediaBlock), blocks_1.MapBlock), blocks_1.InfoBlock), blocks_1.TableBlock), blocks_1.TabsBlock), blocks_1.HeaderSliderBlock), blocks_1.IconsBlock), blocks_1.CardLayoutBlock), blocks_1.ContentLayoutBlock), blocks_1.ShareBlock), blocks_1.FilterBlock);
6
+ exports.blockSchemas = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, sub_blocks_1.Divider), blocks_1.ExtendedFeaturesBlock), blocks_1.PromoFeaturesBlock), blocks_1.SliderBlock), blocks_1.QuestionsBlock), blocks_1.HeaderBlock), blocks_1.BannerBlock), blocks_1.CompaniesBlock), blocks_1.MediaBlock), blocks_1.MapBlock), blocks_1.InfoBlock), blocks_1.TableBlock), blocks_1.TabsBlock), blocks_1.HeaderSliderBlock), blocks_1.IconsBlock), blocks_1.CardLayoutBlock), blocks_1.ContentLayoutBlock), blocks_1.ShareBlock), blocks_1.FilterBlock), blocks_1.FormBlock);
7
7
  exports.cardSchemas = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, sub_blocks_1.MediaCardBlock), blocks_1.BannerCard), sub_blocks_1.PriceDetailedBlock), sub_blocks_1.BackgroundCard), sub_blocks_1.Quote), sub_blocks_1.BasicCard);
8
8
  exports.constructorBlockSchemaNames = [
9
9
  'divider',
@@ -30,6 +30,7 @@ exports.constructorBlockSchemaNames = [
30
30
  'content-layout-block',
31
31
  'share-block',
32
32
  'filter-block',
33
+ 'form-block',
33
34
  ];
34
35
  exports.constructorCardSchemaNames = [
35
36
  'media-card',
@@ -16,3 +16,4 @@ export * from '../../blocks/CardLayout/schema';
16
16
  export * from '../../blocks/ContentLayout/schema';
17
17
  export * from '../../blocks/Share/schema';
18
18
  export * from '../../blocks/FilterBlock/schema';
19
+ export * from '../../blocks/Form/schema';
@@ -19,3 +19,4 @@ tslib_1.__exportStar(require("../../blocks/CardLayout/schema"), exports);
19
19
  tslib_1.__exportStar(require("../../blocks/ContentLayout/schema"), exports);
20
20
  tslib_1.__exportStar(require("../../blocks/Share/schema"), exports);
21
21
  tslib_1.__exportStar(require("../../blocks/FilterBlock/schema"), exports);
22
+ tslib_1.__exportStar(require("../../blocks/Form/schema"), exports);
@@ -377,6 +377,9 @@ export declare const LinkProps: {
377
377
  url: {
378
378
  type: string;
379
379
  };
380
+ urlTitle: {
381
+ type: string;
382
+ };
380
383
  arrow: {
381
384
  type: string;
382
385
  };
@@ -545,6 +548,9 @@ export declare const ButtonProps: {
545
548
  url: {
546
549
  type: string;
547
550
  };
551
+ urlTitle: {
552
+ type: string;
553
+ };
548
554
  primary: {
549
555
  type: string;
550
556
  };
@@ -796,6 +802,9 @@ export declare const AnchorProps: {
796
802
  url: {
797
803
  type: string;
798
804
  };
805
+ urlTitle: {
806
+ type: string;
807
+ };
799
808
  };
800
809
  };
801
810
  export declare const BlockBaseProps: {
@@ -811,6 +820,9 @@ export declare const BlockBaseProps: {
811
820
  url: {
812
821
  type: string;
813
822
  };
823
+ urlTitle: {
824
+ type: string;
825
+ };
814
826
  };
815
827
  };
816
828
  visible: {
@@ -844,6 +856,9 @@ export declare const TitleProps: {
844
856
  url: {
845
857
  type: string;
846
858
  };
859
+ urlTitle: {
860
+ type: string;
861
+ };
847
862
  resetMargin: {
848
863
  type: string;
849
864
  };
@@ -860,6 +875,9 @@ export declare const ButtonBlock: {
860
875
  url: {
861
876
  type: string;
862
877
  };
878
+ urlTitle: {
879
+ type: string;
880
+ };
863
881
  primary: {
864
882
  type: string;
865
883
  };
@@ -1464,6 +1482,9 @@ export declare const BlockHeaderProps: {
1464
1482
  url: {
1465
1483
  type: string;
1466
1484
  };
1485
+ urlTitle: {
1486
+ type: string;
1487
+ };
1467
1488
  resetMargin: {
1468
1489
  type: string;
1469
1490
  };
@@ -211,6 +211,8 @@ exports.LinkProps = {
211
211
  contentType: 'text',
212
212
  }, url: {
213
213
  type: 'string',
214
+ }, urlTitle: {
215
+ type: 'string',
214
216
  }, arrow: {
215
217
  type: 'boolean',
216
218
  }, theme: {
@@ -286,6 +288,9 @@ exports.ButtonProps = {
286
288
  url: {
287
289
  type: 'string',
288
290
  },
291
+ urlTitle: {
292
+ type: 'string',
293
+ },
289
294
  primary: {
290
295
  type: 'boolean',
291
296
  },
@@ -440,6 +445,9 @@ exports.AnchorProps = {
440
445
  url: {
441
446
  type: 'string',
442
447
  },
448
+ urlTitle: {
449
+ type: 'string',
450
+ },
443
451
  },
444
452
  };
445
453
  exports.BlockBaseProps = Object.assign(Object.assign({}, exports.BaseProps), { anchor: exports.AnchorProps, visible: {
@@ -466,6 +474,9 @@ exports.TitleProps = {
466
474
  url: {
467
475
  type: 'string',
468
476
  },
477
+ urlTitle: {
478
+ type: 'string',
479
+ },
469
480
  resetMargin: {
470
481
  type: 'boolean',
471
482
  },
@@ -6,6 +6,9 @@ export declare const BackgroundCard: {
6
6
  url: {
7
7
  type: string;
8
8
  };
9
+ urlTitle: {
10
+ type: string;
11
+ };
9
12
  background: {
10
13
  oneOf: (({
11
14
  type: string;
@@ -163,6 +166,9 @@ export declare const BackgroundCard: {
163
166
  url: {
164
167
  type: string;
165
168
  };
169
+ urlTitle: {
170
+ type: string;
171
+ };
166
172
  resetMargin: {
167
173
  type: string;
168
174
  };
@@ -14,6 +14,8 @@ exports.BackgroundCard = {
14
14
  required: ['title', 'text'],
15
15
  properties: Object.assign(Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.CardBase), BackgroundCardContentProps), { url: {
16
16
  type: 'string',
17
+ }, urlTitle: {
18
+ type: 'string',
17
19
  }, background: (0, common_1.withTheme)(schema_1.ImageObjectProps), backgroundColor: {
18
20
  type: 'string',
19
21
  }, paddingBottom: {
@@ -6,6 +6,9 @@ export declare const BasicCard: {
6
6
  url: {
7
7
  type: string;
8
8
  };
9
+ urlTitle: {
10
+ type: string;
11
+ };
9
12
  icon: {
10
13
  oneOf: ({
11
14
  type: string;
@@ -50,6 +53,9 @@ export declare const BasicCard: {
50
53
  url: {
51
54
  type: string;
52
55
  };
56
+ urlTitle: {
57
+ type: string;
58
+ };
53
59
  resetMargin: {
54
60
  type: string;
55
61
  };
@@ -13,6 +13,8 @@ exports.BasicCard = {
13
13
  required: [],
14
14
  properties: Object.assign(Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.CardBase), BasicCardContentProps), { url: {
15
15
  type: 'string',
16
+ }, urlTitle: {
17
+ type: 'string',
16
18
  }, icon: schema_1.ImageProps, target: {
17
19
  type: 'string',
18
20
  enum: ['_blank', '_parent', '_top', '_self'],
@@ -59,6 +59,9 @@ export declare const ContentBase: {
59
59
  url: {
60
60
  type: string;
61
61
  };
62
+ urlTitle: {
63
+ type: string;
64
+ };
62
65
  resetMargin: {
63
66
  type: string;
64
67
  };
@@ -147,6 +150,9 @@ export declare const ContentBlock: {
147
150
  url: {
148
151
  type: string;
149
152
  };
153
+ urlTitle: {
154
+ type: string;
155
+ };
150
156
  resetMargin: {
151
157
  type: string;
152
158
  };
@@ -0,0 +1,22 @@
1
+ export declare const HubspotFormProps: {
2
+ type: string;
3
+ required: string[];
4
+ properties: {
5
+ region: {
6
+ type: string;
7
+ };
8
+ portalId: {
9
+ type: string;
10
+ };
11
+ formId: {
12
+ type: string;
13
+ };
14
+ formInstanceId: {
15
+ type: string;
16
+ };
17
+ type: {};
18
+ when: {
19
+ type: string;
20
+ };
21
+ };
22
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HubspotFormProps = void 0;
4
+ const common_1 = require("../../schema/validators/common");
5
+ exports.HubspotFormProps = {
6
+ type: 'object',
7
+ required: ['portalId', 'formId'],
8
+ properties: Object.assign(Object.assign({}, common_1.BaseProps), { region: {
9
+ type: 'string',
10
+ }, portalId: {
11
+ type: 'string',
12
+ }, formId: {
13
+ type: 'string',
14
+ }, formInstanceId: {
15
+ type: 'string',
16
+ } }),
17
+ };
@@ -270,6 +270,9 @@ export declare const LayoutItem: {
270
270
  url: {
271
271
  type: string;
272
272
  };
273
+ urlTitle: {
274
+ type: string;
275
+ };
273
276
  resetMargin: {
274
277
  type: string;
275
278
  };
@@ -11,7 +11,7 @@ const models_1 = require("../../models");
11
11
  const utils_2 = require("../../utils");
12
12
  const b = (0, utils_2.block)('quote');
13
13
  const Quote = (props) => {
14
- const { theme: textTheme = 'light', color, image, border = 'shadow', text, logo, author, url, buttonText, quoteType = models_1.QuoteType.Chevron, } = props;
14
+ const { theme: textTheme = 'light', color, image, border = 'shadow', text, logo, author, url, urlTitle, buttonText, quoteType = models_1.QuoteType.Chevron, } = props;
15
15
  const theme = (0, theme_1.useTheme)();
16
16
  const imageThemed = (0, utils_2.getThemedValue)(image, theme);
17
17
  const imageData = (0, utils_1.getMediaImage)(imageThemed);
@@ -19,7 +19,7 @@ const Quote = (props) => {
19
19
  const handleButtonClick = (0, react_1.useCallback)(() => handleAnalytics(), [handleAnalytics]);
20
20
  const renderFooter = Boolean(author || url) && (react_1.default.createElement("div", { className: b('author-wrapper') },
21
21
  author && (react_1.default.createElement(components_1.Author, { className: b('author', { theme: textTheme }), author: author, type: models_1.AuthorType.Line })),
22
- url && buttonText && (react_1.default.createElement(uikit_1.Button, { view: "outlined", size: "xl", href: url, className: b('link-button', { theme: textTheme }), onClick: handleButtonClick }, buttonText))));
22
+ url && buttonText && (react_1.default.createElement(uikit_1.Button, { view: "outlined", size: "xl", href: url, className: b('link-button', { theme: textTheme }), onClick: handleButtonClick, title: urlTitle }, buttonText))));
23
23
  const logoProps = (0, utils_1.getMediaImage)(logo);
24
24
  return (react_1.default.createElement("div", { className: b({ theme: textTheme, border }), style: color ? { backgroundColor: color } : {} },
25
25
  react_1.default.createElement("div", { key: text, className: b('content-wrapper') },
@@ -51,6 +51,9 @@ export declare const Quote: {
51
51
  url: {
52
52
  type: string;
53
53
  };
54
+ urlTitle: {
55
+ type: string;
56
+ };
54
57
  buttonText: {
55
58
  type: string;
56
59
  };
@@ -14,6 +14,8 @@ exports.Quote = {
14
14
  type: 'string',
15
15
  }, url: {
16
16
  type: 'string',
17
+ }, urlTitle: {
18
+ type: 'string',
17
19
  }, buttonText: {
18
20
  type: 'string',
19
21
  }, theme: common_1.ThemeProps, author: common_1.authorItem, quoteType: {
@@ -58,6 +58,9 @@ export declare const BannerCardProps: {
58
58
  url: {
59
59
  type: string;
60
60
  };
61
+ urlTitle: {
62
+ type: string;
63
+ };
61
64
  primary: {
62
65
  type: string;
63
66
  };
@@ -354,6 +357,9 @@ export declare const BannerBlock: {
354
357
  url: {
355
358
  type: string;
356
359
  };
360
+ urlTitle: {
361
+ type: string;
362
+ };
357
363
  primary: {
358
364
  type: string;
359
365
  };
@@ -651,6 +657,9 @@ export declare const BannerCard: {
651
657
  url: {
652
658
  type: string;
653
659
  };
660
+ urlTitle: {
661
+ type: string;
662
+ };
654
663
  primary: {
655
664
  type: string;
656
665
  };
@@ -34,6 +34,9 @@ export declare const CardLayoutProps: {
34
34
  url: {
35
35
  type: string;
36
36
  };
37
+ urlTitle: {
38
+ type: string;
39
+ };
37
40
  resetMargin: {
38
41
  type: string;
39
42
  };
@@ -60,6 +63,9 @@ export declare const CardLayoutProps: {
60
63
  url: {
61
64
  type: string;
62
65
  };
66
+ urlTitle: {
67
+ type: string;
68
+ };
63
69
  };
64
70
  };
65
71
  visible: {
@@ -115,6 +121,9 @@ export declare const CardLayoutBlock: {
115
121
  url: {
116
122
  type: string;
117
123
  };
124
+ urlTitle: {
125
+ type: string;
126
+ };
118
127
  resetMargin: {
119
128
  type: string;
120
129
  };
@@ -141,6 +150,9 @@ export declare const CardLayoutBlock: {
141
150
  url: {
142
151
  type: string;
143
152
  };
153
+ urlTitle: {
154
+ type: string;
155
+ };
144
156
  };
145
157
  };
146
158
  visible: {
@@ -83,6 +83,9 @@ export declare const ContentLayoutBlock: {
83
83
  url: {
84
84
  type: string;
85
85
  };
86
+ urlTitle: {
87
+ type: string;
88
+ };
86
89
  resetMargin: {
87
90
  type: string;
88
91
  };
@@ -224,6 +227,9 @@ export declare const ContentLayoutBlock: {
224
227
  url: {
225
228
  type: string;
226
229
  };
230
+ urlTitle: {
231
+ type: string;
232
+ };
227
233
  };
228
234
  };
229
235
  visible: {
@@ -26,6 +26,9 @@ export declare const ExtendedFeaturesItem: {
26
26
  url: {
27
27
  type: string;
28
28
  };
29
+ urlTitle: {
30
+ type: string;
31
+ };
29
32
  arrow: {
30
33
  type: string;
31
34
  };
@@ -196,6 +199,9 @@ export declare const ExtendedFeaturesBlock: {
196
199
  url: {
197
200
  type: string;
198
201
  };
202
+ urlTitle: {
203
+ type: string;
204
+ };
199
205
  resetMargin: {
200
206
  type: string;
201
207
  };
@@ -222,6 +228,9 @@ export declare const ExtendedFeaturesBlock: {
222
228
  url: {
223
229
  type: string;
224
230
  };
231
+ urlTitle: {
232
+ type: string;
233
+ };
225
234
  };
226
235
  };
227
236
  visible: {
@@ -90,6 +90,9 @@ export declare const FilterProps: {
90
90
  url: {
91
91
  type: string;
92
92
  };
93
+ urlTitle: {
94
+ type: string;
95
+ };
93
96
  resetMargin: {
94
97
  type: string;
95
98
  };
@@ -116,6 +119,9 @@ export declare const FilterProps: {
116
119
  url: {
117
120
  type: string;
118
121
  };
122
+ urlTitle: {
123
+ type: string;
124
+ };
119
125
  };
120
126
  };
121
127
  visible: {
@@ -200,6 +206,9 @@ export declare const FilterBlock: {
200
206
  url: {
201
207
  type: string;
202
208
  };
209
+ urlTitle: {
210
+ type: string;
211
+ };
203
212
  resetMargin: {
204
213
  type: string;
205
214
  };
@@ -226,6 +235,9 @@ export declare const FilterBlock: {
226
235
  url: {
227
236
  type: string;
228
237
  };
238
+ urlTitle: {
239
+ type: string;
240
+ };
229
241
  };
230
242
  };
231
243
  visible: {
@@ -0,0 +1,136 @@
1
+ /* use this for style redefinitions to awoid problems with
2
+ unpredictable css rules order in build */
3
+ .pc-form-block {
4
+ border-radius: 32px;
5
+ position: relative;
6
+ }
7
+ .pc-form-block__title {
8
+ margin: 0 0 24px 10px;
9
+ }
10
+ .pc-form-block__title_mobile {
11
+ margin-left: 4px;
12
+ }
13
+ .pc-form-block__full-form {
14
+ background-color: var(--g-color-base-background);
15
+ padding: 48px 64px 48px calc(64px - 10px);
16
+ border-radius: var(--pc-border-radius);
17
+ }
18
+ .pc-form-block__media {
19
+ position: absolute;
20
+ top: 0;
21
+ left: 0;
22
+ bottom: 0;
23
+ right: 0;
24
+ border-radius: 32px;
25
+ }
26
+ .pc-form-block__image {
27
+ height: 100%;
28
+ width: 100%;
29
+ object-fit: cover;
30
+ }
31
+ .pc-form-block__row_direction_form-content {
32
+ flex-direction: row-reverse;
33
+ }
34
+ .pc-form-block__row_direction_center {
35
+ padding-top: 64px;
36
+ padding-bottom: 48px;
37
+ flex-direction: column;
38
+ }
39
+ .pc-form-block__row_direction_center .pc-form-block__content-wrapper {
40
+ margin-bottom: 32px;
41
+ }
42
+ .pc-form-block:not(.pc-form-block_with-background) .pc-form-block__full-form {
43
+ box-shadow: 0 4px 24px var(--pc-color-sfx-shadow), 0 2px 8px var(--pc-color-sfx-shadow);
44
+ }
45
+ .pc-form-block:not(.pc-form-block_with-background) .pc-form-block__row_direction_form-content .pc-form-block__content-wrapper {
46
+ padding: 48px 0 64px 64px;
47
+ }
48
+ .pc-form-block:not(.pc-form-block_with-background) .pc-form-block__row_direction_content-form .pc-form-block__content-wrapper {
49
+ padding: 48px 64px 64px 0;
50
+ }
51
+ .pc-form-block_with-background .pc-form-block__row_direction_form-content .pc-form-block__form-wrapper {
52
+ padding: 16px 0 24px 16px;
53
+ }
54
+ .pc-form-block_with-background .pc-form-block__row_direction_content-form .pc-form-block__form-wrapper {
55
+ padding: 16px 16px 24px 0;
56
+ }
57
+ .pc-form-block_with-background .pc-form-block__row_direction_form-content .pc-form-block__content-wrapper, .pc-form-block_with-background .pc-form-block__row_direction_content-form .pc-form-block__content-wrapper {
58
+ padding: 64px;
59
+ }
60
+ @media (min-width: 1081px) {
61
+ .pc-form-block_form-type_yandex .pc-form-block__row_direction_form-content .pc-form-block__content-col, .pc-form-block_form-type_yandex .pc-form-block__row_direction_content-form .pc-form-block__content-col {
62
+ flex: 1 0 0;
63
+ }
64
+ .pc-form-block_form-type_yandex .pc-form-block__row_direction_form-content .pc-form-block__form, .pc-form-block_form-type_yandex .pc-form-block__row_direction_content-form .pc-form-block__form, .pc-form-block_form-type_yandex .pc-form-block__row_direction_center .pc-form-block__form {
65
+ min-width: 475px;
66
+ }
67
+ .pc-form-block_form-type_yandex .pc-form-block__row_direction_form-content .pc-form-block__form-col, .pc-form-block_form-type_yandex .pc-form-block__row_direction_content-form .pc-form-block__form-col, .pc-form-block_form-type_yandex .pc-form-block__row_direction_center .pc-form-block__form-col {
68
+ max-width: initial;
69
+ width: fit-content;
70
+ }
71
+ }
72
+ @media (max-width: 1081px) and (min-width: 769px) {
73
+ .pc-form-block__row {
74
+ flex-direction: column;
75
+ }
76
+ .pc-form-block_with-background .pc-form-block__row .pc-form-block__form-wrapper,
77
+ .pc-form-block_with-background .pc-form-block__row .pc-form-block__content-wrapper, .pc-form-block:not(.pc-form-block_with-background) .pc-form-block__row .pc-form-block__form-wrapper,
78
+ .pc-form-block:not(.pc-form-block_with-background) .pc-form-block__row .pc-form-block__content-wrapper {
79
+ max-width: 609px;
80
+ }
81
+ .pc-form-block_with-background .pc-form-block__row .pc-form-block__center,
82
+ .pc-form-block_with-background .pc-form-block__row .pc-form-block__form-wrapper,
83
+ .pc-form-block_with-background .pc-form-block__row .pc-form-block__content-wrapper, .pc-form-block:not(.pc-form-block_with-background) .pc-form-block__row .pc-form-block__center,
84
+ .pc-form-block:not(.pc-form-block_with-background) .pc-form-block__row .pc-form-block__form-wrapper,
85
+ .pc-form-block:not(.pc-form-block_with-background) .pc-form-block__row .pc-form-block__content-wrapper {
86
+ margin: 0 auto;
87
+ padding-right: 0;
88
+ padding-left: 0;
89
+ }
90
+ .pc-form-block_with-background .pc-form-block__row .pc-form-block__form-wrapper, .pc-form-block:not(.pc-form-block_with-background) .pc-form-block__row .pc-form-block__form-wrapper {
91
+ padding-top: 0;
92
+ }
93
+ .pc-form-block_with-background .pc-form-block__row .pc-form-block__content-wrapper, .pc-form-block:not(.pc-form-block_with-background) .pc-form-block__row .pc-form-block__content-wrapper {
94
+ text-align: center;
95
+ padding-bottom: 32px;
96
+ }
97
+ .pc-form-block:not(.pc-form-block_with-background) .pc-form-block__row .pc-form-block__content-wrapper {
98
+ padding: 0 0 32px 0;
99
+ }
100
+ }
101
+ @media (max-width: 769px) {
102
+ .pc-form-block__full-form {
103
+ padding: 32px;
104
+ }
105
+ .pc-form-block_with-background .pc-form-block__row, .pc-form-block:not(.pc-form-block_with-background) .pc-form-block__row {
106
+ padding: 0;
107
+ }
108
+ .pc-form-block_with-background .pc-form-block__row .pc-form-block__form-wrapper,
109
+ .pc-form-block_with-background .pc-form-block__row .pc-form-block__content-wrapper, .pc-form-block:not(.pc-form-block_with-background) .pc-form-block__row .pc-form-block__form-wrapper,
110
+ .pc-form-block:not(.pc-form-block_with-background) .pc-form-block__row .pc-form-block__content-wrapper {
111
+ padding: 0;
112
+ }
113
+ .pc-form-block_with-background .pc-form-block__row .pc-form-block__content-wrapper, .pc-form-block:not(.pc-form-block_with-background) .pc-form-block__row .pc-form-block__content-wrapper {
114
+ padding-bottom: 32px;
115
+ margin-bottom: 0;
116
+ }
117
+ .pc-form-block_with-background {
118
+ padding: 0 8px;
119
+ }
120
+ .pc-form-block_with-background .pc-form-block__row {
121
+ padding-top: 48px;
122
+ }
123
+ .pc-form-block_with-background .pc-form-block__row_padding-bottom_m {
124
+ padding-bottom: 32px;
125
+ }
126
+ .pc-form-block_with-background .pc-form-block__row_padding-bottom_l {
127
+ padding-bottom: 48px;
128
+ }
129
+ .pc-form-block_with-background .pc-form-block__row_direction_form-content .pc-form-block__content-wrapper, .pc-form-block_with-background .pc-form-block__row_direction_content-form .pc-form-block__content-wrapper, .pc-form-block_with-background .pc-form-block__row_direction_center .pc-form-block__content-wrapper {
130
+ padding-right: 16px;
131
+ padding-left: 16px;
132
+ }
133
+ .pc-form-block_with-background .pc-form-block__row_direction_form-content, .pc-form-block_with-background .pc-form-block__row_direction_content-form {
134
+ padding-top: 32px;
135
+ }
136
+ }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { FormBlockProps } from '../../models';
3
+ import './Form.css';
4
+ declare const FormBlock: React.FC<FormBlockProps>;
5
+ export default FormBlock;