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.
Files changed (181) hide show
  1. package/dist/index.js +2 -2
  2. package/es/index.js +4586 -1858
  3. package/es/locale/de.js +1 -1
  4. package/es/locale/el.js +1 -1
  5. package/es/locale/en.js +1 -1
  6. package/es/locale/fr.js +1 -1
  7. package/es/locale/it.js +1 -1
  8. package/es/locale/ja.js +1 -1
  9. package/es/locale/ko.js +1 -1
  10. package/es/locale/ru.js +1 -1
  11. package/es/locale/th.js +1 -1
  12. package/es/locale/uk.js +1 -1
  13. package/es/locale/vi.js +1 -1
  14. package/es/locale/zh-CN.js +1 -1
  15. package/es/locale/zh-TW.js +1 -1
  16. package/lib/index.cjs +9 -0
  17. package/lib/locale/{de.js → de.cjs} +1 -1
  18. package/lib/locale/{el.js → el.cjs} +1 -1
  19. package/lib/locale/{en.js → en.cjs} +1 -1
  20. package/lib/locale/{fr.js → fr.cjs} +1 -1
  21. package/lib/locale/{it.js → it.cjs} +1 -1
  22. package/lib/locale/{ja.js → ja.cjs} +1 -1
  23. package/lib/locale/{ko.js → ko.cjs} +1 -1
  24. package/lib/locale/{ru.js → ru.cjs} +1 -1
  25. package/lib/locale/{th.js → th.cjs} +1 -1
  26. package/lib/locale/{uk.js → uk.cjs} +1 -1
  27. package/lib/locale/{vi.js → vi.cjs} +1 -1
  28. package/lib/locale/{zh-CN.js → zh-CN.cjs} +1 -1
  29. package/lib/locale/{zh-TW.js → zh-TW.cjs} +1 -1
  30. package/package.json +62 -26
  31. package/style/base.css +9 -0
  32. package/style/components.css +9 -0
  33. package/style/index.css +2 -2
  34. package/style/theme.css +9 -0
  35. package/types/affix/index.d.ts +11 -9
  36. package/types/alert/index.d.ts +27 -1
  37. package/types/anchor/anchor.d.ts +18 -9
  38. package/types/anchor/context.d.ts +8 -0
  39. package/types/avatar/avatar-group.d.ts +12 -9
  40. package/types/avatar/avatar.d.ts +15 -9
  41. package/types/avatar/context.d.ts +8 -0
  42. package/types/badge/index.d.ts +8 -2
  43. package/types/breadcrumb/breadcrumb.d.ts +5 -5
  44. package/types/card/card-meta.d.ts +17 -0
  45. package/types/card/index.d.ts +34 -2
  46. package/types/checkbox/checkbox-group.d.ts +8 -13
  47. package/types/checkbox/checkbox.d.ts +4 -8
  48. package/types/checkbox/index.d.ts +3 -2
  49. package/types/checkbox/types.d.ts +11 -0
  50. package/types/collapse/collapse-panel.d.ts +0 -4
  51. package/types/collapse/collapse.d.ts +27 -1
  52. package/types/collapse/context.d.ts +7 -0
  53. package/types/color-picker/alpha.d.ts +3 -2
  54. package/types/color-picker/index.d.ts +82 -2
  55. package/types/color-picker/mode.d.ts +4 -3
  56. package/types/color-picker/paint.d.ts +3 -3
  57. package/types/components.d.ts +27 -13
  58. package/types/config/index.d.ts +14 -2
  59. package/types/config/popup.d.ts +4 -0
  60. package/types/const/types.d.ts +11 -2
  61. package/types/date-picker/index.d.ts +214 -16
  62. package/types/descriptions/descriptions.d.ts +14 -1
  63. package/types/drawer/index.d.ts +5 -11
  64. package/types/dropdown/dropdown-context.d.ts +11 -0
  65. package/types/dropdown/dropdown.d.ts +1 -2
  66. package/types/feature-card/index.d.ts +59 -0
  67. package/types/feedback-panel/feedback-panel.d.ts +64 -0
  68. package/types/feedback-panel/index.d.ts +4 -0
  69. package/types/flame-wrap/engine.d.ts +65 -0
  70. package/types/flame-wrap/index.d.ts +72 -0
  71. package/types/flex/index.d.ts +3 -4
  72. package/types/flex/types.d.ts +4 -0
  73. package/types/form/form.d.ts +4 -15
  74. package/types/form/index.d.ts +4 -2
  75. package/types/form/types.d.ts +11 -2
  76. package/types/global.d.ts +34 -2
  77. package/types/grid/grid.d.ts +5 -1
  78. package/types/icon/index.d.ts +2 -4
  79. package/types/icon/types.d.ts +4 -0
  80. package/types/image/context.d.ts +9 -0
  81. package/types/image/image.d.ts +31 -4
  82. package/types/image/index.d.ts +2 -2
  83. package/types/image/instance.d.ts +9 -1
  84. package/types/image/utils.d.ts +1 -1
  85. package/types/index.d.cts +11 -0
  86. package/types/index.d.ts +1 -1
  87. package/types/input/input-box.d.ts +7 -7
  88. package/types/input/input.d.ts +3 -3
  89. package/types/input/textarea.d.ts +2 -2
  90. package/types/input-otp/index.d.ts +4 -0
  91. package/types/input-otp/input-otp.d.ts +39 -0
  92. package/types/input-otp/types.d.ts +1 -0
  93. package/types/locale/de.d.cts +65 -0
  94. package/types/locale/el.d.cts +65 -0
  95. package/types/locale/en.d.cts +65 -0
  96. package/types/locale/fr.d.cts +65 -0
  97. package/types/locale/it.d.cts +65 -0
  98. package/types/locale/ja.d.cts +65 -0
  99. package/types/locale/ko.d.cts +65 -0
  100. package/types/locale/ru.d.cts +65 -0
  101. package/types/locale/th.d.cts +65 -0
  102. package/types/locale/uk.d.cts +65 -0
  103. package/types/locale/vi.d.cts +65 -0
  104. package/types/locale/zh-CN.d.cts +65 -0
  105. package/types/locale/zh-TW.d.cts +65 -0
  106. package/types/menu/index.d.ts +3 -2
  107. package/types/menu/menu-context.d.ts +19 -0
  108. package/types/menu/menu-group.d.ts +4 -13
  109. package/types/menu/menu-item.d.ts +3 -6
  110. package/types/menu/menu.d.ts +3 -14
  111. package/types/menu/recursive-menu.d.ts +1 -4
  112. package/types/menu/sub-menu.d.ts +4 -9
  113. package/types/menu/types.d.ts +14 -0
  114. package/types/modal/index.d.ts +4 -3
  115. package/types/modal/modal.d.ts +110 -11
  116. package/types/notice/content.d.ts +76 -2
  117. package/types/notice/index.d.ts +1 -0
  118. package/types/page/index.d.ts +14 -1
  119. package/types/popconfirm/index.d.ts +54 -4
  120. package/types/poptip/index.d.ts +50 -5
  121. package/types/progress/index.d.ts +6 -8
  122. package/types/qrcode/index.d.ts +28 -3
  123. package/types/radio/index.d.ts +2 -1
  124. package/types/radio/radio-button.d.ts +4 -4
  125. package/types/radio/radio-group.d.ts +1 -8
  126. package/types/radio/types.d.ts +7 -0
  127. package/types/rate/index.d.ts +7 -7
  128. package/types/rate/star.d.ts +8 -7
  129. package/types/result/index.d.ts +4 -0
  130. package/types/result/result.d.ts +34 -0
  131. package/types/ripple/engine.d.ts +48 -0
  132. package/types/ripple/index.d.ts +42 -0
  133. package/types/row-col/col.d.ts +36 -1
  134. package/types/row-col/index.d.ts +1 -1
  135. package/types/select/index.d.ts +2 -1
  136. package/types/select/option.d.ts +2 -4
  137. package/types/select/select.d.ts +8 -12
  138. package/types/select/types.d.ts +10 -0
  139. package/types/skeleton/skeleton-avatar.d.ts +8 -8
  140. package/types/skeleton/skeleton-button.d.ts +8 -8
  141. package/types/skeleton/skeleton-image.d.ts +8 -8
  142. package/types/skeleton/skeleton-text.d.ts +8 -8
  143. package/types/skeleton/skeleton.d.ts +8 -8
  144. package/types/skeleton/types.d.ts +4 -4
  145. package/types/skeleton/use-skeleton-loading.d.ts +2 -0
  146. package/types/slider/thumb.d.ts +2 -2
  147. package/types/stat-card/index.d.ts +2 -1
  148. package/types/stat-card/stat-card.d.ts +30 -13
  149. package/types/stat-card/types.d.ts +14 -0
  150. package/types/stat-card/utils/countup.d.ts +5 -5
  151. package/types/switch/index.d.ts +14 -1
  152. package/types/table/index.d.ts +104 -38
  153. package/types/table/types.d.ts +23 -0
  154. package/types/table/utils.d.ts +13 -0
  155. package/types/tabs/types.d.ts +1 -1
  156. package/types/tag/index.d.ts +4 -3
  157. package/types/time-line/index.d.ts +2 -1
  158. package/types/time-line/timeline-item.d.ts +4 -3
  159. package/types/time-line/timeline.d.ts +2 -1
  160. package/types/tooltip/index.d.ts +37 -9
  161. package/types/tree/context.d.ts +6 -0
  162. package/types/tree/index.d.ts +5 -14
  163. package/types/tree/types.d.ts +6 -0
  164. package/types/tree/utils.d.ts +1 -1
  165. package/types/tree-select/index.d.ts +3 -16
  166. package/types/upload/file-list.d.ts +5 -4
  167. package/types/upload/index.d.ts +10 -24
  168. package/types/upload/selector.d.ts +9 -7
  169. package/types/upload/types.d.ts +17 -0
  170. package/types/utils/checked.d.ts +1 -1
  171. package/types/utils/element.d.ts +17 -4
  172. package/types/utils/number.d.ts +4 -4
  173. package/types/utils/share.d.ts +4 -4
  174. package/types/utils/vnode.d.ts +5 -2
  175. package/types/utils/vue.d.ts +2 -2
  176. package/types/watermark/index.d.ts +6 -15
  177. package/types/watermark/types.d.ts +11 -0
  178. package/vetur/attributes.json +4791 -5919
  179. package/vetur/tags.json +1579 -1473
  180. package/vetur/web-types.json +6776 -9826
  181. package/lib/index.js +0 -9
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * kui-vue v5.4.1
2
+ * kui-vue v5.6.0
3
3
  * Copyright 2017-present, kui-vue.
