| 1 |
import { __rest } from "tslib"; |
| 2 |
import { jsx as _jsx } from "react/jsx-runtime"; |
| 3 |
import { forwardRef, useRef } from 'react'; |
| 4 |
import styles from '@patternfly/react-styles/css/components/InputGroup/input-group.mjs'; |
| 5 |
import { css } from '@patternfly/react-styles'; |
| 6 |
export const InputGroupBase = (_a) => { |
| 7 |
var { className, children, innerRef } = _a, props = __rest(_a, ["className", "children", "innerRef"]); |
| 8 |
const ref = useRef(null); |
| 9 |
const inputGroupRef = innerRef || ref; |
| 10 |
return (_jsx("div", Object.assign({ ref: inputGroupRef, className: css(styles.inputGroup, className) }, props, { children: children }))); |
| 11 |
}; |
| 12 |
InputGroupBase.displayName = 'InputGroupBase'; |
| 13 |
export const InputGroup = forwardRef((props, ref) => (_jsx(InputGroupBase, Object.assign({ innerRef: ref }, props)))); |
| 14 |
InputGroup.displayName = 'InputGroup'; |
| 15 |
//# sourceMappingURL=InputGroup.js.map |