zi-icon 1.0.0
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/README.md +120 -0
- package/dist/index.d.mts +184 -0
- package/dist/index.d.ts +184 -0
- package/dist/index.js +1458 -0
- package/dist/index.mjs +1405 -0
- package/package.json +49 -0
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "zi-icon",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"module": "./dist/index.mjs",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.mjs",
|
|
14
|
+
"require": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"dev": "npm run generate:icons && next dev -p 3010",
|
|
19
|
+
"build:docs": "npm run generate:icons && next build",
|
|
20
|
+
"start": "next start",
|
|
21
|
+
"lint": "next lint",
|
|
22
|
+
"clean:icons": "rm -rf src/lib/icons",
|
|
23
|
+
"generate:mono": "svgr --config-file svgr.mono.config.js --out-dir src/lib/icons/monochrome raw_icons/monochrome",
|
|
24
|
+
"generate:color": "svgr --config-file svgr.color.config.js --out-dir src/lib/icons/colored raw_icons/colored",
|
|
25
|
+
"generate:icons": "npm run clean:icons && npm run generate:mono && npm run generate:color && node -e \"require('fs').writeFileSync('src/lib/icons/index.ts', 'export * from \\'./monochrome\\';\\nexport * from \\'./colored\\';')\"",
|
|
26
|
+
"build:lib": "tsup src/lib/icons/index.ts --format esm,cjs --dts --external react --tsconfig tsconfig.lib.json"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"react": ">=17.0.0",
|
|
30
|
+
"react-dom": ">=17.0.0"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@svgr/cli": "^8.0.0",
|
|
34
|
+
"@tailwindcss/postcss": "^4.2.2",
|
|
35
|
+
"@types/node": "^20",
|
|
36
|
+
"@types/react": "^19",
|
|
37
|
+
"@types/react-dom": "^19",
|
|
38
|
+
"autoprefixer": "^10.0.1",
|
|
39
|
+
"eslint": "^9",
|
|
40
|
+
"eslint-config-next": "16.x",
|
|
41
|
+
"next": "16.x",
|
|
42
|
+
"postcss": "^8",
|
|
43
|
+
"react": "^19.0.0",
|
|
44
|
+
"react-dom": "19.x",
|
|
45
|
+
"tailwindcss": "^4.2.2",
|
|
46
|
+
"tsup": "^8.0.0",
|
|
47
|
+
"typescript": "^5.9.3"
|
|
48
|
+
}
|
|
49
|
+
}
|