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.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +4 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/icon.css +4 -0
- package/src/html/icon.js +3 -3
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
|
174
|
+
var style = disabled ? "disabled" : clickable ? "clickable" : "";
|
173
175
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
174
|
-
className: "icon " + size + " " +
|
176
|
+
className: "icon " + size + " " + style + " material-icons",
|
175
177
|
onClick: click
|
176
178
|
}, icon);
|
177
179
|
};
|