| 1 |
"use strict"; |
| 2 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 |
exports.TreeViewSearch = void 0; |
| 4 |
const tslib_1 = require("tslib"); |
| 5 |
const jsx_runtime_1 = require("react/jsx-runtime"); |
| 6 |
const react_styles_1 = require("@patternfly/react-styles"); |
| 7 |
const tree_view_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/TreeView/tree-view")); |
| 8 |
const form_control_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/FormControl/form-control")); |
| 9 |
const search_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/search-icon')); |
| 10 |
const TreeViewSearch = (_a) => { |
| 11 |
var { className, onSearch, id, name, 'aria-label': ariaLabel } = _a, props = tslib_1.__rest(_a, ["className", "onSearch", "id", "name", 'aria-label']); |
| 12 |
return ((0, jsx_runtime_1.jsx)("div", { className: (0, react_styles_1.css)(tree_view_1.default.treeViewSearch, className), children: (0, jsx_runtime_1.jsxs)("div", { className: (0, react_styles_1.css)(form_control_1.default.formControl, form_control_1.default.modifiers.icon), children: [(0, jsx_runtime_1.jsx)("input", Object.assign({ onChange: onSearch, id: id, name: name, "aria-label": ariaLabel, type: "search" }, props)), (0, jsx_runtime_1.jsx)("div", { className: (0, react_styles_1.css)(form_control_1.default.formControlUtilities), children: (0, jsx_runtime_1.jsx)("div", { className: (0, react_styles_1.css)(form_control_1.default.formControlIcon), children: (0, jsx_runtime_1.jsx)(search_icon_1.default, {}) }) })] }) })); |
| 13 |
}; |
| 14 |
exports.TreeViewSearch = TreeViewSearch; |
| 15 |
exports.TreeViewSearch.displayName = 'TreeViewSearch'; |
| 16 |
//# sourceMappingURL=TreeViewSearch.js.map |