| 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 WizardNav = (_a) => { |
| 9 |
var { children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, isExpanded = false, isInnerList = false, className } = _a, props = tslib_1.__rest(_a, ["children", 'aria-label', 'aria-labelledby', "isExpanded", "isInnerList", "className"]); |
| 10 |
if (isInnerList) { |
| 11 |
return ((0, jsx_runtime_1.jsx)("ol", Object.assign({ className: (0, react_styles_1.css)(wizard_1.default.wizardNavList, className), role: "list" }, props, { children: children }))); |
| 12 |
} |
| 13 |
return ((0, jsx_runtime_1.jsx)("nav", Object.assign({ className: (0, react_styles_1.css)(wizard_1.default.wizardNav, isExpanded && wizard_1.default.modifiers.expanded, className), "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy }, props, { children: (0, jsx_runtime_1.jsx)("ol", { className: (0, react_styles_1.css)(wizard_1.default.wizardNavList), role: "list", children: children }) }))); |
| 14 |
}; |
| 15 |
exports.WizardNav = WizardNav; |
| 16 |
exports.WizardNav.displayName = 'WizardNav'; |
| 17 |
//# sourceMappingURL=WizardNav.js.map |