@gravity-ui/page-constructor 4.47.0-beta.0 → 4.47.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.
- package/README.md +2 -2
- package/build/cjs/blocks/CardLayout/CardLayout.css +278 -1
- package/build/cjs/blocks/CardLayout/CardLayout.js +2 -1
- package/build/cjs/blocks/CardLayout/schema.d.ts +134 -62
- package/build/cjs/blocks/CardLayout/schema.js +6 -1
- package/build/cjs/blocks/ContentLayout/schema.d.ts +123 -65
- package/build/cjs/blocks/ContentLayout/schema.js +1 -1
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.css +270 -0
- package/build/cjs/blocks/Form/Form.css +4 -2
- package/build/cjs/blocks/Header/schema.d.ts +3 -33
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +1 -11
- package/build/cjs/blocks/Map/Map.css +14 -0
- package/build/cjs/blocks/Map/Map.d.ts +1 -1
- package/build/cjs/blocks/Map/Map.js +9 -2
- package/build/cjs/blocks/Map/schema.d.ts +4 -0
- package/build/cjs/blocks/Media/Media.css +14 -0
- package/build/cjs/blocks/Media/Media.js +8 -2
- package/build/cjs/blocks/Media/schema.d.ts +16 -22
- package/build/cjs/blocks/Media/schema.js +9 -2
- package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +270 -0
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +1 -11
- package/build/cjs/blocks/Slider/Slider.css +270 -0
- package/build/cjs/blocks/Tabs/schema.d.ts +1 -11
- package/build/cjs/components/BalancedMasonry/BalancedMasonry.js +1 -1
- package/build/cjs/components/Image/schema.d.ts +102 -1
- package/build/cjs/components/Image/schema.js +9 -3
- package/build/cjs/components/Map/GoogleMap.js +2 -2
- package/build/cjs/components/Map/YMap/YandexMap.js +2 -2
- package/build/cjs/components/Media/Iframe/Iframe.css +4 -0
- package/build/cjs/components/Media/Iframe/Iframe.js +4 -64
- package/build/cjs/components/MediaBase/MediaBase.css +6 -0
- package/build/cjs/components/MediaBase/MediaBase.js +2 -2
- package/build/cjs/constructor-items.d.ts +1 -1
- package/build/cjs/editor/data/templates/banner-block.json +1 -2
- package/build/cjs/editor/data/templates/card-layout-block.json +3 -3
- package/build/cjs/editor/data/templates/companies-block.json +3 -9
- package/build/cjs/editor/data/templates/extended-features-block.json +3 -6
- package/build/cjs/editor/data/templates/filter-block.json +3 -3
- package/build/cjs/editor/data/templates/form-block.json +1 -1
- package/build/cjs/editor/data/templates/header-slider-block.json +2 -12
- package/build/cjs/editor/data/templates/icons-block.json +5 -5
- package/build/cjs/editor/data/templates/media-block.json +1 -4
- package/build/cjs/editor/data/templates/promo-features-block.json +5 -5
- package/build/cjs/editor/data/templates/slider-block.json +5 -5
- package/build/cjs/editor/data/templates/tabs-block.json +9 -42
- package/build/cjs/grid/Col/Col.d.ts +1 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +6 -5
- package/build/cjs/models/constructor-items/common.d.ts +12 -5
- package/build/cjs/schema/constants.d.ts +2 -12
- package/build/cjs/schema/validators/common.d.ts +5 -11
- package/build/cjs/schema/validators/common.js +7 -10
- package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +1 -1
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +1 -11
- package/build/cjs/sub-blocks/MediaCard/schema.d.ts +1 -11
- package/build/cjs/utils/borderSelector.d.ts +7 -0
- package/build/cjs/utils/borderSelector.js +18 -0
- package/build/esm/blocks/CardLayout/CardLayout.css +278 -1
- package/build/esm/blocks/CardLayout/CardLayout.js +3 -1
- package/build/esm/blocks/CardLayout/schema.d.ts +134 -62
- package/build/esm/blocks/CardLayout/schema.js +8 -3
- package/build/esm/blocks/ContentLayout/schema.d.ts +123 -65
- package/build/esm/blocks/ContentLayout/schema.js +2 -2
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.css +270 -0
- package/build/esm/blocks/Form/Form.css +4 -2
- package/build/esm/blocks/Header/schema.d.ts +3 -33
- package/build/esm/blocks/HeaderSlider/schema.d.ts +1 -11
- package/build/esm/blocks/Map/Map.css +14 -0
- package/build/esm/blocks/Map/Map.d.ts +2 -1
- package/build/esm/blocks/Map/Map.js +10 -2
- package/build/esm/blocks/Map/schema.d.ts +4 -0
- package/build/esm/blocks/Media/Media.css +14 -0
- package/build/esm/blocks/Media/Media.d.ts +1 -0
- package/build/esm/blocks/Media/Media.js +10 -3
- package/build/esm/blocks/Media/schema.d.ts +16 -22
- package/build/esm/blocks/Media/schema.js +9 -2
- package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +270 -0
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +1 -11
- package/build/esm/blocks/Slider/Slider.css +270 -0
- package/build/esm/blocks/Tabs/schema.d.ts +1 -11
- package/build/esm/components/BalancedMasonry/BalancedMasonry.js +1 -1
- package/build/esm/components/Image/schema.d.ts +102 -1
- package/build/esm/components/Image/schema.js +8 -2
- package/build/esm/components/Map/GoogleMap.js +2 -2
- package/build/esm/components/Map/YMap/YandexMap.js +2 -2
- package/build/esm/components/Media/Iframe/Iframe.css +4 -0
- package/build/esm/components/Media/Iframe/Iframe.js +4 -64
- package/build/esm/components/MediaBase/MediaBase.css +6 -0
- package/build/esm/components/MediaBase/MediaBase.js +2 -2
- package/build/esm/constructor-items.d.ts +1 -1
- package/build/esm/editor/data/templates/banner-block.json +1 -2
- package/build/esm/editor/data/templates/card-layout-block.json +3 -3
- package/build/esm/editor/data/templates/companies-block.json +3 -9
- package/build/esm/editor/data/templates/extended-features-block.json +3 -6
- package/build/esm/editor/data/templates/filter-block.json +3 -3
- package/build/esm/editor/data/templates/form-block.json +1 -1
- package/build/esm/editor/data/templates/header-slider-block.json +2 -12
- package/build/esm/editor/data/templates/icons-block.json +5 -5
- package/build/esm/editor/data/templates/media-block.json +1 -4
- package/build/esm/editor/data/templates/promo-features-block.json +5 -5
- package/build/esm/editor/data/templates/slider-block.json +5 -5
- package/build/esm/editor/data/templates/tabs-block.json +9 -42
- package/build/esm/grid/Col/Col.d.ts +1 -1
- package/build/esm/models/constructor-items/blocks.d.ts +6 -5
- package/build/esm/models/constructor-items/common.d.ts +12 -5
- package/build/esm/schema/constants.d.ts +2 -12
- package/build/esm/schema/validators/common.d.ts +5 -11
- package/build/esm/schema/validators/common.js +6 -9
- package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +1 -1
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +1 -11
- package/build/esm/sub-blocks/MediaCard/schema.d.ts +1 -11
- package/build/esm/utils/borderSelector.d.ts +7 -0
- package/build/esm/utils/borderSelector.js +14 -0
- package/package.json +2 -4
- package/server/models/constructor-items/blocks.d.ts +6 -5
- package/server/models/constructor-items/common.d.ts +12 -5
- package/styles/mixins.scss +30 -10
- package/widget/index.js +1 -1
- package/build/cjs/editor/data/templates/preview-block.json +0 -38
- package/build/cjs/editor/data/templates/security-block.json +0 -36
- package/build/cjs/editor/data/templates/simple-block.json +0 -7
- package/build/esm/editor/data/templates/preview-block.json +0 -38
- package/build/esm/editor/data/templates/security-block.json +0 -36
- package/build/esm/editor/data/templates/simple-block.json +0 -7
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @gravity-ui/page-constructor · [](https://www.npmjs.com/package/@gravity-ui/page-constructor) [](https://github.com/gravity-ui/page-constructor/actions/workflows/ci.yml?query=branch:main) [](https://github.com/gravity-ui/page-constructor/actions/workflows/release.yml?query=branch:main) [](https://preview.
|
|
1
|
+
# @gravity-ui/page-constructor · [](https://www.npmjs.com/package/@gravity-ui/page-constructor) [](https://github.com/gravity-ui/page-constructor/actions/workflows/ci.yml?query=branch:main) [](https://github.com/gravity-ui/page-constructor/actions/workflows/release.yml?query=branch:main) [](https://preview.gravity-ui.com/page-constructor/)
|
|
2
2
|
|
|
3
3
|
## Page constructor
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
When creating pages, component-based approach is used: a page is built using a set of ready-made blocks that can be placed in any order. Each block has a certain type and set of input data parameters.
|
|
8
8
|
|
|
9
|
-
For the format of input data and list of available blocks, see the [documentation](https://preview.
|
|
9
|
+
For the format of input data and list of available blocks, see the [documentation](https://preview.gravity-ui.com/page-constructor/?path=/docs/documentation-blocks--docs).
|
|
10
10
|
|
|
11
11
|
## Install
|
|
12
12
|
|
|
@@ -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 {
|
|
@@ -16,12 +20,15 @@ unpredictable css rules order in build */
|
|
|
16
20
|
left: 0;
|
|
17
21
|
width: 100%;
|
|
18
22
|
height: 100%;
|
|
19
|
-
border-radius:
|
|
23
|
+
border-radius: 32px;
|
|
20
24
|
}
|
|
21
25
|
.pc-card-layout-block__image img {
|
|
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
|
}
|
|
@@ -13,12 +13,13 @@ const DEFAULT_SIZES = {
|
|
|
13
13
|
};
|
|
14
14
|
const b = (0, utils_1.block)('card-layout-block');
|
|
15
15
|
const CardLayout = ({ title, description, animated, colSizes = DEFAULT_SIZES, children, className, titleClassName, background, }) => {
|
|
16
|
+
const _a = background || {}, { border } = _a, backgroundImageProps = tslib_1.__rest(_a, ["border"]);
|
|
16
17
|
return (react_1.default.createElement(components_1.AnimateBlock, { className: b(null, className), animate: animated },
|
|
17
18
|
(title || description) && (react_1.default.createElement(components_1.Title, { title: title, subtitle: description, className: titleClassName })),
|
|
18
19
|
react_1.default.createElement("div", { className: b('content', {
|
|
19
20
|
'with-background': !(0, isEmpty_1.default)(background),
|
|
20
21
|
}) },
|
|
21
|
-
react_1.default.createElement(components_1.BackgroundImage, Object.assign({ className: b('image') },
|
|
22
|
+
react_1.default.createElement(components_1.BackgroundImage, Object.assign({ className: b('image', { border }) }, backgroundImageProps)),
|
|
22
23
|
react_1.default.createElement(grid_1.Row, null, react_1.default.Children.map(children, (child, index) => (react_1.default.createElement(grid_1.Col, { key: index, sizes: colSizes, className: b('item') }, child)))))));
|
|
23
24
|
};
|
|
24
25
|
exports.default = CardLayout;
|
|
@@ -8,41 +8,77 @@ export declare const CardLayoutProps: {
|
|
|
8
8
|
properties: {};
|
|
9
9
|
};
|
|
10
10
|
background: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
11
|
+
anyOf: ({
|
|
12
|
+
properties: {
|
|
13
|
+
border: {
|
|
14
|
+
type: string;
|
|
15
|
+
enum: string[];
|
|
16
|
+
};
|
|
17
|
+
src: {
|
|
18
|
+
type: string;
|
|
19
|
+
pattern: string;
|
|
20
|
+
};
|
|
21
|
+
style: {
|
|
22
|
+
type: string;
|
|
23
|
+
additionalProperties: boolean;
|
|
24
|
+
required: never[];
|
|
25
|
+
properties: {
|
|
26
|
+
backgroundColor: {
|
|
27
|
+
type: string;
|
|
28
|
+
};
|
|
29
|
+
height: {
|
|
30
|
+
type: string[];
|
|
31
|
+
};
|
|
32
|
+
width: {
|
|
33
|
+
type: string[];
|
|
34
|
+
};
|
|
35
|
+
color: {
|
|
36
|
+
type: string;
|
|
37
|
+
};
|
|
35
38
|
};
|
|
36
39
|
};
|
|
40
|
+
alt: {
|
|
41
|
+
type: string;
|
|
42
|
+
contentType: string;
|
|
43
|
+
};
|
|
44
|
+
disableCompress: {
|
|
45
|
+
type: string;
|
|
46
|
+
};
|
|
37
47
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
48
|
+
optionName: string;
|
|
49
|
+
type: string;
|
|
50
|
+
additionalProperties: boolean;
|
|
51
|
+
} | {
|
|
52
|
+
properties: {
|
|
53
|
+
border: {
|
|
54
|
+
type: string;
|
|
55
|
+
enum: string[];
|
|
56
|
+
};
|
|
57
|
+
desktop: {
|
|
58
|
+
type: string;
|
|
59
|
+
pattern: string;
|
|
60
|
+
};
|
|
61
|
+
tablet: {
|
|
62
|
+
type: string;
|
|
63
|
+
pattern: string;
|
|
64
|
+
};
|
|
65
|
+
mobile: {
|
|
66
|
+
type: string;
|
|
67
|
+
pattern: string;
|
|
68
|
+
};
|
|
69
|
+
alt: {
|
|
70
|
+
type: string;
|
|
71
|
+
contentType: string;
|
|
72
|
+
};
|
|
73
|
+
disableCompress: {
|
|
74
|
+
type: string;
|
|
75
|
+
};
|
|
44
76
|
};
|
|
45
|
-
|
|
77
|
+
optionName: string;
|
|
78
|
+
type: string;
|
|
79
|
+
additionalProperties: boolean;
|
|
80
|
+
required: string[];
|
|
81
|
+
})[];
|
|
46
82
|
};
|
|
47
83
|
children: {
|
|
48
84
|
type: string;
|
|
@@ -144,41 +180,77 @@ export declare const CardLayoutBlock: {
|
|
|
144
180
|
properties: {};
|
|
145
181
|
};
|
|
146
182
|
background: {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
183
|
+
anyOf: ({
|
|
184
|
+
properties: {
|
|
185
|
+
border: {
|
|
186
|
+
type: string;
|
|
187
|
+
enum: string[];
|
|
188
|
+
};
|
|
189
|
+
src: {
|
|
190
|
+
type: string;
|
|
191
|
+
pattern: string;
|
|
192
|
+
};
|
|
193
|
+
style: {
|
|
194
|
+
type: string;
|
|
195
|
+
additionalProperties: boolean;
|
|
196
|
+
required: never[];
|
|
197
|
+
properties: {
|
|
198
|
+
backgroundColor: {
|
|
199
|
+
type: string;
|
|
200
|
+
};
|
|
201
|
+
height: {
|
|
202
|
+
type: string[];
|
|
203
|
+
};
|
|
204
|
+
width: {
|
|
205
|
+
type: string[];
|
|
206
|
+
};
|
|
207
|
+
color: {
|
|
208
|
+
type: string;
|
|
209
|
+
};
|
|
171
210
|
};
|
|
172
211
|
};
|
|
212
|
+
alt: {
|
|
213
|
+
type: string;
|
|
214
|
+
contentType: string;
|
|
215
|
+
};
|
|
216
|
+
disableCompress: {
|
|
217
|
+
type: string;
|
|
218
|
+
};
|
|
173
219
|
};
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
220
|
+
optionName: string;
|
|
221
|
+
type: string;
|
|
222
|
+
additionalProperties: boolean;
|
|
223
|
+
} | {
|
|
224
|
+
properties: {
|
|
225
|
+
border: {
|
|
226
|
+
type: string;
|
|
227
|
+
enum: string[];
|
|
228
|
+
};
|
|
229
|
+
desktop: {
|
|
230
|
+
type: string;
|
|
231
|
+
pattern: string;
|
|
232
|
+
};
|
|
233
|
+
tablet: {
|
|
234
|
+
type: string;
|
|
235
|
+
pattern: string;
|
|
236
|
+
};
|
|
237
|
+
mobile: {
|
|
238
|
+
type: string;
|
|
239
|
+
pattern: string;
|
|
240
|
+
};
|
|
241
|
+
alt: {
|
|
242
|
+
type: string;
|
|
243
|
+
contentType: string;
|
|
244
|
+
};
|
|
245
|
+
disableCompress: {
|
|
246
|
+
type: string;
|
|
247
|
+
};
|
|
180
248
|
};
|
|
181
|
-
|
|
249
|
+
optionName: string;
|
|
250
|
+
type: string;
|
|
251
|
+
additionalProperties: boolean;
|
|
252
|
+
required: string[];
|
|
253
|
+
})[];
|
|
182
254
|
};
|
|
183
255
|
children: {
|
|
184
256
|
type: string;
|
|
@@ -6,7 +6,12 @@ const common_1 = require("../../schema/validators/common");
|
|
|
6
6
|
exports.CardLayoutProps = {
|
|
7
7
|
additionalProperties: false,
|
|
8
8
|
required: [],
|
|
9
|
-
properties: Object.assign(Object.assign(Object.assign(Object.assign({}, common_1.BlockBaseProps), common_1.AnimatableProps), common_1.BlockHeaderProps), { colSizes: common_1.containerSizesObject, background:
|
|
9
|
+
properties: Object.assign(Object.assign(Object.assign(Object.assign({}, common_1.BlockBaseProps), common_1.AnimatableProps), common_1.BlockHeaderProps), { colSizes: common_1.containerSizesObject, background: {
|
|
10
|
+
anyOf: [
|
|
11
|
+
Object.assign(Object.assign({}, schema_1.ImageBaseObjectProps), { properties: Object.assign(Object.assign({}, schema_1.ImageBaseObjectProps.properties), { border: common_1.BorderProps }), optionName: 'options' }),
|
|
12
|
+
Object.assign(Object.assign({}, schema_1.ImageDeviceProps), { properties: Object.assign(Object.assign({}, schema_1.ImageDeviceProps.properties), { border: common_1.BorderProps }), optionName: 'device options' }),
|
|
13
|
+
],
|
|
14
|
+
}, children: common_1.ChildrenCardsProps }),
|
|
10
15
|
};
|
|
11
16
|
exports.CardLayoutBlock = {
|
|
12
17
|
'card-layout-block': exports.CardLayoutProps,
|