@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.
- package/HiColoredLabel/HiColoredLabel.js +3 -1
- package/HiSelectableList/HiSelectableList.js +2 -0
- package/HiSelectableList/HiSelectableListItem.js +1 -2
- package/README.md +0 -1
- package/es/HiColoredLabel/HiColoredLabel.js +3 -1
- package/es/HiSelectableList/HiSelectableList.js +2 -0
- package/es/HiSelectableList/HiSelectableListItem.js +1 -2
- package/package.json +1 -1
@@ -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 : (
|
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
@@ -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 : (
|
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)({
|