kui-vue 5.5.1 → 5.7.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/AI.en-US.md +53 -0
- package/AI.md +59 -0
- package/README.md +51 -17
- package/README.zh-CN.md +52 -18
- package/ai/cli.mjs +27 -0
- package/ai/evals/cases.json +122 -0
- package/ai/kui-components.json +13690 -0
- package/ai/kui-components.schema.json +139 -0
- package/ai/mcp.mjs +196 -0
- package/ai/skills/kui-vue/SKILL.md +24 -0
- package/ai/skills/kui-vue/references/components.md +10 -0
- package/ai/skills/kui-vue/references/mcp.md +14 -0
- package/dist/index.js +2 -2
- package/es/index.js +10062 -6298
- package/es/locale/de.js +1 -1
- package/es/locale/el.js +1 -1
- package/es/locale/en.js +1 -1
- package/es/locale/fr.js +1 -1
- package/es/locale/it.js +1 -1
- package/es/locale/ja.js +1 -1
- package/es/locale/ko.js +1 -1
- package/es/locale/ru.js +1 -1
- package/es/locale/th.js +1 -1
- package/es/locale/uk.js +1 -1
- package/es/locale/vi.js +1 -1
- package/es/locale/zh-CN.js +1 -1
- package/es/locale/zh-TW.js +1 -1
- package/lib/index.cjs +9 -0
- package/lib/locale/{de.js → de.cjs} +1 -1
- package/lib/locale/{el.js → el.cjs} +1 -1
- package/lib/locale/{en.js → en.cjs} +1 -1
- package/lib/locale/{fr.js → fr.cjs} +1 -1
- package/lib/locale/{it.js → it.cjs} +1 -1
- package/lib/locale/{ja.js → ja.cjs} +1 -1
- package/lib/locale/{ko.js → ko.cjs} +1 -1
- package/lib/locale/{ru.js → ru.cjs} +1 -1
- package/lib/locale/{th.js → th.cjs} +1 -1
- package/lib/locale/{uk.js → uk.cjs} +1 -1
- package/lib/locale/{vi.js → vi.cjs} +1 -1
- package/lib/locale/{zh-CN.js → zh-CN.cjs} +1 -1
- package/lib/locale/{zh-TW.js → zh-TW.cjs} +1 -1
- package/package.json +74 -26
- package/style/base.css +9 -0
- package/style/components.css +9 -0
- package/style/index.css +2 -2
- package/style/motion.css +9 -0
- package/style/theme.css +9 -0
- package/types/affix/index.d.ts +6 -6
- package/types/alert/index.d.ts +27 -1
- package/types/anchor/anchor.d.ts +5 -11
- package/types/anchor/context.d.ts +8 -0
- package/types/auto-complete/index.d.ts +130 -0
- package/types/avatar/avatar-group.d.ts +3 -0
- package/types/avatar/context.d.ts +1 -1
- package/types/badge/index.d.ts +5 -2
- package/types/breadcrumb/breadcrumb.d.ts +5 -5
- package/types/card/index.d.ts +40 -1
- package/types/cascader/index.d.ts +4 -4
- package/types/check-card/check-card-group.d.ts +78 -0
- package/types/check-card/check-card.d.ts +101 -0
- package/types/check-card/context.d.ts +19 -0
- package/types/check-card/index.d.ts +7 -0
- package/types/check-card/types.d.ts +22 -0
- package/types/checkbox/checkbox-group.d.ts +8 -13
- package/types/checkbox/checkbox.d.ts +4 -8
- package/types/checkbox/index.d.ts +3 -2
- package/types/checkbox/types.d.ts +11 -0
- package/types/collapse/collapse.d.ts +27 -1
- package/types/color-picker/alpha.d.ts +3 -2
- package/types/color-picker/index.d.ts +82 -1
- package/types/color-picker/mode.d.ts +4 -3
- package/types/color-picker/paint.d.ts +12 -3
- package/types/components.d.ts +35 -11
- package/types/config/index.d.ts +14 -2
- package/types/config/popup.d.ts +4 -0
- package/types/const/types.d.ts +11 -2
- package/types/date-picker/index.d.ts +216 -17
- package/types/descriptions/descriptions.d.ts +14 -1
- package/types/drawer/index.d.ts +1 -5
- package/types/dropdown/dropdown-context.d.ts +11 -0
- package/types/dropdown/dropdown.d.ts +6 -6
- package/types/feature-card/index.d.ts +27 -1
- package/types/feedback-panel/feedback-panel.d.ts +28 -1
- package/types/feedback-panel/index.d.ts +2 -1
- package/types/flame-wrap/engine.d.ts +65 -0
- package/types/flame-wrap/index.d.ts +72 -0
- package/types/flex/index.d.ts +3 -4
- package/types/flex/types.d.ts +4 -0
- package/types/form/form.d.ts +4 -13
- package/types/form/index.d.ts +4 -2
- package/types/form/types.d.ts +11 -2
- package/types/global.d.ts +52 -2
- package/types/grid/grid.d.ts +5 -1
- package/types/icon/index.d.ts +2 -4
- package/types/icon/types.d.ts +4 -0
- package/types/image/image.d.ts +31 -4
- package/types/image/index.d.ts +2 -2
- package/types/image/instance.d.ts +9 -1
- package/types/index.d.cts +11 -0
- package/types/index.d.ts +1 -1
- package/types/input/input-box.d.ts +7 -7
- package/types/input/input.d.ts +3 -3
- package/types/input/textarea.d.ts +2 -2
- package/types/input-number/index.d.ts +1 -1
- package/types/input-otp/index.d.ts +2 -1
- package/types/input-otp/input-otp.d.ts +2 -1
- package/types/input-otp/types.d.ts +1 -0
- package/types/input-tag/index.d.ts +114 -0
- package/types/locale/de.d.cts +65 -0
- package/types/locale/el.d.cts +65 -0
- package/types/locale/en.d.cts +65 -0
- package/types/locale/fr.d.cts +65 -0
- package/types/locale/it.d.cts +65 -0
- package/types/locale/ja.d.cts +65 -0
- package/types/locale/ko.d.cts +65 -0
- package/types/locale/ru.d.cts +65 -0
- package/types/locale/th.d.cts +65 -0
- package/types/locale/uk.d.cts +65 -0
- package/types/locale/vi.d.cts +65 -0
- package/types/locale/zh-CN.d.cts +65 -0
- package/types/locale/zh-TW.d.cts +65 -0
- package/types/mentions/index.d.ts +147 -0
- package/types/menu/index.d.ts +2 -1
- package/types/menu/menu-context.d.ts +19 -0
- package/types/menu/menu.d.ts +3 -14
- package/types/menu/recursive-menu.d.ts +1 -1
- package/types/menu/types.d.ts +14 -0
- package/types/message/index.d.ts +7 -6
- package/types/modal/index.d.ts +4 -3
- package/types/modal/modal.d.ts +114 -0
- package/types/notice/content.d.ts +80 -6
- package/types/page/index.d.ts +17 -1
- package/types/popconfirm/index.d.ts +57 -5
- package/types/poptip/index.d.ts +53 -6
- package/types/progress/index.d.ts +6 -8
- package/types/qrcode/index.d.ts +28 -3
- package/types/radio/index.d.ts +2 -1
- package/types/radio/radio-button.d.ts +4 -4
- package/types/radio/radio-group.d.ts +1 -8
- package/types/radio/types.d.ts +7 -0
- package/types/rate/index.d.ts +8 -8
- package/types/rate/star.d.ts +8 -7
- package/types/result/index.d.ts +2 -1
- package/types/result/result.d.ts +2 -1
- package/types/ripple/engine.d.ts +48 -0
- package/types/ripple/index.d.ts +42 -0
- package/types/row-col/col.d.ts +36 -1
- package/types/row-col/index.d.ts +1 -1
- package/types/select/index.d.ts +2 -1
- package/types/select/option.d.ts +2 -4
- package/types/select/select.d.ts +42 -13
- package/types/select/types.d.ts +10 -0
- package/types/skeleton/skeleton-avatar.d.ts +3 -3
- package/types/skeleton/skeleton-button.d.ts +3 -3
- package/types/skeleton/skeleton-image.d.ts +3 -3
- package/types/skeleton/skeleton-text.d.ts +3 -3
- package/types/skeleton/skeleton.d.ts +3 -3
- package/types/skeleton/types.d.ts +1 -1
- package/types/slider/index.d.ts +2 -2
- package/types/stat-card/index.d.ts +2 -1
- package/types/stat-card/stat-card.d.ts +30 -15
- package/types/stat-card/types.d.ts +14 -0
- package/types/stat-card/utils/countup.d.ts +5 -5
- package/types/steps/index.d.ts +85 -0
- package/types/switch/index.d.ts +14 -1
- package/types/table/index.d.ts +122 -28
- package/types/table/types.d.ts +23 -0
- package/types/table/utils.d.ts +13 -0
- package/types/tabs/types.d.ts +1 -1
- package/types/tag/index.d.ts +7 -3
- package/types/time-line/index.d.ts +2 -1
- package/types/time-line/timeline-item.d.ts +4 -3
- package/types/time-line/timeline.d.ts +2 -1
- package/types/tooltip/index.d.ts +36 -6
- package/types/tour/index.d.ts +97 -0
- package/types/transfer/index.d.ts +109 -0
- package/types/tree/index.d.ts +47 -8
- package/types/tree/types.d.ts +6 -0
- package/types/tree/utils.d.ts +1 -1
- package/types/tree-select/index.d.ts +47 -5
- package/types/typography/index.d.ts +309 -0
- package/types/upload/file-list.d.ts +5 -4
- package/types/upload/index.d.ts +7 -21
- package/types/upload/selector.d.ts +9 -7
- package/types/upload/types.d.ts +17 -0
- package/types/utils/checked.d.ts +1 -1
- package/types/utils/element.d.ts +17 -4
- package/types/utils/number.d.ts +4 -4
- package/types/utils/share.d.ts +4 -4
- package/types/utils/vnode.d.ts +5 -2
- package/types/utils/vue.d.ts +2 -2
- package/types/virtual-list/index.d.ts +74 -0
- package/types/virtual-list/range.d.ts +14 -0
- package/types/watermark/index.d.ts +6 -15
- package/types/watermark/types.d.ts +11 -0
- package/vetur/attributes.json +6336 -6104
- package/vetur/tags.json +2001 -1520
- package/vetur/web-types.json +8191 -9040
- package/lib/index.js +0 -9
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kui-vue",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.7.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A lightweight desktop UI component library suitable for Vue.js 3.",
|
|
7
|
-
"main": "lib/index.
|
|
7
|
+
"main": "lib/index.cjs",
|
|
8
8
|
"module": "es/index.js",
|
|
9
9
|
"unpkg": "dist/index.js",
|
|
10
10
|
"jsdelivr": "dist/index.js",
|
|
@@ -12,47 +12,85 @@
|
|
|
12
12
|
"types": "types/index.d.ts",
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
"import": {
|
|
16
|
+
"types": "./types/index.d.ts",
|
|
17
|
+
"default": "./es/index.js"
|
|
18
|
+
},
|
|
19
|
+
"require": {
|
|
20
|
+
"types": "./types/index.d.cts",
|
|
21
|
+
"default": "./lib/index.cjs"
|
|
22
|
+
}
|
|
18
23
|
},
|
|
19
24
|
"./dist/*": "./dist/*",
|
|
20
25
|
"./global": {
|
|
21
26
|
"types": "./types/global.d.ts"
|
|
22
27
|
},
|
|
23
28
|
"./locale/*": {
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
29
|
+
"import": {
|
|
30
|
+
"types": "./types/locale/*.d.ts",
|
|
31
|
+
"default": "./es/locale/*.js"
|
|
32
|
+
},
|
|
33
|
+
"require": {
|
|
34
|
+
"types": "./types/locale/*.d.cts",
|
|
35
|
+
"default": "./lib/locale/*.cjs"
|
|
36
|
+
}
|
|
27
37
|
},
|
|
28
|
-
"./style/*": "./style/*"
|
|
38
|
+
"./style/*": "./style/*",
|
|
39
|
+
"./metadata": "./ai/kui-components.json",
|
|
40
|
+
"./metadata/schema": "./ai/kui-components.schema.json",
|
|
41
|
+
"./skill": "./ai/skills/kui-vue/SKILL.md",
|
|
42
|
+
"./skill/*": "./ai/skills/kui-vue/*"
|
|
43
|
+
},
|
|
44
|
+
"bin": {
|
|
45
|
+
"kui-vue-ai": "./ai/cli.mjs",
|
|
46
|
+
"kui-vue-mcp": "./ai/mcp.mjs"
|
|
29
47
|
},
|
|
30
48
|
"files": [
|
|
49
|
+
"AI.md",
|
|
50
|
+
"AI.en-US.md",
|
|
31
51
|
"dist",
|
|
32
52
|
"test",
|
|
33
53
|
"vetur",
|
|
34
54
|
"lib",
|
|
35
55
|
"style",
|
|
36
56
|
"es",
|
|
37
|
-
"types"
|
|
57
|
+
"types",
|
|
58
|
+
"ai"
|
|
38
59
|
],
|
|
39
60
|
"license": "MIT",
|
|
61
|
+
"sideEffects": [
|
|
62
|
+
"**/*.css",
|
|
63
|
+
"**/*.less"
|
|
64
|
+
],
|
|
65
|
+
"engines": {
|
|
66
|
+
"node": ">=20.19.0",
|
|
67
|
+
"pnpm": ">=10"
|
|
68
|
+
},
|
|
69
|
+
"packageManager": "pnpm@11.20.0",
|
|
40
70
|
"scripts": {
|
|
41
|
-
"start": "
|
|
71
|
+
"start": "pnpm dev",
|
|
42
72
|
"dev": "vite --config vite.config.docs.ts",
|
|
43
|
-
"build": "
|
|
73
|
+
"build": "pnpm generate:ai && pnpm build:css && pnpm build:lib && pnpm build:umd && pnpm build:es && pnpm build:types:compat",
|
|
44
74
|
"build:es": "vite build",
|
|
45
75
|
"build:lib": "vite build --config vite.config.lib.ts",
|
|
46
76
|
"build:umd": "vite build --config vite.config.umd.ts",
|
|
47
77
|
"build:css": "vite build --config vite.config.css.ts",
|
|
48
|
-
"build:
|
|
78
|
+
"build:types:compat": "node scripts/create-cjs-types.mjs",
|
|
79
|
+
"build:docs": "pnpm generate:ai && pnpm check:api-docs && vite build --config vite.config.docs.ts",
|
|
49
80
|
"preview": "vite preview --outDir docs",
|
|
50
|
-
"typecheck": "tsc -p tsconfig.app.json --noEmit",
|
|
81
|
+
"typecheck": "vue-tsc -p tsconfig.app.json --noEmit --pretty false",
|
|
82
|
+
"typecheck:exports": "tsc -p tsconfig.type-exports.json --noEmit",
|
|
83
|
+
"test": "vitest run",
|
|
51
84
|
"format": "prettier --write .",
|
|
52
85
|
"format:md": "prettier --write ./components/*/index*.md",
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
86
|
+
"generate:ai": "node --experimental-strip-types scripts/generate-ai-assets.ts",
|
|
87
|
+
"lint": "eslint . --cache --cache-location node_modules/.cache/eslint/.eslintcache",
|
|
88
|
+
"lint:fix": "eslint . --fix --cache --cache-location node_modules/.cache/eslint/.eslintcache",
|
|
89
|
+
"package:check": "publint --strict && node scripts/check-package-exports.mjs",
|
|
90
|
+
"check:api-docs": "node --experimental-strip-types scripts/check-api-docs.ts",
|
|
91
|
+
"check:ai-assets": "node --experimental-strip-types scripts/generate-ai-assets.ts --check",
|
|
92
|
+
"check:ai-evals": "node --experimental-strip-types scripts/check-ai-evals.ts",
|
|
93
|
+
"verify": "pnpm lint && pnpm typecheck && pnpm typecheck:exports && pnpm check:api-docs && pnpm check:ai-assets && pnpm check:ai-evals && pnpm test && pnpm build && pnpm build:docs && pnpm package:check"
|
|
56
94
|
},
|
|
57
95
|
"author": {
|
|
58
96
|
"name": "Qiu",
|
|
@@ -61,7 +99,7 @@
|
|
|
61
99
|
"homepage": "https://k-ui.cn",
|
|
62
100
|
"repository": {
|
|
63
101
|
"type": "git",
|
|
64
|
-
"url": "https://github.com/smallerqiu/kui-vue"
|
|
102
|
+
"url": "git+https://github.com/smallerqiu/kui-vue.git"
|
|
65
103
|
},
|
|
66
104
|
"bugs": {
|
|
67
105
|
"url": "https://github.com/smallerqiu/kui-vue/issues",
|
|
@@ -95,37 +133,47 @@
|
|
|
95
133
|
"autoprefixer": "^10.5.4",
|
|
96
134
|
"big.js": "^7.0.1",
|
|
97
135
|
"color": "^5.0.3",
|
|
98
|
-
"dayjs": "^1.11.
|
|
136
|
+
"dayjs": "^1.11.23",
|
|
99
137
|
"kui-icons": "^5.0.0",
|
|
100
138
|
"qrcode": "^1.5.4",
|
|
101
|
-
"uuid": "^14.0.
|
|
139
|
+
"uuid": "^14.0.2"
|
|
102
140
|
},
|
|
103
141
|
"devDependencies": {
|
|
142
|
+
"@eslint/js": "^10.0.1",
|
|
104
143
|
"@types/babel__core": "^7.20.5",
|
|
105
144
|
"@types/big.js": "^7.0.0",
|
|
106
145
|
"@types/hash-sum": "^1.0.2",
|
|
107
|
-
"@types/markdown-it": "^14.
|
|
146
|
+
"@types/markdown-it": "^14.2.0",
|
|
108
147
|
"@types/node": "^25.9.5",
|
|
109
148
|
"@types/qrcode": "^1.5.6",
|
|
110
149
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
111
150
|
"@vitejs/plugin-vue-jsx": "^5.1.6",
|
|
112
151
|
"@vue/compiler-sfc": "^3.5.41",
|
|
152
|
+
"@vue/test-utils": "^2.4.11",
|
|
113
153
|
"@vue/tsconfig": "^0.9.1",
|
|
154
|
+
"codejar": "^4.3.0",
|
|
155
|
+
"eslint": "^10.8.1",
|
|
156
|
+
"eslint-plugin-vue": "^10.10.0",
|
|
114
157
|
"fast-glob": "^3.3.3",
|
|
158
|
+
"globals": "^17.11.0",
|
|
115
159
|
"hash-sum": "^2.0.0",
|
|
116
|
-
"highlight.js": "^11.
|
|
117
|
-
"
|
|
160
|
+
"highlight.js": "^11.12.0",
|
|
161
|
+
"jsdom": "^30.0.1",
|
|
162
|
+
"less": "^4.9.0",
|
|
118
163
|
"markdown-it": "^15.0.0",
|
|
119
164
|
"markdown-it-anchor": "^9.2.1",
|
|
120
165
|
"prettier": "^3.9.6",
|
|
166
|
+
"publint": "^0.3.24",
|
|
121
167
|
"sucrase": "^3.35.1",
|
|
122
|
-
"terser": "^5.
|
|
168
|
+
"terser": "^5.50.0",
|
|
123
169
|
"ts-morph": "^28.0.0",
|
|
124
170
|
"typescript": "^6.0.3",
|
|
125
|
-
"
|
|
171
|
+
"typescript-eslint": "^8.67.0",
|
|
172
|
+
"vite": "^8.2.2",
|
|
126
173
|
"vite-plugin-dts": "^5.0.3",
|
|
174
|
+
"vitest": "^4.1.11",
|
|
127
175
|
"vue-router": "^5.2.0",
|
|
128
|
-
"vue-tsc": "^3.3.
|
|
176
|
+
"vue-tsc": "^3.3.10"
|
|
129
177
|
},
|
|
130
178
|
"vetur": {
|
|
131
179
|
"tags": "vetur/tags.json",
|
package/style/base.css
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* kui-vue v5.7.0
|
|
3
|
+
* Copyright 2017-present, kui-vue.
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Homepage: https://k-ui.cn
|
|
6
|
+
* Author: Qiu / https://chuchur.com
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
html{scrollbar-gutter:stable}body{color:var(--kui-color-text);font-family:var(--kui-font-family);font-size:var(--kui-font-size);font-synthesis:none;line-height:var(--kui-line-height);text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}button,input,textarea,select{font:inherit}body.k-scroll-locked{overscroll-behavior:none}body.k-scroll-locked .k-scroll-lock-fixed{inset-inline-end:var(--kui-scrollbar-width,0px)}body.k-scroll-locked .k-scroll-lock-fixed-full{padding-inline-end:var(--kui-scrollbar-width,0px)}.k-scroll{scrollbar-color:var(--kui-color-scrollbar-thumb) transparent;scrollbar-width:thin}.k-scroll::-webkit-scrollbar{background-color:#0000}.k-scroll::-webkit-scrollbar-track{background-color:#0000}.k-scroll::-webkit-scrollbar-thumb{background-color:var(--kui-color-scrollbar-thumb);cursor:default;border-radius:4px;min-width:55px;min-height:55px}.k-scroll::-webkit-scrollbar-thumb:hover{background-color:var(--kui-color-scrollbar-thumb-hover)}.k-scroll::-webkit-scrollbar-corner{background-color:#0000}.k-scroll::-webkit-resizer{background-color:#0000}::selection{background-color:var(--kui-color-primary);color:#fff}input::-moz-placeholder{color:var(--kui-color-text-placeholder)}textarea::-moz-placeholder{color:var(--kui-color-text-placeholder)}input::placeholder,textarea::placeholder{color:var(--kui-color-text-placeholder)}a{color:var(--kui-color-primary);text-decoration:none}
|