@patternfly/react-table 4.71.23 → 4.71.26

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.71.23",
3
+ "version": "4.71.26",
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.202.23",
35
- "@patternfly/react-icons": "^4.53.23",
36
- "@patternfly/react-styles": "^4.52.23",
37
- "@patternfly/react-tokens": "^4.54.23",
34
+ "@patternfly/react-core": "^4.202.26",
35
+ "@patternfly/react-icons": "^4.53.26",
36
+ "@patternfly/react-styles": "^4.52.26",
37
+ "@patternfly/react-tokens": "^4.54.26",
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": "542b9e9211edd7ff4b98f947f2943711a590bb54"
49
+ "gitHead": "471f40d75a2edfec054cd81957f7f6f5cd27b191"
50
50
  }
@@ -63,12 +63,14 @@ export const treeRow = (
63
63
  )}
64
64
  {!!onCheckChange && (
65
65
  <span className={css(stylesTreeView.tableCheck)} key="table-check">
66
- <Checkbox
67
- id={checkboxId || `checkbox_${rowIndex}`}
68
- aria-label={checkAriaLabel || `Row ${rowIndex} checkbox`}
69
- isChecked={isChecked}
70
- onChange={onChange}
71
- />
66
+ <label htmlFor={checkboxId || `checkbox_${rowIndex}`}>
67
+ <Checkbox
68
+ id={checkboxId || `checkbox_${rowIndex}`}
69
+ aria-label={checkAriaLabel || `Row ${rowIndex} checkbox`}
70
+ isChecked={isChecked}
71
+ onChange={onChange}
72
+ />
73
+ </label>
72
74
  </span>
73
75
  )}
74
76
  {text}
@@ -159,7 +159,7 @@ export const ComposableTableTree: React.FunctionComponent = () => {
159
159
  'aria-posinset': posinset,
160
160
  'aria-setsize': node.children ? node.children.length : 0,
161
161
  isChecked,
162
- checkboxId: `checkbox_id_${node.name.replace(/\s+/g, '')}`,
162
+ checkboxId: `checkbox_id_${node.name.toLowerCase().replace(/\s+/g, '_')}`,
163
163
  icon
164
164
  }
165
165
  };