kui-vue 5.2.0 → 5.2.2

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/dist/index.js +2 -2
  2. package/es/affix/index.d.ts +49 -0
  3. package/es/alert/index.d.ts +61 -0
  4. package/es/anchor/anchor-link.d.ts +23 -0
  5. package/es/anchor/anchor.d.ts +67 -0
  6. package/es/anchor/index.d.ts +5 -0
  7. package/es/avatar/avatar-group.d.ts +39 -0
  8. package/es/avatar/avatar.d.ts +43 -0
  9. package/es/avatar/index.d.ts +5 -0
  10. package/es/back-top/index.d.ts +46 -0
  11. package/es/badge/index.d.ts +49 -0
  12. package/es/base/transition.d.ts +3 -0
  13. package/es/breadcrumb/breadcrumb-item.d.ts +15 -0
  14. package/es/breadcrumb/breadcrumb.d.ts +22 -0
  15. package/es/breadcrumb/index.d.ts +5 -0
  16. package/es/button/button-group.d.ts +21 -0
  17. package/es/button/button.d.ts +39 -0
  18. package/es/button/index.d.ts +5 -0
  19. package/es/card/index.d.ts +30 -0
  20. package/es/carousel/carousel-item.d.ts +2 -0
  21. package/es/carousel/carousel.d.ts +84 -0
  22. package/es/carousel/index.d.ts +4 -0
  23. package/es/checkbox/checkbox-group.d.ts +79 -0
  24. package/es/checkbox/checkbox.d.ts +105 -0
  25. package/es/checkbox/index.d.ts +6 -0
  26. package/es/collapse/collapse-panel.d.ts +15 -0
  27. package/es/collapse/collapse.d.ts +32 -0
  28. package/es/collapse/index.d.ts +6 -0
  29. package/es/color-picker/alpha.d.ts +15 -0
  30. package/es/color-picker/hue.d.ts +17 -0
  31. package/es/color-picker/index.d.ts +110 -0
  32. package/es/color-picker/mode.d.ts +25 -0
  33. package/es/color-picker/paint.d.ts +26 -0
  34. package/es/color-picker/presets.d.ts +20 -0
  35. package/es/components.d.ts +113 -0
  36. package/es/config/context.d.ts +10 -0
  37. package/es/config/index.d.ts +16 -0
  38. package/es/const/types.d.ts +19 -0
  39. package/es/const/var.d.ts +1 -0
  40. package/es/date-picker/index.d.ts +277 -0
  41. package/es/descriptions/descriptions-item.d.ts +35 -0
  42. package/es/descriptions/descriptions.d.ts +54 -0
  43. package/es/descriptions/index.d.ts +4 -0
  44. package/es/directives/outsiteclick.d.ts +2 -0
  45. package/es/directives/resize.d.ts +3 -0
  46. package/es/directives/scroll.d.ts +2 -0
  47. package/es/directives/transfer.d.ts +2 -0
  48. package/es/divider/index.d.ts +42 -0
  49. package/es/drawer/index.d.ts +177 -0
  50. package/es/dropdown/dropdown-button.d.ts +45 -0
  51. package/es/dropdown/dropdown.d.ts +72 -0
  52. package/es/dropdown/index.d.ts +4 -0
  53. package/es/dropdown/trigger.d.ts +11 -0
  54. package/es/empty/index.d.ts +9 -0
  55. package/es/flex/index.d.ts +45 -0
  56. package/es/form/form-item.d.ts +24 -0
  57. package/es/form/form.d.ts +92 -0
  58. package/es/form/index.d.ts +6 -0
  59. package/es/form/types.d.ts +14 -0
  60. package/es/grid/grid-item.d.ts +22 -0
  61. package/es/grid/grid.d.ts +39 -0
  62. package/es/grid/index.d.ts +5 -0
  63. package/es/grid/useBreakpoint.d.ts +3 -0
  64. package/es/icon/demo/search.d.ts +2 -0
  65. package/es/icon/demo/tags.d.ts +4 -0
  66. package/es/icon/index.d.ts +45 -0
  67. package/es/image/group.d.ts +11 -0
  68. package/es/image/image.d.ts +45 -0
  69. package/es/image/index.d.ts +5 -0
  70. package/es/image/instance.d.ts +2 -0
  71. package/es/image/preview.d.ts +36 -0
  72. package/es/image/utils.d.ts +6 -0
  73. package/es/index.d.ts +10 -0
  74. package/es/index.js +26 -22
  75. package/es/input/index.d.ts +8 -0
  76. package/es/input/input-box.d.ts +39 -0
  77. package/es/input/input-group.d.ts +58 -0
  78. package/es/input/input.d.ts +56 -0
  79. package/es/input/textarea.d.ts +25 -0
  80. package/es/input-number/index.d.ts +127 -0
  81. package/es/layout/index.d.ts +136 -0
  82. package/es/loading/index.d.ts +16 -0
  83. package/es/locale/de.d.ts +59 -0
  84. package/es/locale/de.js +1 -1
  85. package/es/locale/el.d.ts +59 -0
  86. package/es/locale/el.js +1 -1
  87. package/es/locale/en.d.ts +59 -0
  88. package/es/locale/en.js +1 -1
  89. package/es/locale/fr.d.ts +59 -0
  90. package/es/locale/fr.js +1 -1
  91. package/es/locale/it.d.ts +59 -0
  92. package/es/locale/it.js +1 -1
  93. package/es/locale/ja.d.ts +59 -0
  94. package/es/locale/ja.js +1 -1
  95. package/es/locale/ko.d.ts +59 -0
  96. package/es/locale/ko.js +1 -1
  97. package/es/locale/ru.d.ts +59 -0
  98. package/es/locale/ru.js +1 -1
  99. package/es/locale/th.d.ts +59 -0
  100. package/es/locale/th.js +1 -1
  101. package/es/locale/uk.d.ts +59 -0
  102. package/es/locale/uk.js +1 -1
  103. package/es/locale/vi.d.ts +59 -0
  104. package/es/locale/vi.js +1 -1
  105. package/es/locale/zh-CN.d.ts +59 -0
  106. package/es/locale/zh-CN.js +1 -1
  107. package/es/locale/zh-TW.d.ts +59 -0
  108. package/es/locale/zh-TW.js +1 -1
  109. package/es/menu/index.d.ts +7 -0
  110. package/es/menu/menu-divider.d.ts +2 -0
  111. package/es/menu/menu-group.d.ts +20 -0
  112. package/es/menu/menu-item.d.ts +22 -0
  113. package/es/menu/menu.d.ts +92 -0
  114. package/es/menu/recursive-menu.d.ts +17 -0
  115. package/es/menu/sub-menu.d.ts +24 -0
  116. package/es/message/index.d.ts +23 -0
  117. package/es/modal/index.d.ts +26 -0
  118. package/es/modal/modal.d.ts +176 -0
  119. package/es/modal/toast.d.ts +32 -0
  120. package/es/notice/container.d.ts +6 -0
  121. package/es/notice/content.d.ts +54 -0
  122. package/es/notice/index.d.ts +23 -0
  123. package/es/notice/instance.d.ts +8 -0
  124. package/es/page/index.d.ts +115 -0
  125. package/es/popconfirm/index.d.ts +75 -0
  126. package/es/poptip/index.d.ts +66 -0
  127. package/es/progress/index.d.ts +125 -0
  128. package/es/radio/index.d.ts +7 -0
  129. package/es/radio/radio-button.d.ts +76 -0
  130. package/es/radio/radio-group.d.ts +77 -0
  131. package/es/radio/radio.d.ts +73 -0
  132. package/es/radio/types.d.ts +5 -0
  133. package/es/rate/index.d.ts +99 -0
  134. package/es/rate/star.d.ts +65 -0
  135. package/es/row-col/col.d.ts +17 -0
  136. package/es/row-col/index.d.ts +5 -0
  137. package/es/row-col/row.d.ts +43 -0
  138. package/es/select/index.d.ts +5 -0
  139. package/es/select/option.d.ts +23 -0
  140. package/es/select/select.d.ts +150 -0
  141. package/es/skeleton/index.d.ts +7 -0
  142. package/es/skeleton/skeleton-avatar.d.ts +58 -0
  143. package/es/skeleton/skeleton-button.d.ts +58 -0
  144. package/es/skeleton/skeleton-image.d.ts +58 -0
  145. package/es/skeleton/skeleton-text.d.ts +58 -0
  146. package/es/skeleton/skeleton.d.ts +61 -0
  147. package/es/skeleton/types.d.ts +29 -0
  148. package/es/slider/index.d.ts +112 -0
  149. package/es/slider/thumb.d.ts +58 -0
  150. package/es/space/index.d.ts +50 -0
  151. package/es/spin/index.d.ts +58 -0
  152. package/es/splitter/index.d.ts +4 -0
  153. package/es/splitter/splitter-panel.d.ts +35 -0
  154. package/es/splitter/splitter.d.ts +32 -0
  155. package/es/stat-card/countup.d.ts +56 -0
  156. package/es/stat-card/index.d.ts +5 -0
  157. package/es/stat-card/rollup.d.ts +32 -0
  158. package/es/stat-card/stat-card.d.ts +72 -0
  159. package/es/stat-card/stat-number.d.ts +100 -0
  160. package/es/stat-card/utils/countup.d.ts +127 -0
  161. package/es/stat-card/utils/odometer.d.ts +13 -0
  162. package/es/switch/index.d.ts +72 -0
  163. package/es/table/index.d.ts +185 -0
  164. package/es/tabs/index.d.ts +5 -0
  165. package/es/tabs/tab-panel.d.ts +22 -0
  166. package/es/tabs/tabs.d.ts +44 -0
  167. package/es/tabs/types.d.ts +16 -0
  168. package/es/tag/index.d.ts +57 -0
  169. package/es/time-line/index.d.ts +5 -0
  170. package/es/time-line/timeline-item.d.ts +20 -0
  171. package/es/time-line/timeline.d.ts +26 -0
  172. package/es/tooltip/index.d.ts +42 -0
  173. package/es/tree/index.d.ts +179 -0
  174. package/es/tree/utils.d.ts +32 -0
  175. package/es/tree-select/index.d.ts +224 -0
  176. package/es/upload/file-list.d.ts +59 -0
  177. package/es/upload/index.d.ts +190 -0
  178. package/es/upload/selector.d.ts +73 -0
  179. package/es/utils/checked.d.ts +2 -0
  180. package/es/utils/color.d.ts +1 -0
  181. package/es/utils/element.d.ts +4 -0
  182. package/es/utils/mouse.d.ts +1 -0
  183. package/es/utils/number.d.ts +6 -0
  184. package/es/utils/placement.d.ts +16 -0
  185. package/es/utils/theme.d.ts +5 -0
  186. package/es/utils/vnode.d.ts +5 -0
  187. package/es/utils/vue.d.ts +5 -0
  188. package/lib/index.js +2 -2
  189. package/lib/locale/de.js +1 -1
  190. package/lib/locale/el.js +1 -1
  191. package/lib/locale/en.js +1 -1
  192. package/lib/locale/fr.js +1 -1
  193. package/lib/locale/it.js +1 -1
  194. package/lib/locale/ja.js +1 -1
  195. package/lib/locale/ko.js +1 -1
  196. package/lib/locale/ru.js +1 -1
  197. package/lib/locale/th.js +1 -1
  198. package/lib/locale/uk.js +1 -1
  199. package/lib/locale/vi.js +1 -1
  200. package/lib/locale/zh-CN.js +1 -1
  201. package/lib/locale/zh-TW.js +1 -1
  202. package/package.json +3 -2
  203. package/style/index.css +1 -1
  204. package/vetur/attributes.json +17 -33
  205. package/vetur/tags.json +5 -7
  206. package/vetur/web-types.json +34 -50
