@vertz/icons 0.2.32 → 0.2.33

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/index.js +7 -1
  2. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -3,7 +3,13 @@ function renderIcon(svgString, props) {
3
3
  const { size = 16, className, class: classProp } = props ?? {};
4
4
  const effectiveClass = className ?? classProp;
5
5
  const span = document.createElement("span");
6
- Object.assign(span.style, { display: "inline-flex", alignItems: "center", width: `${size}px`, height: `${size}px`, flexShrink: "0" });
6
+ Object.assign(span.style, {
7
+ display: "inline-flex",
8
+ alignItems: "center",
9
+ width: `${size}px`,
10
+ height: `${size}px`,
11
+ flexShrink: "0"
12
+ });
7
13
  if (effectiveClass)
8
14
  span.className = effectiveClass;
9
15
  span.innerHTML = svgString.replace(/\bwidth="\d+"/, `width="${size}"`).replace(/\bheight="\d+"/, `height="${size}"`);
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@vertz/icons",
3
- "version": "0.2.32",
4
- "type": "module",
5
- "license": "MIT",
3
+ "version": "0.2.33",
6
4
  "description": "Tree-shakeable Lucide icon components for Vertz",
5
+ "license": "MIT",
7
6
  "repository": {
8
7
  "type": "git",
9
8
  "url": "https://github.com/vertz-dev/vertz.git",
10
9
  "directory": "packages/icons"
11
10
  },
12
- "publishConfig": {
13
- "access": "public",
14
- "provenance": true
15
- },
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "type": "module",
15
+ "sideEffects": false,
16
16
  "main": "dist/index.js",
17
17
  "types": "dist/index.d.ts",
18
18
  "exports": {
@@ -21,9 +21,10 @@
21
21
  "types": "./dist/index.d.ts"
22
22
  }
23
23
  },
24
- "files": [
25
- "dist"
26
- ],
24
+ "publishConfig": {
25
+ "access": "public",
26
+ "provenance": true
27
+ },
27
28
  "scripts": {
28
29
  "build": "bunup",
29
30
  "generate": "bun run scripts/generate.ts",
@@ -40,6 +41,5 @@
40
41
  },
41
42
  "engines": {
42
43
  "node": ">=22"
43
- },
44
- "sideEffects": false
44
+ }
45
45
  }