@gravity-ui/page-constructor 5.33.4 → 5.34.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.
@@ -58,8 +58,7 @@ const HeaderBlock = (props) => {
58
58
  'vertical-offset': curVerticalOffset,
59
59
  }) },
60
60
  react_1.default.createElement(grid_1.Col, { sizes: titleSizes, className: b('content-inner') },
61
- overtitle && (react_1.default.createElement("div", { className: b('overtitle') },
62
- react_1.default.createElement(components_1.HTML, null, overtitle))),
61
+ overtitle && (react_1.default.createElement("div", { className: b('overtitle') }, typeof overtitle === 'string' ? (react_1.default.createElement(components_1.HTML, null, overtitle)) : (overtitle))),
63
62
  react_1.default.createElement("h1", { className: b('title'), id: titleId },
64
63
  status,
65
64
  renderTitle ? renderTitle(title) : react_1.default.createElement(components_1.HTML, null, title)),
@@ -109,7 +109,7 @@ export interface HeaderBlockBackground extends Partial<HeaderBackgroundProps>, P
109
109
  export type ThemedHeaderBlockBackground = ThemeSupporting<HeaderBlockBackground>;
110
110
  export interface HeaderBlockProps {
111
111
  title: string;
112
- overtitle?: string;
112
+ overtitle?: string | JSX.Element;
113
113
  description?: string;
114
114
  buttons?: Pick<ButtonProps, 'url' | 'text' | 'theme' | 'primary' | 'size' | 'extraProps'>[];
115
115
  width?: HeaderWidth;
@@ -55,8 +55,7 @@ export const HeaderBlock = (props) => {
55
55
  'vertical-offset': curVerticalOffset,
56
56
  }) },
57
57
  React.createElement(Col, { sizes: titleSizes, className: b('content-inner') },
58
- overtitle && (React.createElement("div", { className: b('overtitle') },
59
- React.createElement(HTML, null, overtitle))),
58
+ overtitle && (React.createElement("div", { className: b('overtitle') }, typeof overtitle === 'string' ? (React.createElement(HTML, null, overtitle)) : (overtitle))),
60
59
  React.createElement("h1", { className: b('title'), id: titleId },
61
60
  status,
62
61
  renderTitle ? renderTitle(title) : React.createElement(HTML, null, title)),
@@ -109,7 +109,7 @@ export interface HeaderBlockBackground extends Partial<HeaderBackgroundProps>, P
109
109
  export type ThemedHeaderBlockBackground = ThemeSupporting<HeaderBlockBackground>;
110
110
  export interface HeaderBlockProps {
111
111
  title: string;
112
- overtitle?: string;
112
+ overtitle?: string | JSX.Element;
113
113
  description?: string;
114
114
  buttons?: Pick<ButtonProps, 'url' | 'text' | 'theme' | 'primary' | 'size' | 'extraProps'>[];
115
115
  width?: HeaderWidth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "5.33.4",
3
+ "version": "5.34.0",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -109,7 +109,7 @@ export interface HeaderBlockBackground extends Partial<HeaderBackgroundProps>, P
109
109
  export type ThemedHeaderBlockBackground = ThemeSupporting<HeaderBlockBackground>;
110
110
  export interface HeaderBlockProps {
111
111
  title: string;
112
- overtitle?: string;
112
+ overtitle?: string | JSX.Element;
113
113
  description?: string;
114
114
  buttons?: Pick<ButtonProps, 'url' | 'text' | 'theme' | 'primary' | 'size' | 'extraProps'>[];
115
115
  width?: HeaderWidth;