1 | import { __rest } from "tslib";
|
2 | import * as React from 'react';
|
3 | import styles from '@patternfly/react-styles/css/components/TextInputGroup/text-input-group';
|
4 | import { css } from '@patternfly/react-styles';
|
5 | export const TextInputGroupContext = React.createContext({
|
6 | isDisabled: false
|
7 | });
|
8 | export const TextInputGroup = (_a) => {
|
9 | var { children, className, isDisabled } = _a, props = __rest(_a, ["children", "className", "isDisabled"]);
|
10 | return (React.createElement(TextInputGroupContext.Provider, { value: { isDisabled } },
|
11 | React.createElement("div", Object.assign({ className: css(styles.textInputGroup, isDisabled && styles.modifiers.disabled, className) }, props), children)));
|
12 | };
|
13 | TextInputGroup.displayName = 'TextInputGroup';
|
14 |
|
\ | No newline at end of file |