| 1 |
"use strict"; |
| 2 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 |
exports.HelperText = void 0; |
| 4 |
const tslib_1 = require("tslib"); |
| 5 |
const jsx_runtime_1 = require("react/jsx-runtime"); |
| 6 |
const helper_text_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/HelperText/helper-text")); |
| 7 |
const react_styles_1 = require("@patternfly/react-styles"); |
| 8 |
const HelperText = (_a) => { |
| 9 |
var { children, className, component = 'div', id, isLiveRegion = false, 'aria-label': ariaLabel } = _a, props = tslib_1.__rest(_a, ["children", "className", "component", "id", "isLiveRegion", 'aria-label']); |
| 10 |
const Component = component; |
| 11 |
return ((0, jsx_runtime_1.jsx)(Component, Object.assign({ id: id, className: (0, react_styles_1.css)(helper_text_1.default.helperText, className) }, (isLiveRegion && { 'aria-live': 'polite' }), (component === 'ul' && { role: 'list', 'aria-label': ariaLabel }), props, { children: children }))); |
| 12 |
}; |
| 13 |
exports.HelperText = HelperText; |
| 14 |
exports.HelperText.displayName = 'HelperText'; |
| 15 |
//# sourceMappingURL=HelperText.js.map |