kui-vue 5.4.1 → 5.5.1

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 (87) hide show
  1. package/dist/index.js +2 -2
  2. package/es/index.js +1872 -982
  3. package/es/locale/de.js +1 -1
  4. package/es/locale/el.js +1 -1
  5. package/es/locale/en.js +1 -1
  6. package/es/locale/fr.js +1 -1
  7. package/es/locale/it.js +1 -1
  8. package/es/locale/ja.js +1 -1
  9. package/es/locale/ko.js +1 -1
  10. package/es/locale/ru.js +1 -1
  11. package/es/locale/th.js +1 -1
  12. package/es/locale/uk.js +1 -1
  13. package/es/locale/vi.js +1 -1
  14. package/es/locale/zh-CN.js +1 -1
  15. package/es/locale/zh-TW.js +1 -1
  16. package/lib/index.js +2 -2
  17. package/lib/locale/de.js +1 -1
  18. package/lib/locale/el.js +1 -1
  19. package/lib/locale/en.js +1 -1
  20. package/lib/locale/fr.js +1 -1
  21. package/lib/locale/it.js +1 -1
  22. package/lib/locale/ja.js +1 -1
  23. package/lib/locale/ko.js +1 -1
  24. package/lib/locale/ru.js +1 -1
  25. package/lib/locale/th.js +1 -1
  26. package/lib/locale/uk.js +1 -1
  27. package/lib/locale/vi.js +1 -1
  28. package/lib/locale/zh-CN.js +1 -1
  29. package/lib/locale/zh-TW.js +1 -1
  30. package/package.json +15 -13
  31. package/style/index.css +2 -2
  32. package/types/affix/index.d.ts +7 -5
  33. package/types/anchor/anchor.d.ts +17 -2
  34. package/types/avatar/avatar-group.d.ts +9 -9
  35. package/types/avatar/avatar.d.ts +15 -9
  36. package/types/avatar/context.d.ts +8 -0
  37. package/types/badge/index.d.ts +3 -0
  38. package/types/card/card-meta.d.ts +17 -0
  39. package/types/card/index.d.ts +7 -1
  40. package/types/collapse/collapse-panel.d.ts +0 -4
  41. package/types/collapse/context.d.ts +7 -0
  42. package/types/color-picker/index.d.ts +0 -1
  43. package/types/components.d.ts +11 -3
  44. package/types/const/types.d.ts +1 -1
  45. package/types/date-picker/index.d.ts +0 -1
  46. package/types/drawer/index.d.ts +6 -8
  47. package/types/dropdown/dropdown.d.ts +0 -1
  48. package/types/feature-card/index.d.ts +33 -0
  49. package/types/feedback-panel/feedback-panel.d.ts +37 -0
  50. package/types/feedback-panel/index.d.ts +3 -0
  51. package/types/form/form.d.ts +3 -5
  52. package/types/form/types.d.ts +1 -1
  53. package/types/global.d.ts +10 -0
  54. package/types/image/context.d.ts +9 -0
  55. package/types/image/utils.d.ts +1 -1
  56. package/types/input-otp/index.d.ts +3 -0
  57. package/types/input-otp/input-otp.d.ts +38 -0
  58. package/types/menu/index.d.ts +1 -1
  59. package/types/menu/menu-group.d.ts +4 -13
  60. package/types/menu/menu-item.d.ts +3 -6
  61. package/types/menu/recursive-menu.d.ts +0 -3
  62. package/types/menu/sub-menu.d.ts +4 -9
  63. package/types/modal/modal.d.ts +1 -16
  64. package/types/notice/index.d.ts +1 -0
  65. package/types/popconfirm/index.d.ts +1 -3
  66. package/types/poptip/index.d.ts +1 -3
  67. package/types/result/index.d.ts +3 -0
  68. package/types/result/result.d.ts +33 -0
  69. package/types/select/select.d.ts +0 -1
  70. package/types/skeleton/skeleton-avatar.d.ts +6 -6
  71. package/types/skeleton/skeleton-button.d.ts +6 -6
  72. package/types/skeleton/skeleton-image.d.ts +6 -6
  73. package/types/skeleton/skeleton-text.d.ts +6 -6
  74. package/types/skeleton/skeleton.d.ts +6 -6
  75. package/types/skeleton/types.d.ts +3 -3
  76. package/types/skeleton/use-skeleton-loading.d.ts +2 -0
  77. package/types/slider/thumb.d.ts +2 -2
  78. package/types/stat-card/stat-card.d.ts +3 -1
  79. package/types/table/index.d.ts +19 -18
  80. package/types/tooltip/index.d.ts +1 -3
  81. package/types/tree/context.d.ts +6 -0
  82. package/types/tree/index.d.ts +0 -6
  83. package/types/tree-select/index.d.ts +0 -13
  84. package/types/upload/index.d.ts +3 -3
  85. package/vetur/attributes.json +264 -144
  86. package/vetur/tags.json +85 -32
  87. package/vetur/web-types.json +488 -209
