| 1 |
import { __rest } from "tslib"; |
| 2 |
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; |
| 3 |
import { css } from '@patternfly/react-styles'; |
| 4 |
import styles from '@patternfly/react-styles/css/components/Popover/popover.mjs'; |
| 5 |
import { PopoverHeaderIcon } from './PopoverHeaderIcon'; |
| 6 |
import { PopoverHeaderText } from './PopoverHeaderText'; |
| 7 |
export const PopoverHeader = (_a) => { |
| 8 |
var { children, icon, className, titleHeadingLevel = 'h6', alertSeverityVariant, id, alertSeverityScreenReaderText } = _a, props = __rest(_a, ["children", "icon", "className", "titleHeadingLevel", "alertSeverityVariant", "id", "alertSeverityScreenReaderText"]); |
| 9 |
return (_jsx("header", Object.assign({ className: css(styles.popoverHeader, className) }, props, { children: _jsxs("div", { className: css(styles.popoverTitle), id: id, children: [icon && _jsx(PopoverHeaderIcon, { children: icon }), _jsxs(PopoverHeaderText, { headingLevel: titleHeadingLevel, children: [alertSeverityVariant && alertSeverityScreenReaderText && (_jsx("span", { className: "pf-v6-screen-reader", children: alertSeverityScreenReaderText })), children] })] }) }))); |
| 10 |
}; |
| 11 |
PopoverHeader.displayName = 'PopoverHeader'; |
| 12 |
//# sourceMappingURL=PopoverHeader.js.map |