anarock-widgets 1.0.70 → 1.0.77
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/anarock-widgets.css +1 -1
- package/dist/index.cjs.js +76 -76
- package/dist/index.es.js +4479 -4464
- package/dist/index.umd.js +75 -75
- package/package.json +45 -45
- package/readme.md +72 -77
package/package.json
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "anarock-widgets",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"main": "dist/index.cjs.js",
|
|
5
|
-
"module": "dist/index.es.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"import": "./dist/index.es.js",
|
|
10
|
-
"require": "./dist/index.cjs.js"
|
|
11
|
-
},
|
|
12
|
-
"./dist/anarock-widgets.css": "./dist/anarock-widgets.css"
|
|
13
|
-
},
|
|
14
|
-
"files": [
|
|
15
|
-
"dist"
|
|
16
|
-
],
|
|
17
|
-
"scripts": {
|
|
18
|
-
"dev": "vite",
|
|
19
|
-
"build": "vite build",
|
|
20
|
-
"preview": "vite preview"
|
|
21
|
-
},
|
|
22
|
-
"peerDependencies": {
|
|
23
|
-
"@emotion/react": "^11.14.0",
|
|
24
|
-
"@emotion/styled": "^11.14.1",
|
|
25
|
-
"@mui/icons-material": "^7.3.2",
|
|
26
|
-
"@mui/material": "^7.3.2",
|
|
27
|
-
"react": "^18.0.0",
|
|
28
|
-
"react-dom": "^18.0.0"
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"@tippyjs/react": "^4.2.6",
|
|
32
|
-
"react-chartjs-2": "^5.3.0",
|
|
33
|
-
"react-icons": "^5.5.0",
|
|
34
|
-
"recharts": "^3.2.1"
|
|
35
|
-
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"@tailwindcss/postcss": "^4.1.13",
|
|
38
|
-
"@vitejs/plugin-react": "^5.0.3",
|
|
39
|
-
"autoprefixer": "^10.4.21",
|
|
40
|
-
"postcss": "^8.5.6",
|
|
41
|
-
"tailwindcss": "^4.1.13",
|
|
42
|
-
"typescript": "^5.2.0",
|
|
43
|
-
"vite": "^7.1.7"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "anarock-widgets",
|
|
3
|
+
"version": "1.0.77",
|
|
4
|
+
"main": "dist/index.cjs.js",
|
|
5
|
+
"module": "dist/index.es.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/index.es.js",
|
|
10
|
+
"require": "./dist/index.cjs.js"
|
|
11
|
+
},
|
|
12
|
+
"./dist/anarock-widgets.css": "./dist/anarock-widgets.css"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"dev": "vite",
|
|
19
|
+
"build": "vite build",
|
|
20
|
+
"preview": "vite preview"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"@emotion/react": "^11.14.0",
|
|
24
|
+
"@emotion/styled": "^11.14.1",
|
|
25
|
+
"@mui/icons-material": "^7.3.2",
|
|
26
|
+
"@mui/material": "^7.3.2",
|
|
27
|
+
"react": "^18.0.0",
|
|
28
|
+
"react-dom": "^18.0.0"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@tippyjs/react": "^4.2.6",
|
|
32
|
+
"react-chartjs-2": "^5.3.0",
|
|
33
|
+
"react-icons": "^5.5.0",
|
|
34
|
+
"recharts": "^3.2.1"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@tailwindcss/postcss": "^4.1.13",
|
|
38
|
+
"@vitejs/plugin-react": "^5.0.3",
|
|
39
|
+
"autoprefixer": "^10.4.21",
|
|
40
|
+
"postcss": "^8.5.6",
|
|
41
|
+
"tailwindcss": "^4.1.13",
|
|
42
|
+
"typescript": "^5.2.0",
|
|
43
|
+
"vite": "^7.1.7"
|
|
44
|
+
}
|
|
45
|
+
}
|
package/readme.md
CHANGED
|
@@ -1,77 +1,72 @@
|
|
|
1
|
-
📦
|
|
2
|
-
|
|
3
|
-
A collection of reusable React UI widgets for the Anarock Dashboard.
|
|
4
|
-
|
|
5
|
-
🚀 Development Workflow
|
|
6
|
-
1️⃣ Install Dependencies
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Opens local dev server.
|
|
15
|
-
|
|
16
|
-
Any changes to widgets will hot-reload in the browser.
|
|
17
|
-
|
|
18
|
-
3️⃣ Build the Package
|
|
19
|
-
npm run build
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
From
|
|
60
|
-
|
|
61
|
-
npm
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
Widgets should not hardcode fonts. Use the global font defined in src/styles/global.css.
|
|
74
|
-
|
|
75
|
-
Keep react and react-dom as peerDependencies (not bundled).
|
|
76
|
-
|
|
77
|
-
Always test in the playground before publishing.
|
|
1
|
+
📦 anarock-widgets
|
|
2
|
+
|
|
3
|
+
A collection of reusable React UI widgets for the Anarock Dashboard.
|
|
4
|
+
|
|
5
|
+
🚀 Development Workflow
|
|
6
|
+
1️⃣ Install Dependencies
|
|
7
|
+
|
|
8
|
+
npm install
|
|
9
|
+
|
|
10
|
+
2️⃣ Run Playground (for previewing widgets in real-time)
|
|
11
|
+
cd playground
|
|
12
|
+
npm run dev
|
|
13
|
+
|
|
14
|
+
Opens local dev server.
|
|
15
|
+
|
|
16
|
+
Any changes to widgets will hot-reload in the browser.
|
|
17
|
+
|
|
18
|
+
3️⃣ Build the Package
|
|
19
|
+
npm run build
|
|
20
|
+
|
|
21
|
+
Creates the dist/ folder with production-ready files:
|
|
22
|
+
|
|
23
|
+
dist/index.js (CJS build)
|
|
24
|
+
|
|
25
|
+
dist/index.esm.js (ESM build)
|
|
26
|
+
|
|
27
|
+
dist/index.d.ts (TypeScript types, if using TS)
|
|
28
|
+
|
|
29
|
+
4️⃣ Update Version
|
|
30
|
+
|
|
31
|
+
Every time you change widgets, bump the version in package.json:
|
|
32
|
+
|
|
33
|
+
{
|
|
34
|
+
"name": "@anarock/widgets",
|
|
35
|
+
"version": "1.0.1"
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
Follow semver
|
|
39
|
+
:
|
|
40
|
+
|
|
41
|
+
Patch → bug fixes (1.0.1)
|
|
42
|
+
|
|
43
|
+
Minor → new widgets/features (1.1.0)
|
|
44
|
+
|
|
45
|
+
Major → breaking changes (2.0.0)
|
|
46
|
+
|
|
47
|
+
5️⃣ Publish to GitHub (Private)
|
|
48
|
+
|
|
49
|
+
Publish:
|
|
50
|
+
|
|
51
|
+
git push
|
|
52
|
+
|
|
53
|
+
6️⃣ Install in Another Project
|
|
54
|
+
|
|
55
|
+
From GitHub Repo:
|
|
56
|
+
|
|
57
|
+
npm install git+https://github.com/vinayak-vayuz/anarock-dashboard-widgets.git
|
|
58
|
+
|
|
59
|
+
From Local Tarball (if testing without publish):
|
|
60
|
+
|
|
61
|
+
npm pack
|
|
62
|
+
npm install ../anarock-widgets/anarock-widgets-1.0.0.tgz
|
|
63
|
+
|
|
64
|
+
📝 Notes
|
|
65
|
+
|
|
66
|
+
Ensure node_modules and dist are not ignored in .gitignore.
|
|
67
|
+
|
|
68
|
+
Widgets should not hardcode fonts. Use the global font defined in src/styles/global.css.
|
|
69
|
+
|
|
70
|
+
Keep react and react-dom as peerDependencies (not bundled).
|
|
71
|
+
|
|
72
|
+
Always test in the playground before publishing.
|