| 1 |
"use strict"; |
| 2 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 |
exports.Title = exports.TitleSizes = void 0; |
| 4 |
const tslib_1 = require("tslib"); |
| 5 |
const jsx_runtime_1 = require("react/jsx-runtime"); |
| 6 |
const react_styles_1 = require("@patternfly/react-styles"); |
| 7 |
const title_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Title/title")); |
| 8 |
const helpers_1 = require("../../helpers"); |
| 9 |
var TitleSizes; |
| 10 |
(function (TitleSizes) { |
| 11 |
TitleSizes["md"] = "md"; |
| 12 |
TitleSizes["lg"] = "lg"; |
| 13 |
TitleSizes["xl"] = "xl"; |
| 14 |
TitleSizes["2xl"] = "2xl"; |
| 15 |
TitleSizes["3xl"] = "3xl"; |
| 16 |
TitleSizes["4xl"] = "4xl"; |
| 17 |
})(TitleSizes || (exports.TitleSizes = TitleSizes = {})); |
| 18 |
const Title = (_a) => { |
| 19 |
var { className = '', children = '', headingLevel: HeadingLevel, size, ouiaId, ouiaSafe = true } = _a, props = tslib_1.__rest(_a, ["className", "children", "headingLevel", "size", "ouiaId", "ouiaSafe"]); |
| 20 |
const ouiaProps = (0, helpers_1.useOUIAProps)(exports.Title.displayName, ouiaId, ouiaSafe); |
| 21 |
return ((0, jsx_runtime_1.jsx)(HeadingLevel, Object.assign({}, ouiaProps, props, { className: (0, react_styles_1.css)(title_1.default.title, size ? title_1.default.modifiers[size] : title_1.default.modifiers[HeadingLevel], className), children: children }))); |
| 22 |
}; |
| 23 |
exports.Title = Title; |
| 24 |
exports.Title.displayName = 'Title'; |
| 25 |
//# sourceMappingURL=Title.js.map |