kui-vue 5.4.1 → 5.6.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/dist/index.js +2 -2
- package/es/index.js +4586 -1858
- 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 +62 -26
- package/style/base.css +9 -0
- package/style/components.css +9 -0
- package/style/index.css +2 -2
- package/style/theme.css +9 -0
- package/types/affix/index.d.ts +11 -9
- package/types/alert/index.d.ts +27 -1
- package/types/anchor/anchor.d.ts +18 -9
- package/types/anchor/context.d.ts +8 -0
- package/types/avatar/avatar-group.d.ts +12 -9
- package/types/avatar/avatar.d.ts +15 -9
- package/types/avatar/context.d.ts +8 -0
- package/types/badge/index.d.ts +8 -2
- package/types/breadcrumb/breadcrumb.d.ts +5 -5
- package/types/card/card-meta.d.ts +17 -0
- package/types/card/index.d.ts +34 -2
- 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-panel.d.ts +0 -4
- package/types/collapse/collapse.d.ts +27 -1
- package/types/collapse/context.d.ts +7 -0
- package/types/color-picker/alpha.d.ts +3 -2
- package/types/color-picker/index.d.ts +82 -2
- package/types/color-picker/mode.d.ts +4 -3
- package/types/color-picker/paint.d.ts +3 -3
- package/types/components.d.ts +27 -13
- 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 +214 -16
- package/types/descriptions/descriptions.d.ts +14 -1
- package/types/drawer/index.d.ts +5 -11
- package/types/dropdown/dropdown-context.d.ts +11 -0
- package/types/dropdown/dropdown.d.ts +1 -2
- package/types/feature-card/index.d.ts +59 -0
- package/types/feedback-panel/feedback-panel.d.ts +64 -0
- package/types/feedback-panel/index.d.ts +4 -0
- 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 -15
- package/types/form/index.d.ts +4 -2
- package/types/form/types.d.ts +11 -2
- package/types/global.d.ts +34 -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/context.d.ts +9 -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/image/utils.d.ts +1 -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-otp/index.d.ts +4 -0
- package/types/input-otp/input-otp.d.ts +39 -0
- package/types/input-otp/types.d.ts +1 -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/menu/index.d.ts +3 -2
- package/types/menu/menu-context.d.ts +19 -0
- package/types/menu/menu-group.d.ts +4 -13
- package/types/menu/menu-item.d.ts +3 -6
- package/types/menu/menu.d.ts +3 -14
- package/types/menu/recursive-menu.d.ts +1 -4
- package/types/menu/sub-menu.d.ts +4 -9
- package/types/menu/types.d.ts +14 -0
- package/types/modal/index.d.ts +4 -3
- package/types/modal/modal.d.ts +110 -11
- package/types/notice/content.d.ts +76 -2
- package/types/notice/index.d.ts +1 -0
- package/types/page/index.d.ts +14 -1
- package/types/popconfirm/index.d.ts +54 -4
- package/types/poptip/index.d.ts +50 -5
- 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 +7 -7
- package/types/rate/star.d.ts +8 -7
- package/types/result/index.d.ts +4 -0
- package/types/result/result.d.ts +34 -0
- 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 +8 -12
- package/types/select/types.d.ts +10 -0
- package/types/skeleton/skeleton-avatar.d.ts +8 -8
- package/types/skeleton/skeleton-button.d.ts +8 -8
- package/types/skeleton/skeleton-image.d.ts +8 -8
- package/types/skeleton/skeleton-text.d.ts +8 -8
- package/types/skeleton/skeleton.d.ts +8 -8
- package/types/skeleton/types.d.ts +4 -4
- package/types/skeleton/use-skeleton-loading.d.ts +2 -0
- package/types/slider/thumb.d.ts +2 -2
- package/types/stat-card/index.d.ts +2 -1
- package/types/stat-card/stat-card.d.ts +30 -13
- package/types/stat-card/types.d.ts +14 -0
- package/types/stat-card/utils/countup.d.ts +5 -5
- package/types/switch/index.d.ts +14 -1
- package/types/table/index.d.ts +104 -38
- 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 +4 -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 +37 -9
- package/types/tree/context.d.ts +6 -0
- package/types/tree/index.d.ts +5 -14
- package/types/tree/types.d.ts +6 -0
- package/types/tree/utils.d.ts +1 -1
- package/types/tree-select/index.d.ts +3 -16
- package/types/upload/file-list.d.ts +5 -4
- package/types/upload/index.d.ts +10 -24
- 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/watermark/index.d.ts +6 -15
- package/types/watermark/types.d.ts +11 -0
- package/vetur/attributes.json +4791 -5919
- package/vetur/tags.json +1579 -1473
- package/vetur/web-types.json +6776 -9826
- 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.6.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,18 +12,28 @@
|
|
|
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
38
|
"./style/*": "./style/*"
|
|
29
39
|
},
|
|
@@ -37,21 +47,36 @@
|
|
|
37
47
|
"types"
|
|
38
48
|
],
|
|
39
49
|
"license": "MIT",
|
|
50
|
+
"sideEffects": [
|
|
51
|
+
"**/*.css",
|
|
52
|
+
"**/*.less"
|
|
53
|
+
],
|
|
54
|
+
"engines": {
|
|
55
|
+
"node": ">=20.19.0",
|
|
56
|
+
"pnpm": ">=10"
|
|
57
|
+
},
|
|
58
|
+
"packageManager": "pnpm@11.20.0",
|
|
40
59
|
"scripts": {
|
|
41
|
-
"start": "
|
|
60
|
+
"start": "pnpm dev",
|
|
42
61
|
"dev": "vite --config vite.config.docs.ts",
|
|
43
|
-
"build": "
|
|
62
|
+
"build": "pnpm build:css && pnpm build:lib && pnpm build:umd && pnpm build:es && pnpm build:types:compat",
|
|
44
63
|
"build:es": "vite build",
|
|
45
64
|
"build:lib": "vite build --config vite.config.lib.ts",
|
|
46
65
|
"build:umd": "vite build --config vite.config.umd.ts",
|
|
47
66
|
"build:css": "vite build --config vite.config.css.ts",
|
|
48
|
-
"build:
|
|
67
|
+
"build:types:compat": "node scripts/create-cjs-types.mjs",
|
|
68
|
+
"build:docs": "pnpm check:api-docs && vite build --config vite.config.docs.ts",
|
|
49
69
|
"preview": "vite preview --outDir docs",
|
|
50
|
-
"typecheck": "tsc -p tsconfig.app.json --noEmit",
|
|
70
|
+
"typecheck": "vue-tsc -p tsconfig.app.json --noEmit --pretty false",
|
|
71
|
+
"typecheck:exports": "tsc -p tsconfig.type-exports.json --noEmit",
|
|
72
|
+
"test": "vitest run",
|
|
51
73
|
"format": "prettier --write .",
|
|
52
74
|
"format:md": "prettier --write ./components/*/index*.md",
|
|
53
|
-
"
|
|
54
|
-
"
|
|
75
|
+
"lint": "eslint . --cache --cache-location node_modules/.cache/eslint/.eslintcache",
|
|
76
|
+
"lint:fix": "eslint . --fix --cache --cache-location node_modules/.cache/eslint/.eslintcache",
|
|
77
|
+
"package:check": "publint --strict && node scripts/check-package-exports.mjs",
|
|
78
|
+
"check:api-docs": "node --experimental-strip-types scripts/check-api-docs.ts",
|
|
79
|
+
"verify": "pnpm lint && pnpm typecheck && pnpm typecheck:exports && pnpm check:api-docs && pnpm test && pnpm build && pnpm build:docs && pnpm package:check"
|
|
55
80
|
},
|
|
56
81
|
"author": {
|
|
57
82
|
"name": "Qiu",
|
|
@@ -60,7 +85,7 @@
|
|
|
60
85
|
"homepage": "https://k-ui.cn",
|
|
61
86
|
"repository": {
|
|
62
87
|
"type": "git",
|
|
63
|
-
"url": "https://github.com/smallerqiu/kui-vue"
|
|
88
|
+
"url": "git+https://github.com/smallerqiu/kui-vue.git"
|
|
64
89
|
},
|
|
65
90
|
"bugs": {
|
|
66
91
|
"url": "https://github.com/smallerqiu/kui-vue/issues",
|
|
@@ -71,14 +96,15 @@
|
|
|
71
96
|
"vue3",
|
|
72
97
|
"kui",
|
|
73
98
|
"kui-vue",
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"kui-vue",
|
|
77
|
-
"vueComponent",
|
|
99
|
+
"vue-components",
|
|
100
|
+
"component-library",
|
|
78
101
|
"ui",
|
|
79
102
|
"ui-library",
|
|
80
|
-
"
|
|
81
|
-
"ui-kit"
|
|
103
|
+
"ui-components",
|
|
104
|
+
"ui-kit",
|
|
105
|
+
"design-system",
|
|
106
|
+
"typescript",
|
|
107
|
+
"admin-ui"
|
|
82
108
|
],
|
|
83
109
|
"peerDependencies": {
|
|
84
110
|
"vue": "^3.0.0"
|
|
@@ -99,6 +125,7 @@
|
|
|
99
125
|
"uuid": "^14.0.1"
|
|
100
126
|
},
|
|
101
127
|
"devDependencies": {
|
|
128
|
+
"@eslint/js": "^10.0.1",
|
|
102
129
|
"@types/babel__core": "^7.20.5",
|
|
103
130
|
"@types/big.js": "^7.0.0",
|
|
104
131
|
"@types/hash-sum": "^1.0.2",
|
|
@@ -107,23 +134,32 @@
|
|
|
107
134
|
"@types/qrcode": "^1.5.6",
|
|
108
135
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
109
136
|
"@vitejs/plugin-vue-jsx": "^5.1.6",
|
|
110
|
-
"@vue/compiler-sfc": "^3.5.
|
|
137
|
+
"@vue/compiler-sfc": "^3.5.41",
|
|
138
|
+
"@vue/test-utils": "^2.4.11",
|
|
111
139
|
"@vue/tsconfig": "^0.9.1",
|
|
140
|
+
"codejar": "^4.3.0",
|
|
141
|
+
"eslint": "^10.8.1",
|
|
142
|
+
"eslint-plugin-vue": "^10.10.0",
|
|
112
143
|
"fast-glob": "^3.3.3",
|
|
144
|
+
"globals": "^17.9.0",
|
|
113
145
|
"hash-sum": "^2.0.0",
|
|
114
146
|
"highlight.js": "^11.11.1",
|
|
147
|
+
"jsdom": "^30.0.1",
|
|
115
148
|
"less": "^4.8.1",
|
|
116
|
-
"markdown-it": "^
|
|
149
|
+
"markdown-it": "^15.0.0",
|
|
117
150
|
"markdown-it-anchor": "^9.2.1",
|
|
118
151
|
"prettier": "^3.9.6",
|
|
152
|
+
"publint": "^0.3.23",
|
|
119
153
|
"sucrase": "^3.35.1",
|
|
120
|
-
"terser": "^5.49.
|
|
154
|
+
"terser": "^5.49.2",
|
|
121
155
|
"ts-morph": "^28.0.0",
|
|
122
156
|
"typescript": "^6.0.3",
|
|
123
|
-
"
|
|
157
|
+
"typescript-eslint": "^8.67.0",
|
|
158
|
+
"vite": "^8.2.1",
|
|
124
159
|
"vite-plugin-dts": "^5.0.3",
|
|
160
|
+
"vitest": "^4.1.10",
|
|
125
161
|
"vue-router": "^5.2.0",
|
|
126
|
-
"vue-tsc": "^3.3.
|
|
162
|
+
"vue-tsc": "^3.3.9"
|
|
127
163
|
},
|
|
128
164
|
"vetur": {
|
|
129
165
|
"tags": "vetur/tags.json",
|
package/style/base.css
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* kui-vue v5.6.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
|
+
::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}
|