@catalystsoftware/icons 1.0.11 → 1.0.12
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.js +2 -3
- package/dist/index.mjs +2 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -515,7 +515,6 @@ function createIcon(pathData, displayName, defaultFill = false) {
|
|
|
515
515
|
color = "currentColor",
|
|
516
516
|
strokeWidth = 2,
|
|
517
517
|
absoluteStrokeWidth = false,
|
|
518
|
-
fill = defaultFill,
|
|
519
518
|
className = "",
|
|
520
519
|
children,
|
|
521
520
|
...props
|
|
@@ -529,8 +528,8 @@ function createIcon(pathData, displayName, defaultFill = false) {
|
|
|
529
528
|
width: size,
|
|
530
529
|
height: size,
|
|
531
530
|
viewBox: "0 0 24 24",
|
|
532
|
-
fill:
|
|
533
|
-
stroke:
|
|
531
|
+
fill: defaultFill ? color : "none",
|
|
532
|
+
stroke: defaultFill ? "none" : color,
|
|
534
533
|
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
|
535
534
|
strokeLinecap: "round",
|
|
536
535
|
strokeLinejoin: "round",
|
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,6 @@ function createIcon(pathData, displayName, defaultFill = false) {
|
|
|
7
7
|
color = "currentColor",
|
|
8
8
|
strokeWidth = 2,
|
|
9
9
|
absoluteStrokeWidth = false,
|
|
10
|
-
fill = defaultFill,
|
|
11
10
|
className = "",
|
|
12
11
|
children,
|
|
13
12
|
...props
|
|
@@ -21,8 +20,8 @@ function createIcon(pathData, displayName, defaultFill = false) {
|
|
|
21
20
|
width: size,
|
|
22
21
|
height: size,
|
|
23
22
|
viewBox: "0 0 24 24",
|
|
24
|
-
fill:
|
|
25
|
-
stroke:
|
|
23
|
+
fill: defaultFill ? color : "none",
|
|
24
|
+
stroke: defaultFill ? "none" : color,
|
|
26
25
|
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
|
27
26
|
strokeLinecap: "round",
|
|
28
27
|
strokeLinejoin: "round",
|