UNPKG

1.12 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.TextInputGroup = exports.TextInputGroupContext = void 0;
4const tslib_1 = require("tslib");
5const React = tslib_1.__importStar(require("react"));
6const text_input_group_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/TextInputGroup/text-input-group"));
7const react_styles_1 = require("@patternfly/react-styles");
8exports.TextInputGroupContext = React.createContext({
9 isDisabled: false
10});
11const TextInputGroup = (_a) => {
12 var { children, className, isDisabled } = _a, props = tslib_1.__rest(_a, ["children", "className", "isDisabled"]);
13 return (React.createElement(exports.TextInputGroupContext.Provider, { value: { isDisabled } },
14 React.createElement("div", Object.assign({ className: react_styles_1.css(text_input_group_1.default.textInputGroup, isDisabled && text_input_group_1.default.modifiers.disabled, className) }, props), children)));
15};
16exports.TextInputGroup = TextInputGroup;
17exports.TextInputGroup.displayName = 'TextInputGroup';
18//# sourceMappingURL=TextInputGroup.js.map
\No newline at end of file