@gravity-ui/page-constructor 4.46.0 → 4.46.2

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 (38) hide show
  1. package/build/cjs/blocks/CardLayout/CardLayout.css +277 -0
  2. package/build/cjs/blocks/CardLayout/CardLayout.js +2 -1
  3. package/build/cjs/blocks/CardLayout/schema.d.ts +134 -62
  4. package/build/cjs/blocks/CardLayout/schema.js +6 -1
  5. package/build/cjs/blocks/ContentLayout/schema.d.ts +123 -65
  6. package/build/cjs/blocks/ContentLayout/schema.js +1 -1
  7. package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.css +270 -0
  8. package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +270 -0
  9. package/build/cjs/blocks/Slider/Slider.css +270 -0
  10. package/build/cjs/components/BalancedMasonry/BalancedMasonry.js +1 -1
  11. package/build/cjs/components/Image/schema.d.ts +102 -1
  12. package/build/cjs/components/Image/schema.js +9 -3
  13. package/build/cjs/models/constructor-items/blocks.d.ts +4 -2
  14. package/build/cjs/schema/constants.d.ts +1 -1
  15. package/build/cjs/schema/validators/common.d.ts +4 -0
  16. package/build/cjs/schema/validators/common.js +6 -5
  17. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +1 -1
  18. package/build/esm/blocks/CardLayout/CardLayout.css +277 -0
  19. package/build/esm/blocks/CardLayout/CardLayout.js +3 -1
  20. package/build/esm/blocks/CardLayout/schema.d.ts +134 -62
  21. package/build/esm/blocks/CardLayout/schema.js +8 -3
  22. package/build/esm/blocks/ContentLayout/schema.d.ts +123 -65
  23. package/build/esm/blocks/ContentLayout/schema.js +2 -2
  24. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.css +270 -0
  25. package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +270 -0
  26. package/build/esm/blocks/Slider/Slider.css +270 -0
  27. package/build/esm/components/BalancedMasonry/BalancedMasonry.js +1 -1
  28. package/build/esm/components/Image/schema.d.ts +102 -1
  29. package/build/esm/components/Image/schema.js +8 -2
  30. package/build/esm/models/constructor-items/blocks.d.ts +4 -2
  31. package/build/esm/schema/constants.d.ts +1 -1
  32. package/build/esm/schema/validators/common.d.ts +4 -0
  33. package/build/esm/schema/validators/common.js +5 -4
  34. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +1 -1
  35. package/package.json +1 -1
  36. package/server/models/constructor-items/blocks.d.ts +4 -2
  37. package/styles/mixins.scss +13 -10
  38. package/widget/index.js +1 -1
@@ -25,10 +25,46 @@ export declare const ImageDeviceProps: {
25
25
  };
26
26
  };
27
27
  };
