UNPKG

790 BJavaScriptView Raw
1import { __rest } from "tslib";
2import * as React from 'react';
3import styles from '@patternfly/react-styles/css/components/TextInputGroup/text-input-group';
4import { css } from '@patternfly/react-styles';
5export const TextInputGroupContext = React.createContext({
6 isDisabled: false
7});
8export 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};
13TextInputGroup.displayName = 'TextInputGroup';
14//# sourceMappingURL=TextInputGroup.js.map
\No newline at end of file