@bento-core/facet-filter 1.0.1-ccdihub.19 → 1.0.1-ccdihub.20

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.
@@ -13,14 +13,7 @@ var _emptycheckbox = _interopRequireDefault(require("./assets/emptycheckbox.svg"
13
13
  var _checkedbox = _interopRequireDefault(require("./assets/checkedbox.svg"));
14
14
  var _CheckboxStyle = _interopRequireDefault(require("./CheckboxStyle"));
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
- /* eslint-disable no-unused-vars */
17
- /* eslint-disable no-unused-vars */
18
- /* eslint-disable react/jsx-wrap-multilines */
19
- /* eslint-disable react/jsx-indent */
20
- /* eslint-disable object-curly-newline */
21
- /* eslint-disable object-shorthand */
22
- /* eslint-disable react/jsx-one-expression-per-line */
23
-
16
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
24
17
  const alignment = 'flex-start';
25
18
  const CheckBoxView = _ref => {
26
19
  let {
@@ -41,6 +34,11 @@ const CheckBoxView = _ref => {
41
34
  } = checkboxItem;
42
35
  const indexType = index % 2 === 0 ? 'Even' : 'Odd';
43
36
  const checkedSection = "".concat(section).toLowerCase().replace(' ', '_');
37
+ const labelCheckbox = {
38
+ inputProps: {
39
+ 'aria-label': 'Checkbox item'
40
+ }
41
+ };
44
42
  const handleToggle = () => {
45
43
  const toggleCheckBoxItem = {
46
44
  name: name,
@@ -71,8 +69,9 @@ const CheckBoxView = _ref => {
71
69
  className: (0, _clsx.default)({
72
70
  ["".concat(checkedSection, "Checked").concat(indexType)]: isChecked
73
71
  })
74
- }, /*#__PURE__*/_react.default.createElement(_core.Checkbox, {
75
- id: "checkbox_".concat(facet.label, "_").concat(name),
72
+ }, /*#__PURE__*/_react.default.createElement(_core.Checkbox, _extends({
73
+ id: "checkbox_".concat(facet.label, "_").concat(name)
74
+ }, labelCheckbox, {
76
75
  icon: /*#__PURE__*/_react.default.createElement(_core.Icon, {
77
76
  style: {
78
77
  fontSize: '18px',
@@ -99,7 +98,7 @@ const CheckBoxView = _ref => {
99
98
  classes: {
100
99
  root: classes.checkboxRoot
101
100
  }
102
- }), tooltip ? /*#__PURE__*/_react.default.createElement(_core.Tooltip, {
101
+ })), tooltip ? /*#__PURE__*/_react.default.createElement(_core.Tooltip, {
103
102
  id: datafield,
104
103
  title: tooltip
105
104
  }, /*#__PURE__*/_react.default.createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/facet-filter",
3
- "version": "1.0.1-ccdihub.19",
3
+ "version": "1.0.1-ccdihub.20",
4
4
  "description": "### Bento core sidebar design:",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -46,6 +46,8 @@ const CheckBoxView = ({
46
46
  const indexType = index % 2 === 0 ? 'Even' : 'Odd';
47
47
  const checkedSection = `${section}`.toLowerCase().replace(' ', '_');
48
48
 
49
+ const labelCheckbox = { inputProps: { 'aria-label': 'Checkbox item' } };
50
+
49
51
  const handleToggle = () => {
50
52
  const toggleCheckBoxItem = {
51
53
  name: name,
@@ -81,6 +83,7 @@ const CheckBoxView = ({
81
83
  >
82
84
  <Checkbox
83
85
  id={`checkbox_${facet.label}_${name}`}
86
+ {...labelCheckbox}
84
87
  icon={
85
88
  <Icon style={{
86
89
  fontSize: '18px',