@gravity-ui/page-constructor 1.7.1-alpha.0 → 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
- }, items: (0, utils_1.filteredArray)(exports.tabsItem) }),
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
  };
@@ -1,4 +1,4 @@
1
- .pc-Image {
1
+ .pc-image {
2
2
  height: 100%;
3
3
  width: 100%;
4
4
  }
@@ -5,7 +5,7 @@ const react_1 = (0, tslib_1.__importStar)(require("react"));
5
5
  const projectSettingsContext_1 = require("../../context/projectSettingsContext");
6
6
  const constants_1 = require("../../constants");
7
7
  const utils_1 = require("../../utils");
8
- const b = (0, utils_1.block)('Image');
8
+ const b = (0, utils_1.block)('image');
9
9
  const checkWebP = (src) => {
10
10
  return src.endsWith('.webp') ? src : src + '.webp';
11
11
  };
@@ -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
- }, items: filteredArray(tabsItem) }),
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
  };
@@ -1,4 +1,4 @@
1
- .pc-Image {
1
+ .pc-image {
2
2
  height: 100%;
3
3
  width: 100%;
4
4
  }
@@ -3,7 +3,7 @@ import { ProjectSettingsContext } from '../../context/projectSettingsContext';
3
3
  import { BREAKPOINTS } from '../../constants';
4
4
  import { block } from '../../utils';
5
5
  import './Image.css';
6
- const b = block('Image');
6
+ const b = block('image');
7
7
  const checkWebP = (src) => {
8
8
  return src.endsWith('.webp') ? src : src + '.webp';
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "1.7.1-alpha.0",
3
+ "version": "1.7.1-alpha.2",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {