zaravand-ui 7.0.0 → 7.0.1
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 +45 -45
- package/package.json +98 -98
package/README.md
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
# zaravand-ui
|
|
2
|
-
|
|
3
|
-
Reusable React UI library with centralized theme tokens.
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm i zaravand-ui
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```tsx
|
|
14
|
-
import "zaravand-ui/styles.css"
|
|
15
|
-
import { Button, applyTheme } from "zaravand-ui"
|
|
16
|
-
|
|
17
|
-
applyTheme({
|
|
18
|
-
primary: "#2563EB",
|
|
19
|
-
secondary: "#0891B2",
|
|
20
|
-
text: "#F8FAFC",
|
|
21
|
-
success: "#16A34A",
|
|
22
|
-
warning: "#EAB308",
|
|
23
|
-
danger: "#DC2626",
|
|
24
|
-
border: "#334155",
|
|
25
|
-
surface: "#0F172A",
|
|
26
|
-
mutedSurface: "#1E293B",
|
|
27
|
-
tooltipSurface: "#0B1120",
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
export function Example() {
|
|
31
|
-
return <Button label="Save" />
|
|
32
|
-
}
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Scripts
|
|
36
|
-
|
|
37
|
-
- `npm run build`
|
|
38
|
-
- `npm run docs:dev`
|
|
39
|
-
- `npm run docs:build`
|
|
40
|
-
- `npm run docs:preview`
|
|
41
|
-
|
|
42
|
-
## Documentation
|
|
43
|
-
|
|
44
|
-
- Developer docs (VitePress): `docs/`
|
|
45
|
-
- Full integration guide: `ZARAVAND_UI_INTEGRATION_GUIDE.md`
|
|
1
|
+
# zaravand-ui
|
|
2
|
+
|
|
3
|
+
Reusable React UI library with centralized theme tokens.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm i zaravand-ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import "zaravand-ui/styles.css"
|
|
15
|
+
import { Button, applyTheme } from "zaravand-ui"
|
|
16
|
+
|
|
17
|
+
applyTheme({
|
|
18
|
+
primary: "#2563EB",
|
|
19
|
+
secondary: "#0891B2",
|
|
20
|
+
text: "#F8FAFC",
|
|
21
|
+
success: "#16A34A",
|
|
22
|
+
warning: "#EAB308",
|
|
23
|
+
danger: "#DC2626",
|
|
24
|
+
border: "#334155",
|
|
25
|
+
surface: "#0F172A",
|
|
26
|
+
mutedSurface: "#1E293B",
|
|
27
|
+
tooltipSurface: "#0B1120",
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
export function Example() {
|
|
31
|
+
return <Button label="Save" />
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Scripts
|
|
36
|
+
|
|
37
|
+
- `npm run build`
|
|
38
|
+
- `npm run docs:dev`
|
|
39
|
+
- `npm run docs:build`
|
|
40
|
+
- `npm run docs:preview`
|
|
41
|
+
|
|
42
|
+
## Documentation
|
|
43
|
+
|
|
44
|
+
- Developer docs (VitePress): `docs/`
|
|
45
|
+
- Full integration guide: `ZARAVAND_UI_INTEGRATION_GUIDE.md`
|
package/package.json
CHANGED
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "zaravand-ui",
|
|
3
|
-
"version": "7.0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "./dist/index.cjs",
|
|
6
|
-
"module": "./dist/index.js",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"style": "./dist/index.css",
|
|
9
|
-
"sideEffects": [
|
|
10
|
-
"**/*.css"
|
|
11
|
-
],
|
|
12
|
-
"files": [
|
|
13
|
-
"dist"
|
|
14
|
-
],
|
|
15
|
-
"exports": {
|
|
16
|
-
".": {
|
|
17
|
-
"import": {
|
|
18
|
-
"types": "./dist/index.d.ts",
|
|
19
|
-
"default": "./dist/index.js"
|
|
20
|
-
},
|
|
21
|
-
"require": {
|
|
22
|
-
"types": "./dist/index.d.cts",
|
|
23
|
-
"default": "./dist/index.cjs"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"./styles.css": "./dist/index.css",
|
|
27
|
-
"./package.json": "./package.json"
|
|
28
|
-
},
|
|
29
|
-
"scripts": {
|
|
30
|
-
"dev": "vite",
|
|
31
|
-
"dev:lib": "vite build --watch",
|
|
32
|
-
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
33
|
-
"build": "npm run clean && npm run generate:theme && vite build && tsc -p tsconfig.build.json && node scripts/finalize-types.mjs",
|
|
34
|
-
"build:demo": "vite build --config vite.demo.config.ts",
|
|
35
|
-
"check:package": "publint --strict && attw --pack . --exclude-entrypoints styles.css",
|
|
36
|
-
"prepublishOnly": "npm run build && npm run check:package",
|
|
37
|
-
"lint": "eslint .",
|
|
38
|
-
"test": "vitest run",
|
|
39
|
-
"test:watch": "vitest",
|
|
40
|
-
"test:coverage": "vitest run --coverage",
|
|
41
|
-
"docs:dev": "vitepress dev docs",
|
|
42
|
-
"docs:build": "vitepress build docs",
|
|
43
|
-
"docs:preview": "vitepress preview docs",
|
|
44
|
-
"generate:theme": "node scripts/generate-theme-css.mjs",
|
|
45
|
-
"format": "prettier --write src scripts",
|
|
46
|
-
"format:check": "prettier --check src scripts"
|
|
47
|
-
},
|
|
48
|
-
"dependencies": {
|
|
49
|
-
"@radix-ui/react-checkbox": "^1.3.3",
|
|
50
|
-
"@radix-ui/react-dialog": "^1.1.15",
|
|
51
|
-
"@radix-ui/react-popover": "^1.1.15",
|
|
52
|
-
"@radix-ui/react-radio-group": "^1.3.8",
|
|
53
|
-
"@radix-ui/react-switch": "^1.3.7",
|
|
54
|
-
"@radix-ui/react-toast": "^1.2.15",
|
|
55
|
-
"@radix-ui/react-toggle": "^1.1.18",
|
|
56
|
-
"@radix-ui/react-tooltip": "^1.2.8",
|
|
57
|
-
"class-variance-authority": "^0.7.1",
|
|
58
|
-
"clsx": "^2.1.1",
|
|
59
|
-
"lucide-react": "^1.12.0",
|
|
60
|
-
"react-day-picker": "^9.11.1",
|
|
61
|
-
"tailwind-merge": "^3.7.0"
|
|
62
|
-
},
|
|
63
|
-
"peerDependencies": {
|
|
64
|
-
"react": ">=18.2.0 <20",
|
|
65
|
-
"react-dom": ">=18.2.0 <20"
|
|
66
|
-
},
|
|
67
|
-
"devDependencies": {
|
|
68
|
-
"@arethetypeswrong/cli": "^0.18.5",
|
|
69
|
-
"@eslint/js": "^10.0.1",
|
|
70
|
-
"@tailwindcss/vite": "^4.2.4",
|
|
71
|
-
"@testing-library/dom": "^10.4.2",
|
|
72
|
-
"@testing-library/jest-dom": "^7.0.1",
|
|
73
|
-
"@testing-library/react": "^16.3.3",
|
|
74
|
-
"@testing-library/user-event": "^14.6.7",
|
|
75
|
-
"@types/node": "^24.12.2",
|
|
76
|
-
"@types/react": "^19.2.14",
|
|
77
|
-
"@types/react-dom": "^19.2.3",
|
|
78
|
-
"@vitejs/plugin-react": "^6.0.1",
|
|
79
|
-
"@vitest/coverage-v8": "^5.0.2",
|
|
80
|
-
"eslint": "^10.2.1",
|
|
81
|
-
"eslint-plugin-react-hooks": "^7.1.1",
|
|
82
|
-
"eslint-plugin-react-refresh": "^0.5.2",
|
|
83
|
-
"globals": "^17.5.0",
|
|
84
|
-
"jsdom": "^29.1.1",
|
|
85
|
-
"prettier": "^3.9.9",
|
|
86
|
-
"publint": "^0.3.24",
|
|
87
|
-
"react": "^19.2.5",
|
|
88
|
-
"react-dom": "^19.2.5",
|
|
89
|
-
"tailwindcss": "^4.2.4",
|
|
90
|
-
"tw-animate-css": "^1.4.0",
|
|
91
|
-
"typescript": "~6.0.2",
|
|
92
|
-
"typescript-eslint": "^8.58.2",
|
|
93
|
-
"vite": "^8.0.10",
|
|
94
|
-
"vitepress": "^1.6.4",
|
|
95
|
-
"vitest": "^5.0.2"
|
|
96
|
-
},
|
|
97
|
-
"packageManager": "npm@11.11.0"
|
|
98
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "zaravand-ui",
|
|
3
|
+
"version": "7.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.cjs",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"style": "./dist/index.css",
|
|
9
|
+
"sideEffects": [
|
|
10
|
+
"**/*.css"
|
|
11
|
+
],
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"default": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"require": {
|
|
22
|
+
"types": "./dist/index.d.cts",
|
|
23
|
+
"default": "./dist/index.cjs"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"./styles.css": "./dist/index.css",
|
|
27
|
+
"./package.json": "./package.json"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"dev": "vite",
|
|
31
|
+
"dev:lib": "vite build --watch",
|
|
32
|
+
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
33
|
+
"build": "npm run clean && npm run generate:theme && vite build && tsc -p tsconfig.build.json && node scripts/finalize-types.mjs",
|
|
34
|
+
"build:demo": "vite build --config vite.demo.config.ts",
|
|
35
|
+
"check:package": "publint --strict && attw --pack . --exclude-entrypoints styles.css",
|
|
36
|
+
"prepublishOnly": "npm run build && npm run check:package",
|
|
37
|
+
"lint": "eslint .",
|
|
38
|
+
"test": "vitest run",
|
|
39
|
+
"test:watch": "vitest",
|
|
40
|
+
"test:coverage": "vitest run --coverage",
|
|
41
|
+
"docs:dev": "vitepress dev docs",
|
|
42
|
+
"docs:build": "vitepress build docs",
|
|
43
|
+
"docs:preview": "vitepress preview docs",
|
|
44
|
+
"generate:theme": "node scripts/generate-theme-css.mjs",
|
|
45
|
+
"format": "prettier --write src scripts",
|
|
46
|
+
"format:check": "prettier --check src scripts"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
50
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
51
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
52
|
+
"@radix-ui/react-radio-group": "^1.3.8",
|
|
53
|
+
"@radix-ui/react-switch": "^1.3.7",
|
|
54
|
+
"@radix-ui/react-toast": "^1.2.15",
|
|
55
|
+
"@radix-ui/react-toggle": "^1.1.18",
|
|
56
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
57
|
+
"class-variance-authority": "^0.7.1",
|
|
58
|
+
"clsx": "^2.1.1",
|
|
59
|
+
"lucide-react": "^1.12.0",
|
|
60
|
+
"react-day-picker": "^9.11.1",
|
|
61
|
+
"tailwind-merge": "^3.7.0"
|
|
62
|
+
},
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"react": ">=18.2.0 <20",
|
|
65
|
+
"react-dom": ">=18.2.0 <20"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@arethetypeswrong/cli": "^0.18.5",
|
|
69
|
+
"@eslint/js": "^10.0.1",
|
|
70
|
+
"@tailwindcss/vite": "^4.2.4",
|
|
71
|
+
"@testing-library/dom": "^10.4.2",
|
|
72
|
+
"@testing-library/jest-dom": "^7.0.1",
|
|
73
|
+
"@testing-library/react": "^16.3.3",
|
|
74
|
+
"@testing-library/user-event": "^14.6.7",
|
|
75
|
+
"@types/node": "^24.12.2",
|
|
76
|
+
"@types/react": "^19.2.14",
|
|
77
|
+
"@types/react-dom": "^19.2.3",
|
|
78
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
79
|
+
"@vitest/coverage-v8": "^5.0.2",
|
|
80
|
+
"eslint": "^10.2.1",
|
|
81
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
82
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
83
|
+
"globals": "^17.5.0",
|
|
84
|
+
"jsdom": "^29.1.1",
|
|
85
|
+
"prettier": "^3.9.9",
|
|
86
|
+
"publint": "^0.3.24",
|
|
87
|
+
"react": "^19.2.5",
|
|
88
|
+
"react-dom": "^19.2.5",
|
|
89
|
+
"tailwindcss": "^4.2.4",
|
|
90
|
+
"tw-animate-css": "^1.4.0",
|
|
91
|
+
"typescript": "~6.0.2",
|
|
92
|
+
"typescript-eslint": "^8.58.2",
|
|
93
|
+
"vite": "^8.0.10",
|
|
94
|
+
"vitepress": "^1.6.4",
|
|
95
|
+
"vitest": "^5.0.2"
|
|
96
|
+
},
|
|
97
|
+
"packageManager": "npm@11.11.0"
|
|
98
|
+
}
|