@patternfly/react-table 4.64.1 → 4.66.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-table",
3
- "version": "4.64.1",
3
+ "version": "4.66.0",
4
4
  "description": "This library provides a set of React table components for use with the PatternFly 4",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -31,10 +31,10 @@
31
31
  "clean": "rimraf dist"
32
32
  },
33
33
  "dependencies": {
34
- "@patternfly/react-core": "^4.195.1",
35
- "@patternfly/react-icons": "^4.46.1",
36
- "@patternfly/react-styles": "^4.45.1",
37
- "@patternfly/react-tokens": "^4.47.1",
34
+ "@patternfly/react-core": "^4.197.0",
35
+ "@patternfly/react-icons": "^4.48.0",
36
+ "@patternfly/react-styles": "^4.47.0",
37
+ "@patternfly/react-tokens": "^4.49.0",
38
38
  "lodash": "^4.17.19",
39
39
  "tslib": "^2.0.0"
40
40
  },
@@ -46,5 +46,5 @@
46
46
  "react": "^16.8.0 || ^17.0.0",
47
47
  "react-dom": "^16.8.0 || ^17.0.0"
48
48
  },
49
- "gitHead": "b0c6df28b6240ab5f2c306599410be05a888857d"
49
+ "gitHead": "7499c17163e7c53560600463ebd778dafe21d45b"
50
50
  }
@@ -1886,7 +1886,7 @@ import {
1886
1886
  Select,
1887
1887
  SelectOption,
1888
1888
  SelectVariant,
1889
- TextInput,
1889
+ SearchInput,
1890
1890
  EmptyState,
1891
1891
  EmptyStateIcon,
1892
1892
  EmptyStateBody,
@@ -2109,25 +2109,16 @@ class FilterTableDemo extends React.Component {
2109
2109
  categoryName="Name"
2110
2110
  showToolbarItem={currentCategory === 'Name'}
2111
2111
  >
2112
- <InputGroup>
2113
- <TextInput
2114
- name="nameInput"
2115
- id="nameInput1"
2116
- type="search"
2117
- aria-label="name filter"
2118
- onChange={this.onInputChange}
2119
- value={inputValue}
2120
- placeholder="Filter by name..."
2121
- onKeyDown={this.onNameInput}
2122
- />
2123
- <Button
2124
- variant={ButtonVariant.control}
2125
- aria-label="search button for search input"
2126
- onClick={this.onNameInput}
2127
- >
2128
- <SearchIcon />
2129
- </Button>
2130
- </InputGroup>
2112
+ <SearchInput
2113
+ aria-label="name filter"
2114
+ placeholder="Filter by name..."
2115
+ onChange={this.onInputChange}
2116
+ value={inputValue}
2117
+ onClear={() => {
2118
+ this.onInputChange('');
2119
+ }}
2120
+ onSearch={this.onNameInput}
2121
+ />
2131
2122
  </ToolbarFilter>
2132
2123
  <ToolbarFilter
2133
2124
  chips={filters.status}