28
- export declare const ImageObjectProps: {
28
+ export declare const ImageBaseObjectProps: {
29
29
  type: string;
30
30
  additionalProperties: boolean;
31
+ properties: {
32
+ src: {
33
+ type: string;
34
+ pattern: string;
35
+ };
36
+ style: {
37
+ type: string;
38
+ additionalProperties: boolean;
39
+ required: never[];
40
+ properties: {
41
+ backgroundColor: {
42
+ type: string;
43
+ };
44
+ height: {
45
+ type: string[];
46
+ };
47
+ width: {
48
+ type: string[];
49
+ };
50
+ color: {
51
+ type: string;
52
+ };
53
+ };
54
+ };
55
+ alt: {
56
+ type: string;
57
+ contentType: string;
58
+ };
59
+ disableCompress: {
60
+ type: string;
61
+ };
62
+ };
63
+ };
64
+ export declare const ImageObjectProps: {
31
65
  required: string[];
66
+ type: string;
67
+ additionalProperties: boolean;
32
68
  properties: {
33
69
  src: {
34
70
  type: string;
@@ -76,3 +112,68 @@ export declare const ImageProps: {
76
112
  optionName: string;
77
113
  })[];
78
114
  };
115
+ export declare const BackgroundImageProps: {
116
+ anyOf: ({
117
+ optionName: string;
118
+ type: string;
119
+ additionalProperties: boolean;
120
+ properties: {
121
+ src: {
122
+ type: string;
123
+ pattern: string;
124
+ };
125
+ style: {
126
+ type: string;
127
+ additionalProperties: boolean;
128
+ required: never[];
129
+ properties: {
130
+ backgroundColor: {
131
+ type: string;
132
+ };
133
+ height: {
134
+ type: string[];
135
+ };
136
+ width: {
137
+ type: string[];
138
+ };
139
+ color: {
140
+ type: string;
141
+ };
142
+ };
143
+ };
144
+ alt: {
145
+ type: string;
146
+ contentType: string;
147
+ };
148
+ disableCompress: {
149
+ type: string;
150
+ };
151
+ };
152
+ } | {
153
+ optionName: string;
154
+ type: string;
155
+ additionalProperties: boolean;
156
+ required: string[];
157
+ properties: {
158
+ desktop: {
159
+ type: string;
160
+ pattern: string;
161
+ };
162
+ tablet: {
163
+ type: string;
164
+ pattern: string;
165
+ };
166
+ mobile: {
167
+ type: string;
168
+ pattern: string;
169
+ };
170
+ alt: {
171
+ type: string;
172
+ contentType: string;
173
+ };
174
+ disableCompress: {
175
+ type: string;
176
+ };
177
+ };
178
+ })[];
179
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ImageProps = exports.ImageObjectProps = exports.ImageDeviceProps = exports.imageUrlPattern = void 0;
3
+ exports.BackgroundImageProps = exports.ImageProps = exports.ImageObjectProps = exports.ImageBaseObjectProps = exports.ImageDeviceProps = exports.imageUrlPattern = void 0;
4
4
  const utils_1 = require("../../schema/validators/utils");
5
5
  exports.imageUrlPattern = '^((http[s]?|ftp):\\/)?\\/?([^:\\/\\s]+)((\\/\\w+)*\\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$';
6
6
  const ImageBase = {
@@ -35,15 +35,15 @@ exports.ImageDeviceProps = {
35
35
  pattern: exports.imageUrlPattern,
36
36
  } }),
37
37
  };
38
- exports.ImageObjectProps = {
38
+ exports.ImageBaseObjectProps = {
39
39
  type: 'object',
40
40
  additionalProperties: false,
41
- required: ['src'],
42
41
  properties: Object.assign(Object.assign({}, ImageBase), { src: {
43
42
  type: 'string',
44
43
  pattern: exports.imageUrlPattern,
45
44
  }, style: StyleBase }),
46
45
  };
46
+ exports.ImageObjectProps = Object.assign(Object.assign({}, exports.ImageBaseObjectProps), { required: ['src'] });
47
47
  exports.ImageProps = {
48
48
  oneOf: [
49
49
  {
@@ -55,3 +55,9 @@ exports.ImageProps = {
55
55
  (0, utils_1.filteredItem)(Object.assign(Object.assign({}, exports.ImageDeviceProps), { optionName: 'device options' })),
56
56
  ],
57
57
  };
58
+ exports.BackgroundImageProps = {
59
+ anyOf: [
60
+ Object.assign(Object.assign({}, exports.ImageBaseObjectProps), { optionName: 'options' }),
61
+ Object.assign(Object.assign({}, exports.ImageDeviceProps), { optionName: 'device options' }),
62
+ ],
63
+ };
@@ -3,7 +3,7 @@ import { ButtonSize } from '@gravity-ui/uikit';
3
3
  import { GridColumnSize, GridColumnSizesType, IndentValue } from '../../grid/types';
4
4
  import { ThemeSupporting } from '../../utils';
5
5
  import { AnalyticsEventsBase } from '../common';
6
- import { AnchorProps, Animatable, BackgroundImageProps, ButtonProps, ContentSize, ContentTextSize, ContentTheme, FileLinkProps, HeaderBreadCrumbsProps, HeaderImageSize, HeaderOffset, HeaderWidth, ImageDeviceProps, ImageProps, Justify, LegendTableMarkerType, LinkProps, MapProps, MediaDirection, MediaProps, TextSize, TextTheme, ThemedImage, ThemedMediaProps, ThemedMediaVideoProps, TitleItemBaseProps, TitleItemProps, YandexFormProps } from './common';
6
+ import { AnchorProps, Animatable, BackgroundImageProps, ButtonProps, CardBorder, ContentSize, ContentTextSize, ContentTheme, FileLinkProps, HeaderBreadCrumbsProps, HeaderImageSize, HeaderOffset, HeaderWidth, ImageDeviceProps, ImageProps, Justify, LegendTableMarkerType, LinkProps, MapProps, MediaDirection, MediaProps, TextSize, TextTheme, ThemedImage, ThemedMediaProps, ThemedMediaVideoProps, TitleItemBaseProps, TitleItemProps, YandexFormProps } from './common';
7
7
  import { BannerCardProps, HubspotFormProps, SubBlock, SubBlockModels } from './sub-blocks';
8
8
  export declare enum BlockType {
9
9
  PromoFeaturesBlock = "promo-features-block",
@@ -234,7 +234,9 @@ export interface CardLayoutBlockProps extends Childable, Animatable, LoadableChi
234
234
  titleClassName?: string;
235
235
  description?: string;
236
236
  colSizes?: GridColumnSizesType;
237
- background?: BackgroundImageProps;
237
+ background?: BackgroundImageProps & {
238
+ border?: CardBorder;
239
+ };
238
240
  }
239
241
  export type FilterTag = {
240
242
  id: string;
@@ -646,9 +646,9 @@ export declare const cardSchemas: {
646
646
  };
647
647
  background: {
648
648
  oneOf: (({
649
+ required: string[];
649
650
  type: string;
650
651
  additionalProperties: boolean;
651
- required: string[];
652
652
  properties: {
653
653
  src: {
654
654
  type: string;
@@ -1499,6 +1499,10 @@ export declare const MapProps: {
1499
1499
  };
1500
1500
  };
1501
1501
  };
1502
+ export declare const BorderProps: {
1503
+ type: string;
1504
+ enum: string[];
1505
+ };
1502
1506
  export declare const CardBase: {
1503
1507
  border: {
1504
1508
  type: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BlockHeaderProps = exports.CardBase = exports.MapProps = exports.YMapMarker = exports.YMapMarkerLabel = exports.MediaProps = exports.ButtonBlock = exports.TitleProps = exports.BlockBaseProps = exports.AnchorProps = exports.withTheme = exports.MenuProps = exports.ButtonProps = exports.authorItem = exports.FileLinkProps = exports.LinkProps = exports.BackgroundProps = exports.DataLensProps = exports.DataLensObjectProps = exports.JustifyProps = exports.ThemeProps = exports.VideoProps = exports.CustomControlsOptionsProps = exports.PlayButtonProps = exports.LoopProps = exports.ChildrenCardsProps = exports.ChildrenProps = exports.AnimatableProps = exports.sliderSizesObject = exports.containerSizesObject = exports.BaseProps = exports.customControlsButtonPositioning = exports.customControlsType = exports.quoteTypes = exports.contentThemes = exports.sizeNumber = exports.dividerEnum = exports.fileLinkTypes = exports.videoControlsTypes = exports.playIconThemes = exports.playIconTypes = exports.videoTypes = exports.contentTextWidth = exports.contentSizes = exports.sliderSizesArray = exports.containerSizesArray = exports.textSize = exports.mediaDirection = void 0;
3
+ exports.BlockHeaderProps = exports.CardBase = exports.BorderProps = exports.MapProps = exports.YMapMarker = exports.YMapMarkerLabel = exports.MediaProps = exports.ButtonBlock = exports.TitleProps = exports.BlockBaseProps = exports.AnchorProps = exports.withTheme = exports.MenuProps = exports.ButtonProps = exports.authorItem = exports.FileLinkProps = exports.LinkProps = exports.BackgroundProps = exports.DataLensProps = exports.DataLensObjectProps = exports.JustifyProps = exports.ThemeProps = exports.VideoProps = exports.CustomControlsOptionsProps = exports.PlayButtonProps = exports.LoopProps = exports.ChildrenCardsProps = exports.ChildrenProps = exports.AnimatableProps = exports.sliderSizesObject = exports.containerSizesObject = exports.BaseProps = exports.customControlsButtonPositioning = exports.customControlsType = exports.quoteTypes = exports.contentThemes = exports.sizeNumber = exports.dividerEnum = exports.fileLinkTypes = exports.videoControlsTypes = exports.playIconThemes = exports.playIconTypes = exports.videoTypes = exports.contentTextWidth = exports.contentSizes = exports.sliderSizesArray = exports.containerSizesArray = exports.textSize = exports.mediaDirection = void 0;
4
4
  const schema_1 = require("../../components/Image/schema");
5
5
  const models_1 = require("../../models");
6
6
  const event_1 = require("./event");
@@ -619,11 +619,12 @@ exports.MapProps = {
619
619
  items: exports.YMapMarker,
620
620
  },
621
621
  };
622
+ exports.BorderProps = {
623
+ type: 'string',
624
+ enum: ['line', 'shadow', 'none'],
625
+ };
622
626
  exports.CardBase = {
623
- border: {
624
- type: 'string',
625
- enum: ['line', 'shadow', 'none'],
626
- },
627
+ border: exports.BorderProps,
627
628
  };
628
629
  exports.BlockHeaderProps = {
629
630
  title: {
@@ -11,9 +11,9 @@ export declare const BackgroundCard: {
11
11
  };
12
12
  background: {
13
13
  oneOf: (({
14
+ required: string[];
14
15
  type: string;
15
16
  additionalProperties: boolean;
16
- required: string[];
17
17
  properties: {
18
18
  src: {
19
19
  type: string;
@@ -1,3 +1,7 @@
1
+ .pc-card-layout-block__image_border_shadow {
2
+ box-shadow: 0px 4px 24px var(--pc-color-sfx-shadow), 0px 2px 8px var(--pc-color-sfx-shadow);
3
+ }
4
+
1
5
  /* use this for style redefinitions to awoid problems with
2
6
  unpredictable css rules order in build */
3
7
  .pc-card-layout-block__item {
@@ -22,6 +26,9 @@ unpredictable css rules order in build */
22
26
  object-fit: cover;
23
27
  object-position: left;
24
28
  }
29
+ .pc-card-layout-block__image_border_line {
30
+ border: 1px solid var(--g-color-line-generic);
31
+ }
25
32
  @media (min-width: 769px) {
26
33
  .pc-card-layout-block.pc-AnimateBlock .pc-card-layout-block__item, .pc-AnimateBlock .pc-card-layout-block .pc-card-layout-block__item {
27
34
  position: relative;
@@ -63,4 +70,274 @@ unpredictable css rules order in build */
63
70
  .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(9), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(9) {
64
71
  transition-delay: 0.9s;
65
72
  }
73
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(10), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(10) {
74
+ transition-delay: 1s;
75
+ }
76
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(11), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(11) {
77
+ transition-delay: 1.1s;
78
+ }
79
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(12), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(12) {
80
+ transition-delay: 1.2s;
81
+ }
82
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(13), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(13) {
83
+ transition-delay: 1.3s;
84
+ }
85
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(14), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(14) {
86
+ transition-delay: 1.4s;
87
+ }
88
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(15), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(15) {
89
+ transition-delay: 1.5s;
90
+ }
91
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(16), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(16) {
92
+ transition-delay: 1.6s;
93
+ }
94
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(17), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(17) {
95
+ transition-delay: 1.7s;
96
+ }
97
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(18), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(18) {
98
+ transition-delay: 1.8s;
99
+ }
100
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(19), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(19) {
101
+ transition-delay: 1.9s;
102
+ }
103
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(20), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(20) {
104
+ transition-delay: 2s;
105
+ }
106
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(21), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(21) {
107
+ transition-delay: 2.1s;
108
+ }
109
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(22), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(22) {
110
+ transition-delay: 2.2s;
111
+ }
112
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(23), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(23) {
113
+ transition-delay: 2.3s;
114
+ }
115
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(24), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(24) {
116
+ transition-delay: 2.4s;
117
+ }
118
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(25), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(25) {
119
+ transition-delay: 2.5s;
120
+ }
121
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(26), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(26) {
122
+ transition-delay: 2.6s;
123
+ }
124
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(27), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(27) {
125
+ transition-delay: 2.7s;
126
+ }
127
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(28), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(28) {
128
+ transition-delay: 2.8s;
129
+ }
130
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(29), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(29) {
131
+ transition-delay: 2.9s;
132
+ }
133
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(30), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(30) {
134
+ transition-delay: 3s;
135
+ }
136
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(31), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(31) {
137
+ transition-delay: 3.1s;
138
+ }
139
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(32), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(32) {
140
+ transition-delay: 3.2s;
141
+ }
142
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(33), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(33) {
143
+ transition-delay: 3.3s;
144
+ }
145
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(34), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(34) {
146
+ transition-delay: 3.4s;
147
+ }
148
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(35), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(35) {
149
+ transition-delay: 3.5s;
150
+ }
151
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(36), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(36) {
152
+ transition-delay: 3.6s;
153
+ }
154
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(37), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(37) {
155
+ transition-delay: 3.7s;
156
+ }
157
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(38), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(38) {
158
+ transition-delay: 3.8s;
159
+ }
160
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(39), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(39) {
161
+ transition-delay: 3.9s;
162
+ }
163
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(40), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(40) {
164
+ transition-delay: 4s;
165
+ }
166
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(41), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(41) {
167
+ transition-delay: 4.1s;
168
+ }
169
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(42), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(42) {
170
+ transition-delay: 4.2s;
171
+ }
172
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(43), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(43) {
173
+ transition-delay: 4.3s;
174
+ }
175
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(44), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(44) {
176
+ transition-delay: 4.4s;
177
+ }
178
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(45), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(45) {
179
+ transition-delay: 4.5s;
180
+ }
181
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(46), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(46) {
182
+ transition-delay: 4.6s;
183
+ }
184
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(47), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(47) {
185
+ transition-delay: 4.7s;
186
+ }
187
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(48), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(48) {
188
+ transition-delay: 4.8s;
189
+ }
190
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(49), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(49) {
191
+ transition-delay: 4.9s;
192
+ }
193
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(50), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(50) {
194
+ transition-delay: 5s;
195
+ }
196
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(51), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(51) {
197
+ transition-delay: 5.1s;
198
+ }
199
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(52), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(52) {
200
+ transition-delay: 5.2s;
201
+ }
202
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(53), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(53) {
203
+ transition-delay: 5.3s;
204
+ }
205
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(54), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(54) {
206
+ transition-delay: 5.4s;
207
+ }
208
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(55), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(55) {
209
+ transition-delay: 5.5s;
210
+ }
211
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(56), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(56) {
212
+ transition-delay: 5.6s;
213
+ }
214
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(57), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(57) {
215
+ transition-delay: 5.7s;
216
+ }
217
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(58), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(58) {
218
+ transition-delay: 5.8s;
219
+ }
220
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(59), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(59) {
221
+ transition-delay: 5.9s;
222
+ }
223
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(60), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(60) {
224
+ transition-delay: 6s;
225
+ }
226
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(61), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(61) {
227
+ transition-delay: 6.1s;
228
+ }
229
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(62), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(62) {
230
+ transition-delay: 6.2s;
231
+ }
232
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(63), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(63) {
233
+ transition-delay: 6.3s;
234
+ }
235
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(64), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(64) {
236
+ transition-delay: 6.4s;
237
+ }
238
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(65), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(65) {
239
+ transition-delay: 6.5s;
240
+ }
241
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(66), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(66) {
242
+ transition-delay: 6.6s;
243
+ }
244
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(67), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(67) {
245
+ transition-delay: 6.7s;
246
+ }
247
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(68), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(68) {
248
+ transition-delay: 6.8s;
249
+ }
250
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(69), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(69) {
251
+ transition-delay: 6.9s;
252
+ }
253
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(70), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(70) {
254
+ transition-delay: 7s;
255
+ }
256
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(71), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(71) {
257
+ transition-delay: 7.1s;
258
+ }
259
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(72), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(72) {
260
+ transition-delay: 7.2s;
261
+ }
262
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(73), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(73) {
263
+ transition-delay: 7.3s;
264
+ }
265
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(74), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(74) {
266
+ transition-delay: 7.4s;
267
+ }
268
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(75), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(75) {
269
+ transition-delay: 7.5s;
270
+ }
271
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(76), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(76) {
272
+ transition-delay: 7.6s;
273
+ }
274
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(77), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(77) {
275
+ transition-delay: 7.7s;
276
+ }
277
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(78), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(78) {
278
+ transition-delay: 7.8s;
279
+ }
280
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(79), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(79) {
281
+ transition-delay: 7.9s;
282
+ }
283
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(80), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(80) {
284
+ transition-delay: 8s;
285
+ }
286
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(81), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(81) {
287
+ transition-delay: 8.1s;
288
+ }
289
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(82), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(82) {
290
+ transition-delay: 8.2s;
291
+ }
292
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(83), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(83) {
293
+ transition-delay: 8.3s;
294
+ }
295
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(84), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(84) {
296
+ transition-delay: 8.4s;
297
+ }
298
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(85), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(85) {
299
+ transition-delay: 8.5s;
300
+ }
301
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(86), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(86) {
302
+ transition-delay: 8.6s;
303
+ }
304
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(87), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(87) {
305
+ transition-delay: 8.7s;
306
+ }
307
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(88), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(88) {
308
+ transition-delay: 8.8s;
309
+ }
310
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(89), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(89) {
311
+ transition-delay: 8.9s;
312
+ }
313
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(90), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(90) {
314
+ transition-delay: 9s;
315
+ }
316
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(91), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(91) {
317
+ transition-delay: 9.1s;
318
+ }
319
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(92), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(92) {
320
+ transition-delay: 9.2s;
321
+ }
322
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(93), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(93) {
323
+ transition-delay: 9.3s;
324
+ }
325
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(94), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(94) {
326
+ transition-delay: 9.4s;
327
+ }
328
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(95), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(95) {
329
+ transition-delay: 9.5s;
330
+ }
331
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(96), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(96) {
332
+ transition-delay: 9.6s;
333
+ }
334
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(97), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(97) {
335
+ transition-delay: 9.7s;
336
+ }
337
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(98), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(98) {
338
+ transition-delay: 9.8s;
339
+ }
340
+ .pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(99), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(99) {
341
+ transition-delay: 9.9s;
342
+ }
66
343
  }
@@ -1,3 +1,4 @@
1
+ import { __rest } from "tslib";
1
2
  import React from 'react';
2
3
  import isEmpty from 'lodash/isEmpty';
3
4
  import { AnimateBlock, BackgroundImage, Title } from '../../components';
@@ -11,12 +12,13 @@ const DEFAULT_SIZES = {
11
12
  };
12
13
  const b = block('card-layout-block');
13
14
  const CardLayout = ({ title, description, animated, colSizes = DEFAULT_SIZES, children, className, titleClassName, background, }) => {
15
+ const _a = background || {}, { border } = _a, backgroundImageProps = __rest(_a, ["border"]);
14
16
  return (React.createElement(AnimateBlock, { className: b(null, className), animate: animated },
15
17
  (title || description) && (React.createElement(Title, { title: title, subtitle: description, className: titleClassName })),
16
18
  React.createElement("div", { className: b('content', {
17
19
  'with-background': !isEmpty(background),
18
20
  }) },
19
- React.createElement(BackgroundImage, Object.assign({ className: b('image') }, background)),
21
+ React.createElement(BackgroundImage, Object.assign({ className: b('image', { border }) }, backgroundImageProps)),
20
22
  React.createElement(Row, null, React.Children.map(children, (child, index) => (React.createElement(Col, { key: index, sizes: colSizes, className: b('item') }, child)))))));
21
23
  };
22
24
  export default CardLayout;