@patternfly/react-table 4.91.6 → 4.91.9

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.91.6",
3
+ "version": "4.91.9",
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.222.6",
35
- "@patternfly/react-icons": "^4.73.6",
36
- "@patternfly/react-styles": "^4.72.6",
37
- "@patternfly/react-tokens": "^4.74.6",
34
+ "@patternfly/react-core": "^4.222.9",
35
+ "@patternfly/react-icons": "^4.73.9",
36
+ "@patternfly/react-styles": "^4.72.9",
37
+ "@patternfly/react-tokens": "^4.74.9",
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": "0868d0b8861099a69df12165a69587cb0a8f5762"
49
+ "gitHead": "eb7f33527ae23ff0ca586a0b98efe7a2cbb925c2"
50
50
  }
@@ -1872,24 +1872,25 @@ class FilterTableDemo extends React.Component {
1872
1872
  buildCategoryDropdown() {
1873
1873
  const { isCategoryDropdownOpen, currentCategory } = this.state;
1874
1874
 
1875
+ const categoryMenuItems = [
1876
+ <SelectOption key="cat1" value="Location" />,
1877
+ <SelectOption key="cat2" value="Name" />,
1878
+ <SelectOption key="cat3" value="Status" />,
1879
+ ];
1880
+
1875
1881
  return (
1876
1882
  <ToolbarItem>
1877
- <Dropdown
1883
+ <Select
1878
1884
  onSelect={this.onCategorySelect}
1885
+ selections={currentCategory}
1879
1886
  position={DropdownPosition.left}
1880
- toggle={
1881
- <DropdownToggle onToggle={this.onCategoryToggle} style={{ width: '100%' }}>
1882
- <FilterIcon /> {currentCategory}
1883
- </DropdownToggle>
1884
- }
1887
+ onToggle={this.onCategoryToggle}
1885
1888
  isOpen={isCategoryDropdownOpen}
1886
- dropdownItems={[
1887
- <DropdownItem key="cat1">Location</DropdownItem>,
1888
- <DropdownItem key="cat2">Name</DropdownItem>,
1889
- <DropdownItem key="cat3">Status</DropdownItem>
1890
- ]}
1889
+ toggleIcon={<FilterIcon />}
1891
1890
  style={{ width: '100%' }}
1892
- ></Dropdown>
1891
+ >
1892
+ {categoryMenuItems}
1893
+ </Select>
1893
1894
  </ToolbarItem>
1894
1895
  );
1895
1896
  }