Debian Codegraph @

node/@patternfly/react-core/dist/esm/components/Dropdown/DropdownItem.js

raw
1 import { __rest } from "tslib";
2 import { jsx as _jsx } from "react/jsx-runtime";
3 import { forwardRef } from 'react';
4 import { css } from '@patternfly/react-styles';
5 import { MenuItem } from '../Menu';
6 import { useOUIAProps } from '../../helpers';
7 const DropdownItemBase = (_a) => {
8 var { children, className, description, isDisabled, isAriaDisabled, value, onClick, ouiaId, ouiaSafe, innerRef, tooltipProps } = _a, props = __rest(_a, ["children", "className", "description", "isDisabled", "isAriaDisabled", "value", "onClick", "ouiaId", "ouiaSafe", "innerRef", "tooltipProps"]);
9 const ouiaProps = useOUIAProps(DropdownItem.displayName, ouiaId, ouiaSafe);
10 return (_jsx(MenuItem, Object.assign({ className: css(className), description: description, isDisabled: isDisabled, isAriaDisabled: isAriaDisabled, itemId: value, onClick: onClick, tooltipProps: tooltipProps, ref: innerRef }, ouiaProps, props, { children: children })));
11 };
12 export const DropdownItem = forwardRef((props, ref) => (_jsx(DropdownItemBase, Object.assign({}, props, { innerRef: ref }))));
13 DropdownItem.displayName = 'DropdownItem';
14 //# sourceMappingURL=DropdownItem.js.map