4
4
  * All rights reserved.
5
5
  * Homepage: https://k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * kui-vue v5.4.1
2
+ * kui-vue v5.6.0
3
3
  * Copyright 2017-present, kui-vue.
4
4
  * All rights reserved.
5
5
  * Homepage: https://k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * kui-vue v5.4.1
2
+ * kui-vue v5.6.0
3
3
  * Copyright 2017-present, kui-vue.
4
4
  * All rights reserved.
5
5
  * Homepage: https://k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * kui-vue v5.4.1
2
+ * kui-vue v5.6.0
3
3
  * Copyright 2017-present, kui-vue.
4
4
  * All rights reserved.
5
5
  * Homepage: https://k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * kui-vue v5.4.1
2
+ * kui-vue v5.6.0
3
3
  * Copyright 2017-present, kui-vue.
4
4
  * All rights reserved.
5
5
  * Homepage: https://k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * kui-vue v5.4.1
2
+ * kui-vue v5.6.0
3
3
  * Copyright 2017-present, kui-vue.
4
4
  * All rights reserved.
5
5
  * Homepage: https://k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * kui-vue v5.4.1
2
+ * kui-vue v5.6.0
3
3
  * Copyright 2017-present, kui-vue.
4
4
  * All rights reserved.
5
5
  * Homepage: https://k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * kui-vue v5.4.1