@@ -27,7 +27,9 @@ declare const Affix: import('vue').DefineComponent<ExtractPropTypes<{
27
27
  onChange: {
28
28
  type: PropType<(affixed: boolean) => void>;
29
29
  };
30
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
30
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
31
+ change: (_affixed: boolean) => true;
32
+ }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
31
33
  offsetTop: {
32
34
  type: NumberConstructor;
33
35
  default: number;
@@ -40,10 +42,10 @@ declare const Affix: import('vue').DefineComponent<ExtractPropTypes<{
40
42
  onChange: {
41
43
  type: PropType<(affixed: boolean) => void>;
42
44
  };
43
- }>> & Readonly<{}>, {
45
+ }>> & Readonly<{
46
+ onChange?: ((_affixed: boolean) => any) | undefined;
47
+ }>, {
44
48
  offsetTop: number;
45
49
  target: () => any;
46
- }, {}, {}, {
47
- resize: import('vue').ObjectDirective<any, any, string, any>;
48
- }, string, import('vue').ComponentProvideOptions, true, {}, any>;
50
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
49
51
  export default Affix;
@@ -23,6 +23,9 @@ declare const anchorProps: {
23
23
  onChange: {
24
24
  type: PropType<(activeLink: string) => void>;
25
25
  };
26
+ onClick: {
27
+ type: PropType<(link: string) => void>;
28
+ };
26
29
  };
27
30
  export type AnchorProps = ExtractPropTypes<typeof anchorProps>;
28
31
  declare const Anchor: import('vue').DefineComponent<ExtractPropTypes<{
@@ -42,7 +45,13 @@ declare const Anchor: import('vue').DefineComponent<ExtractPropTypes<{
42
45
  onChange: {
43
46
  type: PropType<(activeLink: string) => void>;
44
47
  };
45
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
48
+ onClick: {
49
+ type: PropType<(link: string) => void>;
50
+ };
51
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
52
+ change: (_activeLink: string) => true;
53
+ click: (_link: string) => true;
54
+ }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
46
55
  affix: {
47
56
  type: BooleanType;
48
57
  default: boolean;
@@ -59,7 +68,13 @@ declare const Anchor: import('vue').DefineComponent<ExtractPropTypes<{
59
68
  onChange: {
60
69
  type: PropType<(activeLink: string) => void>;
61
70
  };
62
- }>> & Readonly<{}>, {
71
+ onClick: {
72
+ type: PropType<(link: string) => void>;
73
+ };
74
+ }>> & Readonly<{
75
+ onChange?: ((_activeLink: string) => any) | undefined;
76
+ onClick?: ((_link: string) => any) | undefined;
77
+ }>, {
63
78
  offsetTop: number;
64
79
  affix: boolean | undefined;
65
80
  bounds: number;
@@ -1,13 +1,13 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
- import { ShapeType } from '../const/types';
2
+ import { AvatarShape, AvatarSize } from './context';
3
3
  declare const avatarGroupProps: {
4
4
  maxCount: NumberConstructor;
5
5
  shape: {
6
- type: PropType<ShapeType>;
6
+ type: PropType<AvatarShape>;
7
7
  default: string;
8
8
  };
9
9
  size: {
10
- type: PropType<number | "large" | "small" | "default">;
10
+ type: PropType<AvatarSize>;
11
11
  default: string;
12
12
  };
13
13
  };
@@ -15,25 +15,25 @@ export type AvatarGroupProps = ExtractPropTypes<typeof avatarGroupProps>;
15
15
  declare const AvatarGroup: import('vue').DefineComponent<ExtractPropTypes<{
16
16
  maxCount: NumberConstructor;
17
17
  shape: {
18
- type: PropType<ShapeType>;
18
+ type: PropType<AvatarShape>;
19
19
  default: string;
20
20
  };
21
21
  size: {
22
- type: PropType<number | "large" | "small" | "default">;
22
+ type: PropType<AvatarSize>;
23
23
  default: string;
24
24
  };
25
25
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
26
26
  maxCount: NumberConstructor;
27
27
  shape: {
28
- type: PropType<ShapeType>;
28
+ type: PropType<AvatarShape>;
29
29
  default: string;
30
30
  };
31
31
  size: {
32
- type: PropType<number | "large" | "small" | "default">;
32
+ type: PropType<AvatarSize>;
33
33
  default: string;
34
34
  };
35
35
  }>> & Readonly<{}>, {
36
- size: number | "default" | "small" | "large";
37
- shape: ShapeType;
36
+ size: AvatarSize;
37
+ shape: AvatarShape;
38
38
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
39
39
  export default AvatarGroup;
@@ -1,43 +1,49 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
- import { ShapeType } from '../const/types';
3
2
  import { IconType } from '../icon';
3
+ import { AvatarShape, AvatarSize } from './context';
4
4
  declare const avatarProps: {
5
5
  icon: PropType<IconType[]>;
6
6
  shape: {
7
- type: PropType<ShapeType>;
7
+ type: PropType<AvatarShape>;
8
8
  default: string;
9
9
  };
10
10
  size: {
11
- type: PropType<number | "large" | "small" | "default">;
11
+ type: PropType<AvatarSize>;
12
12
  default: string;
13
13
  };
14
14
  src: StringConstructor;
15
+ alt: StringConstructor;
16
+ onError: PropType<(event: Event) => boolean | void>;
15
17
  };
16
18
  export type AvatarProps = ExtractPropTypes<typeof avatarProps>;
17
19
  declare const Avatar: import('vue').DefineComponent<ExtractPropTypes<{
18
20
  icon: PropType<IconType[]>;
19
21
  shape: {
20
- type: PropType<ShapeType>;
22
+ type: PropType<AvatarShape>;
21
23
  default: string;
22
24
  };
23
25
  size: {
24
- type: PropType<number | "large" | "small" | "default">;
26
+ type: PropType<AvatarSize>;
25
27
  default: string;
26
28
  };
27
29
  src: StringConstructor;
30
+ alt: StringConstructor;
31
+ onError: PropType<(event: Event) => boolean | void>;
28
32
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
29
33
  icon: PropType<IconType[]>;
30
34
  shape: {
31
- type: PropType<ShapeType>;
35
+ type: PropType<AvatarShape>;
32
36
  default: string;
33
37
  };
34
38
  size: {
35
- type: PropType<number | "large" | "small" | "default">;
39
+ type: PropType<AvatarSize>;
36
40
  default: string;
37
41
  };
38
42
  src: StringConstructor;
43
+ alt: StringConstructor;
44
+ onError: PropType<(event: Event) => boolean | void>;
39
45
  }>> & Readonly<{}>, {
40
- size: number | "default" | "small" | "large";
41
- shape: ShapeType;
46
+ size: AvatarSize;
47
+ shape: AvatarShape;
42
48
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
43
49
  export default Avatar;
@@ -0,0 +1,8 @@
1
+ import { InjectionKey, Ref } from 'vue';
2
+ export type AvatarShape = "circle" | "square";
3
+ export type AvatarSize = number | "large" | "small" | "default";
4
+ export interface AvatarGroupContext {
5
+ shape: Ref<AvatarShape>;
6
+ size: Ref<AvatarSize>;
7
+ }
8
+ export declare const avatarGroupContextKey: InjectionKey<AvatarGroupContext>;
@@ -4,6 +4,7 @@ export type BadgeStatusType = "default" | "success" | "error" | "warning";
4
4
  declare const badgeProps: {
5
5
  count: (NumberConstructor | StringConstructor)[];
6
6
  dot: BooleanType;
7
+ pill: BooleanType;
7
8
  color: StringConstructor;
8
9
  status: {
9
10
  type: PropType<BadgeStatusType>;
@@ -19,6 +20,7 @@ export type BadgeProps = ExtractPropTypes<typeof badgeProps>;
19
20
  declare const Badge: import('vue').DefineComponent<ExtractPropTypes<{
20
21
  count: (NumberConstructor | StringConstructor)[];
21
22
  dot: BooleanType;
23
+ pill: BooleanType;
22
24
  color: StringConstructor;
23
25
  status: {
24
26
  type: PropType<BadgeStatusType>;
@@ -32,6 +34,7 @@ declare const Badge: import('vue').DefineComponent<ExtractPropTypes<{
32
34
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
33
35
  count: (NumberConstructor | StringConstructor)[];
34
36
  dot: BooleanType;
37
+ pill: BooleanType;
35
38
  color: StringConstructor;
36
39
  status: {
37
40
  type: PropType<BadgeStatusType>;
@@ -0,0 +1,17 @@
1
+ import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
2
+ declare const cardMetaProps: {
3
+ avatar: PropType<string | VNodeChild>;
4
+ title: PropType<VNodeChild>;
5
+ description: PropType<VNodeChild>;
6
+ };
7
+ export type CardMetaProps = ExtractPropTypes<typeof cardMetaProps>;
8
+ declare const CardMeta: import('vue').DefineComponent<ExtractPropTypes<{
9
+ avatar: PropType<string | VNodeChild>;
10
+ title: PropType<VNodeChild>;
11
+ description: PropType<VNodeChild>;
12
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
13
+ avatar: PropType<string | VNodeChild>;
14
+ title: PropType<VNodeChild>;
15
+ description: PropType<VNodeChild>;
16
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
17
+ export default CardMeta;
@@ -1,6 +1,7 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
1
+ import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
2
2
  import { BooleanType } from '../const/types';
3
3
  import { IconType } from '../icon';
4
+ import { default as CardMeta } from './card-meta';
4
5
  declare const cardProps: {
5
6
  bordered: {
6
7
  type: BooleanType;
@@ -8,6 +9,7 @@ declare const cardProps: {
8
9
  };
9
10
  title: StringConstructor;
10
11
  icon: PropType<IconType[]>;
12
+ cover: PropType<string | VNodeChild>;
11
13
  };
12
14
  export type CardProps = ExtractPropTypes<typeof cardProps>;
13
15
  declare const Card: import('vue').DefineComponent<ExtractPropTypes<{
@@ -17,6 +19,7 @@ declare const Card: import('vue').DefineComponent<ExtractPropTypes<{
17
19
  };
18
20
  title: StringConstructor;
19
21
  icon: PropType<IconType[]>;
22
+ cover: PropType<string | VNodeChild>;
20
23
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
21
24
  bordered: {
22
25
  type: BooleanType;
@@ -24,7 +27,10 @@ declare const Card: import('vue').DefineComponent<ExtractPropTypes<{
24
27
  };
25
28
  title: StringConstructor;
26
29
  icon: PropType<IconType[]>;
30
+ cover: PropType<string | VNodeChild>;
27
31
  }>> & Readonly<{}>, {
28
32
  bordered: boolean | undefined;
29
33
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
34
+ export type { CardMetaProps } from './card-meta';
35
+ export { CardMeta };
30
36
  export default Card;
@@ -1,15 +1,11 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
- import { BooleanType } from '../const/types';
3
2
  declare const collapsePanelProps: {
4
3
  title: StringConstructor;
5
- active: BooleanType;
6
4
  };
7
5
  export type CollapsePanelProps = ExtractPropTypes<typeof collapsePanelProps>;
8
6
  declare const CollapsePanel: import('vue').DefineComponent<ExtractPropTypes<{
9
7
  title: StringConstructor;
10
- active: BooleanType;
11
8
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
12
9
  title: StringConstructor;
13
- active: BooleanType;
14
10
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
15
11
  export default CollapsePanel;
@@ -0,0 +1,7 @@
1
+ import { InjectionKey, Ref } from 'vue';
2
+ export type CollapseKey = string | number;
3
+ export interface CollapseContext {
4
+ openKeys: Ref<CollapseKey[]>;
5
+ toggle: (key: CollapseKey) => void;
6
+ }
7
+ export declare const collapseContextKey: InjectionKey<CollapseContext>;
@@ -104,7 +104,6 @@ declare const ColorPicker: import('vue').DefineComponent<ExtractPropTypes<{
104
104
  placement: DropPlacementsType;
105
105
  trigger: "click" | "hover";
106
106
  }, {}, {}, {
107
- transfer: import('vue').ObjectDirective<any, any, string, any>;
108
107
  resize: import('vue').ObjectDirective<any, any, string, any>;
109
108
  }, string, import('vue').ComponentProvideOptions, true, {}, any>;
110
109
  export default ColorPicker;
@@ -16,8 +16,10 @@ export { Button, ButtonGroup } from './button';
16
16
  export type { ButtonGroupProps, ButtonProps } from './button';
17
17
  export { default as Cascader } from './cascader';
18
18
  export type { CascaderOption, CascaderProps } from './cascader/types';
19
- export { default as Card } from './card';
20
- export type { CardProps } from './card';
19
+ export { default as Card, CardMeta } from './card';
20
+ export type { CardMetaProps, CardProps } from './card';
21
+ export { default as FeatureCard } from './feature-card';
22
+ export type { FeatureCardProps } from './feature-card';
21
23
  export { Carousel, CarouselItem } from './carousel';
22
24
  export type { CarouselProps } from './carousel';
23
25
  export { Checkbox, CheckboxGroup } from './checkbox';
@@ -51,6 +53,8 @@ export { default as Icon } from './icon';
51
53
  export type { IconProps, IconType } from './icon';
52
54
  export { Input, InputGroup, TextArea } from './input';
53
55
  export type { InputGroupProps, InputProps, TextAreaProps } from './input';
56
+ export { default as InputOTP } from './input-otp';
57
+ export type { InputOTPProps, InputOTPValidator } from './input-otp';
54
58
  export { default as InputNumber } from './input-number';
55
59
  export type { InputNumberProps } from './input-number';
56
60
  export { Content, Footer, Header, Layout, Sider } from './layout';
@@ -78,6 +82,10 @@ export { Radio, RadioButton, RadioGroup } from './radio';
78
82
  export type { RadioButtonProps, RadioGroupProps, RadioOption, RadioProps } from './radio';
79
83
  export { default as Rate } from './rate';
80
84
  export type { RateProps } from './rate';
85
+ export { default as Result } from './result';
86
+ export type { ResultProps, ResultStatus } from './result';
87
+ export { default as FeedbackPanel } from './feedback-panel';
88
+ export type { FeedbackPanelKind, FeedbackPanelProps } from './feedback-panel';
81
89
  export { Option, Select } from './select';
82
90
  export type { OptionProps, SelectOption, SelectProps } from './select';
83
91
  export { default as ConfigProvider } from './config';
@@ -96,7 +104,7 @@ export type { SwitchProps } from './switch';
96
104
  export { Splitter, SplitterPanel } from './splitter';
97
105
  export type { SplitterPanelProps, SplitterProps } from './splitter';
98
106
  export { default as Table } from './table';
99
- export type { Column, SortState, TableProps } from './table';
107
+ export type { Column, SortState, TableKey, TableProps } from './table';
100
108
  export { default as Tooltip } from './tooltip';
101
109
  export type { TooltipProps } from './tooltip';
102
110
  export { TabPanel, Tabs } from './tabs';
@@ -8,7 +8,7 @@ export type SizeType = "small" | "medium" | "large";
8
8
  export type ShapeType = "circle" | "square" | "round";
9
9
  export type BooleanType = PropType<boolean | undefined>;
10
10
  export type ButtonType = "primary" | "danger" | "warning" | "default" | "text" | "link";
11
- export type ThemeType = "outline" | "fill" | "default" | "solid" | "dashed" | "card";
11
+ export type ThemeType = "outline" | "fill" | "default" | "solid" | "dashed" | "card" | "underlined";
12
12
  export type RadioType = "radio" | "button";
13
13
  export type DirectionType = "horizontal" | "vertical" | "inline";
14
14
  export type AlignType = "start" | "center" | "end";
@@ -271,7 +271,6 @@ declare const DatePicker: import('vue').DefineComponent<ExtractPropTypes<{
271
271
  disabledDate: (date: Date) => boolean;
272
272
  disabledTime: (date: Date) => boolean;
273
273
  }, {}, {}, {
274
- transfer: import('vue').ObjectDirective<any, any, string, any>;
275
274
  resize: import('vue').ObjectDirective<any, any, string, any>;
276
275
  }, string, import('vue').ComponentProvideOptions, true, {}, any>;
277
276
  export default DatePicker;
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
1
+ import { ComponentPublicInstance, ExtractPropTypes, PropType } from 'vue';
2
2
  import { DrawerPlacementsType } from '../const/types';
3
3
  declare const drawerProps: {
4
4
  modelValue: BooleanConstructor;
@@ -33,7 +33,7 @@ declare const drawerProps: {
33
33
  default: boolean;
34
34
  };
35
35
  target: {
36
- type: PropType<() => HTMLElement>;
36
+ type: PropType<() => HTMLElement | ComponentPublicInstance | null | undefined>;
37
37
  default: () => HTMLElement;
38
38
  };
39
39
  mask: {
@@ -87,7 +87,7 @@ declare const Drawer: import('vue').DefineComponent<ExtractPropTypes<{
87
87
  default: boolean;
88
88
  };
89
89
  target: {
90
- type: PropType<() => HTMLElement>;
90
+ type: PropType<() => HTMLElement | ComponentPublicInstance | null | undefined>;
91
91
  default: () => HTMLElement;
92
92
  };
93
93
  mask: {
@@ -139,7 +139,7 @@ declare const Drawer: import('vue').DefineComponent<ExtractPropTypes<{
139
139
  default: boolean;
140
140
  };
141
141
  target: {
142
- type: PropType<() => HTMLElement>;
142
+ type: PropType<() => HTMLElement | ComponentPublicInstance | null | undefined>;
143
143
  default: () => HTMLElement;
144
144
  };
145
145
  mask: {
@@ -159,7 +159,7 @@ declare const Drawer: import('vue').DefineComponent<ExtractPropTypes<{
159
159
  onClose: PropType<() => void>;
160
160
  onOpenChange: PropType<(opened: boolean) => void>;
161
161
  }>> & Readonly<{}>, {
162
- target: () => HTMLElement;
162
+ target: () => HTMLElement | ComponentPublicInstance | null | undefined;
163
163
  height: string | number;
164
164
  width: string | number;
165
165
  mask: boolean;
@@ -171,7 +171,5 @@ declare const Drawer: import('vue').DefineComponent<ExtractPropTypes<{
171
171
  placement: DrawerPlacementsType;
172
172
  maskClosable: boolean;
173
173
  escKey: boolean;
174
- }, {}, {}, {
175
- transfer: import('vue').ObjectDirective<any, any, string, any>;
176
- }, string, import('vue').ComponentProvideOptions, true, {}, any>;
174
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
177
175
  export default Drawer;
@@ -66,7 +66,6 @@ declare const Dropdown: import('vue').DefineComponent<ExtractPropTypes<{
66
66
  trigger: TriggerType;
67
67
  arrow: boolean | undefined;
68
68
  }, {}, {}, {
69
- transfer: import('vue').ObjectDirective<any, any, string, any>;
70
69
  resize: import('vue').ObjectDirective<any, any, string, any>;
71
70
  }, string, import('vue').ComponentProvideOptions, true, {}, any>;
72
71
  export default Dropdown;
@@ -0,0 +1,33 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { BooleanType } from '../const/types';
3
+ import { IconType } from '../icon';
4
+ declare const featureCardProps: {
5
+ icon: PropType<IconType[]>;
6
+ title: StringConstructor;
7
+ desc: StringConstructor;
8
+ bordered: {
9
+ type: BooleanType;
10
+ default: boolean;
11
+ };
12
+ };
13
+ export type FeatureCardProps = ExtractPropTypes<typeof featureCardProps>;
14
+ declare const FeatureCard: import('vue').DefineComponent<ExtractPropTypes<{
15
+ icon: PropType<IconType[]>;
16
+ title: StringConstructor;
17
+ desc: StringConstructor;
18
+ bordered: {
19
+ type: BooleanType;
20
+ default: boolean;
21
+ };
22
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
23
+ icon: PropType<IconType[]>;
24
+ title: StringConstructor;
25
+ desc: StringConstructor;
26
+ bordered: {
27
+ type: BooleanType;
28
+ default: boolean;
29
+ };
30
+ }>> & Readonly<{}>, {
31
+ bordered: boolean | undefined;
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
33
+ export default FeatureCard;
@@ -0,0 +1,37 @@
1
+ import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
2
+ import { IconType } from '../icon';
3
+ export type FeedbackPanelKind = "positive" | "negative" | "caution" | "neutral";
4
+ declare const feedbackPanelProps: {
5
+ kind: {
6
+ type: PropType<FeedbackPanelKind>;
7
+ default: string;
8
+ };
9
+ heading: PropType<VNodeChild>;
10
+ description: PropType<VNodeChild>;
11
+ symbol: PropType<IconType[]>;
12
+ compact: BooleanConstructor;
13
+ };
14
+ export type FeedbackPanelProps = ExtractPropTypes<typeof feedbackPanelProps>;
15
+ declare const FeedbackPanel: import('vue').DefineComponent<ExtractPropTypes<{
16
+ kind: {
17
+ type: PropType<FeedbackPanelKind>;
18
+ default: string;
19
+ };
20
+ heading: PropType<VNodeChild>;
21
+ description: PropType<VNodeChild>;
22
+ symbol: PropType<IconType[]>;
23
+ compact: BooleanConstructor;
24
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
25
+ kind: {
26
+ type: PropType<FeedbackPanelKind>;
27
+ default: string;
28
+ };
29
+ heading: PropType<VNodeChild>;
30
+ description: PropType<VNodeChild>;
31
+ symbol: PropType<IconType[]>;
32
+ compact: BooleanConstructor;
33
+ }>> & Readonly<{}>, {
34
+ compact: boolean;
35
+ kind: FeedbackPanelKind;
36
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
37
+ export default FeedbackPanel;
@@ -0,0 +1,3 @@
1
+ import { default as FeedbackPanel } from './feedback-panel';
2
+ export type { FeedbackPanelKind, FeedbackPanelProps } from './feedback-panel';
3
+ export default FeedbackPanel;
@@ -30,12 +30,10 @@ declare const formProps: {
30
30
  };
31
31
  };
32
32
  export interface FormExpose {
33
- validate: (callback?: (result: {
34
- valid: boolean;
35
- }) => void) => void;
33
+ validate: (callback?: (result: FormSubmitEvent) => void) => Promise<FormSubmitEvent>;
36
34
  reset: () => void;
37
- test: (key: string) => void;
38
- submit: (e: FormSubmitEvent) => void;
35
+ test: (key: string) => Promise<boolean> | undefined;
36
+ submit: () => Promise<void>;
39
37
  }
40
38
  export type FormProps = ExtractPropTypes<typeof formProps>;
41
39
  declare const Form: import('vue').DefineComponent<ExtractPropTypes<{
@@ -5,7 +5,7 @@ export interface ColProps {
5
5
  export interface FormRule {
6
6
  required?: boolean;
7
7
  message?: string;
8
- validator?: (rule: FormRule, value: any, callback: (error?: Error) => void) => void;
8
+ validator?: (rule: FormRule, value: any, callback: (error?: Error) => void) => void | Promise<void>;
9
9
  pattern?: RegExp;
10
10
  type?: "mobile" | "mail" | "number";
11
11
  min?: number;
package/types/global.d.ts CHANGED
@@ -31,6 +31,10 @@ KButtonGroup: typeof import('kui-vue')['ButtonGroup']
31
31
  KCascader: typeof import('kui-vue')['Cascader']
32
32
  Card: typeof import('kui-vue')['Card']
33
33
  KCard: typeof import('kui-vue')['Card']
34
+ CardMeta: typeof import('kui-vue')['CardMeta']
35
+ KCardMeta: typeof import('kui-vue')['CardMeta']
36
+ FeatureCard: typeof import('kui-vue')['FeatureCard']
37
+ KFeatureCard: typeof import('kui-vue')['FeatureCard']
34
38
  Carousel: typeof import('kui-vue')['Carousel']
35
39
  KCarousel: typeof import('kui-vue')['Carousel']
36
40
  CarouselItem: typeof import('kui-vue')['CarouselItem']
@@ -82,6 +86,8 @@ KInput: typeof import('kui-vue')['Input']
82
86
  KInputGroup: typeof import('kui-vue')['InputGroup']
83
87
  TextArea: typeof import('kui-vue')['TextArea']
84
88
  KTextArea: typeof import('kui-vue')['TextArea']
89
+ InputOTP: typeof import('kui-vue')['InputOTP']
90
+ KInputOTP: typeof import('kui-vue')['InputOTP']
85
91
  InputNumber: typeof import('kui-vue')['InputNumber']
86
92
  KInputNumber: typeof import('kui-vue')['InputNumber']
87
93
  Content: typeof import('kui-vue')['Content']
@@ -124,6 +130,10 @@ KRadioButton: typeof import('kui-vue')['RadioButton']
124
130
  KRadioGroup: typeof import('kui-vue')['RadioGroup']
125
131
  Rate: typeof import('kui-vue')['Rate']
126
132
  KRate: typeof import('kui-vue')['Rate']
133
+ Result: typeof import('kui-vue')['Result']
134
+ KResult: typeof import('kui-vue')['Result']
135
+ FeedbackPanel: typeof import('kui-vue')['FeedbackPanel']
136
+ KFeedbackPanel: typeof import('kui-vue')['FeedbackPanel']
127
137
  Option: typeof import('kui-vue')['Option']
128
138
  KOption: typeof import('kui-vue')['Option']
129
139
  Select: typeof import('kui-vue')['Select']
@@ -0,0 +1,9 @@
1
+ import { InjectionKey, Slots } from 'vue';
2
+ import { ImagePreviewProps } from './preview';
3
+ export interface ImageGroupContext {
4
+ show: (props: ImagePreviewProps, slots: Slots) => void;
5
+ togglePanel: () => void;
6
+ register: (src?: string) => void;
7
+ unregister: (src?: string) => void;
8
+ }
9
+ export declare const imageGroupKey: InjectionKey<ImageGroupContext>;
@@ -2,5 +2,5 @@ interface ImageInfo {
2
2
  width: number;
3
3
  height: number;
4
4
  }
5
- export declare const loadImage: (src: string, callback?: (info: ImageInfo) => void, err?: () => void) => void;
5
+ export declare const loadImage: (src: string, callback?: (info: ImageInfo) => void, err?: () => void) => () => void;
6
6
  export {};
@@ -0,0 +1,3 @@
1
+ import { default as InputOTP } from './input-otp';
2
+ export type { InputOTPProps, InputOTPValidator } from './input-otp';
3
+ export default InputOTP;
@@ -0,0 +1,38 @@
1
+ import { DefineComponent, ExtractPropTypes, PropType, VNodeChild } from 'vue';
2
+ import { BooleanType, ShapeType, SizeType, ThemeType } from '../const/types';
3
+ export type InputOTPValidator = (value: string) => boolean;
4
+ declare const inputOTPProps: {
5
+ modelValue: {
6
+ type: PropType<string | number>;
7
+ default: string;
8
+ };
9
+ length: {
10
+ type: NumberConstructor;
11
+ default: number;
12
+ };
13
+ type: {
14
+ type: PropType<"number" | "text">;
15
+ default: string;
16
+ };
17
+ size: PropType<SizeType>;
18
+ disabled: BooleanType;
19
+ readonly: BooleanType;
20
+ mask: BooleanType;
21
+ autofocus: BooleanType;
22
+ separator: PropType<VNodeChild>;
23
+ validator: PropType<InputOTPValidator>;
24
+ theme: {
25
+ type: PropType<ThemeType>;
26
+ default: string;
27
+ };
28
+ shape: PropType<ShapeType>;
29
+ };
30
+ export type InputOTPProps = Partial<ExtractPropTypes<typeof inputOTPProps>> & {
31
+ "onUpdate:modelValue"?: (value: string) => void;
32
+ onChange?: (value: string) => void;
33
+ onComplete?: (value: string) => void;
34
+ onFocus?: (event: FocusEvent) => void;
35
+ onBlur?: (event: FocusEvent) => void;
36
+ };
37
+ declare const _default: DefineComponent<InputOTPProps>;
38
+ export default _default;
@@ -4,4 +4,4 @@ import { default as MenuGroup, MenuGroupProps } from './menu-group';
4
4
  import { default as MenuItem, MenuItemProps } from './menu-item';
5
5
  import { default as SubMenu, SubMenuProps } from './sub-menu';
6
6
  export { Menu, MenuDivider, MenuGroup, MenuItem, SubMenu };
7
- export type { MenuGroupProps, MenuItemProps, MenuOptionsProps, MenuProps, MenuSelectEvent, SubMenuProps };
7
+ export type { MenuGroupProps, MenuItemProps, MenuOptionsProps, MenuProps, MenuSelectEvent, SubMenuProps, };