| 1 |
import { jsx as _jsx } from "react/jsx-runtime"; |
| 2 |
import styles from '@patternfly/react-styles/css/components/Wizard/wizard.mjs'; |
| 3 |
import { css } from '@patternfly/react-styles'; |
| 4 |
import { useOUIAProps } from '../../../helpers'; |
| 5 |
export const WizardNav = ({ children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, isOpen = false, returnList = false, ouiaId, ouiaSafe = true }) => { |
| 6 |
const ouiaProps = useOUIAProps(WizardNav.displayName, ouiaId, ouiaSafe); |
| 7 |
const innerList = (_jsx("ol", { className: css(styles.wizardNavList), role: "list", children: children })); |
| 8 |
if (returnList) { |
| 9 |
return innerList; |
| 10 |
} |
| 11 |
return (_jsx("nav", Object.assign({ className: css(styles.wizardNav, isOpen && styles.modifiers.expanded), "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy }, ouiaProps, { children: _jsx("ol", { className: css(styles.wizardNavList), role: "list", children: children }) }))); |
| 12 |
}; |
| 13 |
WizardNav.displayName = 'WizardNav'; |
| 14 |
//# sourceMappingURL=WizardNav.js.map |