@gravity-ui/page-constructor 4.15.2 → 4.16.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/CardLayout/CardLayout.js +2 -2
- package/build/cjs/models/constructor-items/blocks.d.ts +1 -0
- package/build/esm/blocks/CardLayout/CardLayout.js +2 -2
- package/build/esm/models/constructor-items/blocks.d.ts +1 -0
- package/package.json +1 -1
- package/server/models/constructor-items/blocks.d.ts +1 -0
- package/widget/index.js +1 -1
|
@@ -11,7 +11,7 @@ const DEFAULT_SIZES = {
|
|
|
11
11
|
md: 4,
|
|
12
12
|
};
|
|
13
13
|
const b = (0, utils_1.block)('card-layout-block');
|
|
14
|
-
const CardLayout = ({ title, description, animated, colSizes = DEFAULT_SIZES, children, className, }) => (react_1.default.createElement(components_1.AnimateBlock, { className: b(null, className), animate: animated },
|
|
15
|
-
(title || description) && react_1.default.createElement(components_1.Title, { title: title, subtitle: description }),
|
|
14
|
+
const CardLayout = ({ title, description, animated, colSizes = DEFAULT_SIZES, children, className, titleClassName, }) => (react_1.default.createElement(components_1.AnimateBlock, { className: b(null, className), animate: animated },
|
|
15
|
+
(title || description) && (react_1.default.createElement(components_1.Title, { title: title, subtitle: description, className: titleClassName })),
|
|
16
16
|
react_1.default.createElement(grid_1.Row, null, react_1.default.Children.map(children, (child, index) => (react_1.default.createElement(grid_1.Col, { key: index, sizes: colSizes, className: b('item') }, child))))));
|
|
17
17
|
exports.default = CardLayout;
|
|
@@ -221,6 +221,7 @@ export interface TabsBlockProps extends Animatable {
|
|
|
221
221
|
}
|
|
222
222
|
export interface CardLayoutBlockProps extends Childable, Animatable, LoadableChildren {
|
|
223
223
|
title?: TitleItemProps | string;
|
|
224
|
+
titleClassName?: string;
|
|
224
225
|
description?: string;
|
|
225
226
|
colSizes?: GridColumnSizesType;
|
|
226
227
|
}
|
|
@@ -9,7 +9,7 @@ const DEFAULT_SIZES = {
|
|
|
9
9
|
md: 4,
|
|
10
10
|
};
|
|
11
11
|
const b = block('card-layout-block');
|
|
12
|
-
const CardLayout = ({ title, description, animated, colSizes = DEFAULT_SIZES, children, className, }) => (React.createElement(AnimateBlock, { className: b(null, className), animate: animated },
|
|
13
|
-
(title || description) && React.createElement(Title, { title: title, subtitle: description }),
|
|
12
|
+
const CardLayout = ({ title, description, animated, colSizes = DEFAULT_SIZES, children, className, titleClassName, }) => (React.createElement(AnimateBlock, { className: b(null, className), animate: animated },
|
|
13
|
+
(title || description) && (React.createElement(Title, { title: title, subtitle: description, className: titleClassName })),
|
|
14
14
|
React.createElement(Row, null, React.Children.map(children, (child, index) => (React.createElement(Col, { key: index, sizes: colSizes, className: b('item') }, child))))));
|
|
15
15
|
export default CardLayout;
|
|
@@ -221,6 +221,7 @@ export interface TabsBlockProps extends Animatable {
|
|
|
221
221
|
}
|
|
222
222
|
export interface CardLayoutBlockProps extends Childable, Animatable, LoadableChildren {
|
|
223
223
|
title?: TitleItemProps | string;
|
|
224
|
+
titleClassName?: string;
|
|
224
225
|
description?: string;
|
|
225
226
|
colSizes?: GridColumnSizesType;
|
|
226
227
|
}
|
package/package.json
CHANGED
|
@@ -221,6 +221,7 @@ export interface TabsBlockProps extends Animatable {
|
|
|
221
221
|
}
|
|
222
222
|
export interface CardLayoutBlockProps extends Childable, Animatable, LoadableChildren {
|
|
223
223
|
title?: TitleItemProps | string;
|
|
224
|
+
titleClassName?: string;
|
|
224
225
|
description?: string;
|
|
225
226
|
colSizes?: GridColumnSizesType;
|
|
226
227
|
}
|