| 1 |
"use strict"; |
| 2 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 |
exports.WizardNav = void 0; |
| 4 |
const tslib_1 = require("tslib"); |
| 5 |
const jsx_runtime_1 = require("react/jsx-runtime"); |
| 6 |
const wizard_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Wizard/wizard")); |
| 7 |
const react_styles_1 = require("@patternfly/react-styles"); |
| 8 |
const helpers_1 = require("../../../helpers"); |
| 9 |
const WizardNav = ({ children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, isOpen = false, returnList = false, ouiaId, ouiaSafe = true }) => { |
| 10 |
const ouiaProps = (0, helpers_1.useOUIAProps)(exports.WizardNav.displayName, ouiaId, ouiaSafe); |
| 11 |
const innerList = ((0, jsx_runtime_1.jsx)("ol", { className: (0, react_styles_1.css)(wizard_1.default.wizardNavList), role: "list", children: children })); |
| 12 |
if (returnList) { |
| 13 |
return innerList; |
| 14 |
} |
| 15 |
return ((0, jsx_runtime_1.jsx)("nav", Object.assign({ className: (0, react_styles_1.css)(wizard_1.default.wizardNav, isOpen && wizard_1.default.modifiers.expanded), "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy }, ouiaProps, { children: (0, jsx_runtime_1.jsx)("ol", { className: (0, react_styles_1.css)(wizard_1.default.wizardNavList), role: "list", children: children }) }))); |
| 16 |
}; |
| 17 |
exports.WizardNav = WizardNav; |
| 18 |
exports.WizardNav.displayName = 'WizardNav'; |
| 19 |
//# sourceMappingURL=WizardNav.js.map |