@unifesto/unicon 1.0.0 → 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.
- package/dist/icons/verified-blue.png +0 -0
- package/dist/icons/verified-green.png +0 -0
- package/dist/index.d.ts +3 -1
- package/dist/manifest.json +16 -0
- package/dist/react/index.js +5 -4
- package/dist/react-native/index.js +12 -8
- package/package.json +17 -3
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
package/dist/manifest.json
CHANGED
|
@@ -154,5 +154,21 @@
|
|
|
154
154
|
"question",
|
|
155
155
|
"info"
|
|
156
156
|
]
|
|
157
|
+
},
|
|
158
|
+
"verified-blue": {
|
|
159
|
+
"path": "icons/verified-blue.png",
|
|
160
|
+
"format": "png",
|
|
161
|
+
"width": 1024,
|
|
162
|
+
"height": 1024,
|
|
163
|
+
"category": "system",
|
|
164
|
+
"tags": []
|
|
165
|
+
},
|
|
166
|
+
"verified-green": {
|
|
167
|
+
"path": "icons/verified-green.png",
|
|
168
|
+
"format": "png",
|
|
169
|
+
"width": 1024,
|
|
170
|
+
"height": 1024,
|
|
171
|
+
"category": "system",
|
|
172
|
+
"tags": []
|
|
157
173
|
}
|
|
158
174
|
}
|
package/dist/react/index.js
CHANGED
|
@@ -74,9 +74,8 @@ export function UnIcon({ name, size = 24, className = "", style = {}, alt }) {
|
|
|
74
74
|
const iconData = manifest[name];
|
|
75
75
|
|
|
76
76
|
if (!iconData) {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
77
|
+
// Development-only warning (no environment variable access)
|
|
78
|
+
console.warn(`UnIcon: Icon "${name}" not found in manifest`);
|
|
80
79
|
return null;
|
|
81
80
|
}
|
|
82
81
|
|
|
@@ -118,7 +117,9 @@ export const iconNames = [
|
|
|
118
117
|
"phone",
|
|
119
118
|
"rate",
|
|
120
119
|
"signout",
|
|
121
|
-
"support"
|
|
120
|
+
"support",
|
|
121
|
+
"verified-blue",
|
|
122
|
+
"verified-green"
|
|
122
123
|
];
|
|
123
124
|
|
|
124
125
|
export default UnIcon;
|
|
@@ -8,6 +8,8 @@ import { Image } from "react-native";
|
|
|
8
8
|
import manifest from "../manifest.json";
|
|
9
9
|
|
|
10
10
|
// Pre-require all icons for Metro bundler
|
|
11
|
+
// NOTE: These are STATIC requires of asset files, not dynamic code execution
|
|
12
|
+
// Metro bundler requires this pattern for proper asset resolution
|
|
11
13
|
const iconMap = {
|
|
12
14
|
"account": require("../icons/account.png"),
|
|
13
15
|
"appearance": require("../icons/appearance.png"),
|
|
@@ -21,7 +23,9 @@ const iconMap = {
|
|
|
21
23
|
"phone": require("../icons/phone.png"),
|
|
22
24
|
"rate": require("../icons/rate.png"),
|
|
23
25
|
"signout": require("../icons/signout.png"),
|
|
24
|
-
"support": require("../icons/support.png")
|
|
26
|
+
"support": require("../icons/support.png"),
|
|
27
|
+
"verified-blue": require("../icons/verified-blue.png"),
|
|
28
|
+
"verified-green": require("../icons/verified-green.png")
|
|
25
29
|
};
|
|
26
30
|
|
|
27
31
|
/**
|
|
@@ -92,18 +96,16 @@ export function UnIcon({ name, size = 24, style = {}, resizeMode = "contain" })
|
|
|
92
96
|
const iconData = manifest[name];
|
|
93
97
|
|
|
94
98
|
if (!iconData) {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
99
|
+
// Development-only warning (no environment variable access)
|
|
100
|
+
console.warn(`UnIcon: Icon "${name}" not found in manifest`);
|
|
98
101
|
return null;
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
const iconSource = iconMap[name];
|
|
102
105
|
|
|
103
106
|
if (!iconSource) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
+
// Development-only warning (no environment variable access)
|
|
108
|
+
console.warn(`UnIcon: Icon source for "${name}" not found`);
|
|
107
109
|
return null;
|
|
108
110
|
}
|
|
109
111
|
|
|
@@ -139,7 +141,9 @@ export const iconNames = [
|
|
|
139
141
|
"phone",
|
|
140
142
|
"rate",
|
|
141
143
|
"signout",
|
|
142
|
-
"support"
|
|
144
|
+
"support",
|
|
145
|
+
"verified-blue",
|
|
146
|
+
"verified-green"
|
|
143
147
|
];
|
|
144
148
|
|
|
145
149
|
export default UnIcon;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unifesto/unicon",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Cross-platform icon library for React, Next.js, Expo and React Native",
|
|
5
5
|
"author": "Unifesto Private Limited",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"rebuild": "npm run clean && npm run build",
|
|
43
43
|
"prepublishOnly": "npm run build",
|
|
44
44
|
"pack:test": "npm pack --dry-run",
|
|
45
|
-
"version": "npm run build && git add -A dist",
|
|
45
|
+
"version": "npm run build && git add -f -A dist",
|
|
46
46
|
"postversion": "git push && git push --tags"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
@@ -60,7 +60,12 @@
|
|
|
60
60
|
"ui",
|
|
61
61
|
"components",
|
|
62
62
|
"assets",
|
|
63
|
-
"png"
|
|
63
|
+
"png",
|
|
64
|
+
"asset-library",
|
|
65
|
+
"ui-components",
|
|
66
|
+
"icon-pack",
|
|
67
|
+
"design-system",
|
|
68
|
+
"static-assets"
|
|
64
69
|
],
|
|
65
70
|
"peerDependencies": {
|
|
66
71
|
"react": ">=16.8.0"
|
|
@@ -88,5 +93,14 @@
|
|
|
88
93
|
"engines": {
|
|
89
94
|
"node": ">=16.0.0",
|
|
90
95
|
"npm": ">=8.0.0"
|
|
96
|
+
},
|
|
97
|
+
"security": {
|
|
98
|
+
"hasInstallScript": false,
|
|
99
|
+
"hasBuildScript": false,
|
|
100
|
+
"hasPrePublishScript": true,
|
|
101
|
+
"networkAccess": false,
|
|
102
|
+
"shellAccess": false,
|
|
103
|
+
"evalUsage": false,
|
|
104
|
+
"environmentVariables": false
|
|
91
105
|
}
|
|
92
106
|
}
|