@hipay/hipay-material-ui 2.0.0-beta.44 → 2.0.0-beta.45

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.
@@ -147,12 +147,7 @@ function HiColoredLabel(props) {
147
147
  }, fontWeight && {
148
148
  fontWeight: fontWeight
149
149
  })
150
- }, other, {
151
- // eslint-disable-next-line react/no-danger
152
- dangerouslySetInnerHTML: {
153
- __html: (0, _helpers.escapeHTML)(label)
154
- }
155
- }));
150
+ }, other), label);
156
151
  }
157
152
 
158
153
  HiColoredLabel.propTypes = process.env.NODE_ENV !== "production" ? {
@@ -222,7 +222,7 @@ function (_React$Component) {
222
222
  if (color && selected) {
223
223
  return _react.default.createElement(_HiColoredLabel.default, {
224
224
  color: color,
225
- label: labelHighlight
225
+ label: spanHighlight
226
226
  });
227
227
  }
228
228
 
@@ -291,7 +291,7 @@ function (_React$Component) {
291
291
  var ListItemComponentName = pinned ? _ListSubheader.default : _ListItem.default;
292
292
  return _react.default.createElement(ListItemComponentName, (0, _extends2.default)({
293
293
  id: id,
294
- tabIndex: 0,
294
+ tabIndex: disabled ? '-1' : 0,
295
295
  key: "li-".concat(id),
296
296
  classes: {
297
297
  root: classes.root
@@ -130,12 +130,7 @@ function HiColoredLabel(props) {
130
130
  }, fontWeight && {
131
131
  fontWeight
132
132
  })
133
- }, other, {
134
- // eslint-disable-next-line react/no-danger
135
- dangerouslySetInnerHTML: {
136
- __html: escapeHTML(label)
137
- }
138
- }));
133
+ }, other), label);
139
134
  }
140
135
 
141
136
  HiColoredLabel.propTypes = process.env.NODE_ENV !== "production" ? {
@@ -171,7 +171,7 @@ class HiSelectableListItem extends React.Component {
171
171
  if (color && selected) {
172
172
  return React.createElement(HiColoredLabel, {
173
173
  color: color,
174
- label: labelHighlight
174
+ label: spanHighlight
175
175
  });
176
176
  }
177
177
 
@@ -238,7 +238,7 @@ class HiSelectableListItem extends React.Component {
238
238
  const ListItemComponentName = pinned ? ListSubheader : ListItem;
239
239
  return React.createElement(ListItemComponentName, _extends({
240
240
  id: id,
241
- tabIndex: 0,
241
+ tabIndex: disabled ? '-1' : 0,
242
242
  key: `li-${id}`,
243
243
  classes: {
244
244
  root: classes.root
package/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license HiPay-Material-UI v2.0.0-beta.44
1
+ /** @license HiPay-Material-UI v2.0.0-beta.45
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license HiPay-Material-UI v2.0.0-beta.44
1
+ /** @license HiPay-Material-UI v2.0.0-beta.45
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@hipay/hipay-material-ui",
3
3
  "private": false,
4
4
  "author": "HiPay PSYCHE Team",
5
- "version": "2.0.0-beta.44",
5
+ "version": "2.0.0-beta.45",
6
6
  "description": "React components that implement Google's Material Design.",
7
7
  "keywords": [
8
8
  "react",
@@ -1,4 +1,4 @@
1
- /** @license HiPay-Material-UI v2.0.0-beta.44
1
+ /** @license HiPay-Material-UI v2.0.0-beta.45
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -91692,12 +91692,7 @@
91692
91692
  }, fontWeight && {
91693
91693
  fontWeight: fontWeight
91694
91694
  })
91695
- }, other, {
91696
- // eslint-disable-next-line react/no-danger
91697
- dangerouslySetInnerHTML: {
91698
- __html: escapeHTML(label)
91699
- }
91700
- }));
91695
+ }, other), label);
91701
91696
  }
91702
91697
 
91703
91698
  HiColoredLabel.propTypes = {
@@ -95759,7 +95754,7 @@
95759
95754
  if (color && selected) {
95760
95755
  return React__default.createElement(HiColoredLabel$1, {
95761
95756
  color: color,
95762
- label: labelHighlight
95757
+ label: spanHighlight
95763
95758
  });
95764
95759
  }
95765
95760
 
@@ -95828,7 +95823,7 @@
95828
95823
  var ListItemComponentName = pinned ? ListSubheader$2 : ListItem$2;
95829
95824
  return React__default.createElement(ListItemComponentName, _extends_1({
95830
95825
  id: id,
95831
- tabIndex: 0,
95826
+ tabIndex: disabled ? '-1' : 0,
95832
95827
  key: "li-".concat(id),
95833
95828
  classes: {
95834
95829
  root: classes.root