@redhat-cloud-services/frontend-components 4.2.5 → 4.2.6
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TitleProps } from '@patternfly/react-core';
|
|
2
|
+
import { TitleProps } from '@patternfly/react-core/dist/dynamic/components/Title';
|
|
3
3
|
export interface PageHeaderTitleProps extends Omit<TitleProps, 'title' | 'headingLevel'> {
|
|
4
4
|
title: React.ReactNode;
|
|
5
|
+
actionsContent?: React.ReactNode;
|
|
5
6
|
}
|
|
6
|
-
declare const PageHeaderTitle: React.
|
|
7
|
+
declare const PageHeaderTitle: React.FC<PageHeaderTitleProps>;
|
|
7
8
|
export default PageHeaderTitle;
|
|
@@ -5,11 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
var classnames_1 = __importDefault(require("classnames"));
|
|
8
|
-
var
|
|
8
|
+
var Title_1 = require("@patternfly/react-core/dist/dynamic/components/Title");
|
|
9
|
+
var Flex_1 = require("@patternfly/react-core/dist/dynamic/layouts/Flex");
|
|
10
|
+
var Flex_2 = require("@patternfly/react-core/dist/dynamic/layouts/Flex");
|
|
9
11
|
var PageHeaderTitle = function (_a) {
|
|
10
|
-
var className = _a.className, title = _a.title;
|
|
12
|
+
var className = _a.className, title = _a.title, actionsContent = _a.actionsContent;
|
|
11
13
|
var pageHeaderTitleClasses = (0, classnames_1.default)(className);
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { justifyContent: { default: 'justifyContentSpaceBetween' }, children: [(0, jsx_runtime_1.jsx)(Flex_2.FlexItem, { children: (0, jsx_runtime_1.jsx)(Title_1.Title, { headingLevel: "h1", size: "2xl", className: pageHeaderTitleClasses, "widget-type": "InsightsPageHeaderTitle", children: title }) }), actionsContent ? (0, jsx_runtime_1.jsx)(Flex_2.FlexItem, { children: actionsContent }) : null] }));
|
|
13
15
|
};
|
|
14
16
|
exports.default = PageHeaderTitle;
|
|
15
17
|
//# sourceMappingURL=PageHeaderTitle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeaderTitle.js","sourceRoot":"","sources":["../src/PageHeader/PageHeaderTitle.tsx"],"names":[],"mappings":";;;;;;AACA,0DAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"PageHeaderTitle.js","sourceRoot":"","sources":["../src/PageHeader/PageHeaderTitle.tsx"],"names":[],"mappings":";;;;;;AACA,0DAAoC;AACpC,8EAA6E;AAE7E,yEAAwE;AACxE,yEAA4E;AAU5E,IAAM,eAAe,GAAmC,UAAC,EAAoC;QAAlC,SAAS,eAAA,EAAE,KAAK,WAAA,EAAE,cAAc,oBAAA;IACzF,IAAM,sBAAsB,GAAG,IAAA,oBAAU,EAAC,SAAS,CAAC,CAAC;IAErD,OAAO,CACL,wBAAC,WAAI,IAAC,cAAc,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE,aAC7D,uBAAC,eAAQ,cACP,uBAAC,aAAK,IAAC,YAAY,EAAC,IAAI,EAAC,IAAI,EAAC,KAAK,EAAC,SAAS,EAAE,sBAAsB,iBAAc,yBAAyB,YACzG,KAAK,GACA,GACC,EACV,cAAc,CAAC,CAAC,CAAC,uBAAC,eAAQ,cAAE,cAAc,GAAY,CAAC,CAAC,CAAC,IAAI,IACzD,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
import { Title
|
|
3
|
+
import { Title } from '@patternfly/react-core/dist/dynamic/components/Title';
|
|
4
|
+
import { Flex } from '@patternfly/react-core/dist/dynamic/layouts/Flex';
|
|
5
|
+
import { FlexItem } from '@patternfly/react-core/dist/dynamic/layouts/Flex';
|
|
4
6
|
var PageHeaderTitle = function (_a) {
|
|
5
|
-
var className = _a.className, title = _a.title;
|
|
7
|
+
var className = _a.className, title = _a.title, actionsContent = _a.actionsContent;
|
|
6
8
|
var pageHeaderTitleClasses = classNames(className);
|
|
7
|
-
return (_jsx(Title, { headingLevel: "h1", size: "2xl", className: pageHeaderTitleClasses, "widget-type": "InsightsPageHeaderTitle", children: title }));
|
|
9
|
+
return (_jsxs(Flex, { justifyContent: { default: 'justifyContentSpaceBetween' }, children: [_jsx(FlexItem, { children: _jsx(Title, { headingLevel: "h1", size: "2xl", className: pageHeaderTitleClasses, "widget-type": "InsightsPageHeaderTitle", children: title }) }), actionsContent ? _jsx(FlexItem, { children: actionsContent }) : null] }));
|
|
8
10
|
};
|
|
9
11
|
export default PageHeaderTitle;
|
|
10
12
|
//# sourceMappingURL=PageHeaderTitle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeaderTitle.js","sourceRoot":"","sources":["../../src/PageHeader/PageHeaderTitle.tsx"],"names":[],"mappings":";AACA,OAAO,UAAU,MAAM,YAAY,CAAC
|
|
1
|
+
{"version":3,"file":"PageHeaderTitle.js","sourceRoot":"","sources":["../../src/PageHeader/PageHeaderTitle.tsx"],"names":[],"mappings":";AACA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,sDAAsD,CAAC;AAE7E,OAAO,EAAE,IAAI,EAAE,MAAM,kDAAkD,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,kDAAkD,CAAC;AAU5E,IAAM,eAAe,GAAmC,UAAC,EAAoC;QAAlC,SAAS,eAAA,EAAE,KAAK,WAAA,EAAE,cAAc,oBAAA;IACzF,IAAM,sBAAsB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;IAErD,OAAO,CACL,MAAC,IAAI,IAAC,cAAc,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE,aAC7D,KAAC,QAAQ,cACP,KAAC,KAAK,IAAC,YAAY,EAAC,IAAI,EAAC,IAAI,EAAC,KAAK,EAAC,SAAS,EAAE,sBAAsB,iBAAc,yBAAyB,YACzG,KAAK,GACA,GACC,EACV,cAAc,CAAC,CAAC,CAAC,KAAC,QAAQ,cAAE,cAAc,GAAY,CAAC,CAAC,CAAC,IAAI,IACzD,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|