svg-dynamic-icon 1.0.2 → 1.0.4

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/README.md +2 -2
  2. package/package.json +5 -4
package/README.md CHANGED
@@ -22,7 +22,7 @@ function Example() {
22
22
  return (
23
23
  <DynamicIcon
24
24
  iconName="Checkmark" // refers to: assets/icons/Checkmark.svg
25
- size=32 // icon will be 32px by 32px
25
+ size={32} // icon will be 32px by 32px
26
26
  color="text-blue-500" // tailwind class for icon color
27
27
  />
28
28
  );
@@ -53,7 +53,7 @@ function Example() {
53
53
 
54
54
  - React
55
55
  - react-svg
56
- - tailwind-merge
56
+ - tailwindcss
57
57
 
58
58
  #
59
59
 
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "svg-dynamic-icon",
3
- "version": "1.0.2",
4
- "main": "index.js",
3
+ "version": "1.0.4",
4
+ "main": "dist/index.js",
5
+ "types": "dist/index.d.ts",
5
6
  "scripts": {
6
7
  "build": "node build.js"
7
8
  },
@@ -16,8 +17,8 @@
16
17
  "typescript": "^5.8.3"
17
18
  },
18
19
  "peerDependencies": {
19
- "react": "^17.0.0 || ^18.0.0",
20
- "react-dom": "^17.0.0 || ^18.0.0",
20
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
21
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
21
22
  "react-svg": "^15.1.21"
22
23
  }
23
24
  }