2
+ * kui-vue v5.6.0
3
3
  * Copyright 2017-present, kui-vue.
4
4
  * All rights reserved.
5
5
  * Homepage: https://k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * kui-vue v5.4.1
2
+ * kui-vue v5.6.0
3
3
  * Copyright 2017-present, kui-vue.
4
4
  * All rights reserved.
5
5
  * Homepage: https://k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * kui-vue v5.4.1
2
+ * kui-vue v5.6.0
3
3
  * Copyright 2017-present, kui-vue.
4
4
  * All rights reserved.
5
5
  * Homepage: https://k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * kui-vue v5.4.1
2
+ * kui-vue v5.6.0
3
3
  * Copyright 2017-present, kui-vue.
4
4
  * All rights reserved.
5
5
  * Homepage: https://k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * kui-vue v5.4.1
2
+ * kui-vue v5.6.0
3
3
  * Copyright 2017-present, kui-vue.
4
4
  * All rights reserved.
5
5
  * Homepage: https://k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * kui-vue v5.4.1
2
+ * kui-vue v5.6.0
3
3
  * Copyright 2017-present, kui-vue.
4
4
  * All rights reserved.
5
5
  * Homepage: https://k-ui.cn
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "kui-vue",
3
3
  "private": false,
4
- "version": "5.4.1",
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.js",
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
- "types": "./types/index.d.ts",
16
- "import": "./es/index.js",
17
- "require": "./lib/index.js"
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
- "types": "./types/locale/*.d.ts",
25
- "import": "./es/locale/*.js",
26
- "require": "./lib/locale/*.js"
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": "npm run dev",
60
+ "start": "pnpm dev",
42
61
  "dev": "vite --config vite.config.docs.ts",
43
- "build": "npm run build:css && npm run build:lib && npm run build:umd && npm run build:es",
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:docs": "vite build --config vite.config.docs.ts",
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
- "tsc": "vue-tsc --build --declaration --emitDeclarationOnly",
54
- "type-check": "vue-tsc --build --noEmit"
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
- "kyui",
75
- "design",
76
- "kui-vue",
77
- "vueComponent",
99
+ "vue-components",
100
+ "component-library",
78
101
  "ui",
79
102
  "ui-library",
80
- "vue3-components",
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.40",
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": "^14.3.0",
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.0",
154
+ "terser": "^5.49.2",
121
155
  "ts-morph": "^28.0.0",
122
156
  "typescript": "^6.0.3",
123
- "vite": "^8.1.5",
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.8"
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}