| 1 |
import { __rest } from "tslib"; |
| 2 |
import { jsx as _jsx } from "react/jsx-runtime"; |
| 3 |
import { css } from '@patternfly/react-styles'; |
| 4 |
import styles from '@patternfly/react-styles/css/components/Title/title.mjs'; |
| 5 |
import { useOUIAProps } from '../../helpers'; |
| 6 |
export var TitleSizes; |
| 7 |
(function (TitleSizes) { |
| 8 |
TitleSizes["md"] = "md"; |
| 9 |
TitleSizes["lg"] = "lg"; |
| 10 |
TitleSizes["xl"] = "xl"; |
| 11 |
TitleSizes["2xl"] = "2xl"; |
| 12 |
TitleSizes["3xl"] = "3xl"; |
| 13 |
TitleSizes["4xl"] = "4xl"; |
| 14 |
})(TitleSizes || (TitleSizes = {})); |
| 15 |
export const Title = (_a) => { |
| 16 |
var { className = '', children = '', headingLevel: HeadingLevel, size, ouiaId, ouiaSafe = true } = _a, props = __rest(_a, ["className", "children", "headingLevel", "size", "ouiaId", "ouiaSafe"]); |
| 17 |
const ouiaProps = useOUIAProps(Title.displayName, ouiaId, ouiaSafe); |
| 18 |
return (_jsx(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css(styles.title, size ? styles.modifiers[size] : styles.modifiers[HeadingLevel], className), children: children }))); |
| 19 |
}; |
| 20 |
Title.displayName = 'Title'; |
| 21 |
//# sourceMappingURL=Title.js.map |