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,72 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { BooleanType, DropPlacementsType, TriggerType } from '../const/types';
3
+ export declare const dropdownProps: {
4
+ trigger: {
5
+ type: PropType<TriggerType>;
6
+ default: string;
7
+ };
8
+ disabled: BooleanType;
9
+ arrow: {
10
+ type: BooleanType;
11
+ default: boolean;
12
+ };
13
+ show: BooleanType;
14
+ placement: {
15
+ type: PropType<DropPlacementsType>;
16
+ default: string;
17
+ };
18
+ target: ObjectConstructor;
19
+ onOpenChange: {
20
+ type: PropType<(opened: boolean) => void>;
21
+ };
22
+ };
23
+ export type DropdownProps = ExtractPropTypes<typeof dropdownProps>;
24
+ declare const Dropdown: import('vue').DefineComponent<ExtractPropTypes<{
25
+ trigger: {
26
+ type: PropType<TriggerType>;
27
+ default: string;
28
+ };
29
+ disabled: BooleanType;
30
+ arrow: {
31
+ type: BooleanType;
32
+ default: boolean;
33
+ };
34
+ show: BooleanType;
35
+ placement: {
36
+ type: PropType<DropPlacementsType>;
37
+ default: string;
38
+ };
39
+ target: ObjectConstructor;
40
+ onOpenChange: {
41
+ type: PropType<(opened: boolean) => void>;
42
+ };
43
+ }>, () => (import('vue').VNode<unknown, unknown, {
44
+ [key: string]: any;
45
+ }> | null)[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
46
+ trigger: {
47
+ type: PropType<TriggerType>;
48
+ default: string;
49
+ };
50
+ disabled: BooleanType;
51
+ arrow: {
52
+ type: BooleanType;
53
+ default: boolean;
54
+ };
55
+ show: BooleanType;
56
+ placement: {
57
+ type: PropType<DropPlacementsType>;
58
+ default: string;
59
+ };
60
+ target: ObjectConstructor;
61
+ onOpenChange: {
62
+ type: PropType<(opened: boolean) => void>;
63
+ };
64
+ }>> & Readonly<{}>, {
65
+ placement: DropPlacementsType;
66
+ trigger: TriggerType;
67
+ arrow: boolean | undefined;
68
+ }, {}, {}, {
69
+ transfer: import('vue').ObjectDirective<any, any, string, any>;
70
+ resize: import('vue').ObjectDirective<any, any, string, any>;
71
+ }, string, import('vue').ComponentProvideOptions, true, {}, any>;
72
+ export default Dropdown;
@@ -0,0 +1,4 @@
1
+ import { DropdownProps, default as Dropdown } from './dropdown';
2
+ import { DropdownButtonProps, default as DropdownButton } from './dropdown-button';
3
+ export { Dropdown, DropdownButton };
4
+ export type { DropdownButtonProps, DropdownProps };
@@ -0,0 +1,11 @@
1
+ import { PropType } from 'vue';
2
+ import { BooleanType } from '../const/types';
3
+ import { IconType } from '../icon';
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ icon: PropType<IconType[]>;
6
+ disabled: BooleanType;
7
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
8
+ icon: PropType<IconType[]>;
9
+ disabled: BooleanType;
10
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
11
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { CSSProperties, DefineComponent, ExtractPropTypes, HTMLAttributes, PropType } from 'vue';
2
+ export declare const emptyProps: {
3
+ description: (BooleanConstructor | StringConstructor)[];
4
+ image: StringConstructor;
5
+ imageStyle: PropType<CSSProperties>;
6
+ };
7
+ export type EmptyProps = Partial<ExtractPropTypes<typeof emptyProps>> & HTMLAttributes;
8
+ declare const _default: DefineComponent<EmptyProps>;
9
+ export default _default;
@@ -0,0 +1,45 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { BooleanType, SizeType } from '../const/types';
3
+ export type FlexSizeType = SizeType | number | (string | number)[];
4
+ export type FlexAlignType = "start" | "flex-start" | "end" | "flex-end" | "center" | "baseline";
5
+ export type FlexJustifyType = "flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly";
6
+ export declare const flexProps: {
7
+ align: {
8
+ type: PropType<FlexAlignType>;
9
+ };
10
+ justify: {
11
+ type: PropType<FlexJustifyType>;
12
+ };
13
+ vertical: BooleanType;
14
+ wrap: BooleanType;
15
+ size: {
16
+ type: PropType<FlexSizeType>;
17
+ };
18
+ };
19
+ export type FlexProps = ExtractPropTypes<typeof flexProps>;
20
+ declare const Flex: import('vue').DefineComponent<ExtractPropTypes<{
21
+ align: {
22
+ type: PropType<FlexAlignType>;
23
+ };
24
+ justify: {
25
+ type: PropType<FlexJustifyType>;
26
+ };
27
+ vertical: BooleanType;
28
+ wrap: BooleanType;
29
+ size: {
30
+ type: PropType<FlexSizeType>;
31
+ };
32
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
33
+ align: {
34
+ type: PropType<FlexAlignType>;
35
+ };
36
+ justify: {
37
+ type: PropType<FlexJustifyType>;
38
+ };
39
+ vertical: BooleanType;
40
+ wrap: BooleanType;
41
+ size: {
42
+ type: PropType<FlexSizeType>;
43
+ };
44
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
45
+ export default Flex;
@@ -0,0 +1,24 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { ColProps, FormRule } from './types';
3
+ declare const formItemProps: {
4
+ label: StringConstructor;
5
+ prop: StringConstructor;
6
+ labelCol: PropType<ColProps>;
7
+ wrapperCol: PropType<ColProps>;
8
+ rules: PropType<FormRule | FormRule[]>;
9
+ };
10
+ export type FormItemProps = ExtractPropTypes<typeof formItemProps>;
11
+ declare const FormItem: import('vue').DefineComponent<ExtractPropTypes<{
12
+ label: StringConstructor;
13
+ prop: StringConstructor;
14
+ labelCol: PropType<ColProps>;
15
+ wrapperCol: PropType<ColProps>;
16
+ rules: PropType<FormRule | FormRule[]>;
17
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
18
+ label: StringConstructor;
19
+ prop: StringConstructor;
20
+ labelCol: PropType<ColProps>;
21
+ wrapperCol: PropType<ColProps>;
22
+ rules: PropType<FormRule | FormRule[]>;
23
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
24
+ export default FormItem;
@@ -0,0 +1,92 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { BooleanType, DirectionType, ShapeType, SizeType, ThemeType } from '../const/types';
3
+ import { ColProps, FormRule } from './types';
4
+ export interface FormSubmitEvent {
5
+ valid: boolean;
6
+ }
7
+ declare const formProps: {
8
+ layout: {
9
+ type: PropType<DirectionType>;
10
+ default: string;
11
+ };
12
+ model: PropType<Record<string, any>>;
13
+ name: StringConstructor;
14
+ labelCol: PropType<ColProps>;
15
+ wrapperCol: PropType<ColProps>;
16
+ rules: {
17
+ type: PropType<Record<string, FormRule[]>>;
18
+ };
19
+ size: {
20
+ type: PropType<SizeType>;
21
+ };
22
+ theme: PropType<ThemeType>;
23
+ shape: PropType<ShapeType>;
24
+ disabled: BooleanType;
25
+ onSubmit: {
26
+ type: PropType<(e: FormSubmitEvent) => void>;
27
+ };
28
+ onReset: {
29
+ type: PropType<() => void>;
30
+ };
31
+ };
32
+ export interface FormExpose {
33
+ validate: (callback?: (result: {
34
+ valid: boolean;
35
+ }) => void) => void;
36
+ reset: () => void;
37
+ test: (key: string) => void;
38
+ submit: (e: FormSubmitEvent) => void;
39
+ }
40
+ export type FormProps = ExtractPropTypes<typeof formProps>;
41
+ declare const Form: import('vue').DefineComponent<ExtractPropTypes<{
42
+ layout: {
43
+ type: PropType<DirectionType>;
44
+ default: string;
45
+ };
46
+ model: PropType<Record<string, any>>;
47
+ name: StringConstructor;
48
+ labelCol: PropType<ColProps>;
49
+ wrapperCol: PropType<ColProps>;
50
+ rules: {
51
+ type: PropType<Record<string, FormRule[]>>;
52
+ };
53
+ size: {
54
+ type: PropType<SizeType>;
55
+ };
56
+ theme: PropType<ThemeType>;
57
+ shape: PropType<ShapeType>;
58
+ disabled: BooleanType;
59
+ onSubmit: {
60
+ type: PropType<(e: FormSubmitEvent) => void>;
61
+ };
62
+ onReset: {
63
+ type: PropType<() => void>;
64
+ };
65
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
66
+ layout: {
67
+ type: PropType<DirectionType>;
68
+ default: string;
69
+ };
70
+ model: PropType<Record<string, any>>;
71
+ name: StringConstructor;
72
+ labelCol: PropType<ColProps>;
73
+ wrapperCol: PropType<ColProps>;
74
+ rules: {
75
+ type: PropType<Record<string, FormRule[]>>;
76
+ };
77
+ size: {
78
+ type: PropType<SizeType>;
79
+ };
80
+ theme: PropType<ThemeType>;
81
+ shape: PropType<ShapeType>;
82
+ disabled: BooleanType;
83
+ onSubmit: {
84
+ type: PropType<(e: FormSubmitEvent) => void>;
85
+ };
86
+ onReset: {
87
+ type: PropType<() => void>;
88
+ };
89
+ }>> & Readonly<{}>, {
90
+ layout: DirectionType;
91
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
92
+ export default Form;
@@ -0,0 +1,6 @@
1
+ import { default as Form, FormExpose } from './form';
2
+ import { default as FormItem } from './form-item';
3
+ export type { FormProps, FormSubmitEvent } from './form';
4
+ export type { FormItemProps } from './form-item';
5
+ export { Form, FormItem };
6
+ export type FormContext = InstanceType<typeof Form> & FormExpose;
@@ -0,0 +1,14 @@
1
+ export interface ColProps {
2
+ span?: number;
3
+ offset?: number;
4
+ }
5
+ export interface FormRule {
6
+ required?: boolean;
7
+ message?: string;
8
+ validator?: (rule: FormRule, value: any, callback: (error?: Error) => void) => void;
9
+ pattern?: RegExp;
10
+ type?: "mobile" | "mail" | "number";
11
+ min?: number;
12
+ max?: number;
13
+ [key: string]: any;
14
+ }
@@ -0,0 +1,22 @@
1
+ import { DefineComponent, ExtractPropTypes, HTMLAttributes } from 'vue';
2
+ declare const gridItemProps: {
3
+ span: {
4
+ type: (NumberConstructor | ObjectConstructor | StringConstructor)[];
5
+ default: number;
6
+ };
7
+ rowSpan: {
8
+ type: (NumberConstructor | ObjectConstructor | StringConstructor)[];
9
+ default: number;
10
+ };
11
+ offset: {
12
+ type: (NumberConstructor | ObjectConstructor)[];
13
+ default: number;
14
+ };
15
+ suffix: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ };
20
+ export type GridItemProps = Partial<ExtractPropTypes<typeof gridItemProps>> & HTMLAttributes;
21
+ declare const _default: DefineComponent<GridItemProps>;
22
+ export default _default;
@@ -0,0 +1,39 @@
1
+ import { DefineComponent, ExtractPropTypes, HTMLAttributes } from 'vue';
2
+ import { BooleanType } from '../const/types';
3
+ declare const gridProps: {
4
+ cols: {
5
+ type: (NumberConstructor | ObjectConstructor | StringConstructor)[];
6
+ default: number;
7
+ };
8
+ rows: {
9
+ type: (NumberConstructor | ObjectConstructor | StringConstructor)[];
10
+ default: string;
11
+ };
12
+ autoRows: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ xGap: {
17
+ type: (NumberConstructor | ObjectConstructor | StringConstructor)[];
18
+ default: number;
19
+ };
20
+ yGap: {
21
+ type: (NumberConstructor | ObjectConstructor | StringConstructor)[];
22
+ default: number;
23
+ };
24
+ itemMinWidth: {
25
+ type: NumberConstructor;
26
+ };
27
+ align: {
28
+ type: StringConstructor;
29
+ };
30
+ justify: {
31
+ type: StringConstructor;
32
+ };
33
+ debug: {
34
+ type: BooleanType;
35
+ };
36
+ };
37
+ export type GridProps = Partial<ExtractPropTypes<typeof gridProps>> & HTMLAttributes;
38
+ declare const _default: DefineComponent<GridProps>;
39
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { default as Grid } from './grid';
2
+ import { default as GridItem } from './grid-item';
3
+ export type { GridProps } from './grid';
4
+ export type { GridItemProps } from './grid-item';
5
+ export { Grid, GridItem };
@@ -0,0 +1,3 @@
1
+ import { Ref } from 'vue';
2
+ export declare const GRID_KEY: unique symbol;
3
+ export declare function useBreakpoint(elRef: Ref<HTMLElement | null>): Ref<string> | null;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export declare const tags: {
2
+ name: string;
3
+ tags: string[];
4
+ }[];
@@ -0,0 +1,45 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { BooleanType } from '../const/types';
3
+ export interface IconType {
4
+ d: string;
5
+ s?: string;
6
+ }
7
+ declare const iconProps: {
8
+ type: PropType<IconType[]>;
9
+ size: (NumberConstructor | StringConstructor)[];
10
+ color: StringConstructor;
11
+ spin: BooleanType;
12
+ strokeWidth: {
13
+ type: (NumberConstructor | StringConstructor)[];
14
+ default: number;
15
+ };
16
+ onClick: PropType<(e: PointerEvent) => void>;
17
+ reverseFill: BooleanType;
18
+ };
19
+ export type IconProps = ExtractPropTypes<typeof iconProps>;
20
+ declare const Icon: import('vue').DefineComponent<ExtractPropTypes<{
21
+ type: PropType<IconType[]>;
22
+ size: (NumberConstructor | StringConstructor)[];
23
+ color: StringConstructor;
24
+ spin: BooleanType;
25
+ strokeWidth: {
26
+ type: (NumberConstructor | StringConstructor)[];
27
+ default: number;
28
+ };
29
+ onClick: PropType<(e: PointerEvent) => void>;
30
+ reverseFill: BooleanType;
31
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
32
+ type: PropType<IconType[]>;
33
+ size: (NumberConstructor | StringConstructor)[];
34
+ color: StringConstructor;
35
+ spin: BooleanType;
36
+ strokeWidth: {
37
+ type: (NumberConstructor | StringConstructor)[];
38
+ default: number;
39
+ };
40
+ onClick: PropType<(e: PointerEvent) => void>;
41
+ reverseFill: BooleanType;
42
+ }>> & Readonly<{}>, {
43
+ strokeWidth: string | number;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
45
+ export default Icon;
@@ -0,0 +1,11 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ declare const imageGroupProps: {
3
+ data: PropType<string[]>;
4
+ };
5
+ export type ImageGroupProps = ExtractPropTypes<typeof imageGroupProps>;
6
+ declare const ImageGroup: import('vue').DefineComponent<ExtractPropTypes<{
7
+ data: PropType<string[]>;
8
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
9
+ data: PropType<string[]>;
10
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
11
+ export default ImageGroup;
@@ -0,0 +1,45 @@
1
+ import { CSSProperties, ExtractPropTypes, PropType } from 'vue';
2
+ import { BooleanType } from '../const/types';
3
+ declare const imageProps: {
4
+ alt: StringConstructor;
5
+ src: StringConstructor;
6
+ type: StringConstructor;
7
+ origin: StringConstructor;
8
+ height: (NumberConstructor | StringConstructor)[];
9
+ width: (NumberConstructor | StringConstructor)[];
10
+ placeholder: StringConstructor;
11
+ data: ArrayConstructor;
12
+ imgStyle: PropType<CSSProperties>;
13
+ showPanel: BooleanType;
14
+ onClose: PropType<() => void>;
15
+ onSwitch: PropType<(index: number) => void>;
16
+ };
17
+ export type ImageProps = ExtractPropTypes<typeof imageProps>;
18
+ declare const KImage: import('vue').DefineComponent<ExtractPropTypes<{
19
+ alt: StringConstructor;
20
+ src: StringConstructor;
21
+ type: StringConstructor;
22
+ origin: StringConstructor;
23
+ height: (NumberConstructor | StringConstructor)[];
24
+ width: (NumberConstructor | StringConstructor)[];
25
+ placeholder: StringConstructor;
26
+ data: ArrayConstructor;
27
+ imgStyle: PropType<CSSProperties>;
28
+ showPanel: BooleanType;
29
+ onClose: PropType<() => void>;
30
+ onSwitch: PropType<(index: number) => void>;
31
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
32
+ alt: StringConstructor;
33
+ src: StringConstructor;
34
+ type: StringConstructor;
35
+ origin: StringConstructor;
36
+ height: (NumberConstructor | StringConstructor)[];
37
+ width: (NumberConstructor | StringConstructor)[];
38
+ placeholder: StringConstructor;
39
+ data: ArrayConstructor;
40
+ imgStyle: PropType<CSSProperties>;
41
+ showPanel: BooleanType;
42
+ onClose: PropType<() => void>;
43
+ onSwitch: PropType<(index: number) => void>;
44
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
45
+ export default KImage;
@@ -0,0 +1,5 @@
1
+ import { default as ImageGroup } from './group';
2
+ import { default as KImage } from './image';
3
+ export type { ImageGroupProps } from './group';
4
+ export type { ImageProps } from './image';
5
+ export { ImageGroup, KImage };
@@ -0,0 +1,2 @@
1
+ declare const createInstance: (props: {} | undefined, slots: any) => Record<string, any> | null | undefined;
2
+ export default createInstance;
@@ -0,0 +1,36 @@
1
+ import { PropType } from 'vue';
2
+ import { BooleanType } from '../const/types';
3
+ export interface ImagePreviewProps {
4
+ type?: string;
5
+ src?: string;
6
+ showPanel?: boolean;
7
+ onClose?: () => void;
8
+ onSwitch?: (index: number) => void;
9
+ data?: string[];
10
+ }
11
+ declare const ImagePreview: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
12
+ type: StringConstructor;
13
+ src: StringConstructor;
14
+ origin: StringConstructor;
15
+ hasControl: BooleanType;
16
+ value: BooleanType;
17
+ data: {
18
+ type: PropType<string[]>;
19
+ default: () => never[];
20
+ };
21
+ showPanel: BooleanType;
22
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ type: StringConstructor;
24
+ src: StringConstructor;
25
+ origin: StringConstructor;
26
+ hasControl: BooleanType;
27
+ value: BooleanType;
28
+ data: {
29
+ type: PropType<string[]>;
30
+ default: () => never[];
31
+ };
32
+ showPanel: BooleanType;
33
+ }>> & Readonly<{}>, {
34
+ data: string[];
35
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
36
+ export default ImagePreview;
@@ -0,0 +1,6 @@
1
+ interface ImageInfo {
2
+ width: number;
3
+ height: number;
4
+ }
5
+ export declare const loadImage: (src: string, callback?: (info: ImageInfo) => void, err?: () => void) => void;
6
+ export {};
package/es/index.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ import { App } from 'vue';
2
+ export * from './components';
3
+ declare const UI: {
4
+ version: string;
5
+ lang: {};
6
+ install: (app: App) => void;
7
+ };
8
+ export declare const install: (app: App) => void;
9
+ export declare const version: string;
10
+ export default UI;