ywana-core8 0.0.404 → 0.0.405

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/dist/index.umd.js CHANGED
@@ -156,6 +156,8 @@
156
156
  size = _ref$size === void 0 ? "normal" : _ref$size,
157
157
  _ref$clickable = _ref.clickable,
158
158
  clickable = _ref$clickable === void 0 ? false : _ref$clickable,
159
+ _ref$disabled = _ref.disabled,
160
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
159
161
  action = _ref.action,
160
162
  _ref$eventPropagation = _ref.eventPropagation,
161
163
  eventPropagation = _ref$eventPropagation === void 0 ? false : _ref$eventPropagation;
@@ -169,9 +171,9 @@
169
171
  if (action) action(event);
170
172
  }
171
173
 
172
- var clicker = clickable ? "clickable" : "";
174
+ var style = disabled ? "disabled" : clickable ? "clickable" : "";
173
175
  return /*#__PURE__*/React__default["default"].createElement("i", {
174
- className: "icon " + size + " " + clicker + " material-icons",
176
+ className: "icon " + size + " " + style + " material-icons",
175
177
  onClick: click
176
178
  }, icon);
177
179
  };