kui-vue 5.7.0 → 6.0.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 (206) hide show
  1. package/ai/evals/cases.json +18 -0
  2. package/ai/kui-components.json +3803 -2038
  3. package/ai/kui-components.schema.json +33 -0
  4. package/ai/mcp.mjs +64 -15
  5. package/dist/index.js +2 -2
  6. package/es/index.js +5546 -2165
  7. package/es/locale/de.js +6 -2
  8. package/es/locale/el.js +6 -2
  9. package/es/locale/en.js +6 -2
  10. package/es/locale/fr.js +6 -2
  11. package/es/locale/it.js +6 -2
  12. package/es/locale/ja.js +6 -2
  13. package/es/locale/ko.js +6 -2
  14. package/es/locale/ru.js +6 -2
  15. package/es/locale/th.js +6 -2
  16. package/es/locale/uk.js +6 -2
  17. package/es/locale/vi.js +6 -2
  18. package/es/locale/zh-CN.js +6 -2
  19. package/es/locale/zh-TW.js +6 -2
  20. package/lib/index.cjs +2 -2
  21. package/lib/locale/de.cjs +2 -2
  22. package/lib/locale/el.cjs +2 -2
  23. package/lib/locale/en.cjs +2 -2
  24. package/lib/locale/fr.cjs +2 -2
  25. package/lib/locale/it.cjs +2 -2
  26. package/lib/locale/ja.cjs +2 -2
  27. package/lib/locale/ko.cjs +2 -2
  28. package/lib/locale/ru.cjs +2 -2
  29. package/lib/locale/th.cjs +2 -2
  30. package/lib/locale/uk.cjs +2 -2
  31. package/lib/locale/vi.cjs +2 -2
  32. package/lib/locale/zh-CN.cjs +2 -2
  33. package/lib/locale/zh-TW.cjs +2 -2
  34. package/package.json +28 -24
  35. package/style/base.css +1 -1
  36. package/style/components.css +2 -2
  37. package/style/index.css +2 -2
  38. package/style/motion.css +2 -2
  39. package/style/theme.css +1 -1
  40. package/types/affix/index.d.ts +0 -9
  41. package/types/alert/index.d.ts +7 -12
  42. package/types/anchor/anchor.d.ts +0 -18
  43. package/types/auto-complete/index.d.ts +21 -18
  44. package/types/back-top/index.d.ts +28 -14
  45. package/types/breadcrumb/breadcrumb-item.d.ts +12 -2
  46. package/types/calendar/index.d.ts +90 -0
  47. package/types/card/index.d.ts +7 -6
  48. package/types/carousel/carousel.d.ts +8 -2
  49. package/types/cascader/index.d.ts +39 -28
  50. package/types/cascader/types.d.ts +5 -1
  51. package/types/check-card/check-card-group.d.ts +11 -8
  52. package/types/check-card/check-card.d.ts +11 -8
  53. package/types/check-card/context.d.ts +1 -0
  54. package/types/check-card/types.d.ts +1 -0
  55. package/types/checkbox/checkbox-group.d.ts +13 -13
  56. package/types/checkbox/checkbox.d.ts +35 -69
  57. package/types/checkbox/index.d.ts +1 -1
  58. package/types/checkbox/types.d.ts +2 -1
  59. package/types/collapse/collapse-panel.d.ts +16 -6
  60. package/types/collapse/collapse.d.ts +14 -10
  61. package/types/color-picker/alpha.d.ts +6 -4
  62. package/types/color-picker/hue.d.ts +6 -5
  63. package/types/color-picker/index.d.ts +55 -58
  64. package/types/color-picker/mode.d.ts +9 -7
  65. package/types/color-picker/paint.d.ts +6 -4
  66. package/types/color-picker/presets.d.ts +7 -5
  67. package/types/components.d.ts +22 -12
  68. package/types/config/context.d.ts +20 -3
  69. package/types/config/index.d.ts +10 -0
  70. package/types/config/popup-host.d.ts +6 -0
  71. package/types/const/types.d.ts +2 -1
  72. package/types/date-picker/index.d.ts +33 -222
  73. package/types/descriptions/descriptions-item.d.ts +9 -16
  74. package/types/descriptions/descriptions.d.ts +11 -9
  75. package/types/descriptions/index.d.ts +2 -2
  76. package/types/drawer/index.d.ts +14 -14
  77. package/types/dropdown/dropdown-button.d.ts +10 -9
  78. package/types/dropdown/dropdown.d.ts +9 -12
  79. package/types/dropdown/trigger.d.ts +3 -1
  80. package/types/feature-card/index.d.ts +50 -8
  81. package/types/feedback-panel/feedback-panel.d.ts +5 -5
  82. package/types/flame-wrap/index.d.ts +13 -4
  83. package/types/form/context.d.ts +66 -0
  84. package/types/form/form-item.d.ts +16 -1
  85. package/types/form/form.d.ts +31 -21
  86. package/types/form/index.d.ts +1 -1
  87. package/types/form/types.d.ts +6 -2
  88. package/types/global.d.ts +11 -0
  89. package/types/grid/grid-item.d.ts +9 -6
  90. package/types/grid/grid.d.ts +8 -7
  91. package/types/grid/index.d.ts +1 -0
  92. package/types/grid/useBreakpoint.d.ts +9 -3
  93. package/types/icon/index.d.ts +24 -5
  94. package/types/image/image.d.ts +15 -14
  95. package/types/image/index.d.ts +1 -0
  96. package/types/image/preview.d.ts +16 -5
  97. package/types/input/input-box.d.ts +10 -2
  98. package/types/input/input.d.ts +122 -12
  99. package/types/input/textarea.d.ts +50 -4
  100. package/types/input-number/index.d.ts +31 -11
  101. package/types/input-otp/input-otp.d.ts +70 -9
  102. package/types/input-tag/index.d.ts +19 -15
  103. package/types/kanban/index.d.ts +123 -0
  104. package/types/list-panel/index.d.ts +79 -0
  105. package/types/loading/index.d.ts +5 -10
  106. package/types/locale/de.d.cts +2 -0
  107. package/types/locale/de.d.ts +2 -0
  108. package/types/locale/el.d.cts +2 -0
  109. package/types/locale/el.d.ts +2 -0
  110. package/types/locale/en.d.cts +2 -0
  111. package/types/locale/en.d.ts +2 -0
  112. package/types/locale/fr.d.cts +2 -0
  113. package/types/locale/fr.d.ts +2 -0
  114. package/types/locale/it.d.cts +2 -0
  115. package/types/locale/it.d.ts +2 -0
  116. package/types/locale/ja.d.cts +2 -0
  117. package/types/locale/ja.d.ts +2 -0
  118. package/types/locale/ko.d.cts +2 -0
  119. package/types/locale/ko.d.ts +2 -0
  120. package/types/locale/ru.d.cts +2 -0
  121. package/types/locale/ru.d.ts +2 -0
  122. package/types/locale/th.d.cts +2 -0
  123. package/types/locale/th.d.ts +2 -0
  124. package/types/locale/uk.d.cts +2 -0
  125. package/types/locale/uk.d.ts +2 -0
  126. package/types/locale/vi.d.cts +2 -0
  127. package/types/locale/vi.d.ts +2 -0
  128. package/types/locale/zh-CN.d.cts +2 -0
  129. package/types/locale/zh-CN.d.ts +2 -0
  130. package/types/locale/zh-TW.d.cts +2 -0
  131. package/types/locale/zh-TW.d.ts +2 -0
  132. package/types/mentions/index.d.ts +19 -15
  133. package/types/menu/menu-context.d.ts +2 -0
  134. package/types/menu/menu-keyboard.d.ts +7 -0
  135. package/types/menu/menu.d.ts +35 -24
  136. package/types/menu/types.d.ts +2 -2
  137. package/types/modal/index.d.ts +1 -1
  138. package/types/modal/modal.d.ts +14 -62
  139. package/types/modal/toast.d.ts +6 -2
  140. package/types/notice/content.d.ts +9 -9
  141. package/types/page/index.d.ts +10 -11
  142. package/types/page-header/index.d.ts +14 -0
  143. package/types/popconfirm/index.d.ts +10 -32
  144. package/types/poptip/index.d.ts +8 -17
  145. package/types/progress/index.d.ts +1 -1
  146. package/types/qrcode/index.d.ts +8 -3
  147. package/types/radio/radio-button.d.ts +21 -13
  148. package/types/radio/radio-group.d.ts +14 -49
  149. package/types/radio/radio.d.ts +28 -17
  150. package/types/radio/types.d.ts +2 -2
  151. package/types/rate/index.d.ts +20 -17
  152. package/types/rate/star.d.ts +6 -2
  153. package/types/row-col/row.d.ts +8 -13
  154. package/types/segmented/index.d.ts +46 -0
  155. package/types/select/option.d.ts +36 -3
  156. package/types/select/select.d.ts +17 -123
  157. package/types/select/types.d.ts +3 -1
  158. package/types/skeleton/index.d.ts +4 -0
  159. package/types/skeleton/skeleton-avatar.d.ts +11 -42
  160. package/types/skeleton/skeleton-button.d.ts +13 -42
  161. package/types/skeleton/skeleton-image.d.ts +9 -42
  162. package/types/skeleton/skeleton-text.d.ts +9 -42
  163. package/types/skeleton/skeleton.d.ts +12 -20
  164. package/types/skeleton/types.d.ts +52 -10
  165. package/types/slider/index.d.ts +24 -75
  166. package/types/slider/thumb.d.ts +18 -6
  167. package/types/space/index.d.ts +8 -4
  168. package/types/spin/index.d.ts +1 -1
  169. package/types/splitter/splitter.d.ts +10 -11
  170. package/types/stat-card/stat-card.d.ts +26 -13
  171. package/types/stat-card/stat-number.d.ts +0 -3
  172. package/types/stat-card/types.d.ts +2 -1
  173. package/types/stat-card/utils/countup.d.ts +1 -0
  174. package/types/stat-card/utils/odometer.d.ts +1 -0
  175. package/types/steps/index.d.ts +6 -5
  176. package/types/switch/index.d.ts +33 -56
  177. package/types/table/column-setting.d.ts +78 -0
  178. package/types/table/index.d.ts +40 -61
  179. package/types/tabs/tab-panel.d.ts +4 -4
  180. package/types/tabs/tabs.d.ts +18 -11
  181. package/types/tag/index.d.ts +6 -11
  182. package/types/time-line/timeline-item.d.ts +7 -7
  183. package/types/tooltip/index.d.ts +6 -2
  184. package/types/tour/index.d.ts +25 -11
  185. package/types/transfer/index.d.ts +20 -14
  186. package/types/tree/index.d.ts +40 -89
  187. package/types/tree/types.d.ts +21 -0
  188. package/types/tree/utils.d.ts +1 -0
  189. package/types/tree-select/index.d.ts +14 -183
  190. package/types/typography/index.d.ts +34 -36
  191. package/types/upload/file-list.d.ts +43 -2
  192. package/types/upload/index.d.ts +114 -48
  193. package/types/upload/selector.d.ts +10 -3
  194. package/types/upload/types.d.ts +22 -0
  195. package/types/utils/checked.d.ts +1 -1
  196. package/types/utils/css.d.ts +2 -0
  197. package/types/utils/focus.d.ts +5 -0
  198. package/types/utils/vue.d.ts +7 -1
  199. package/types/virtual-list/index.d.ts +4 -2
  200. package/types/virtual-list/range.d.ts +1 -0
  201. package/vetur/attributes.json +2553 -1265
  202. package/vetur/tags.json +602 -307
  203. package/vetur/web-types.json +2881 -1027
  204. package/test/use-unpkg.html +0 -45
  205. package/types/icon/demo/search.d.ts +0 -2
  206. package/types/icon/demo/tags.d.ts +0 -4
