@gravity-ui/page-constructor 1.7.1-alpha.1 → 1.7.1-alpha.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.
|
@@ -245,6 +245,14 @@ export declare const TabsBlock: {
|
|
|
245
245
|
description: {
|
|
246
246
|
type: string;
|
|
247
247
|
};
|
|
248
|
+
colSizes: {};
|
|
249
|
+
direction: {
|
|
250
|
+
type: string;
|
|
251
|
+
enum: string[];
|
|
252
|
+
};
|
|
253
|
+
centered: {
|
|
254
|
+
type: string;
|
|
255
|
+
};
|
|
248
256
|
items: {
|
|
249
257
|
type: string;
|
|
250
258
|
items: {
|
|
@@ -37,6 +37,9 @@ exports.TabsBlock = {
|
|
|
37
37
|
required: ['title', 'items'],
|
|
38
38
|
properties: Object.assign(Object.assign({}, common_1.BlockBaseProps), { title: common_1.TitleProps, description: {
|
|
39
39
|
type: 'string',
|
|
40
|
-
},
|
|
40
|
+
}, colSizes: common_1.containerSizesArray.reduce((acc, size) => (Object.assign(Object.assign({}, acc), { [size]: common_1.sizeNumber })), {}), direction: {
|
|
41
|
+
type: 'string',
|
|
42
|
+
enum: common_1.mediaDirection,
|
|
43
|
+
}, centered: { type: 'boolean' }, items: (0, utils_1.filteredArray)(exports.tabsItem) }),
|
|
41
44
|
},
|
|
42
45
|
};
|
|
@@ -245,6 +245,14 @@ export declare const TabsBlock: {
|
|
|
245
245
|
description: {
|
|
246
246
|
type: string;
|
|
247
247
|
};
|
|
248
|
+
colSizes: {};
|
|
249
|
+
direction: {
|
|
250
|
+
type: string;
|
|
251
|
+
enum: string[];
|
|
252
|
+
};
|
|
253
|
+
centered: {
|
|
254
|
+
type: string;
|
|
255
|
+
};
|
|
248
256
|
items: {
|
|
249
257
|
type: string;
|
|
250
258
|
items: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { filteredArray } from '../../schema/validators/utils';
|
|
2
|
-
import { LinkProps, withTheme, BlockBaseProps, TitleProps, MediaProps, } from '../../schema/validators/common';
|
|
2
|
+
import { LinkProps, withTheme, BlockBaseProps, TitleProps, MediaProps, containerSizesArray, sizeNumber, mediaDirection, } from '../../schema/validators/common';
|
|
3
3
|
import { ImageProps } from '../../components/Image/schema';
|
|
4
4
|
export const tabsItem = {
|
|
5
5
|
type: 'object',
|
|
@@ -34,6 +34,9 @@ export const TabsBlock = {
|
|
|
34
34
|
required: ['title', 'items'],
|
|
35
35
|
properties: Object.assign(Object.assign({}, BlockBaseProps), { title: TitleProps, description: {
|
|
36
36
|
type: 'string',
|
|
37
|
-
},
|
|
37
|
+
}, colSizes: containerSizesArray.reduce((acc, size) => (Object.assign(Object.assign({}, acc), { [size]: sizeNumber })), {}), direction: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
enum: mediaDirection,
|
|
40
|
+
}, centered: { type: 'boolean' }, items: filteredArray(tabsItem) }),
|
|
38
41
|
},
|
|
39
42
|
};
|