@hipay/hipay-material-ui 4.1.1-beta.1 → 4.1.1-beta.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -142,7 +142,9 @@ function HiColoredLabel(props) {
142
142
  }, {}, fontWeight && {
143
143
  fontWeight: fontWeight
144
144
  })
145
- }, other), label);
145
+ }, other, {
146
+ title: label
147
+ }), label);
146
148
  }
147
149
  HiColoredLabel.defaultProps = {
148
150
  active: false,
@@ -159,7 +159,7 @@ var HiSelectableList = /*#__PURE__*/function (_React$PureComponent) {
159
159
  hideCheckbox: hideCheckbox,
160
160
  hoverIcon: hoverIcon,
161
161
  icon: icon,
162
- color: ((_item$icon = item.icon) === null || _item$icon === void 0 ? void 0 : (_item$icon$props = _item$icon.props) === null || _item$icon$props === void 0 ? void 0 : _item$icon$props.color) || 'inherit',
162
+ color: (item === null || item === void 0 ? void 0 : (_item$icon = item.icon) === null || _item$icon === void 0 ? void 0 : (_item$icon$props = _item$icon.props) === null || _item$icon$props === void 0 ? void 0 : _item$icon$props.color) || 'inherit',
163
163
  level: noPadding ? 0 : level,
164
164
  onSelect: item.selectable !== false ? _this.handleSelect(item) : undefined,
165
165
  onKeyDown: item.selectable !== false ? handleKeyDown : undefined,
@@ -303,10 +303,9 @@ function HiSelectableListItem(props) {
303
303
  var ListItemComponentName = pinned || collapseHeader ? _ListSubheader.default : _ListItem.default;
304
304
  var itemIcon;
305
305
  if (displayedIcon) {
306
- var _item$icon;
307
306
  var iconProps = {
308
307
  className: classes.icon,
309
- color: selected && color ? (_item$icon = item.icon) === null || _item$icon === void 0 ? void 0 : _item$icon.props.color : color
308
+ color: selected && color ? color : (item === null || item === void 0 ? void 0 : item.color) || (props === null || props === void 0 ? void 0 : props.color) || "inherit"
310
309
  };
311
310
  if (typeof displayedIcon === 'string') {
312
311
  itemIcon = /*#__PURE__*/_react.default.createElement(_HiIcon.default, (0, _extends2.default)({
package/README.md CHANGED
@@ -274,5 +274,4 @@ Attention aux index.js.
274
274
  La bonne syntaxe est :
275
275
  export { default as MyComponente } from './MyComponente';
276
276
 
277
-
278
277
  [source]: https://www.w3schools.com/jsref/event_onkeypress.asp
@@ -142,7 +142,9 @@ function HiColoredLabel(props) {
142
142
  }, {}, fontWeight && {
143
143
  fontWeight: fontWeight
144
144
  })
145
- }, other), label);
145
+ }, other, {
146
+ title: label
147
+ }), label);
146
148
  }
147
149
  HiColoredLabel.defaultProps = {
148
150
  active: false,
@@ -159,7 +159,7 @@ var HiSelectableList = /*#__PURE__*/function (_React$PureComponent) {
159
159
  hideCheckbox: hideCheckbox,
160
160
  hoverIcon: hoverIcon,
161
161
  icon: icon,
162
- color: ((_item$icon = item.icon) === null || _item$icon === void 0 ? void 0 : (_item$icon$props = _item$icon.props) === null || _item$icon$props === void 0 ? void 0 : _item$icon$props.color) || 'inherit',
162
+ color: (item === null || item === void 0 ? void 0 : (_item$icon = item.icon) === null || _item$icon === void 0 ? void 0 : (_item$icon$props = _item$icon.props) === null || _item$icon$props === void 0 ? void 0 : _item$icon$props.color) || 'inherit',
163
163
  level: noPadding ? 0 : level,
164
164
  onSelect: item.selectable !== false ? _this.handleSelect(item) : undefined,
165
165
  onKeyDown: item.selectable !== false ? handleKeyDown : undefined,
@@ -303,10 +303,9 @@ function HiSelectableListItem(props) {
303
303
  var ListItemComponentName = pinned || collapseHeader ? _ListSubheader.default : _ListItem.default;
304
304
  var itemIcon;
305
305
  if (displayedIcon) {
306
- var _item$icon;
307
306
  var iconProps = {
308
307
  className: classes.icon,
309
- color: selected && color ? (_item$icon = item.icon) === null || _item$icon === void 0 ? void 0 : _item$icon.props.color : color
308
+ color: selected && color ? color : (item === null || item === void 0 ? void 0 : item.color) || (props === null || props === void 0 ? void 0 : props.color) || "inherit"
310
309
  };
311
310
  if (typeof displayedIcon === 'string') {
312
311
  itemIcon = /*#__PURE__*/_react.default.createElement(_HiIcon.default, (0, _extends2.default)({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hipay/hipay-material-ui",
3
3
  "private": false,
4
- "version": "4.1.1-beta.1",
4
+ "version": "4.1.1-beta.1.1",
5
5
  "description": "React components that implement Google's Material Design.",
6
6
  "repository": {
7
7
  "type": "git",