@doyourjob/gravity-ui-page-constructor 5.31.138-dev.0 → 5.31.138-dev.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.
@@ -5,15 +5,14 @@ const tslib_1 = require("tslib");
5
5
  const react_1 = tslib_1.__importDefault(require("react"));
6
6
  const uikit_1 = require("@gravity-ui/uikit");
7
7
  const components_1 = require("../../components");
8
- const AnimateBlock_1 = tslib_1.__importDefault(require("../../components/AnimateBlock/AnimateBlock"));
9
8
  const grid_1 = require("../../grid");
10
9
  const utils_1 = require("../../utils");
11
10
  const b = (0, utils_1.block)('advantages-block');
12
11
  const colSizesHeader = { all: 12, xl: 6 };
13
12
  const colSizesBody = { all: 12, xl: 6 };
14
13
  const AdvantagesBlock = (props) => {
15
- const { animated, title, link, logo, items } = props;
16
- return (react_1.default.createElement(AnimateBlock_1.default, { className: b(), animate: animated },
14
+ const { title, link, logo, items } = props;
15
+ return (react_1.default.createElement("div", { className: b() },
17
16
  react_1.default.createElement(grid_1.Grid, null,
18
17
  react_1.default.createElement(grid_1.Row, null,
19
18
  react_1.default.createElement(grid_1.Col, { sizes: colSizesHeader, className: b('header') },
@@ -44,9 +44,6 @@ export declare const AdvantagesBlock: {
44
44
  };
45
45
  };
46
46
  };
47
- animated: {
48
- type: string;
49
- };
50
47
  type: {};
51
48
  when: {
52
49
  type: string;
@@ -6,7 +6,7 @@ exports.AdvantagesBlock = {
6
6
  'advantages-block': {
7
7
  additionalProperties: false,
8
8
  required: false,
9
- properties: Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.AnimatableProps), { title: {
9
+ properties: Object.assign(Object.assign({}, common_1.BaseProps), { title: {
10
10
  type: 'string',
11
11
  }, link: {
12
12
  type: 'object',
@@ -259,7 +259,7 @@ export interface LogoRotatorBlockProps extends Animatable {
259
259
  count: number;
260
260
  colSizes?: Partial<Record<GridColumnSize, number>>;
261
261
  }
262
- export interface AdvantagesBlockProps extends Animatable {
262
+ export interface AdvantagesBlockProps {
263
263
  title?: string;
264
264
  link?: Pick<LinkProps, 'text' | 'url'>;
265
265
  logo?: string;
@@ -270,7 +270,7 @@ export interface StoryCardProps {
270
270
  logo?: string;
271
271
  avatar?: string;
272
272
  autor?: string;
273
- items?: {
273
+ data?: {
274
274
  value: string;
275
275
  label?: string;
276
276
  }[];
@@ -167,7 +167,7 @@ export declare const cardSchemas: {
167
167
  autor: {
168
168
  type: string;
169
169
  };
170
- items: {
170
+ data: {
171
171
  type: string;
172
172
  items: {
173
173
  type: string;
@@ -10,7 +10,7 @@ const columnSizes = {
10
10
  all: 12,
11
11
  lg: 4,
12
12
  };
13
- const StoryCard = ({ title, text, quote, logo, avatar, autor, items, background, }) => {
13
+ const StoryCard = ({ title, text, quote, logo, avatar, autor, data, background, }) => {
14
14
  return (react_1.default.createElement("div", { className: b() },
15
15
  react_1.default.createElement("div", { className: b('background'), style: { background } }),
16
16
  title && react_1.default.createElement(components_1.Title, { title: title, className: b('title') }),
@@ -18,7 +18,7 @@ const StoryCard = ({ title, text, quote, logo, avatar, autor, items, background,
18
18
  react_1.default.createElement(grid_1.Col, { className: b('col'), sizes: columnSizes },
19
19
  react_1.default.createElement("div", { className: b('box') },
20
20
  react_1.default.createElement(components_1.HTML, { className: b('text') }, text))),
21
- react_1.default.createElement(grid_1.Col, { className: b('col'), sizes: columnSizes }, items === null || items === void 0 ? void 0 : items.map((item, index) => (react_1.default.createElement("div", { key: index, className: b('box', { centered: true }) },
21
+ react_1.default.createElement(grid_1.Col, { className: b('col'), sizes: columnSizes }, data === null || data === void 0 ? void 0 : data.map((item, index) => (react_1.default.createElement("div", { key: index, className: b('box', { centered: true }) },
22
22
  react_1.default.createElement("div", { className: b('value') }, item.value),
23
23
  react_1.default.createElement("div", { className: b('label') }, item.label))))),
24
24
  react_1.default.createElement(grid_1.Col, { className: b('col'), sizes: columnSizes },
@@ -165,7 +165,7 @@ export declare const StoryCard: {
165
165
  autor: {
166
166
  type: string;
167
167
  };
168
- items: {
168
+ data: {
169
169
  type: string;
170
170
  items: {
171
171
  type: string;
@@ -6,7 +6,7 @@ exports.StoryCard = {
6
6
  'story-card': {
7
7
  additionalProperties: false,
8
8
  required: [],
9
- properties: Object.assign(Object.assign({}, common_1.BlockBaseProps), { title: common_1.BlockHeaderProps.title, text: { type: 'string' }, quote: { type: 'string' }, logo: { type: 'string' }, avatar: { type: 'string' }, autor: { type: 'string' }, items: {
9
+ properties: Object.assign(Object.assign({}, common_1.BlockBaseProps), { title: common_1.BlockHeaderProps.title, text: { type: 'string' }, quote: { type: 'string' }, logo: { type: 'string' }, avatar: { type: 'string' }, autor: { type: 'string' }, data: {
10
10
  type: 'array',
11
11
  items: {
12
12
  type: 'object',
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Link } from '@gravity-ui/uikit';
3
3
  import { HTML, Image, RouterLink } from '../../components';
4
- import AnimateBlock from '../../components/AnimateBlock/AnimateBlock';
5
4
  import { Col, Grid, Row } from '../../grid';
6
5
  import { block } from '../../utils';
7
6
  import './Advantages.css';
@@ -9,8 +8,8 @@ const b = block('advantages-block');
9
8
  const colSizesHeader = { all: 12, xl: 6 };
10
9
  const colSizesBody = { all: 12, xl: 6 };
11
10
  export const AdvantagesBlock = (props) => {
12
- const { animated, title, link, logo, items } = props;
13
- return (React.createElement(AnimateBlock, { className: b(), animate: animated },
11
+ const { title, link, logo, items } = props;
12
+ return (React.createElement("div", { className: b() },
14
13
  React.createElement(Grid, null,
15
14
  React.createElement(Row, null,
16
15
  React.createElement(Col, { sizes: colSizesHeader, className: b('header') },
@@ -44,9 +44,6 @@ export declare const AdvantagesBlock: {
44
44
  };
45
45
  };
46
46
  };
47
- animated: {
48
- type: string;
49
- };
50
47
  type: {};
51
48
  when: {
52
49
  type: string;
@@ -1,9 +1,9 @@
1
- import { AnimatableProps, BaseProps } from '../../schema/validators/common';
1
+ import { BaseProps } from '../../schema/validators/common';
2
2
  export const AdvantagesBlock = {
3
3
  'advantages-block': {
4
4
  additionalProperties: false,
5
5
  required: false,
6
- properties: Object.assign(Object.assign(Object.assign({}, BaseProps), AnimatableProps), { title: {
6
+ properties: Object.assign(Object.assign({}, BaseProps), { title: {
7
7
  type: 'string',
8
8
  }, link: {
9
9
  type: 'object',
@@ -259,7 +259,7 @@ export interface LogoRotatorBlockProps extends Animatable {
259
259
  count: number;
260
260
  colSizes?: Partial<Record<GridColumnSize, number>>;
261
261
  }
262
- export interface AdvantagesBlockProps extends Animatable {
262
+ export interface AdvantagesBlockProps {
263
263
  title?: string;
264
264
  link?: Pick<LinkProps, 'text' | 'url'>;
265
265
  logo?: string;
@@ -270,7 +270,7 @@ export interface StoryCardProps {
270
270
  logo?: string;
271
271
  avatar?: string;
272
272
  autor?: string;
273
- items?: {
273
+ data?: {
274
274
  value: string;
275
275
  label?: string;
276
276
  }[];
@@ -167,7 +167,7 @@ export declare const cardSchemas: {
167
167
  autor: {
168
168
  type: string;
169
169
  };
170
- items: {
170
+ data: {
171
171
  type: string;
172
172
  items: {
173
173
  type: string;
@@ -8,7 +8,7 @@ const columnSizes = {
8
8
  all: 12,
9
9
  lg: 4,
10
10
  };
11
- const StoryCard = ({ title, text, quote, logo, avatar, autor, items, background, }) => {
11
+ const StoryCard = ({ title, text, quote, logo, avatar, autor, data, background, }) => {
12
12
  return (React.createElement("div", { className: b() },
13
13
  React.createElement("div", { className: b('background'), style: { background } }),
14
14
  title && React.createElement(Title, { title: title, className: b('title') }),
@@ -16,7 +16,7 @@ const StoryCard = ({ title, text, quote, logo, avatar, autor, items, background,
16
16
  React.createElement(Col, { className: b('col'), sizes: columnSizes },
17
17
  React.createElement("div", { className: b('box') },
18
18
  React.createElement(HTML, { className: b('text') }, text))),
19
- React.createElement(Col, { className: b('col'), sizes: columnSizes }, items === null || items === void 0 ? void 0 : items.map((item, index) => (React.createElement("div", { key: index, className: b('box', { centered: true }) },
19
+ React.createElement(Col, { className: b('col'), sizes: columnSizes }, data === null || data === void 0 ? void 0 : data.map((item, index) => (React.createElement("div", { key: index, className: b('box', { centered: true }) },
20
20
  React.createElement("div", { className: b('value') }, item.value),
21
21
  React.createElement("div", { className: b('label') }, item.label))))),
22
22
  React.createElement(Col, { className: b('col'), sizes: columnSizes },
@@ -165,7 +165,7 @@ export declare const StoryCard: {
165
165
  autor: {
166
166
  type: string;
167
167
  };
168
- items: {
168
+ data: {
169
169
  type: string;
170
170
  items: {
171
171
  type: string;
@@ -3,7 +3,7 @@ export const StoryCard = {
3
3
  'story-card': {
4
4
  additionalProperties: false,
5
5
  required: [],
6
- properties: Object.assign(Object.assign({}, BlockBaseProps), { title: BlockHeaderProps.title, text: { type: 'string' }, quote: { type: 'string' }, logo: { type: 'string' }, avatar: { type: 'string' }, autor: { type: 'string' }, items: {
6
+ properties: Object.assign(Object.assign({}, BlockBaseProps), { title: BlockHeaderProps.title, text: { type: 'string' }, quote: { type: 'string' }, logo: { type: 'string' }, avatar: { type: 'string' }, autor: { type: 'string' }, data: {
7
7
  type: 'array',
8
8
  items: {
9
9
  type: 'object',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doyourjob/gravity-ui-page-constructor",
3
- "version": "5.31.138-dev.0",
3
+ "version": "5.31.138-dev.2",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {