@bento-core/table 1.0.1-ctdc.4 → 1.0.1-ctdc.5
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/dist/body/components/CheckBoxView.js +4 -1
- package/dist/header/components/CheckBoxView.js +2 -1
- package/dist/pagination/CustomPagination.js +8 -1
- package/package.json +1 -1
- package/src/body/components/CheckBoxView.js +1 -0
- package/src/header/components/CheckBoxView.js +1 -0
- package/src/pagination/CustomPagination.js +7 -0
|
@@ -17,7 +17,10 @@ const CheckboxView = _ref => {
|
|
|
17
17
|
}, /*#__PURE__*/_react.default.createElement(_core.Checkbox, {
|
|
18
18
|
disableRipple: true,
|
|
19
19
|
onClick: event => onRowSelectChange(event, row),
|
|
20
|
-
checked: row.isChecked
|
|
20
|
+
checked: row.isChecked,
|
|
21
|
+
inputProps: {
|
|
22
|
+
'aria-label': 'Select this row'
|
|
23
|
+
}
|
|
21
24
|
}));
|
|
22
25
|
};
|
|
23
26
|
var _default = CheckboxView;
|
|
@@ -21,7 +21,8 @@ const CheckboxView = _ref => {
|
|
|
21
21
|
indeterminate: includeSelectedIds,
|
|
22
22
|
checked: includeSelectedIds,
|
|
23
23
|
onChange: event => toggleSelectAll(event, Ids, includeSelectedIds)
|
|
24
|
-
})
|
|
24
|
+
}),
|
|
25
|
+
"aria-label": "Select all rows"
|
|
25
26
|
}));
|
|
26
27
|
};
|
|
27
28
|
var _default = CheckboxView;
|
|
@@ -59,7 +59,14 @@ const CustomPagination = _ref => {
|
|
|
59
59
|
rowsPerPage: rowsPerPage,
|
|
60
60
|
page: page,
|
|
61
61
|
onPageChange: onPageChange,
|
|
62
|
-
onRowsPerPageChange: onRowsPerPageChange
|
|
62
|
+
onRowsPerPageChange: onRowsPerPageChange,
|
|
63
|
+
SelectProps: {
|
|
64
|
+
inputProps: {
|
|
65
|
+
'aria-label': 'Select number of rows per page',
|
|
66
|
+
'aria-labelledby': 'rowsPerPageLabel'
|
|
67
|
+
},
|
|
68
|
+
id: 'rowsPerPageLabel'
|
|
69
|
+
}
|
|
63
70
|
}));
|
|
64
71
|
};
|
|
65
72
|
CustomPagination.propTypes = {
|
package/package.json
CHANGED
|
@@ -50,6 +50,13 @@ const CustomPagination = ({
|
|
|
50
50
|
page={page}
|
|
51
51
|
onPageChange={onPageChange}
|
|
52
52
|
onRowsPerPageChange={onRowsPerPageChange}
|
|
53
|
+
SelectProps={{
|
|
54
|
+
inputProps: {
|
|
55
|
+
'aria-label': 'Select number of rows per page',
|
|
56
|
+
'aria-labelledby': 'rowsPerPageLabel',
|
|
57
|
+
},
|
|
58
|
+
id: 'rowsPerPageLabel',
|
|
59
|
+
}}
|
|
53
60
|
/>
|
|
54
61
|
</ThemeProvider>
|
|
55
62
|
);
|