@hipay/hipay-material-ui 4.1.1 → 4.1.3

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.
@@ -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,
@@ -108,6 +108,7 @@ var HiSelectableList = /*#__PURE__*/function (_React$PureComponent) {
108
108
  * @returns {*}
109
109
  */
110
110
  _this.buildRecursiveListItem = function (item, index) {
111
+ var _item$icon, _item$icon$props;
111
112
  var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
112
113
  var group = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
113
114
  var _this$props = _this.props,
@@ -158,6 +159,7 @@ var HiSelectableList = /*#__PURE__*/function (_React$PureComponent) {
158
159
  hideCheckbox: hideCheckbox,
159
160
  hoverIcon: hoverIcon,
160
161
  icon: icon,
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',
161
163
  level: noPadding ? 0 : level,
162
164
  onSelect: item.selectable !== false ? _this.handleSelect(item) : undefined,
163
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$props;
307
306
  var iconProps = {
308
307
  className: classes.icon,
309
- color: selected && color ? color : (_item$icon$props = item.icon.props) === null || _item$icon$props === void 0 ? void 0 : _item$icon$props.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,
@@ -108,6 +108,7 @@ var HiSelectableList = /*#__PURE__*/function (_React$PureComponent) {
108
108
  * @returns {*}
109
109
  */
110
110
  _this.buildRecursiveListItem = function (item, index) {
111
+ var _item$icon, _item$icon$props;
111
112
  var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
112
113
  var group = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
113
114
  var _this$props = _this.props,
@@ -158,6 +159,7 @@ var HiSelectableList = /*#__PURE__*/function (_React$PureComponent) {
158
159
  hideCheckbox: hideCheckbox,
159
160
  hoverIcon: hoverIcon,
160
161
  icon: icon,
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',
161
163
  level: noPadding ? 0 : level,
162
164
  onSelect: item.selectable !== false ? _this.handleSelect(item) : undefined,
163
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$props;
307
306
  var iconProps = {
308
307
  className: classes.icon,
309
- color: selected && color ? color : (_item$icon$props = item.icon.props) === null || _item$icon$props === void 0 ? void 0 : _item$icon$props.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",
4
+ "version": "4.1.3",
5
5
  "description": "React components that implement Google's Material Design.",
6
6
  "repository": {
7
7
  "type": "git",