@@ -0,0 +1,79 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { BooleanType, DirectionType, SizeType, ThemeType } from '../const/types';
3
+ export interface CheckboxOption {
4
+ label?: string;
5
+ value?: string | number;
6
+ disabled?: boolean;
7
+ [key: string]: any;
8
+ }
9
+ declare const checkboxGroupProps: {
10
+ modelValue: {
11
+ type: PropType<any[]>;
12
+ default: () => never[];
13
+ };
14
+ theme: {
15
+ type: PropType<ThemeType>;
16
+ default: string;
17
+ };
18
+ disabled: BooleanType;
19
+ options: PropType<CheckboxOption[]>;
20
+ direction: {
21
+ type: PropType<DirectionType>;
22
+ default: string;
23
+ };
24
+ size: {
25
+ type: PropType<SizeType>;
26
+ };
27
+ onChange: {
28
+ type: PropType<(value: any[]) => void>;
29
+ };
30
+ };
31
+ export type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>;
32
+ declare const CheckboxGroup: import('vue').DefineComponent<ExtractPropTypes<{
33
+ modelValue: {
34
+ type: PropType<any[]>;
35
+ default: () => never[];
36
+ };
37
+ theme: {
38
+ type: PropType<ThemeType>;
39
+ default: string;
40
+ };
41
+ disabled: BooleanType;
42
+ options: PropType<CheckboxOption[]>;
43
+ direction: {
44
+ type: PropType<DirectionType>;
45
+ default: string;
46
+ };
47
+ size: {
48
+ type: PropType<SizeType>;
49
+ };
50
+ onChange: {
51
+ type: PropType<(value: any[]) => void>;
52
+ };
53
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
54
+ modelValue: {
55
+ type: PropType<any[]>;
56
+ default: () => never[];
57
+ };
58
+ theme: {
59
+ type: PropType<ThemeType>;
60
+ default: string;
61
+ };
62
+ disabled: BooleanType;
63
+ options: PropType<CheckboxOption[]>;
64
+ direction: {
65
+ type: PropType<DirectionType>;
66
+ default: string;
67
+ };
68
+ size: {
69
+ type: PropType<SizeType>;
70
+ };
71
+ onChange: {
72
+ type: PropType<(value: any[]) => void>;
73
+ };
74
+ }>> & Readonly<{}>, {
75
+ direction: DirectionType;
76
+ theme: ThemeType;
77
+ modelValue: any[];
78
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
79
+ export default CheckboxGroup;
@@ -0,0 +1,105 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { BooleanType, SizeType, ThemeType, ValueType } from '../const/types';
3
+ declare const checkboxProps: {
4
+ checked: {
5
+ type: BooleanType;
6
+ default: boolean;
7
+ };
8
+ valueType: {
9
+ type: PropType<ValueType>;
10
+ default: string;
11
+ };
12
+ modelValue: {
13
+ type: PropType<string | number | boolean>;
14
+ };
15
+ value: {
16
+ type: PropType<string | number | boolean>;
17
+ };
18
+ label: {
19
+ type: PropType<string | number>;
20
+ };
21
+ theme: {
22
+ type: PropType<ThemeType>;
23
+ default: string;
24
+ };
25
+ disabled: BooleanType;
26
+ indeterminate: BooleanType;
27
+ size: {
28
+ type: PropType<SizeType>;
29
+ };
30
+ onChange: {
31
+ type: PropType<(e: ChangeEvent) => void>;
32
+ };
33
+ };
34
+ export interface ChangeEvent {
35
+ value?: string | number | boolean;
36
+ label?: string | number;
37
+ checked: boolean;
38
+ }
39
+ export type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;
40
+ declare const Checkbox: import('vue').DefineComponent<ExtractPropTypes<{
41
+ checked: {
42
+ type: BooleanType;
43
+ default: boolean;
44
+ };
45
+ valueType: {
46
+ type: PropType<ValueType>;
47
+ default: string;
48
+ };
49
+ modelValue: {
50
+ type: PropType<string | number | boolean>;
51
+ };
52
+ value: {
53
+ type: PropType<string | number | boolean>;
54
+ };
55
+ label: {
56
+ type: PropType<string | number>;
57
+ };
58
+ theme: {
59
+ type: PropType<ThemeType>;
60
+ default: string;
61
+ };
62
+ disabled: BooleanType;
63
+ indeterminate: BooleanType;
64
+ size: {
65
+ type: PropType<SizeType>;
66
+ };
67
+ onChange: {
68
+ type: PropType<(e: ChangeEvent) => void>;
69
+ };
70
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
71
+ checked: {
72
+ type: BooleanType;
73
+ default: boolean;
74
+ };
75
+ valueType: {
76
+ type: PropType<ValueType>;
77
+ default: string;
78
+ };
79
+ modelValue: {
80
+ type: PropType<string | number | boolean>;
81
+ };
82
+ value: {
83
+ type: PropType<string | number | boolean>;
84
+ };
85
+ label: {
86
+ type: PropType<string | number>;
87
+ };
88
+ theme: {
89
+ type: PropType<ThemeType>;
90
+ default: string;
91
+ };
92
+ disabled: BooleanType;
93
+ indeterminate: BooleanType;
94
+ size: {
95
+ type: PropType<SizeType>;
96
+ };
97
+ onChange: {
98
+ type: PropType<(e: ChangeEvent) => void>;
99
+ };
100
+ }>> & Readonly<{}>, {
101
+ theme: ThemeType;
102
+ checked: boolean | undefined;
103
+ valueType: ValueType;
104
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
105
+ export default Checkbox;
@@ -0,0 +1,6 @@
1
+ import { default as Checkbox } from './checkbox';
2
+ import { default as CheckboxGroup } from './checkbox-group';
3
+ export type { ChangeEvent, CheckboxProps } from './checkbox';
4
+ export type { CheckboxGroupProps, CheckboxOption } from './checkbox-group';
5
+ export { Checkbox, CheckboxGroup };
6
+ export default Checkbox;
@@ -0,0 +1,15 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { BooleanType } from '../const/types';
3
+ declare const collapsePanelProps: {
4
+ title: StringConstructor;
5
+ active: BooleanType;
6
+ };
7
+ export type CollapsePanelProps = ExtractPropTypes<typeof collapsePanelProps>;
8
+ declare const CollapsePanel: import('vue').DefineComponent<ExtractPropTypes<{
9
+ title: StringConstructor;
10
+ active: BooleanType;
11
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
12
+ title: StringConstructor;
13
+ active: BooleanType;
14
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
15
+ export default CollapsePanel;
@@ -0,0 +1,32 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { BooleanType } from '../const/types';
3
+ declare const collapseProps: {
4
+ openKeys: {
5
+ type: PropType<(string | number)[]>;
6
+ default: () => never[];
7
+ };
8
+ accordion: BooleanType;
9
+ sample: BooleanType;
10
+ onChange: PropType<(key: string | number) => void>;
11
+ };
12
+ export type CollapseProps = ExtractPropTypes<typeof collapseProps>;
13
+ declare const Collapse: import('vue').DefineComponent<ExtractPropTypes<{
14
+ openKeys: {
15
+ type: PropType<(string | number)[]>;
16
+ default: () => never[];
17
+ };
18
+ accordion: BooleanType;
19
+ sample: BooleanType;
20
+ onChange: PropType<(key: string | number) => void>;
21
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
22
+ openKeys: {
23
+ type: PropType<(string | number)[]>;
24
+ default: () => never[];
25
+ };
26
+ accordion: BooleanType;
27
+ sample: BooleanType;
28
+ onChange: PropType<(key: string | number) => void>;
29
+ }>> & Readonly<{}>, {
30
+ openKeys: (string | number)[];
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
32
+ export default Collapse;
@@ -0,0 +1,6 @@
1
+ import { default as Collapse } from './collapse';
2
+ import { default as CollapsePanel } from './collapse-panel';
3
+ export type { CollapseProps } from './collapse';
4
+ export type { CollapsePanelProps } from './collapse-panel';
5
+ export { Collapse, CollapsePanel };
6
+ export default Collapse;
@@ -0,0 +1,15 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ modelValue: {
4
+ type: PropType<any>;
5
+ required: true;
6
+ };
7
+ onUpdateAlpha: PropType<(alpha: number) => void>;
8
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
+ modelValue: {
10
+ type: PropType<any>;
11
+ required: true;
12
+ };
13
+ onUpdateAlpha: PropType<(alpha: number) => void>;
14
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
15
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ hue: {
4
+ type: NumberConstructor;
5
+ default: number;
6
+ };
7
+ onUpdateHue: PropType<(hue: number) => void>;
8
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
+ hue: {
10
+ type: NumberConstructor;
11
+ default: number;
12
+ };
13
+ onUpdateHue: PropType<(hue: number) => void>;
14
+ }>> & Readonly<{}>, {
15
+ hue: number;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
17
+ export default _default;
@@ -0,0 +1,110 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { BooleanType, DropPlacementsType, SizeType } from '../const/types';
3
+ type ColorMode = "hex" | "rgb" | "hsl";
4
+ export declare const colorPickerProps: {
5
+ modelValue: StringConstructor;
6
+ disabled: BooleanType;
7
+ disabledAlpha: BooleanType;
8
+ showText: BooleanType;
9
+ placement: {
10
+ type: PropType<DropPlacementsType>;
11
+ default: string;
12
+ };
13
+ trigger: {
14
+ type: PropType<"hover" | "click">;
15
+ default: string;
16
+ };
17
+ size: {
18
+ type: PropType<SizeType>;
19
+ };
20
+ mode: {
21
+ type: PropType<ColorMode>;
22
+ default: string;
23
+ };
24
+ presets: {
25
+ type: PropType<string[]>;
26
+ };
27
+ onChange: {
28
+ type: PropType<(color: string) => void>;
29
+ };
30
+ onUpdateMode: {
31
+ type: PropType<(mode: ColorMode) => void>;
32
+ };
33
+ onOpenChange: {
34
+ type: PropType<(open: boolean) => void>;
35
+ };
36
+ };
37
+ export type ColorPickerProps = ExtractPropTypes<typeof colorPickerProps>;
38
+ declare const ColorPicker: import('vue').DefineComponent<ExtractPropTypes<{
39
+ modelValue: StringConstructor;
40
+ disabled: BooleanType;
41
+ disabledAlpha: BooleanType;
42
+ showText: BooleanType;
43
+ placement: {
44
+ type: PropType<DropPlacementsType>;
45
+ default: string;
46
+ };
47
+ trigger: {
48
+ type: PropType<"hover" | "click">;
49
+ default: string;
50
+ };
51
+ size: {
52
+ type: PropType<SizeType>;
53
+ };
54
+ mode: {
55
+ type: PropType<ColorMode>;
56
+ default: string;
57
+ };
58
+ presets: {
59
+ type: PropType<string[]>;
60
+ };
61
+ onChange: {
62
+ type: PropType<(color: string) => void>;
63
+ };
64
+ onUpdateMode: {
65
+ type: PropType<(mode: ColorMode) => void>;
66
+ };
67
+ onOpenChange: {
68
+ type: PropType<(open: boolean) => void>;
69
+ };
70
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
71
+ modelValue: StringConstructor;
72
+ disabled: BooleanType;
73
+ disabledAlpha: BooleanType;
74
+ showText: BooleanType;
75
+ placement: {
76
+ type: PropType<DropPlacementsType>;
77
+ default: string;
78
+ };
79
+ trigger: {
80
+ type: PropType<"hover" | "click">;
81
+ default: string;
82
+ };
83
+ size: {
84
+ type: PropType<SizeType>;
85
+ };
86
+ mode: {
87
+ type: PropType<ColorMode>;
88
+ default: string;
89
+ };
90
+ presets: {
91
+ type: PropType<string[]>;
92
+ };
93
+ onChange: {
94
+ type: PropType<(color: string) => void>;
95
+ };
96
+ onUpdateMode: {
97
+ type: PropType<(mode: ColorMode) => void>;
98
+ };
99
+ onOpenChange: {
100
+ type: PropType<(open: boolean) => void>;
101
+ };
102
+ }>> & Readonly<{}>, {
103
+ mode: ColorMode;
104
+ placement: DropPlacementsType;
105
+ trigger: "click" | "hover";
106
+ }, {}, {}, {
107
+ transfer: import('vue').ObjectDirective<any, any, string, any>;
108
+ resize: import('vue').ObjectDirective<any, any, string, any>;
109
+ }, string, import('vue').ComponentProvideOptions, true, {}, any>;
110
+ export default ColorPicker;
@@ -0,0 +1,25 @@
1
+ import { ColorInstance } from 'color';
2
+ import { PropType } from 'vue';
3
+ import { BooleanType } from '../const/types';
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ modelValue: (ObjectConstructor | StringConstructor)[];
6
+ mode: {
7
+ type: PropType<"hex" | "rgb" | "hsl">;
8
+ default: string;
9
+ };
10
+ disabledAlpha: BooleanType;
11
+ onUpdateMode: PropType<(mode: "hex" | "rgb" | "hsl") => void>;
12
+ onUpdateColorValue: PropType<(color: ColorInstance) => void>;
13
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
14
+ modelValue: (ObjectConstructor | StringConstructor)[];
15
+ mode: {
16
+ type: PropType<"hex" | "rgb" | "hsl">;
17
+ default: string;
18
+ };
19
+ disabledAlpha: BooleanType;
20
+ onUpdateMode: PropType<(mode: "hex" | "rgb" | "hsl") => void>;
21
+ onUpdateColorValue: PropType<(color: ColorInstance) => void>;
22
+ }>> & Readonly<{}>, {
23
+ mode: "hex" | "rgb" | "hsl";
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { ColorObject } from 'color';
2
+ import { PropType } from 'vue';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ hue: {
5
+ type: NumberConstructor;
6
+ default: number;
7
+ };
8
+ modelValue: {
9
+ type: PropType<any>;
10
+ required: true;
11
+ };
12
+ onUpdateRGB: PropType<(color: ColorObject) => void>;
13
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
14
+ hue: {
15
+ type: NumberConstructor;
16
+ default: number;
17
+ };
18
+ modelValue: {
19
+ type: PropType<any>;
20
+ required: true;
21
+ };
22
+ onUpdateRGB: PropType<(color: ColorObject) => void>;
23
+ }>> & Readonly<{}>, {
24
+ hue: number;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
26
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { ColorInstance } from 'color';
2
+ import { PropType } from 'vue';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ color: (ObjectConstructor | StringConstructor)[];
5
+ modelValue: {
6
+ type: PropType<string[]>;
7
+ default: () => string[];
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<{
11
+ color: (ObjectConstructor | StringConstructor)[];
12
+ modelValue: {
13
+ type: PropType<string[]>;
14
+ default: () => string[];
15
+ };
16
+ onUpdateColor: PropType<(color: ColorInstance) => void>;
17
+ }>> & Readonly<{}>, {
18
+ modelValue: string[];
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ export default _default;
@@ -0,0 +1,113 @@
1
+ export { default as Affix } from './affix';
2
+ export type { AffixProps } from './affix';
3
+ export { default as Alert } from './alert';
4
+ export type { AlertProps } from './alert';
5
+ export { Anchor, AnchorLink } from './anchor';
6
+ export type { AnchorLinkProps, AnchorProps } from './anchor';
7
+ export { Avatar, AvatarGroup } from './avatar';
8
+ export type { AvatarGroupProps, AvatarProps } from './avatar';
9
+ export { Breadcrumb, BreadcrumbItem } from './breadcrumb';
10
+ export type { BreadcrumbItemProps, BreadcrumbProps } from './breadcrumb';
11
+ export { default as BackTop } from './back-top';
12
+ export type { BackTopProps } from './back-top';
13
+ export { default as Badge } from './badge';
14
+ export type { BadgeProps, BadgeStatusType } from './badge';
15
+ export { Button, ButtonGroup } from './button';
16
+ export type { ButtonGroupProps, ButtonProps } from './button';
17
+ export { default as Card } from './card';
18
+ export type { CardProps } from './card';
19
+ export { Carousel, CarouselItem } from './carousel';
20
+ export type { CarouselProps } from './carousel';
21
+ export { Checkbox, CheckboxGroup } from './checkbox';
22
+ export type { ChangeEvent, CheckboxGroupProps, CheckboxOption, CheckboxProps } from './checkbox';
23
+ export { Collapse, CollapsePanel } from './collapse';
24
+ export type { CollapsePanelProps, CollapseProps } from './collapse';
25
+ export { default as ColorPicker } from './color-picker';
26
+ export type { ColorPickerProps } from './color-picker';
27
+ export { default as DatePicker } from './date-picker';
28
+ export type { DatePickerProps } from './date-picker';
29
+ export { Descriptions, DescriptionsItem } from './descriptions';
30
+ export type { DescriptionsItemProps, DescriptionsProps } from './descriptions';
31
+ export { default as Drawer } from './drawer';
32
+ export type { DrawerProps } from './drawer';
33
+ export { Dropdown, DropdownButton } from './dropdown';
34
+ export type { DropdownButtonProps, DropdownProps } from './dropdown';
35
+ export { default as Divider } from './divider';
36
+ export type { DividerProps } from './divider';
37
+ export { default as Empty } from './empty';
38
+ export type { EmptyProps } from './empty';
39
+ export { Form, FormItem } from './form';
40
+ export type { FormContext, FormItemProps, FormProps, FormSubmitEvent } from './form';
41
+ export type { FormRule } from './form/types';
42
+ export { default as Flex } from './flex';
43
+ export type { FlexAlignType, FlexJustifyType, FlexProps, FlexSizeType } from './flex';
44
+ export { Grid, GridItem } from './grid';
45
+ export type { GridItemProps, GridProps } from './grid';
46
+ export { ImageGroup, KImage } from './image';
47
+ export type { ImageGroupProps, ImageProps } from './image';
48
+ export { default as Icon } from './icon';
49
+ export type { IconProps, IconType } from './icon';
50
+ export { Input, InputGroup, TextArea } from './input';
51
+ export type { InputGroupProps, InputProps, TextAreaProps } from './input';
52
+ export { default as InputNumber } from './input-number';
53
+ export type { InputNumberProps } from './input-number';
54
+ export { Content, Footer, Header, Layout, Sider } from './layout';
55
+ export { default as loading } from './loading';
56
+ export type { LoadingProps } from './loading';
57
+ export { Menu, MenuDivider, MenuGroup, MenuItem, SubMenu } from './menu';
58
+ export type { MenuGroupProps, MenuItemProps, MenuOptionsProps, MenuProps, MenuSelectEvent, SubMenuProps, } from './menu';
59
+ export { default as message } from './message';
60
+ export type { MessageOptions } from './message';
61
+ export { modal, default as Modal } from './modal';
62
+ export type { ModalApiProps, ModalProps } from './modal';
63
+ export { default as notice } from './notice';
64
+ export type { NoticeOptions } from './notice';
65
+ export { default as Page } from './page';
66
+ export type { PageProps } from './page';
67
+ export { default as Poptip } from './poptip';
68
+ export type { PoptipProps } from './poptip';
69
+ export { default as Popconfirm } from './popconfirm';
70
+ export type { PopconfirmProps } from './popconfirm';
71
+ export { default as Progress } from './progress';
72
+ export type { ProgressProps, ProgressStatus, ProgressStroke, ProgressType } from './progress';
73
+ export { Radio, RadioButton, RadioGroup } from './radio';
74
+ export type { RadioButtonProps, RadioGroupProps, RadioOption, RadioProps } from './radio';
75
+ export { default as Rate } from './rate';
76
+ export type { RateProps } from './rate';
77
+ export { Option, Select } from './select';
78
+ export type { OptionProps, SelectOption, SelectProps } from './select';
79
+ export { default as ConfigProvider } from './config';
80
+ export { Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonText } from './skeleton';
81
+ export type { SkeletonProps } from './skeleton';
82
+ export { StatCard, StatNumber } from './stat-card';
83
+ export type { StatCardProps, StatNumberItem, StatNumberProps } from './stat-card';
84
+ export { default as Slider } from './slider';
85
+ export type { SliderProps } from './slider';
86
+ export { default as Space } from './space';
87
+ export type { SpaceProps } from './space';
88
+ export { default as Spin } from './spin';
89
+ export type { SpinProps } from './spin';
90
+ export { default as KSwitch } from './switch';
91
+ export type { SwitchProps } from './switch';
92
+ export { default as Table } from './table';
93
+ export type { Column, SortState, TableProps } from './table';
94
+ export { default as Tooltip } from './tooltip';
95
+ export type { TooltipProps } from './tooltip';
96
+ export { TabPanel, Tabs } from './tabs';
97
+ export type { TabPanelProps, TabsProps } from './tabs';
98
+ export { TimeLine, TimeLineItem } from './time-line';
99
+ export type { TimelineItemProps, TimelineMode, TimelineProps } from './time-line';
100
+ export { default as Tree } from './tree';
101
+ export type { TreeExpandEvent, TreeNode, TreeProps } from './tree';
102
+ export { default as TreeSelect } from './tree-select';
103
+ export type { TreeSelectProps } from './tree-select';
104
+ export { default as Tag } from './tag';
105
+ export type { TagProps } from './tag';
106
+ export { Col, Row } from './row-col';
107
+ export type { ColProps, RowProps } from './row-col';
108
+ export { default as Upload } from './upload';
109
+ export type { UploadChangeEvent, UploadContext, UploadFile, UploadProps } from './upload';
110
+ export { Splitter, SplitterPanel } from './splitter';
111
+ export type { SplitterPanelProps, SplitterProps } from './splitter';
112
+ export { default as theme } from './utils/theme';
113
+ export type { AlignType, BooleanType, ButtonType, ColorType, DirectionType, DrawerPlacementsType, DropPlacementsType, PlacementsType, RadioType, ShapeType, SizeType, SpinModeType, ThemeType, UploadStatusType, } from './const/types';
@@ -0,0 +1,10 @@
1
+ import { ComponentInternalInstance } from 'vue';
2
+ interface Point {
3
+ x: number;
4
+ y: number;
5
+ }
6
+ export declare function setAppContext(app: ComponentInternalInstance | null): void;
7
+ export declare const getAppContext: () => ComponentInternalInstance | null;
8
+ export declare const recordMousePoint: () => void;
9
+ export declare const getMousePoint: () => Point;
10
+ export {};
@@ -0,0 +1,16 @@
1
+ declare const ConfigProvider: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ locale: {
3
+ type: ObjectConstructor;
4
+ default: () => null;
5
+ };
6
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
7
+ [key: string]: any;
8
+ }>[] | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
+ locale: {
10
+ type: ObjectConstructor;
11
+ default: () => null;
12
+ };
13
+ }>> & Readonly<{}>, {
14
+ locale: Record<string, any>;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
+ export default ConfigProvider;
@@ -0,0 +1,19 @@
1
+ import { PropType } from 'vue';
2
+ import { colors } from './var';
3
+ export type PlacementsType = "top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right" | "left" | "left-bottom" | "left-top" | "right" | "right-top" | "right-bottom";
4
+ export type DrawerPlacementsType = "left" | "right" | "top" | "bottom";
5
+ export type DropPlacementsType = "top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right";
6
+ export type ValueType = "string" | "number" | "boolean";
7
+ export type SizeType = "small" | "medium" | "large";
8
+ export type ShapeType = "circle" | "square" | "round";
9
+ export type BooleanType = PropType<boolean | undefined>;
10
+ export type ButtonType = "primary" | "danger" | "warning" | "default" | "text" | "link";
11
+ export type ThemeType = "outline" | "fill" | "default" | "solid" | "dashed" | "card";
12
+ export type RadioType = "radio" | "button";
13
+ export type DirectionType = "horizontal" | "vertical" | "inline";
14
+ export type AlignType = "start" | "center" | "end";
15
+ export type ColorType = PropType<(typeof colors)[number] | string>;
16
+ export type UploadStatusType = "success" | "error" | "uploading" | "waiting";
17
+ export type SpinModeType = "bounce" | "flip" | "rotate" | "zoom";
18
+ export type TriggerType = "hover" | "click" | "contextmenu";
19
+ export type NoticeType = "info" | "success" | "warning" | "error" | "loading";
@@ -0,0 +1 @@
1
+ export declare const colors: readonly ["default", "red", "orange", "yellow", "olive", "green", "teal", "blue", "volcano", "violet", "cyan", "gold", "lime", "magenta", "purple", "pink", "brown", "gray"];