@gravity-ui/page-constructor 4.52.0 → 4.54.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.
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +2 -2
- package/build/cjs/blocks/Media/Media.css +3 -0
- package/build/cjs/blocks/Media/Media.js +1 -1
- package/build/cjs/sub-blocks/BasicCard/BasicCard.js +2 -2
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +2 -2
- package/build/esm/blocks/Media/Media.css +3 -0
- package/build/esm/blocks/Media/Media.js +1 -1
- package/build/esm/sub-blocks/BasicCard/BasicCard.js +2 -2
- package/package.json +1 -1
- package/styles/storybook/common.scss +8 -0
- package/widget/index.js +1 -1
|
@@ -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;
|
|
@@ -20,7 +20,7 @@ const MediaBlock = (props) => {
|
|
|
20
20
|
const mediaThemed = (0, utils_1.getThemedValue)(media, theme);
|
|
21
21
|
return (react_1.default.createElement(MediaBase_1.default, Object.assign({}, props, { onScroll: () => setPlay(true) }),
|
|
22
22
|
react_1.default.createElement(MediaBase_1.default.Card, null,
|
|
23
|
-
react_1.default.createElement(Media_1.default, Object.assign({}, mediaThemed, { playVideo: play, className: b({ border: borderSelected }) })))));
|
|
23
|
+
react_1.default.createElement(Media_1.default, Object.assign({ imageClassName: b('image') }, mediaThemed, { playVideo: play, className: b({ border: borderSelected }) })))));
|
|
24
24
|
};
|
|
25
25
|
exports.MediaBlock = MediaBlock;
|
|
26
26
|
exports.default = exports.MediaBlock;
|
|
@@ -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;
|
|
@@ -17,6 +17,6 @@ export const MediaBlock = (props) => {
|
|
|
17
17
|
const mediaThemed = getThemedValue(media, theme);
|
|
18
18
|
return (React.createElement(MediaBase, Object.assign({}, props, { onScroll: () => setPlay(true) }),
|
|
19
19
|
React.createElement(MediaBase.Card, null,
|
|
20
|
-
React.createElement(Media, Object.assign({}, mediaThemed, { playVideo: play, className: b({ border: borderSelected }) })))));
|
|
20
|
+
React.createElement(Media, Object.assign({ imageClassName: b('image') }, mediaThemed, { playVideo: play, className: b({ border: borderSelected }) })))));
|
|
21
21
|
};
|
|
22
22
|
export default MediaBlock;
|
|
@@ -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,3 +1,5 @@
|
|
|
1
|
+
@import '../mixins';
|
|
2
|
+
|
|
1
3
|
.demo-container {
|
|
2
4
|
min-height: calc(100vh - 1px);
|
|
3
5
|
padding: 50px;
|
|
@@ -35,3 +37,9 @@
|
|
|
35
37
|
--pc-first-block-indent: 64px;
|
|
36
38
|
margin-bottom: 120px;
|
|
37
39
|
}
|
|
40
|
+
|
|
41
|
+
.pc-layout {
|
|
42
|
+
@include add-specificity(&) {
|
|
43
|
+
min-height: auto;
|
|
44
|
+
}
|
|
45
|
+
}
|