| 1 |
import { __rest } from "tslib"; |
| 2 |
import { jsx as _jsx } from "react/jsx-runtime"; |
| 3 |
import styles from '@patternfly/react-styles/css/components/Wizard/wizard.mjs'; |
| 4 |
import { css } from '@patternfly/react-styles'; |
| 5 |
export const WizardNav = (_a) => { |
| 6 |
var { children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, isExpanded = false, isInnerList = false, className } = _a, props = __rest(_a, ["children", 'aria-label', 'aria-labelledby', "isExpanded", "isInnerList", "className"]); |
| 7 |
if (isInnerList) { |
| 8 |
return (_jsx("ol", Object.assign({ className: css(styles.wizardNavList, className), role: "list" }, props, { children: children }))); |
| 9 |
} |
| 10 |
return (_jsx("nav", Object.assign({ className: css(styles.wizardNav, isExpanded && styles.modifiers.expanded, className), "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy }, props, { children: _jsx("ol", { className: css(styles.wizardNavList), role: "list", children: children }) }))); |
| 11 |
}; |
| 12 |
WizardNav.displayName = 'WizardNav'; |
| 13 |
//# sourceMappingURL=WizardNav.js.map |