@patternfly/react-core 5.0.0-alpha.25 → 5.0.0-alpha.26
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/CHANGELOG.md +7 -0
- package/components/ContextSelector/ContextSelectorItem.d.ts +3 -3
- package/components/ContextSelector/ContextSelectorItem.d.ts.map +1 -1
- package/components/Popover/PopoverCloseButton.d.ts.map +1 -1
- package/components/Popover/PopoverCloseButton.js +5 -2
- package/components/Popover/PopoverCloseButton.js.map +1 -1
- package/components/Popover/PopoverHeader.d.ts.map +1 -1
- package/components/Popover/PopoverHeader.js +5 -6
- package/components/Popover/PopoverHeader.js.map +1 -1
- package/components/Popover/PopoverHeaderText.d.ts +2 -0
- package/components/Popover/PopoverHeaderText.d.ts.map +1 -1
- package/components/Popover/PopoverHeaderText.js +3 -2
- package/components/Popover/PopoverHeaderText.js.map +1 -1
- package/dist/esm/components/ContextSelector/ContextSelectorItem.d.ts +3 -3
- package/dist/esm/components/ContextSelector/ContextSelectorItem.d.ts.map +1 -1
- package/dist/esm/components/Popover/PopoverCloseButton.d.ts.map +1 -1
- package/dist/esm/components/Popover/PopoverCloseButton.js +5 -2
- package/dist/esm/components/Popover/PopoverCloseButton.js.map +1 -1
- package/dist/esm/components/Popover/PopoverHeader.d.ts.map +1 -1
- package/dist/esm/components/Popover/PopoverHeader.js +5 -6
- package/dist/esm/components/Popover/PopoverHeader.js.map +1 -1
- package/dist/esm/components/Popover/PopoverHeaderText.d.ts +2 -0
- package/dist/esm/components/Popover/PopoverHeaderText.d.ts.map +1 -1
- package/dist/esm/components/Popover/PopoverHeaderText.js +3 -2
- package/dist/esm/components/Popover/PopoverHeaderText.js.map +1 -1
- package/dist/js/components/ContextSelector/ContextSelectorItem.d.ts +3 -3
- package/dist/js/components/ContextSelector/ContextSelectorItem.d.ts.map +1 -1
- package/dist/js/components/Popover/PopoverCloseButton.d.ts.map +1 -1
- package/dist/js/components/Popover/PopoverCloseButton.js +5 -2
- package/dist/js/components/Popover/PopoverCloseButton.js.map +1 -1
- package/dist/js/components/Popover/PopoverHeader.d.ts.map +1 -1
- package/dist/js/components/Popover/PopoverHeader.js +5 -6
- package/dist/js/components/Popover/PopoverHeader.js.map +1 -1
- package/dist/js/components/Popover/PopoverHeaderText.d.ts +2 -0
- package/dist/js/components/Popover/PopoverHeaderText.d.ts.map +1 -1
- package/dist/js/components/Popover/PopoverHeaderText.js +3 -2
- package/dist/js/components/Popover/PopoverHeaderText.js.map +1 -1
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +2 -2
- package/src/components/ContextSelector/ContextSelectorItem.tsx +3 -3
- package/src/components/Popover/PopoverCloseButton.tsx +7 -3
- package/src/components/Popover/PopoverHeader.tsx +10 -17
- package/src/components/Popover/PopoverHeaderText.tsx +10 -4
- package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverCloseButton.test.tsx.snap +26 -22
- package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverHeader.test.tsx.snap +14 -9
- package/src/components/Timestamp/__tests__/Timestamp.test.tsx +5 -3
- package/src/components/Timestamp/__tests__/__snapshots__/Timestamp.test.tsx.snap +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [5.0.0-alpha.26](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.0.0-alpha.25...@patternfly/react-core@5.0.0-alpha.26) (2023-03-07)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **Popover:** Refactor popover header ([#8774](https://github.com/patternfly/patternfly-react/issues/8774)) ([aede226](https://github.com/patternfly/patternfly-react/commit/aede2260822575d150060b44469df2fa10ba1667))
|
|
11
|
+
- **tests, scripts:** fixed dev server issues/tests related to node 18 ([#8788](https://github.com/patternfly/patternfly-react/issues/8788)) ([17c04f4](https://github.com/patternfly/patternfly-react/commit/17c04f4e5c9bf26f3eee04563935ad56855bf0c9))
|
|
12
|
+
|
|
6
13
|
# [5.0.0-alpha.25](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.0.0-alpha.24...@patternfly/react-core@5.0.0-alpha.25) (2023-03-04)
|
|
7
14
|
|
|
8
15
|
### Features
|
|
@@ -7,11 +7,11 @@ export interface ContextSelectorItemProps {
|
|
|
7
7
|
/** Render Context Selector item as disabled */
|
|
8
8
|
isDisabled?: boolean;
|
|
9
9
|
/** Callback for click event */
|
|
10
|
-
onClick
|
|
10
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
11
11
|
/** @hide internal index of the item */
|
|
12
|
-
index
|
|
12
|
+
index?: number;
|
|
13
13
|
/** Internal callback for ref tracking */
|
|
14
|
-
sendRef
|
|
14
|
+
sendRef?: (index: number, current: any) => void;
|
|
15
15
|
/** Link href, indicates item should render as anchor tag */
|
|
16
16
|
href?: string;
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextSelectorItem.d.ts","sourceRoot":"","sources":["../../../../src/components/ContextSelector/ContextSelectorItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,wBAAwB;IACvC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,+BAA+B;IAC/B,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ContextSelectorItem.d.ts","sourceRoot":"","sources":["../../../../src/components/ContextSelector/ContextSelectorItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,wBAAwB;IACvC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC5C,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IAChD,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAoB,SAAQ,KAAK,CAAC,SAAS,CAAC,wBAAwB,CAAC;IAChF,MAAM,CAAC,WAAW,SAAyB;IAC3C,MAAM,CAAC,YAAY,EAAE,wBAAwB,CAQ3C;IAEF,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAqB;IAEhF,iBAAiB;IAKjB,MAAM;CAkCP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverCloseButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverCloseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PopoverCloseButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverCloseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,iBAAiB,CAAC,uBAAuB,CAS/E,CAAC;AAIF,MAAM,WAAW,uBAAuB;IACtC,0CAA0C;IAC1C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,sCAAsC;IACtC,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { css } from '@patternfly/react-styles';
|
|
4
|
+
import styles from '@patternfly/react-styles/css/components/Popover/popover';
|
|
3
5
|
import { Button } from '../Button';
|
|
4
6
|
import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon';
|
|
5
7
|
export const PopoverCloseButton = (_a) => {
|
|
6
8
|
var { onClose = () => undefined } = _a, props = __rest(_a, ["onClose"]);
|
|
7
|
-
return (React.createElement(
|
|
8
|
-
React.createElement(
|
|
9
|
+
return (React.createElement("div", { className: css(styles.popoverClose) },
|
|
10
|
+
React.createElement(Button, Object.assign({ onClick: onClose, variant: "plain", "aria-label": true }, props, { style: { pointerEvents: 'auto' } }),
|
|
11
|
+
React.createElement(TimesIcon, null))));
|
|
9
12
|
};
|
|
10
13
|
PopoverCloseButton.displayName = 'PopoverCloseButton';
|
|
11
14
|
//# sourceMappingURL=PopoverCloseButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverCloseButton.js","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverCloseButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,SAAS,MAAM,mDAAmD,CAAC;AAE1E,MAAM,CAAC,MAAM,kBAAkB,GAAqD,CAAC,EAG3D,EAAE,EAAE;QAHuD,EACnF,OAAO,GAAG,GAAG,EAAE,CAAC,SAAiB,OAET,EADrB,KAAK,cAF2E,WAGpF,CADS;IACqB,OAAA,CAC7B,oBAAC,MAAM,kBAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAC,OAAO,wBAAgB,KAAK,IAAE,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"PopoverCloseButton.js","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverCloseButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,MAAM,MAAM,yDAAyD,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,SAAS,MAAM,mDAAmD,CAAC;AAE1E,MAAM,CAAC,MAAM,kBAAkB,GAAqD,CAAC,EAG3D,EAAE,EAAE;QAHuD,EACnF,OAAO,GAAG,GAAG,EAAE,CAAC,SAAiB,OAET,EADrB,KAAK,cAF2E,WAGpF,CADS;IACqB,OAAA,CAC7B,6BAAK,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC;QACtC,oBAAC,MAAM,kBAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAC,OAAO,wBAAgB,KAAK,IAAE,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE;YAC9F,oBAAC,SAAS,OAAG,CACN,CACL,CACP,CAAA;CAAA,CAAC;AAEF,kBAAkB,CAAC,WAAW,GAAG,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PopoverHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC3F,qCAAqC;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,6CAA6C;IAC7C,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,iBAAiB,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC5D,2GAA2G;IAC3G,oBAAoB,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC7E,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,oGAAoG;IACpG,6BAA6B,CAAC,EAAE,MAAM,CAAC;CACxC;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAqBrE,CAAC"}
|
|
@@ -2,17 +2,16 @@ import { __rest } from "tslib";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { css } from '@patternfly/react-styles';
|
|
4
4
|
import styles from '@patternfly/react-styles/css/components/Popover/popover';
|
|
5
|
-
import { Title, TitleSizes } from '../Title';
|
|
6
5
|
import { PopoverHeaderIcon } from './PopoverHeaderIcon';
|
|
7
6
|
import { PopoverHeaderText } from './PopoverHeaderText';
|
|
8
7
|
export const PopoverHeader = (_a) => {
|
|
9
8
|
var { children, icon, className, titleHeadingLevel = 'h6', alertSeverityVariant, id, alertSeverityScreenReaderText } = _a, props = __rest(_a, ["children", "icon", "className", "titleHeadingLevel", "alertSeverityVariant", "id", "alertSeverityScreenReaderText"]);
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
React.createElement(HeadingLevel, { className: css(styles.popoverTitle) },
|
|
9
|
+
return (React.createElement("header", Object.assign({ className: css(styles.popoverHeader, className) }, props),
|
|
10
|
+
React.createElement("div", { className: css(styles.popoverTitle), id: id },
|
|
13
11
|
icon && React.createElement(PopoverHeaderIcon, null, icon),
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
React.createElement(PopoverHeaderText, { headingLevel: titleHeadingLevel },
|
|
13
|
+
alertSeverityVariant && alertSeverityScreenReaderText && (React.createElement("span", { className: "pf-u-screen-reader" }, alertSeverityScreenReaderText)),
|
|
14
|
+
children))));
|
|
16
15
|
};
|
|
17
16
|
PopoverHeader.displayName = 'PopoverHeader';
|
|
18
17
|
//# sourceMappingURL=PopoverHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverHeader.js","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeader.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,MAAM,MAAM,yDAAyD,CAAC;AAC7E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"PopoverHeader.js","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeader.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,MAAM,MAAM,yDAAyD,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAmBxD,MAAM,CAAC,MAAM,aAAa,GAAgD,CAAC,EAStD,EAAE,EAAE;QATkD,EACzE,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,iBAAiB,GAAG,IAAI,EACxB,oBAAoB,EACpB,EAAE,EACF,6BAA6B,OAEV,EADhB,KAAK,cARiE,qHAS1E,CADS;IACgB,OAAA,CACxB,8CAAQ,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,aAAa,EAAE,SAAS,CAAC,IAAM,KAAK;QAChE,6BAAK,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,EAAE;YAC7C,IAAI,IAAI,oBAAC,iBAAiB,QAAE,IAAI,CAAqB;YACtD,oBAAC,iBAAiB,IAAC,YAAY,EAAE,iBAAiB;gBAC/C,oBAAoB,IAAI,6BAA6B,IAAI,CACxD,8BAAM,SAAS,EAAC,oBAAoB,IAAE,6BAA6B,CAAQ,CAC5E;gBACA,QAAQ,CACS,CAChB,CACC,CACV,CAAA;CAAA,CAAC;AACF,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC"}
|
|
@@ -4,6 +4,8 @@ export interface PopoverHeaderTextProps extends React.HTMLProps<HTMLDivElement>
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
/** Class to be applied to the header text */
|
|
6
6
|
className?: string;
|
|
7
|
+
/** Heading level of the header title */
|
|
8
|
+
headingLevel: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
7
9
|
}
|
|
8
10
|
export declare const PopoverHeaderText: React.FunctionComponent<PopoverHeaderTextProps>;
|
|
9
11
|
//# sourceMappingURL=PopoverHeaderText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverHeaderText.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeaderText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,sBAAuB,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;IAC7E,iCAAiC;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"PopoverHeaderText.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeaderText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,sBAAuB,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;IAC7E,iCAAiC;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,YAAY,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CACvD;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC,sBAAsB,CAY7E,CAAC"}
|
|
@@ -3,8 +3,9 @@ import * as React from 'react';
|
|
|
3
3
|
import { css } from '@patternfly/react-styles';
|
|
4
4
|
import styles from '@patternfly/react-styles/css/components/Popover/popover';
|
|
5
5
|
export const PopoverHeaderText = (_a) => {
|
|
6
|
-
var { children, className } = _a, props = __rest(_a, ["children", "className"]);
|
|
7
|
-
|
|
6
|
+
var { children, className, headingLevel } = _a, props = __rest(_a, ["children", "className", "headingLevel"]);
|
|
7
|
+
const HeadingLevel = headingLevel;
|
|
8
|
+
return (React.createElement(HeadingLevel, Object.assign({ className: css(styles.popoverTitleText, className) }, props), children));
|
|
8
9
|
};
|
|
9
10
|
PopoverHeaderText.displayName = 'PopoverHeaderText';
|
|
10
11
|
//# sourceMappingURL=PopoverHeaderText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverHeaderText.js","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeaderText.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,MAAM,MAAM,yDAAyD,CAAC;
|
|
1
|
+
{"version":3,"file":"PopoverHeaderText.js","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeaderText.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,MAAM,MAAM,yDAAyD,CAAC;AAW7E,MAAM,CAAC,MAAM,iBAAiB,GAAoD,CAAC,EAK1D,EAAE,EAAE;QALsD,EACjF,QAAQ,EACR,SAAS,EACT,YAAY,OAEW,EADpB,KAAK,cAJyE,yCAKlF,CADS;IAER,MAAM,YAAY,GAAG,YAAY,CAAC;IAElC,OAAO,CACP,oBAAC,YAAY,kBAAC,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,gBAAgB,EAAE,SAAS,CAAC,IAAM,KAAK,GACxE,QAAQ,CACI,CAAC,CAAC;AACnB,CAAC,CAAC;AACF,iBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAC"}
|
|
@@ -7,11 +7,11 @@ export interface ContextSelectorItemProps {
|
|
|
7
7
|
/** Render Context Selector item as disabled */
|
|
8
8
|
isDisabled?: boolean;
|
|
9
9
|
/** Callback for click event */
|
|
10
|
-
onClick
|
|
10
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
11
11
|
/** @hide internal index of the item */
|
|
12
|
-
index
|
|
12
|
+
index?: number;
|
|
13
13
|
/** Internal callback for ref tracking */
|
|
14
|
-
sendRef
|
|
14
|
+
sendRef?: (index: number, current: any) => void;
|
|
15
15
|
/** Link href, indicates item should render as anchor tag */
|
|
16
16
|
href?: string;
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextSelectorItem.d.ts","sourceRoot":"","sources":["../../../../src/components/ContextSelector/ContextSelectorItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,wBAAwB;IACvC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,+BAA+B;IAC/B,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ContextSelectorItem.d.ts","sourceRoot":"","sources":["../../../../src/components/ContextSelector/ContextSelectorItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,wBAAwB;IACvC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC5C,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IAChD,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAoB,SAAQ,KAAK,CAAC,SAAS,CAAC,wBAAwB,CAAC;IAChF,MAAM,CAAC,WAAW,SAAyB;IAC3C,MAAM,CAAC,YAAY,EAAE,wBAAwB,CAQ3C;IAEF,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAqB;IAEhF,iBAAiB;IAKjB,MAAM;CAkCP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverCloseButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverCloseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PopoverCloseButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverCloseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,iBAAiB,CAAC,uBAAuB,CAS/E,CAAC;AAIF,MAAM,WAAW,uBAAuB;IACtC,0CAA0C;IAC1C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,sCAAsC;IACtC,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { css } from '@patternfly/react-styles';
|
|
4
|
+
import styles from '@patternfly/react-styles/css/components/Popover/popover';
|
|
3
5
|
import { Button } from '../Button';
|
|
4
6
|
import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon';
|
|
5
7
|
export const PopoverCloseButton = (_a) => {
|
|
6
8
|
var { onClose = () => undefined } = _a, props = __rest(_a, ["onClose"]);
|
|
7
|
-
return (React.createElement(
|
|
8
|
-
React.createElement(
|
|
9
|
+
return (React.createElement("div", { className: css(styles.popoverClose) },
|
|
10
|
+
React.createElement(Button, Object.assign({ onClick: onClose, variant: "plain", "aria-label": true }, props, { style: { pointerEvents: 'auto' } }),
|
|
11
|
+
React.createElement(TimesIcon, null))));
|
|
9
12
|
};
|
|
10
13
|
PopoverCloseButton.displayName = 'PopoverCloseButton';
|
|
11
14
|
//# sourceMappingURL=PopoverCloseButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverCloseButton.js","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverCloseButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,SAAS,MAAM,mDAAmD,CAAC;AAE1E,MAAM,CAAC,MAAM,kBAAkB,GAAqD,CAAC,EAG3D,EAAE,EAAE;QAHuD,EACnF,OAAO,GAAG,GAAG,EAAE,CAAC,SAAiB,OAET,EADrB,KAAK,cAF2E,WAGpF,CADS;IACqB,OAAA,CAC7B,oBAAC,MAAM,kBAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAC,OAAO,wBAAgB,KAAK,IAAE,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"PopoverCloseButton.js","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverCloseButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,MAAM,MAAM,yDAAyD,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,SAAS,MAAM,mDAAmD,CAAC;AAE1E,MAAM,CAAC,MAAM,kBAAkB,GAAqD,CAAC,EAG3D,EAAE,EAAE;QAHuD,EACnF,OAAO,GAAG,GAAG,EAAE,CAAC,SAAiB,OAET,EADrB,KAAK,cAF2E,WAGpF,CADS;IACqB,OAAA,CAC7B,6BAAK,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC;QACtC,oBAAC,MAAM,kBAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAC,OAAO,wBAAgB,KAAK,IAAE,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE;YAC9F,oBAAC,SAAS,OAAG,CACN,CACL,CACP,CAAA;CAAA,CAAC;AAEF,kBAAkB,CAAC,WAAW,GAAG,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PopoverHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC3F,qCAAqC;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,6CAA6C;IAC7C,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,iBAAiB,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC5D,2GAA2G;IAC3G,oBAAoB,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC7E,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,oGAAoG;IACpG,6BAA6B,CAAC,EAAE,MAAM,CAAC;CACxC;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAqBrE,CAAC"}
|
|
@@ -2,17 +2,16 @@ import { __rest } from "tslib";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { css } from '@patternfly/react-styles';
|
|
4
4
|
import styles from '@patternfly/react-styles/css/components/Popover/popover';
|
|
5
|
-
import { Title, TitleSizes } from '../Title';
|
|
6
5
|
import { PopoverHeaderIcon } from './PopoverHeaderIcon';
|
|
7
6
|
import { PopoverHeaderText } from './PopoverHeaderText';
|
|
8
7
|
export const PopoverHeader = (_a) => {
|
|
9
8
|
var { children, icon, className, titleHeadingLevel = 'h6', alertSeverityVariant, id, alertSeverityScreenReaderText } = _a, props = __rest(_a, ["children", "icon", "className", "titleHeadingLevel", "alertSeverityVariant", "id", "alertSeverityScreenReaderText"]);
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
React.createElement(HeadingLevel, { className: css(styles.popoverTitle) },
|
|
9
|
+
return (React.createElement("header", Object.assign({ className: css(styles.popoverHeader, className) }, props),
|
|
10
|
+
React.createElement("div", { className: css(styles.popoverTitle), id: id },
|
|
13
11
|
icon && React.createElement(PopoverHeaderIcon, null, icon),
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
React.createElement(PopoverHeaderText, { headingLevel: titleHeadingLevel },
|
|
13
|
+
alertSeverityVariant && alertSeverityScreenReaderText && (React.createElement("span", { className: "pf-u-screen-reader" }, alertSeverityScreenReaderText)),
|
|
14
|
+
children))));
|
|
16
15
|
};
|
|
17
16
|
PopoverHeader.displayName = 'PopoverHeader';
|
|
18
17
|
//# sourceMappingURL=PopoverHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverHeader.js","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeader.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,MAAM,MAAM,yDAAyD,CAAC;AAC7E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"PopoverHeader.js","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeader.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,MAAM,MAAM,yDAAyD,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAmBxD,MAAM,CAAC,MAAM,aAAa,GAAgD,CAAC,EAStD,EAAE,EAAE;QATkD,EACzE,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,iBAAiB,GAAG,IAAI,EACxB,oBAAoB,EACpB,EAAE,EACF,6BAA6B,OAEV,EADhB,KAAK,cARiE,qHAS1E,CADS;IACgB,OAAA,CACxB,8CAAQ,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,aAAa,EAAE,SAAS,CAAC,IAAM,KAAK;QAChE,6BAAK,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,EAAE;YAC7C,IAAI,IAAI,oBAAC,iBAAiB,QAAE,IAAI,CAAqB;YACtD,oBAAC,iBAAiB,IAAC,YAAY,EAAE,iBAAiB;gBAC/C,oBAAoB,IAAI,6BAA6B,IAAI,CACxD,8BAAM,SAAS,EAAC,oBAAoB,IAAE,6BAA6B,CAAQ,CAC5E;gBACA,QAAQ,CACS,CAChB,CACC,CACV,CAAA;CAAA,CAAC;AACF,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC"}
|
|
@@ -4,6 +4,8 @@ export interface PopoverHeaderTextProps extends React.HTMLProps<HTMLDivElement>
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
/** Class to be applied to the header text */
|
|
6
6
|
className?: string;
|
|
7
|
+
/** Heading level of the header title */
|
|
8
|
+
headingLevel: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
7
9
|
}
|
|
8
10
|
export declare const PopoverHeaderText: React.FunctionComponent<PopoverHeaderTextProps>;
|
|
9
11
|
//# sourceMappingURL=PopoverHeaderText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverHeaderText.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeaderText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,sBAAuB,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;IAC7E,iCAAiC;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"PopoverHeaderText.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeaderText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,sBAAuB,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;IAC7E,iCAAiC;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,YAAY,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CACvD;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC,sBAAsB,CAY7E,CAAC"}
|
|
@@ -3,8 +3,9 @@ import * as React from 'react';
|
|
|
3
3
|
import { css } from '@patternfly/react-styles';
|
|
4
4
|
import styles from '@patternfly/react-styles/css/components/Popover/popover';
|
|
5
5
|
export const PopoverHeaderText = (_a) => {
|
|
6
|
-
var { children, className } = _a, props = __rest(_a, ["children", "className"]);
|
|
7
|
-
|
|
6
|
+
var { children, className, headingLevel } = _a, props = __rest(_a, ["children", "className", "headingLevel"]);
|
|
7
|
+
const HeadingLevel = headingLevel;
|
|
8
|
+
return (React.createElement(HeadingLevel, Object.assign({ className: css(styles.popoverTitleText, className) }, props), children));
|
|
8
9
|
};
|
|
9
10
|
PopoverHeaderText.displayName = 'PopoverHeaderText';
|
|
10
11
|
//# sourceMappingURL=PopoverHeaderText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverHeaderText.js","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeaderText.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,MAAM,MAAM,yDAAyD,CAAC;
|
|
1
|
+
{"version":3,"file":"PopoverHeaderText.js","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeaderText.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,MAAM,MAAM,yDAAyD,CAAC;AAW7E,MAAM,CAAC,MAAM,iBAAiB,GAAoD,CAAC,EAK1D,EAAE,EAAE;QALsD,EACjF,QAAQ,EACR,SAAS,EACT,YAAY,OAEW,EADpB,KAAK,cAJyE,yCAKlF,CADS;IAER,MAAM,YAAY,GAAG,YAAY,CAAC;IAElC,OAAO,CACP,oBAAC,YAAY,kBAAC,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,gBAAgB,EAAE,SAAS,CAAC,IAAM,KAAK,GACxE,QAAQ,CACI,CAAC,CAAC;AACnB,CAAC,CAAC;AACF,iBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAC"}
|
|
@@ -7,11 +7,11 @@ export interface ContextSelectorItemProps {
|
|
|
7
7
|
/** Render Context Selector item as disabled */
|
|
8
8
|
isDisabled?: boolean;
|
|
9
9
|
/** Callback for click event */
|
|
10
|
-
onClick
|
|
10
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
11
11
|
/** @hide internal index of the item */
|
|
12
|
-
index
|
|
12
|
+
index?: number;
|
|
13
13
|
/** Internal callback for ref tracking */
|
|
14
|
-
sendRef
|
|
14
|
+
sendRef?: (index: number, current: any) => void;
|
|
15
15
|
/** Link href, indicates item should render as anchor tag */
|
|
16
16
|
href?: string;
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextSelectorItem.d.ts","sourceRoot":"","sources":["../../../../src/components/ContextSelector/ContextSelectorItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,wBAAwB;IACvC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,+BAA+B;IAC/B,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ContextSelectorItem.d.ts","sourceRoot":"","sources":["../../../../src/components/ContextSelector/ContextSelectorItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,wBAAwB;IACvC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC5C,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IAChD,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAoB,SAAQ,KAAK,CAAC,SAAS,CAAC,wBAAwB,CAAC;IAChF,MAAM,CAAC,WAAW,SAAyB;IAC3C,MAAM,CAAC,YAAY,EAAE,wBAAwB,CAQ3C;IAEF,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAqB;IAEhF,iBAAiB;IAKjB,MAAM;CAkCP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverCloseButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverCloseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PopoverCloseButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverCloseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,iBAAiB,CAAC,uBAAuB,CAS/E,CAAC;AAIF,MAAM,WAAW,uBAAuB;IACtC,0CAA0C;IAC1C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,sCAAsC;IACtC,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -3,12 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PopoverCloseButton = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const react_styles_1 = require("@patternfly/react-styles");
|
|
7
|
+
const popover_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Popover/popover"));
|
|
6
8
|
const Button_1 = require("../Button");
|
|
7
9
|
const times_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/times-icon'));
|
|
8
10
|
const PopoverCloseButton = (_a) => {
|
|
9
11
|
var { onClose = () => undefined } = _a, props = tslib_1.__rest(_a, ["onClose"]);
|
|
10
|
-
return (React.createElement(
|
|
11
|
-
React.createElement(
|
|
12
|
+
return (React.createElement("div", { className: (0, react_styles_1.css)(popover_1.default.popoverClose) },
|
|
13
|
+
React.createElement(Button_1.Button, Object.assign({ onClick: onClose, variant: "plain", "aria-label": true }, props, { style: { pointerEvents: 'auto' } }),
|
|
14
|
+
React.createElement(times_icon_1.default, null))));
|
|
12
15
|
};
|
|
13
16
|
exports.PopoverCloseButton = PopoverCloseButton;
|
|
14
17
|
exports.PopoverCloseButton.displayName = 'PopoverCloseButton';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverCloseButton.js","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverCloseButton.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,sCAAmC;AACnC,0GAA0E;AAEnE,MAAM,kBAAkB,GAAqD,CAAC,EAG3D,EAAE,EAAE;QAHuD,EACnF,OAAO,GAAG,GAAG,EAAE,CAAC,SAAiB,OAET,EADrB,KAAK,sBAF2E,WAGpF,CADS;IACqB,OAAA,CAC7B,oBAAC,eAAM,kBAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAC,OAAO,wBAAgB,KAAK,IAAE,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"PopoverCloseButton.js","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverCloseButton.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,2DAA+C;AAC/C,8GAA6E;AAC7E,sCAAmC;AACnC,0GAA0E;AAEnE,MAAM,kBAAkB,GAAqD,CAAC,EAG3D,EAAE,EAAE;QAHuD,EACnF,OAAO,GAAG,GAAG,EAAE,CAAC,SAAiB,OAET,EADrB,KAAK,sBAF2E,WAGpF,CADS;IACqB,OAAA,CAC7B,6BAAK,SAAS,EAAE,IAAA,kBAAG,EAAC,iBAAM,CAAC,YAAY,CAAC;QACtC,oBAAC,eAAM,kBAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAC,OAAO,wBAAgB,KAAK,IAAE,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE;YAC9F,oBAAC,oBAAS,OAAG,CACN,CACL,CACP,CAAA;CAAA,CAAC;AATW,QAAA,kBAAkB,sBAS7B;AAEF,0BAAkB,CAAC,WAAW,GAAG,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PopoverHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC3F,qCAAqC;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,6CAA6C;IAC7C,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,iBAAiB,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC5D,2GAA2G;IAC3G,oBAAoB,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC7E,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,oGAAoG;IACpG,6BAA6B,CAAC,EAAE,MAAM,CAAC;CACxC;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAqBrE,CAAC"}
|
|
@@ -5,17 +5,16 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_styles_1 = require("@patternfly/react-styles");
|
|
7
7
|
const popover_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Popover/popover"));
|
|
8
|
-
const Title_1 = require("../Title");
|
|
9
8
|
const PopoverHeaderIcon_1 = require("./PopoverHeaderIcon");
|
|
10
9
|
const PopoverHeaderText_1 = require("./PopoverHeaderText");
|
|
11
10
|
const PopoverHeader = (_a) => {
|
|
12
11
|
var { children, icon, className, titleHeadingLevel = 'h6', alertSeverityVariant, id, alertSeverityScreenReaderText } = _a, props = tslib_1.__rest(_a, ["children", "icon", "className", "titleHeadingLevel", "alertSeverityVariant", "id", "alertSeverityScreenReaderText"]);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
React.createElement(HeadingLevel, { className: (0, react_styles_1.css)(popover_1.default.popoverTitle) },
|
|
12
|
+
return (React.createElement("header", Object.assign({ className: (0, react_styles_1.css)(popover_1.default.popoverHeader, className) }, props),
|
|
13
|
+
React.createElement("div", { className: (0, react_styles_1.css)(popover_1.default.popoverTitle), id: id },
|
|
16
14
|
icon && React.createElement(PopoverHeaderIcon_1.PopoverHeaderIcon, null, icon),
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
React.createElement(PopoverHeaderText_1.PopoverHeaderText, { headingLevel: titleHeadingLevel },
|
|
16
|
+
alertSeverityVariant && alertSeverityScreenReaderText && (React.createElement("span", { className: "pf-u-screen-reader" }, alertSeverityScreenReaderText)),
|
|
17
|
+
children))));
|
|
19
18
|
};
|
|
20
19
|
exports.PopoverHeader = PopoverHeader;
|
|
21
20
|
exports.PopoverHeader.displayName = 'PopoverHeader';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverHeader.js","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeader.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,2DAA+C;AAC/C,8GAA6E;AAC7E,
|
|
1
|
+
{"version":3,"file":"PopoverHeader.js","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeader.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,2DAA+C;AAC/C,8GAA6E;AAC7E,2DAAwD;AACxD,2DAAwD;AAmBjD,MAAM,aAAa,GAAgD,CAAC,EAStD,EAAE,EAAE;QATkD,EACzE,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,iBAAiB,GAAG,IAAI,EACxB,oBAAoB,EACpB,EAAE,EACF,6BAA6B,OAEV,EADhB,KAAK,sBARiE,qHAS1E,CADS;IACgB,OAAA,CACxB,8CAAQ,SAAS,EAAE,IAAA,kBAAG,EAAC,iBAAM,CAAC,aAAa,EAAE,SAAS,CAAC,IAAM,KAAK;QAChE,6BAAK,SAAS,EAAE,IAAA,kBAAG,EAAC,iBAAM,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,EAAE;YAC7C,IAAI,IAAI,oBAAC,qCAAiB,QAAE,IAAI,CAAqB;YACtD,oBAAC,qCAAiB,IAAC,YAAY,EAAE,iBAAiB;gBAC/C,oBAAoB,IAAI,6BAA6B,IAAI,CACxD,8BAAM,SAAS,EAAC,oBAAoB,IAAE,6BAA6B,CAAQ,CAC5E;gBACA,QAAQ,CACS,CAChB,CACC,CACV,CAAA;CAAA,CAAC;AArBW,QAAA,aAAa,iBAqBxB;AACF,qBAAa,CAAC,WAAW,GAAG,eAAe,CAAC"}
|
|
@@ -4,6 +4,8 @@ export interface PopoverHeaderTextProps extends React.HTMLProps<HTMLDivElement>
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
/** Class to be applied to the header text */
|
|
6
6
|
className?: string;
|
|
7
|
+
/** Heading level of the header title */
|
|
8
|
+
headingLevel: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
7
9
|
}
|
|
8
10
|
export declare const PopoverHeaderText: React.FunctionComponent<PopoverHeaderTextProps>;
|
|
9
11
|
//# sourceMappingURL=PopoverHeaderText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverHeaderText.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeaderText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,sBAAuB,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;IAC7E,iCAAiC;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"PopoverHeaderText.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeaderText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,sBAAuB,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;IAC7E,iCAAiC;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,YAAY,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CACvD;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC,sBAAsB,CAY7E,CAAC"}
|
|
@@ -6,8 +6,9 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const react_styles_1 = require("@patternfly/react-styles");
|
|
7
7
|
const popover_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Popover/popover"));
|
|
8
8
|
const PopoverHeaderText = (_a) => {
|
|
9
|
-
var { children, className } = _a, props = tslib_1.__rest(_a, ["children", "className"]);
|
|
10
|
-
|
|
9
|
+
var { children, className, headingLevel } = _a, props = tslib_1.__rest(_a, ["children", "className", "headingLevel"]);
|
|
10
|
+
const HeadingLevel = headingLevel;
|
|
11
|
+
return (React.createElement(HeadingLevel, Object.assign({ className: (0, react_styles_1.css)(popover_1.default.popoverTitleText, className) }, props), children));
|
|
11
12
|
};
|
|
12
13
|
exports.PopoverHeaderText = PopoverHeaderText;
|
|
13
14
|
exports.PopoverHeaderText.displayName = 'PopoverHeaderText';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverHeaderText.js","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeaderText.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,2DAA+C;AAC/C,8GAA6E;
|
|
1
|
+
{"version":3,"file":"PopoverHeaderText.js","sourceRoot":"","sources":["../../../../src/components/Popover/PopoverHeaderText.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,2DAA+C;AAC/C,8GAA6E;AAWtE,MAAM,iBAAiB,GAAoD,CAAC,EAK1D,EAAE,EAAE;QALsD,EACjF,QAAQ,EACR,SAAS,EACT,YAAY,OAEW,EADpB,KAAK,sBAJyE,yCAKlF,CADS;IAER,MAAM,YAAY,GAAG,YAAY,CAAC;IAElC,OAAO,CACP,oBAAC,YAAY,kBAAC,SAAS,EAAE,IAAA,kBAAG,EAAC,iBAAM,CAAC,gBAAgB,EAAE,SAAS,CAAC,IAAM,KAAK,GACxE,QAAQ,CACI,CAAC,CAAC;AACnB,CAAC,CAAC;AAZW,QAAA,iBAAiB,qBAY5B;AACF,yBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAC"}
|