@modul-es/icons 0.1.7 → 0.1.8

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.
Files changed (2) hide show
  1. package/dist/Icon.js +2 -1
  2. package/package.json +1 -1
package/dist/Icon.js CHANGED
@@ -120,7 +120,7 @@ function Icon(_a) {
120
120
  newAttrs += " width=\"".concat(iconSize, "\" style=\"height: auto;\"");
121
121
  if (className) {
122
122
  newAttrs = newAttrs.replace(/\sclass="[^"]*"/gi, '');
123
- newAttrs += " class=\"".concat(className, "\"");
123
+ newAttrs += " className=\"".concat(className, "\"");
124
124
  }
125
125
  if (set !== 'phosphor' && set !== 'lucide' && !newAttrs.includes('fill=')) {
126
126
  newAttrs += " fill=\"currentColor\"";
@@ -130,6 +130,7 @@ function Icon(_a) {
130
130
  }
131
131
  return "<svg".concat(newAttrs, ">");
132
132
  });
133
+ svg = svg.replace(/\sclass=/g, ' className=');
133
134
  return svg.trim();
134
135
  }, [svgContent, size, className, set]);
135
136
  if (error || !processedSvg) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modul-es/icons",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Icon component system",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",