@diana-ui/icon
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -26,3 +26,3 @@ var __assign = (this && this.__assign) || function () { | ||
var styleSheet = function () { return ({ | ||
icon: {} | ||
icon: {}, | ||
}); }; | ||
@@ -39,3 +39,3 @@ var Icon = function (_a) { | ||
var newProps = { | ||
className: "y-icon " + cx(styles.icon) + " " + (className || "") | ||
className: "y-icon " + cx(styles.icon) + " " + (className || ""), | ||
}; | ||
@@ -51,4 +51,4 @@ if (size || width) { | ||
} | ||
if (stroke || color) { | ||
newProps.stroke = stroke || color; | ||
if (stroke) { | ||
newProps.stroke = stroke; | ||
} | ||
@@ -55,0 +55,0 @@ newProps.className = "y-icon " + cx(styles.icon) + " " + (className || ""); |
@@ -15,3 +15,3 @@ var __rest = (this && this.__rest) || function (s, e) { | ||
const styleSheet = () => ({ | ||
icon: {} | ||
icon: {}, | ||
}); | ||
@@ -28,3 +28,3 @@ const Icon = (_a) => { | ||
const newProps = { | ||
className: `y-icon ${cx(styles.icon)} ${className || ""}` | ||
className: `y-icon ${cx(styles.icon)} ${className || ""}`, | ||
}; | ||
@@ -40,4 +40,4 @@ if (size || width) { | ||
} | ||
if (stroke || color) { | ||
newProps.stroke = stroke || color; | ||
if (stroke) { | ||
newProps.stroke = stroke; | ||
} | ||
@@ -44,0 +44,0 @@ newProps.className = `y-icon ${cx(styles.icon)} ${className || ""}`; |
{ | ||
"name": "@diana-ui/icon", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"main": "lib/index.js", | ||
@@ -47,3 +47,3 @@ "module": "module/index.js", | ||
}, | ||
"gitHead": "487f5d6632639bcf3d074808db06240c6026172d" | ||
"gitHead": "d29a70f33df95402953c4b72267f4d78c6d473ac" | ||
} |
6751