@gravity-ui/page-constructor 4.52.0 → 4.53.0

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.
@@ -22,7 +22,7 @@ const ExtendedFeaturesBlock = ({ title, description, items, colSizes = DEFAULT_S
22
22
  return (react_1.default.createElement(components_1.AnimateBlock, { className: b(), animate: animated },
23
23
  react_1.default.createElement(components_1.Title, { title: title, subtitle: description, className: b('header') }),
24
24
  react_1.default.createElement("div", { className: b('items') },
25
- react_1.default.createElement(grid_1.Row, null, items.map(({ title: itemTitle, text, link, links, label, icon, buttons, additionalInfo, }) => {
25
+ react_1.default.createElement(grid_1.Row, null, items.map(({ title: itemTitle, text, list, link, links, label, icon, buttons, additionalInfo, }) => {
26
26
  const itemLinks = links || [];
27
27
  const iconThemed = icon && (0, utils_2.getThemedValue)(icon, theme);
28
28
  const iconData = iconThemed && (0, utils_1.getMediaImage)(iconThemed);
@@ -38,7 +38,7 @@ const ExtendedFeaturesBlock = ({ title, description, items, colSizes = DEFAULT_S
38
38
  }, react_1.default.createElement(react_1.default.Fragment, null,
39
39
  react_1.default.createElement(components_1.HTML, null, itemTitle),
40
40
  label && (react_1.default.createElement("span", { className: b('item-label') }, label)))),
41
- react_1.default.createElement(sub_blocks_1.Content, { text: text, links: itemLinks, size: "s", colSizes: { all: 12, md: 12 }, buttons: buttons, additionalInfo: additionalInfo }))));
41
+ react_1.default.createElement(sub_blocks_1.Content, { text: text, links: itemLinks, size: "s", list: list, colSizes: { all: 12, md: 12 }, buttons: buttons, additionalInfo: additionalInfo }))));
42
42
  })))));
43
43
  };
44
44
  exports.ExtendedFeaturesBlock = ExtendedFeaturesBlock;
@@ -10,12 +10,12 @@ const utils_1 = require("../../utils");
10
10
  const Content_1 = tslib_1.__importDefault(require("../Content/Content"));
11
11
  const b = (0, utils_1.block)('basic-card');
12
12
  const BasicCard = (props) => {
13
- const { title, text, icon, additionalInfo, links, buttons, iconPosition = sub_blocks_1.IconPosition.Top } = props, cardParams = tslib_1.__rest(props, ["title", "text", "icon", "additionalInfo", "links", "buttons", "iconPosition"]);
13
+ const { title, text, icon, additionalInfo, links, list, buttons, iconPosition = sub_blocks_1.IconPosition.Top } = props, cardParams = tslib_1.__rest(props, ["title", "text", "icon", "additionalInfo", "links", "list", "buttons", "iconPosition"]);
14
14
  const titleId = (0, uikit_1.useUniqId)();
15
15
  const descriptionId = (0, uikit_1.useUniqId)();
16
16
  return (react_1.default.createElement(CardBase_1.default, Object.assign({ className: b() }, cardParams, { extraProps: { 'aria-describedby': descriptionId, 'aria-labelledby': titleId } }),
17
17
  react_1.default.createElement(CardBase_1.default.Content, null,
18
18
  react_1.default.createElement(IconWrapper_1.default, { icon: icon ? { value: icon, position: iconPosition } : undefined },
19
- react_1.default.createElement(Content_1.default, { title: title, titleId: titleId, text: text, textId: descriptionId, additionalInfo: additionalInfo, links: links, buttons: buttons, size: "s", colSizes: { all: 12, md: 12 } })))));
19
+ react_1.default.createElement(Content_1.default, { title: title, titleId: titleId, text: text, textId: descriptionId, additionalInfo: additionalInfo, links: links, list: list, buttons: buttons, size: "s", colSizes: { all: 12, md: 12 } })))));
20
20
  };
21
21
  exports.default = BasicCard;
@@ -19,7 +19,7 @@ export const ExtendedFeaturesBlock = ({ title, description, items, colSizes = DE
19
19
  return (React.createElement(AnimateBlock, { className: b(), animate: animated },
20
20
  React.createElement(Title, { title: title, subtitle: description, className: b('header') }),
21
21
  React.createElement("div", { className: b('items') },
22
- React.createElement(Row, null, items.map(({ title: itemTitle, text, link, links, label, icon, buttons, additionalInfo, }) => {
22
+ React.createElement(Row, null, items.map(({ title: itemTitle, text, list, link, links, label, icon, buttons, additionalInfo, }) => {
23
23
  const itemLinks = links || [];
24
24
  const iconThemed = icon && getThemedValue(icon, theme);
25
25
  const iconData = iconThemed && getMediaImage(iconThemed);
@@ -35,7 +35,7 @@ export const ExtendedFeaturesBlock = ({ title, description, items, colSizes = DE
35
35
  }, React.createElement(React.Fragment, null,
36
36
  React.createElement(HTML, null, itemTitle),
37
37
  label && (React.createElement("span", { className: b('item-label') }, label)))),
38
- React.createElement(Content, { text: text, links: itemLinks, size: "s", colSizes: { all: 12, md: 12 }, buttons: buttons, additionalInfo: additionalInfo }))));
38
+ React.createElement(Content, { text: text, links: itemLinks, size: "s", list: list, colSizes: { all: 12, md: 12 }, buttons: buttons, additionalInfo: additionalInfo }))));
39
39
  })))));
40
40
  };
41
41
  export default ExtendedFeaturesBlock;
@@ -9,12 +9,12 @@ import Content from '../Content/Content';
9
9
  import './BasicCard.css';
10
10
  const b = block('basic-card');
11
11
  const BasicCard = (props) => {
12
- const { title, text, icon, additionalInfo, links, buttons, iconPosition = IconPosition.Top } = props, cardParams = __rest(props, ["title", "text", "icon", "additionalInfo", "links", "buttons", "iconPosition"]);
12
+ const { title, text, icon, additionalInfo, links, list, buttons, iconPosition = IconPosition.Top } = props, cardParams = __rest(props, ["title", "text", "icon", "additionalInfo", "links", "list", "buttons", "iconPosition"]);
13
13
  const titleId = useUniqId();
14
14
  const descriptionId = useUniqId();
15
15
  return (React.createElement(CardBase, Object.assign({ className: b() }, cardParams, { extraProps: { 'aria-describedby': descriptionId, 'aria-labelledby': titleId } }),
16
16
  React.createElement(CardBase.Content, null,
17
17
  React.createElement(IconWrapper, { icon: icon ? { value: icon, position: iconPosition } : undefined },
18
- React.createElement(Content, { title: title, titleId: titleId, text: text, textId: descriptionId, additionalInfo: additionalInfo, links: links, buttons: buttons, size: "s", colSizes: { all: 12, md: 12 } })))));
18
+ React.createElement(Content, { title: title, titleId: titleId, text: text, textId: descriptionId, additionalInfo: additionalInfo, links: links, list: list, buttons: buttons, size: "s", colSizes: { all: 12, md: 12 } })))));
19
19
  };
20
20
  export default BasicCard;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "4.52.0",
3
+ "version": "4.53.0",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {