@go-wind/admin-vben 0.1.3 → 0.1.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-wind/admin-vben",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Vben 5 derived admin shell framework (Vue 3 + Ant Design Vue + tailwind), deep-customized and version-pinned by go-wind-admin. Consumed as a SOURCE package: hosts resolve subpaths into src/ via their own tsconfig paths / bundler, keeping full component types without a build step.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -37,7 +37,6 @@
37
37
  "clsx": "^2.1.1",
38
38
  "dayjs": "^1.11.13",
39
39
  "defu": "6.1.4",
40
- "json-bigint": "^1.0.0",
41
40
  "lodash.clonedeep": "^4.5.0",
42
41
  "lodash.get": "^4.4.2",
43
42
  "lodash.isequal": "^4.5.0",
@@ -57,10 +56,19 @@
57
56
  "registry": "https://registry.npmjs.org/"
58
57
  },
59
58
  "devDependencies": {
59
+ "@vue/shared": "3.5.13",
60
+ "@vitejs/plugin-vue": "5.2.4",
61
+ "@vue/test-utils": "^2.4.6",
62
+ "jsdom": "^25.0.1",
63
+ "typescript": "^5.6.3",
60
64
  "vue": "3.5.13",
61
65
  "vue-router": "5.4.0",
62
66
  "pinia": "2.2.2",
63
67
  "@vueuse/core": "11.3.0",
64
- "@tanstack/vue-query": "5.105.0"
68
+ "@tanstack/vue-query": "5.105.0",
69
+ "vitest": "^3.2.4"
70
+ },
71
+ "scripts": {
72
+ "test": "vitest run"
65
73
  }
66
74
  }
@@ -26,7 +26,7 @@
26
26
 
27
27
  /* --muted-foreground: 215 20.2% 65.1%; */
28
28
 
29
- --muted: 240 3.7% 15.9%;
29
+ --muted: 220 18% 16%;
30
30
  /* 次要文字 = §2.3 定稿 #8B949E(换算成 HSL 三元组,与 react SECONDARY_TEXT_DARK、
31
31
  ele --el-text-color-secondary 暗态同值)。原值 240 5% 64.9% 换算为 #A1A1AA,比规范亮一档,
32
32
  两档在 L0/L1/浮层 上实测都达标(7.47/6.92/6.31 与 6.23/5.77/5.26),换过来是为了三端同值。
@@ -58,32 +58,38 @@
58
58
  --warning: 42 84% 61%;
59
59
  --warning-foreground: 0 0% 98%;
60
60
 
61
- /* 颜色次要 */
62
- --secondary: 240 5% 17%;
61
+ /* 中性灰家族(muted、secondary、accent 系、heavy、border)2026-11-17 接回 §2.3 近黑蓝系。
62
+ 原值是 shadcn 出厂 zinc(hue 240、彩度 0~5%),明度本来就落在规范的白 α 衍生档
63
+ (α .05~.13 叠 L1 #111827 合成 L 15~24%),缺的只是蓝调——故只补彩度、不动明度,
64
+ 版面权重与描边强弱都不变。对照:--border #2D3543 介于输入 α10%(#292F3D) 与
65
+ 通用 slate α.28(#363F50) 之间;--accent #252B36 ≈ 悬停档白 α8%(#242A38)。
66
+ 其余 12 个内置配色预设各带一套中性色,不在本口径内(同 --muted-foreground 那条边界)。 */
67
+ --secondary: 220 18% 17%;
63
68
  --secondary-foreground: 0 0% 98%;
64
69
 
65
70
  /* Used for accents such as hover effects on <DropdownMenuItem>, <SelectItem>...etc */
66
- --accent: 216 5% 19%;
67
- --accent-dark: 240 0% 22%;
68
- --accent-darker: 240 0% 26%;
69
- --accent-lighter: 216 5% 12%;
70
- --accent-hover: 216 5% 24%;
71
+ --accent: 220 18% 19%;
72
+ --accent-dark: 220 18% 22%;
73
+ --accent-darker: 220 18% 26%;
74
+ --accent-lighter: 220 18% 12%;
75
+ --accent-hover: 220 18% 24%;
71
76
  --accent-foreground: 0 0% 98%;
72
77
 
73
78
  /* Darker color */
74
- --heavy: 216 5% 24%;
79
+ --heavy: 220 18% 24%;
75
80
  --heavy-foreground: var(--accent-foreground);
76
81
 
77
82
  /* Default border color */
78
- --border: 240 3.7% 22%;
83
+ --border: 220 19% 22%;
79
84
 
80
85
  /* Border color for inputs such as <Input />, <Select />, <Textarea /> */
81
86
  --input: 0deg 0% 100% / 10%;
82
87
  --input-placeholder: 218deg 11% 65%;
83
88
  --input-background: 0deg 0% 100% / 5%;
84
89
 
85
- /* Used for focus ring */
86
- --ring: 222.2 84% 4.9%;
90
+ /* Used for focus ring —— 原 222.2 84% 4.9% = #020817,与 L0/L1 同档明度,暗色下焦点环画不出来。
91
+ tailwind 的 ring 映射是 hsl(var(--ring))、不带 alpha-value 模板,故 α 烘进三元组(同 --input 写法)。 */
92
+ --ring: 212deg 100% 45% / 25%;
87
93
 
88
94
  /* 基本圆角大小 */
89
95
  --radius: 0.5rem;