@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/CHANGELOG.md +27 -0
- package/dist/esm/components/Table/utils/decorators/treeRow.d.ts.map +1 -1
- package/dist/esm/components/Table/utils/decorators/treeRow.js +2 -1
- package/dist/esm/components/Table/utils/decorators/treeRow.js.map +1 -1
- package/dist/js/components/Table/utils/decorators/treeRow.d.ts.map +1 -1
- package/dist/js/components/Table/utils/decorators/treeRow.js +2 -1
- package/dist/js/components/Table/utils/decorators/treeRow.js.map +1 -1
- package/dist/umd/react-table.css +4 -4
- package/dist/umd/react-table.js +11 -9
- package/dist/umd/react-table.min.css +39 -39
- package/dist/umd/react-table.min.js +1 -1
- package/package.json +6 -6
- package/src/components/Table/utils/decorators/treeRow.tsx +8 -6
- package/src/components/TableComposable/examples/ComposableTableTree.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-table",
|
|
3
|
-
"version": "4.71.
|
|
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.
|
|
35
|
-
"@patternfly/react-icons": "^4.53.
|
|
36
|
-
"@patternfly/react-styles": "^4.52.
|
|
37
|
-
"@patternfly/react-tokens": "^4.54.
|
|
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": "
|
|
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
|
-
<
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
};
|