@@ -1,10 +1,11 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
- import { BooleanType, DropPlacementsType, SizeType } from '../const/types';
2
+ import { BooleanType, DropPlacementsType, ShapeType, SizeType, ThemeType } from '../const/types';
3
3
  type ColorMode = "hex" | "rgb" | "hsl";
4
4
  declare const colorPickerProps: {
5
5
  modelValue: StringConstructor;
6
6
  opened: BooleanType;
7
7
  disabled: BooleanType;
8
+ readonly: BooleanType;
8
9
  disabledAlpha: BooleanType;
9
10
  showText: BooleanType;
10
11
  placement: {
@@ -18,6 +19,11 @@ declare const colorPickerProps: {
18
19
  size: {
19
20
  type: PropType<SizeType>;
20
21
  };
22
+ theme: {
23
+ type: PropType<ThemeType>;
24
+ default: string;
25
+ };
26
+ shape: PropType<ShapeType>;
21
27
  mode: {
22
28
  type: PropType<ColorMode>;
23
29
  default: string;
@@ -25,22 +31,14 @@ declare const colorPickerProps: {
25
31
  presets: {
26
32
  type: PropType<string[]>;
27
33
  };
28
- onChange: {
29
- type: PropType<(color: string) => void>;
30
- };
31
- onUpdateMode: {
32
- type: PropType<(mode: ColorMode) => void>;
33
- };
34
- onOpenChange: {
35
- type: PropType<(open: boolean) => void>;
36
- };
37
34
  panelOnly: BooleanType;
38
35
  };
39
36
  export type ColorPickerProps = ExtractPropTypes<typeof colorPickerProps>;
40
- declare const ColorPicker: import('vue').DefineComponent<ExtractPropTypes<{
37
+ export declare const ColorPickerPanel: import('vue').DefineComponent<ExtractPropTypes<{
41
38
  modelValue: StringConstructor;
42
39
  opened: BooleanType;
43
40
  disabled: BooleanType;
41
+ readonly: BooleanType;
44
42
  disabledAlpha: BooleanType;
45
43
  showText: BooleanType;
46
44
  placement: {
@@ -54,6 +52,11 @@ declare const ColorPicker: import('vue').DefineComponent<ExtractPropTypes<{
54
52
  size: {
55
53
  type: PropType<SizeType>;
56
54
  };
55
+ theme: {
56
+ type: PropType<ThemeType>;
57
+ default: string;
58
+ };
59
+ shape: PropType<ShapeType>;
57
60
  mode: {
58
61
  type: PropType<ColorMode>;
59
62
  default: string;
@@ -61,20 +64,14 @@ declare const ColorPicker: import('vue').DefineComponent<ExtractPropTypes<{
61
64
  presets: {
62
65
  type: PropType<string[]>;
63
66
  };
64
- onChange: {
65
- type: PropType<(color: string) => void>;
66
- };
67
- onUpdateMode: {
68
- type: PropType<(mode: ColorMode) => void>;
69
- };
70
- onOpenChange: {
71
- type: PropType<(open: boolean) => void>;
72
- };
73
67
  panelOnly: BooleanType;
74
- }>, () => import("vue/jsx-runtime").JSX.Element | never[] | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
68
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
69
+ [key: string]: any;
70
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
75
71
  modelValue: StringConstructor;
76
72
  opened: BooleanType;
77
73
  disabled: BooleanType;
74
+ readonly: BooleanType;
78
75
  disabledAlpha: BooleanType;
79
76
  showText: BooleanType;
80
77
  placement: {
@@ -88,6 +85,11 @@ declare const ColorPicker: import('vue').DefineComponent<ExtractPropTypes<{
88
85
  size: {
89
86
  type: PropType<SizeType>;
90
87
  };
88
+ theme: {
89
+ type: PropType<ThemeType>;
90
+ default: string;
91
+ };
92
+ shape: PropType<ShapeType>;
91
93
  mode: {
92
94
  type: PropType<ColorMode>;
93
95
  default: string;
@@ -95,27 +97,18 @@ declare const ColorPicker: import('vue').DefineComponent<ExtractPropTypes<{
95
97
  presets: {
96
98
  type: PropType<string[]>;
97
99
  };
98
- onChange: {
99
- type: PropType<(color: string) => void>;
100
- };
101
- onUpdateMode: {
102
- type: PropType<(mode: ColorMode) => void>;
103
- };
104
- onOpenChange: {
105
- type: PropType<(open: boolean) => void>;
106
- };
107
100
  panelOnly: BooleanType;
108
101
  }>> & Readonly<{}>, {
102
+ theme: ThemeType;
109
103
  mode: ColorMode;
110
104
  placement: DropPlacementsType;
111
105
  trigger: "click" | "hover";
112
- }, {}, {}, {
113
- resize: import('vue').ObjectDirective<any, any, string, any>;
114
- }, string, import('vue').ComponentProvideOptions, true, {}, any>;
115
- export declare const ColorPickerPanel: import('vue').DefineComponent<ExtractPropTypes<{
106
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
107
+ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
116
108
  modelValue: StringConstructor;
117
109
  opened: BooleanType;
118
110
  disabled: BooleanType;
111
+ readonly: BooleanType;
119
112
  disabledAlpha: BooleanType;
120
113
  showText: BooleanType;
121
114
  placement: {
@@ -129,6 +122,11 @@ export declare const ColorPickerPanel: import('vue').DefineComponent<ExtractProp
129
122
  size: {
130
123
  type: PropType<SizeType>;
131
124
  };
125
+ theme: {
126
+ type: PropType<ThemeType>;
127
+ default: string;
128
+ };
129
+ shape: PropType<ShapeType>;
132
130
  mode: {
133
131
  type: PropType<ColorMode>;
134
132
  default: string;
@@ -136,22 +134,17 @@ export declare const ColorPickerPanel: import('vue').DefineComponent<ExtractProp
136
134
  presets: {
137
135
  type: PropType<string[]>;
138
136
  };
139
- onChange: {
140
- type: PropType<(color: string) => void>;
141
- };
142
- onUpdateMode: {
143
- type: PropType<(mode: ColorMode) => void>;
144
- };
145
- onOpenChange: {
146
- type: PropType<(open: boolean) => void>;
147
- };
148
137
  panelOnly: BooleanType;
149
- }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
150
- [key: string]: any;
151
- }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
138
+ }>, () => import("vue/jsx-runtime").JSX.Element | never[] | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
139
+ "update:modelValue": (value: string) => boolean;
140
+ "update:mode": (mode: ColorMode) => boolean;
141
+ change: (value: string) => boolean;
142
+ openChange: (open: boolean) => boolean;
143
+ }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
152
144
  modelValue: StringConstructor;
153
145
  opened: BooleanType;
154
146
  disabled: BooleanType;
147
+ readonly: BooleanType;
155
148
  disabledAlpha: BooleanType;
156
149
  showText: BooleanType;
157
150
  placement: {
@@ -165,6 +158,11 @@ export declare const ColorPickerPanel: import('vue').DefineComponent<ExtractProp
165
158
  size: {
166
159
  type: PropType<SizeType>;
167
160
  };
161
+ theme: {
162
+ type: PropType<ThemeType>;
163
+ default: string;
164
+ };
165
+ shape: PropType<ShapeType>;
168
166
  mode: {
169
167
  type: PropType<ColorMode>;
170
168
  default: string;
@@ -172,19 +170,18 @@ export declare const ColorPickerPanel: import('vue').DefineComponent<ExtractProp
172
170
  presets: {
173
171
  type: PropType<string[]>;
174
172
  };
175
- onChange: {
176
- type: PropType<(color: string) => void>;
177
- };
178
- onUpdateMode: {
179
- type: PropType<(mode: ColorMode) => void>;
180
- };
181
- onOpenChange: {
182
- type: PropType<(open: boolean) => void>;
183
- };
184
173
  panelOnly: BooleanType;
185
- }>> & Readonly<{}>, {
174
+ }>> & Readonly<{
175
+ onChange?: ((value: string) => any) | undefined;
176
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
177
+ onOpenChange?: ((open: boolean) => any) | undefined;
178
+ "onUpdate:mode"?: ((mode: ColorMode) => any) | undefined;
179
+ }>, {
180
+ theme: ThemeType;
186
181
  mode: ColorMode;
187
182
  placement: DropPlacementsType;
188
183
  trigger: "click" | "hover";
189
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
190
- export default ColorPicker;
184
+ }, {}, {}, {
185
+ resize: import('vue').ObjectDirective<any, any, string, any>;
186
+ }, string, import('vue').ComponentProvideOptions, true, {}, any>;
187
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { ColorInstance } from 'color';
1
+ import { default as Color } from 'color';
2
2
  import { PropType } from 'vue';
3
3
  import { BooleanType } from '../const/types';
4
4
  type ColorMode = "hex" | "rgb" | "hsl";
@@ -9,18 +9,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
9
9
  default: string;
10
10
  };
11
11
  disabledAlpha: BooleanType;
12
- onUpdateMode: PropType<(mode: "hex" | "rgb" | "hsl") => void>;
13
- onUpdateColorValue: PropType<(color: ColorInstance) => void>;
14
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
12
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ updateMode: (mode: ColorMode) => boolean;
14
+ updateColorValue: (value: ReturnType<typeof Color>) => boolean;
15
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
15
16
  modelValue: (ObjectConstructor | StringConstructor)[];
16
17
  mode: {
17
18
  type: PropType<ColorMode>;
18
19
  default: string;
19
20
  };
20
21
  disabledAlpha: BooleanType;
21
- onUpdateMode: PropType<(mode: "hex" | "rgb" | "hsl") => void>;
22
- onUpdateColorValue: PropType<(color: ColorInstance) => void>;
23
- }>> & Readonly<{}>, {
22
+ }>> & Readonly<{
23
+ onUpdateMode?: ((mode: ColorMode) => any) | undefined;
24
+ onUpdateColorValue?: ((value: import('color').ColorInstance) => any) | undefined;
25
+ }>, {
24
26
  mode: ColorMode;
25
27
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
26
28
  export default _default;
@@ -13,8 +13,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
13
13
  type: BooleanConstructor;
14
14
  default: boolean;
15
15
  };
16
- onUpdateRGB: PropType<(color: ColorObject) => void>;
17
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ updateRGB: (value: ColorObject) => boolean;
18
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
18
19
  hue: {
19
20
  type: NumberConstructor;
20
21
  default: number;
@@ -27,8 +28,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
27
28
  type: BooleanConstructor;
28
29
  default: boolean;
29
30
  };
30
- onUpdateRGB: PropType<(color: ColorObject) => void>;
31
- }>> & Readonly<{}>, {
31
+ }>> & Readonly<{
32
+ onUpdateRGB?: ((value: ColorObject) => any) | undefined;
33
+ }>, {
32
34
  visible: boolean;
33
35
  hue: number;
34
36
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,4 +1,4 @@
1
- import { ColorInstance } from 'color';
1
+ import { default as Color } from 'color';
2
2
  import { PropType } from 'vue';
3
3
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
4
  color: (ObjectConstructor | StringConstructor)[];
@@ -6,15 +6,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
6
6
  type: PropType<string[]>;
7
7
  default: () => string[];
8
8
  };
9
- onUpdateColor: PropType<(color: ColorInstance) => void>;
10
- }>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
+ }>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ updateColor: (value: ReturnType<typeof Color>) => boolean;
11
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
12
  color: (ObjectConstructor | StringConstructor)[];
12
13
  modelValue: {
13
14
  type: PropType<string[]>;
14
15
  default: () => string[];
15
16
  };
16
- onUpdateColor: PropType<(color: ColorInstance) => void>;
17
- }>> & Readonly<{}>, {
17
+ }>> & Readonly<{
18
+ onUpdateColor?: ((value: import('color').ColorInstance) => any) | undefined;
19
+ }>, {
18
20
  modelValue: string[];
19
21
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
22
  export default _default;
@@ -17,17 +17,21 @@ export type { BadgeProps, BadgeStatusType } from './badge';
17
17
  export { Button, ButtonGroup } from './button';
18
18
  export type { ButtonGroupProps, ButtonProps } from './button';
19
19
  export { default as Cascader } from './cascader';
20
- export type { CascaderOption, CascaderProps } from './cascader/types';
20
+ export type { CascaderLoadData, CascaderOption, CascaderProps, CascaderValue, } from './cascader/types';
21
21
  export { default as Card, CardMeta } from './card';
22
- export type { CardMetaProps, CardProps } from './card';
22
+ export type { CardMetaProps, CardProps, CardShape } from './card';
23
+ export { default as Calendar } from './calendar';
24
+ export type { CalendarDateCell, CalendarEventData, CalendarProps } from './calendar';
23
25
  export { default as FeatureCard } from './feature-card';
24
26
  export type { FeatureCardProps } from './feature-card';
25
27
  export { default as FlameWrap } from './flame-wrap';
26
28
  export type { FlameWrapInstance, FlameWrapOptions, FlameWrapProps } from './flame-wrap';
29
+ export { default as ListPanel } from './list-panel';
30
+ export type { ListPanelProps } from './list-panel';
27
31
  export { Carousel, CarouselItem } from './carousel';
28
32
  export type { CarouselProps } from './carousel';
29
33
  export { Checkbox, CheckboxGroup } from './checkbox';
30
- export type { ChangeEvent, CheckboxGroupProps, CheckboxOption, CheckboxProps } from './checkbox';
34
+ export type { ChangeEvent, CheckboxGroupProps, CheckboxOption, CheckboxProps, CheckboxValue, } from './checkbox';
31
35
  export { CheckCard, CheckCardGroup } from './check-card';
32
36
  export type { CheckCardChangeEvent, CheckCardGroupProps, CheckCardOption, CheckCardProps, CheckCardTheme, CheckCardValue, } from './check-card';
33
37
  export { Collapse, CollapsePanel } from './collapse';
@@ -37,7 +41,7 @@ export type { ColorPickerProps } from './color-picker';
37
41
  export { DatePickerPanel, default as DatePicker } from './date-picker';
38
42
  export type { DatePickerProps } from './date-picker';
39
43
  export { Descriptions, DescriptionsItem } from './descriptions';
40
- export type { DescriptionsItemProps, DescriptionsProps } from './descriptions';
44
+ export type { DescriptionsColumn, DescriptionsItemProps, DescriptionsProps } from './descriptions';
41
45
  export { default as Drawer } from './drawer';
42
46
  export type { DrawerProps } from './drawer';
43
47
  export { Dropdown, DropdownButton } from './dropdown';
@@ -52,9 +56,9 @@ export type { FormRule } from './form/types';
52
56
  export { default as Flex } from './flex';
53
57
  export type { FlexAlignType, FlexJustifyType, FlexProps, FlexSizeType } from './flex';
54
58
  export { Grid, GridItem } from './grid';
55
- export type { GridItemProps, GridProps } from './grid';
59
+ export type { GridBreakpoint, GridItemProps, GridProps, GridResponsive } from './grid';
56
60
  export { Image, ImageGroup } from './image';
57
- export type { ImageGroupProps, ImageProps } from './image';
61
+ export type { ImageGroupProps, ImagePreviewProps, ImageProps, ImageType } from './image';
58
62
  export { default as Icon } from './icon';
59
63
  export type { IconProps, IconType } from './icon';
60
64
  export { Input, InputGroup, TextArea } from './input';
@@ -81,6 +85,8 @@ export { default as notice } from './notice';
81
85
  export type { NoticeOptions } from './notice';
82
86
  export { default as Page } from './page';
83
87
  export type { PageProps } from './page';
88
+ export { default as PageHeader } from './page-header';
89
+ export type { PageHeaderProps } from './page-header';
84
90
  export { PoptipPanel, default as Poptip } from './poptip';
85
91
  export type { PoptipProps } from './poptip';
86
92
  export { PopconfirmPanel, default as Popconfirm } from './popconfirm';
@@ -90,9 +96,11 @@ export type { ProgressProps, ProgressStatus, ProgressStroke, ProgressType } from
90
96
  export { default as Ripple } from './ripple';
91
97
  export type { RippleInstance, RippleOptions, RippleProps, RippleTrigger } from './ripple';
92
98
  export { default as QRCode } from './qrcode';
93
- export type { QRCodeErrorLevel, QRCodeProps, QRCodeStatus } from './qrcode';
99
+ export type { QRCodeErrorLevel, QRCodeProps, QRCodeRef, QRCodeStatus } from './qrcode';
94
100
  export { Radio, RadioButton, RadioGroup } from './radio';
95
101
  export type { RadioButtonProps, RadioGroupProps, RadioOption, RadioProps } from './radio';
102
+ export { default as Segmented } from './segmented';
103
+ export type { SegmentedOption, SegmentedProps, SegmentedValue } from './segmented';
96
104
  export { default as Rate } from './rate';
97
105
  export type { RateProps } from './rate';
98
106
  export { default as Result } from './result';
@@ -119,8 +127,10 @@ export { default as Switch } from './switch';
119
127
  export type { SwitchProps } from './switch';
120
128
  export { Splitter, SplitterPanel } from './splitter';
121
129
  export type { SplitterPanelProps, SplitterProps } from './splitter';
122
- export { default as Table } from './table';
123
- export type { Column, SortState, TableKey, TableProps, TableRecord, TableTreeRow } from './table';
130
+ export { default as Table, TableColumnSetting } from './table';
131
+ export type { Column, SortState, TableColumnSettingProps, TableKey, TableProps, TableRecord, TableTreeRow, } from './table';
132
+ export { default as Kanban } from './kanban';
133
+ export type { KanbanColumnData, KanbanItemData, KanbanMoveEvent, KanbanProps } from './kanban';
124
134
  export { TooltipPanel, default as Tooltip } from './tooltip';
125
135
  export type { TooltipProps } from './tooltip';
126
136
  export { default as Tour } from './tour';
@@ -134,7 +144,7 @@ export type { TabPanelProps, TabsProps } from './tabs';
134
144
  export { TimeLine, TimeLineItem } from './time-line';
135
145
  export type { TimelineItemProps, TimelineMode, TimelineProps } from './time-line';
136
146
  export { default as Tree } from './tree';
137
- export type { TreeExpandEvent, TreeNode, TreeProps } from './tree';
147
+ export type { TreeDropEvent, TreeDropPosition, TreeExpandEvent, TreeExpose, TreeFieldNames, TreeNode, TreeProps, } from './tree';
138
148
  export { default as TreeSelect } from './tree-select';
139
149
  export type { TreeSelectProps } from './tree-select';
140
150
  export { default as Tag } from './tag';
@@ -142,10 +152,10 @@ export type { TagProps } from './tag';
142
152
  export { Col, Row } from './row-col';
143
153
  export type { ColProps, ColResponsiveSize, ColSize, RowProps } from './row-col';
144
154
  export { default as Upload } from './upload';
145
- export type { UploadChangeEvent, UploadContext, UploadFile, UploadProps } from './upload';
155
+ export type { UploadChangeEvent, UploadContext, UploadCustomRequest, UploadFile, UploadProps, } from './upload';
146
156
  export { default as Watermark } from './watermark';
147
157
  export type { WatermarkFont, WatermarkLayoutType, WatermarkProps, WatermarkTextItem, } from './watermark';
148
158
  export { default as VirtualList } from './virtual-list';
149
159
  export type { VirtualListKey, VirtualListProps } from './virtual-list';
150
160
  export { default as theme } from './utils/theme';
151
- export type { AlignType, BooleanType, ButtonType, ColorType, DirectionType, DrawerPlacementsType, DropPlacementsType, PlacementsType, RadioType, ShapeType, SizeType, SpinModeType, ThemeType, UploadStatusType, } from './const/types';
161
+ export type { AlignType, BooleanType, ButtonType, ColorType, DirectionType, DrawerPlacementsType, DropPlacementsType, PlacementsType, RadioType, ShapeType, SizeType, SpinModeType, SurfaceShapeType, ThemeType, UploadStatusType, } from './const/types';
@@ -1,10 +1,27 @@
1
- import { ComponentInternalInstance } from 'vue';
1
+ import { AppContext, ComponentInternalInstance, ComputedRef, InjectionKey } from 'vue';
2
+ import { ShapeType, SizeType, ThemeType } from '../const/types';
3
+ export interface ConfigProviderContext {
4
+ size: ComputedRef<SizeType | undefined>;
5
+ theme: ComputedRef<ThemeType | undefined>;
6
+ shape: ComputedRef<ShapeType | undefined>;
7
+ }
8
+ export declare const CONFIG_PROVIDER_INJECTION_KEY: InjectionKey<ConfigProviderContext>;
9
+ export declare const useConfigAppearance: <T extends {
10
+ size?: SizeType;
11
+ theme?: ThemeType;
12
+ shape?: ShapeType;
13
+ }>(props: T) => {
14
+ size: ComputedRef<T["size"]>;
15
+ theme: ComputedRef<T["theme"]>;
16
+ shape: ComputedRef<T["shape"]>;
17
+ surfaceShape: ComputedRef<"round" | T["shape"]>;
18
+ };
2
19
  interface Point {
3
20
  x: number;
4
21
  y: number;
5
22
  }
6
- export declare function setAppContext(app: ComponentInternalInstance | null): void;
7
- export declare const getAppContext: () => ComponentInternalInstance | null;
23
+ export declare const registerAppContext: (instance: ComponentInternalInstance) => () => void;
24
+ export declare const getAppContext: (instance?: ComponentInternalInstance | null) => AppContext | null;
8
25
  export declare const recordMousePoint: () => void;
9
26
  export declare const getMousePoint: () => Point;
10
27
  export {};
@@ -1,4 +1,5 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
+ import { ShapeType, SizeType, ThemeType } from '../const/types';
2
3
  import { PopupContainerGetter } from './popup';
3
4
  declare const configProviderProps: {
4
5
  locale: {
@@ -6,6 +7,9 @@ declare const configProviderProps: {
6
7
  default: () => null;
7
8
  };
8
9
  getPopupContainer: PropType<PopupContainerGetter>;
10
+ size: PropType<SizeType>;
11
+ theme: PropType<ThemeType>;
12
+ shape: PropType<ShapeType>;
9
13
  };
10
14
  export type ConfigProviderProps = Partial<ExtractPropTypes<typeof configProviderProps>>;
11
15
  declare const ConfigProvider: import('vue').DefineComponent<ExtractPropTypes<{
@@ -14,6 +18,9 @@ declare const ConfigProvider: import('vue').DefineComponent<ExtractPropTypes<{
14
18
  default: () => null;
15
19
  };
16
20
  getPopupContainer: PropType<PopupContainerGetter>;
21
+ size: PropType<SizeType>;
22
+ theme: PropType<ThemeType>;
23
+ shape: PropType<ShapeType>;
17
24
  }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
18
25
  [key: string]: any;
19
26
  }>[] | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
@@ -22,6 +29,9 @@ declare const ConfigProvider: import('vue').DefineComponent<ExtractPropTypes<{
22
29
  default: () => null;
23
30
  };
24
31
  getPopupContainer: PropType<PopupContainerGetter>;
32
+ size: PropType<SizeType>;
33
+ theme: PropType<ThemeType>;
34
+ shape: PropType<ShapeType>;
25
35
  }>> & Readonly<{}>, {
26
36
  locale: Record<string, any>;
27
37
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,6 @@
1
+ type PopupCloser = () => void;
2
+ /** Creates an isolated popup scope for components whose overlays are teleported elsewhere. */
3
+ export declare const providePopupHost: () => () => void;
4
+ /** Registers a teleported popup with its nearest Modal or Drawer. */
5
+ export declare const usePopupHost: (close: PopupCloser) => void;
6
+ export {};
@@ -6,9 +6,10 @@ export type DropPlacementsType = "top" | "top-left" | "top-right" | "bottom" | "
6
6
  export type ValueType = "string" | "number" | "boolean";
7
7
  export type SizeType = "small" | "medium" | "large";
8
8
  export type ShapeType = "circle" | "square" | "round" | "default";
9
+ export type SurfaceShapeType = "square" | "round";
9
10
  export type BooleanType = PropType<boolean | undefined>;
10
11
  export type ButtonType = "primary" | "danger" | "warning" | "default" | "text" | "link";
11
- export type ThemeType = "outline" | "fill" | "plain" | "default" | "solid" | "dashed" | "card" | "underlined";
12
+ export type ThemeType = "outline" | "fill" | "plain" | "default" | "solid" | "dashed" | "underlined";
12
13
  export type RadioType = "radio" | "button";
13
14
  export type DirectionType = "horizontal" | "vertical" | "inline";
14
15
  export type AlignType = "start" | "center" | "end";