| 1 |
import { __rest } from "tslib"; |
| 2 |
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; |
| 3 |
import { css } from '@patternfly/react-styles'; |
| 4 |
import styles from '@patternfly/react-styles/css/components/TreeView/tree-view.mjs'; |
| 5 |
import formStyles from '@patternfly/react-styles/css/components/FormControl/form-control.mjs'; |
| 6 |
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon'; |
| 7 |
export const TreeViewSearch = (_a) => { |
| 8 |
var { className, onSearch, id, name, 'aria-label': ariaLabel } = _a, props = __rest(_a, ["className", "onSearch", "id", "name", 'aria-label']); |
| 9 |
return (_jsx("div", { className: css(styles.treeViewSearch, className), children: _jsxs("div", { className: css(formStyles.formControl, formStyles.modifiers.icon), children: [_jsx("input", Object.assign({ onChange: onSearch, id: id, name: name, "aria-label": ariaLabel, type: "search" }, props)), _jsx("div", { className: css(formStyles.formControlUtilities), children: _jsx("div", { className: css(formStyles.formControlIcon), children: _jsx(SearchIcon, {}) }) })] }) })); |
| 10 |
}; |
| 11 |
TreeViewSearch.displayName = 'TreeViewSearch'; |
| 12 |
//# sourceMappingURL=TreeViewSearch.js.map |