kui-vue 5.7.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/ai/evals/cases.json +18 -0
  2. package/ai/kui-components.json +3803 -2038
  3. package/ai/kui-components.schema.json +33 -0
  4. package/ai/mcp.mjs +64 -15
  5. package/dist/index.js +2 -2
  6. package/es/index.js +5546 -2165
  7. package/es/locale/de.js +6 -2
  8. package/es/locale/el.js +6 -2
  9. package/es/locale/en.js +6 -2
  10. package/es/locale/fr.js +6 -2
  11. package/es/locale/it.js +6 -2
  12. package/es/locale/ja.js +6 -2
  13. package/es/locale/ko.js +6 -2
  14. package/es/locale/ru.js +6 -2
  15. package/es/locale/th.js +6 -2
  16. package/es/locale/uk.js +6 -2
  17. package/es/locale/vi.js +6 -2
  18. package/es/locale/zh-CN.js +6 -2
  19. package/es/locale/zh-TW.js +6 -2
  20. package/lib/index.cjs +2 -2
  21. package/lib/locale/de.cjs +2 -2
  22. package/lib/locale/el.cjs +2 -2
  23. package/lib/locale/en.cjs +2 -2
  24. package/lib/locale/fr.cjs +2 -2
  25. package/lib/locale/it.cjs +2 -2
  26. package/lib/locale/ja.cjs +2 -2
  27. package/lib/locale/ko.cjs +2 -2
  28. package/lib/locale/ru.cjs +2 -2
  29. package/lib/locale/th.cjs +2 -2
  30. package/lib/locale/uk.cjs +2 -2
  31. package/lib/locale/vi.cjs +2 -2
  32. package/lib/locale/zh-CN.cjs +2 -2
  33. package/lib/locale/zh-TW.cjs +2 -2
  34. package/package.json +28 -24
  35. package/style/base.css +1 -1
  36. package/style/components.css +2 -2
  37. package/style/index.css +2 -2
  38. package/style/motion.css +2 -2
  39. package/style/theme.css +1 -1
  40. package/types/affix/index.d.ts +0 -9
  41. package/types/alert/index.d.ts +7 -12
  42. package/types/anchor/anchor.d.ts +0 -18
  43. package/types/auto-complete/index.d.ts +21 -18
  44. package/types/back-top/index.d.ts +28 -14
  45. package/types/breadcrumb/breadcrumb-item.d.ts +12 -2
  46. package/types/calendar/index.d.ts +90 -0
  47. package/types/card/index.d.ts +7 -6
  48. package/types/carousel/carousel.d.ts +8 -2
  49. package/types/cascader/index.d.ts +39 -28
  50. package/types/cascader/types.d.ts +5 -1
  51. package/types/check-card/check-card-group.d.ts +11 -8
  52. package/types/check-card/check-card.d.ts +11 -8
  53. package/types/check-card/context.d.ts +1 -0
  54. package/types/check-card/types.d.ts +1 -0
  55. package/types/checkbox/checkbox-group.d.ts +13 -13
  56. package/types/checkbox/checkbox.d.ts +35 -69
  57. package/types/checkbox/index.d.ts +1 -1
  58. package/types/checkbox/types.d.ts +2 -1
  59. package/types/collapse/collapse-panel.d.ts +16 -6
  60. package/types/collapse/collapse.d.ts +14 -10
  61. package/types/color-picker/alpha.d.ts +6 -4
  62. package/types/color-picker/hue.d.ts +6 -5
  63. package/types/color-picker/index.d.ts +55 -58
  64. package/types/color-picker/mode.d.ts +9 -7
  65. package/types/color-picker/paint.d.ts +6 -4
  66. package/types/color-picker/presets.d.ts +7 -5
  67. package/types/components.d.ts +22 -12
  68. package/types/config/context.d.ts +20 -3
  69. package/types/config/index.d.ts +10 -0
  70. package/types/config/popup-host.d.ts +6 -0
  71. package/types/const/types.d.ts +2 -1
  72. package/types/date-picker/index.d.ts +33 -222
  73. package/types/descriptions/descriptions-item.d.ts +9 -16
  74. package/types/descriptions/descriptions.d.ts +11 -9
  75. package/types/descriptions/index.d.ts +2 -2
  76. package/types/drawer/index.d.ts +14 -14
  77. package/types/dropdown/dropdown-button.d.ts +10 -9
  78. package/types/dropdown/dropdown.d.ts +9 -12
  79. package/types/dropdown/trigger.d.ts +3 -1
  80. package/types/feature-card/index.d.ts +50 -8
  81. package/types/feedback-panel/feedback-panel.d.ts +5 -5
  82. package/types/flame-wrap/index.d.ts +13 -4
  83. package/types/form/context.d.ts +66 -0
  84. package/types/form/form-item.d.ts +16 -1
  85. package/types/form/form.d.ts +31 -21
  86. package/types/form/index.d.ts +1 -1
  87. package/types/form/types.d.ts +6 -2
  88. package/types/global.d.ts +11 -0
  89. package/types/grid/grid-item.d.ts +9 -6
  90. package/types/grid/grid.d.ts +8 -7
  91. package/types/grid/index.d.ts +1 -0
  92. package/types/grid/useBreakpoint.d.ts +9 -3
  93. package/types/icon/index.d.ts +24 -5
  94. package/types/image/image.d.ts +15 -14
  95. package/types/image/index.d.ts +1 -0
  96. package/types/image/preview.d.ts +16 -5
  97. package/types/input/input-box.d.ts +10 -2
  98. package/types/input/input.d.ts +122 -12
  99. package/types/input/textarea.d.ts +50 -4
  100. package/types/input-number/index.d.ts +31 -11
  101. package/types/input-otp/input-otp.d.ts +70 -9
  102. package/types/input-tag/index.d.ts +19 -15
  103. package/types/kanban/index.d.ts +123 -0
  104. package/types/list-panel/index.d.ts +79 -0
  105. package/types/loading/index.d.ts +5 -10
  106. package/types/locale/de.d.cts +2 -0
  107. package/types/locale/de.d.ts +2 -0
  108. package/types/locale/el.d.cts +2 -0
  109. package/types/locale/el.d.ts +2 -0
  110. package/types/locale/en.d.cts +2 -0
  111. package/types/locale/en.d.ts +2 -0
  112. package/types/locale/fr.d.cts +2 -0
  113. package/types/locale/fr.d.ts +2 -0
  114. package/types/locale/it.d.cts +2 -0
  115. package/types/locale/it.d.ts +2 -0
  116. package/types/locale/ja.d.cts +2 -0
  117. package/types/locale/ja.d.ts +2 -0
  118. package/types/locale/ko.d.cts +2 -0
  119. package/types/locale/ko.d.ts +2 -0
  120. package/types/locale/ru.d.cts +2 -0
  121. package/types/locale/ru.d.ts +2 -0
  122. package/types/locale/th.d.cts +2 -0
  123. package/types/locale/th.d.ts +2 -0
  124. package/types/locale/uk.d.cts +2 -0
  125. package/types/locale/uk.d.ts +2 -0
  126. package/types/locale/vi.d.cts +2 -0
  127. package/types/locale/vi.d.ts +2 -0
  128. package/types/locale/zh-CN.d.cts +2 -0
  129. package/types/locale/zh-CN.d.ts +2 -0
  130. package/types/locale/zh-TW.d.cts +2 -0
  131. package/types/locale/zh-TW.d.ts +2 -0
  132. package/types/mentions/index.d.ts +19 -15
  133. package/types/menu/menu-context.d.ts +2 -0
  134. package/types/menu/menu-keyboard.d.ts +7 -0
  135. package/types/menu/menu.d.ts +35 -24
  136. package/types/menu/types.d.ts +2 -2
  137. package/types/modal/index.d.ts +1 -1
  138. package/types/modal/modal.d.ts +14 -62
  139. package/types/modal/toast.d.ts +6 -2
  140. package/types/notice/content.d.ts +9 -9
  141. package/types/page/index.d.ts +10 -11
  142. package/types/page-header/index.d.ts +14 -0
  143. package/types/popconfirm/index.d.ts +10 -32
  144. package/types/poptip/index.d.ts +8 -17
  145. package/types/progress/index.d.ts +1 -1
  146. package/types/qrcode/index.d.ts +8 -3
  147. package/types/radio/radio-button.d.ts +21 -13
  148. package/types/radio/radio-group.d.ts +14 -49
  149. package/types/radio/radio.d.ts +28 -17
  150. package/types/radio/types.d.ts +2 -2
  151. package/types/rate/index.d.ts +20 -17
  152. package/types/rate/star.d.ts +6 -2
  153. package/types/row-col/row.d.ts +8 -13
  154. package/types/segmented/index.d.ts +46 -0
  155. package/types/select/option.d.ts +36 -3
  156. package/types/select/select.d.ts +17 -123
  157. package/types/select/types.d.ts +3 -1
  158. package/types/skeleton/index.d.ts +4 -0
  159. package/types/skeleton/skeleton-avatar.d.ts +11 -42
  160. package/types/skeleton/skeleton-button.d.ts +13 -42
  161. package/types/skeleton/skeleton-image.d.ts +9 -42
  162. package/types/skeleton/skeleton-text.d.ts +9 -42
  163. package/types/skeleton/skeleton.d.ts +12 -20
  164. package/types/skeleton/types.d.ts +52 -10
  165. package/types/slider/index.d.ts +24 -75
  166. package/types/slider/thumb.d.ts +18 -6
  167. package/types/space/index.d.ts +8 -4
  168. package/types/spin/index.d.ts +1 -1
  169. package/types/splitter/splitter.d.ts +10 -11
  170. package/types/stat-card/stat-card.d.ts +26 -13
  171. package/types/stat-card/stat-number.d.ts +0 -3
  172. package/types/stat-card/types.d.ts +2 -1
  173. package/types/stat-card/utils/countup.d.ts +1 -0
  174. package/types/stat-card/utils/odometer.d.ts +1 -0
  175. package/types/steps/index.d.ts +6 -5
  176. package/types/switch/index.d.ts +33 -56
  177. package/types/table/column-setting.d.ts +78 -0
  178. package/types/table/index.d.ts +40 -61
  179. package/types/tabs/tab-panel.d.ts +4 -4
  180. package/types/tabs/tabs.d.ts +18 -11
  181. package/types/tag/index.d.ts +6 -11
  182. package/types/time-line/timeline-item.d.ts +7 -7
  183. package/types/tooltip/index.d.ts +6 -2
  184. package/types/tour/index.d.ts +25 -11
  185. package/types/transfer/index.d.ts +20 -14
  186. package/types/tree/index.d.ts +40 -89
  187. package/types/tree/types.d.ts +21 -0
  188. package/types/tree/utils.d.ts +1 -0
  189. package/types/tree-select/index.d.ts +14 -183
  190. package/types/typography/index.d.ts +34 -36
  191. package/types/upload/file-list.d.ts +43 -2
  192. package/types/upload/index.d.ts +114 -48
  193. package/types/upload/selector.d.ts +10 -3
  194. package/types/upload/types.d.ts +22 -0
  195. package/types/utils/checked.d.ts +1 -1
  196. package/types/utils/css.d.ts +2 -0
  197. package/types/utils/focus.d.ts +5 -0
  198. package/types/utils/vue.d.ts +7 -1
  199. package/types/virtual-list/index.d.ts +4 -2
  200. package/types/virtual-list/range.d.ts +1 -0
  201. package/vetur/attributes.json +2553 -1265
  202. package/vetur/tags.json +602 -307
  203. package/vetur/web-types.json +2881 -1027
  204. package/test/use-unpkg.html +0 -45
  205. package/types/icon/demo/search.d.ts +0 -2
  206. package/types/icon/demo/tags.d.ts +0 -4
@@ -5,6 +5,7 @@ declare const checkCardGroupProps: {
5
5
  modelValue: PropType<CheckCardValue>;
6
6
  options: PropType<CheckCardOption[]>;
7
7
  disabled: BooleanType;
8
+ readonly: BooleanType;
8
9
  direction: {
9
10
  type: PropType<DirectionType>;
10
11
  default: string;
@@ -21,13 +22,13 @@ declare const checkCardGroupProps: {
21
22
  type: PropType<ShapeType>;
22
23
  default: string;
23
24
  };
24
- onChange: PropType<(value: CheckCardValue) => void>;
25
25
  };
26
26
  export type CheckCardGroupProps = ExtractPropTypes<typeof checkCardGroupProps>;
27
- declare const CheckCardGroup: import('vue').DefineComponent<ExtractPropTypes<{
27
+ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
28
28
  modelValue: PropType<CheckCardValue>;
29
29
  options: PropType<CheckCardOption[]>;
30
30
  disabled: BooleanType;
31
+ readonly: BooleanType;
31
32
  direction: {
32
33
  type: PropType<DirectionType>;
33
34
  default: string;
@@ -44,11 +45,14 @@ declare const CheckCardGroup: import('vue').DefineComponent<ExtractPropTypes<{
44
45
  type: PropType<ShapeType>;
45
46
  default: string;
46
47
  };
47
- onChange: PropType<(value: CheckCardValue) => void>;
48
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import('vue').PublicProps, Readonly<ExtractPropTypes<{
48
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
49
+ "update:modelValue": (value: CheckCardValue) => value is string | number;
50
+ change: (value: CheckCardValue) => value is string | number;
51
+ }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
49
52
  modelValue: PropType<CheckCardValue>;
50
53
  options: PropType<CheckCardOption[]>;
51
54
  disabled: BooleanType;
55
+ readonly: BooleanType;
52
56
  direction: {
53
57
  type: PropType<DirectionType>;
54
58
  default: string;
@@ -65,14 +69,13 @@ declare const CheckCardGroup: import('vue').DefineComponent<ExtractPropTypes<{
65
69
  type: PropType<ShapeType>;
66
70
  default: string;
67
71
  };
68
- onChange: PropType<(value: CheckCardValue) => void>;
69
72
  }>> & Readonly<{
70
- onChange?: ((...args: any[]) => any) | undefined;
71
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
73
+ onChange?: ((value: CheckCardValue) => any) | undefined;
74
+ "onUpdate:modelValue"?: ((value: CheckCardValue) => any) | undefined;
72
75
  }>, {
73
76
  direction: DirectionType;
74
77
  size: SizeType;
75
78
  theme: CheckCardTheme;
76
79
  shape: ShapeType;
77
80
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
78
- export default CheckCardGroup;
81
+ export default _default;
@@ -17,6 +17,7 @@ declare const checkCardProps: {
17
17
  default: boolean;
18
18
  };
19
19
  disabled: BooleanType;
20
+ readonly: BooleanType;
20
21
  theme: {
21
22
  type: PropType<CheckCardTheme>;
22
23
  default: string;
@@ -29,10 +30,9 @@ declare const checkCardProps: {
29
30
  type: PropType<ShapeType>;
30
31
  default: string;
31
32
  };
32
- onChange: PropType<(event: CheckCardChangeEvent) => void>;
33
33
  };
34
34
  export type CheckCardProps = ExtractPropTypes<typeof checkCardProps>;
35
- declare const CheckCard: import('vue').DefineComponent<ExtractPropTypes<{
35
+ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
36
36
  modelValue: {
37
37
  type: BooleanConstructor;
38
38
  default: boolean;
@@ -47,6 +47,7 @@ declare const CheckCard: import('vue').DefineComponent<ExtractPropTypes<{
47
47
  default: boolean;
48
48
  };
49
49
  disabled: BooleanType;
50
+ readonly: BooleanType;
50
51
  theme: {
51
52
  type: PropType<CheckCardTheme>;
52
53
  default: string;
@@ -59,8 +60,10 @@ declare const CheckCard: import('vue').DefineComponent<ExtractPropTypes<{
59
60
  type: PropType<ShapeType>;
60
61
  default: string;
61
62
  };
62
- onChange: PropType<(event: CheckCardChangeEvent) => void>;
63
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import('vue').PublicProps, Readonly<ExtractPropTypes<{
63
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
64
+ "update:modelValue": (checked: boolean) => boolean;
65
+ change: (event: CheckCardChangeEvent) => boolean;
66
+ }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
64
67
  modelValue: {
65
68
  type: BooleanConstructor;
66
69
  default: boolean;
@@ -75,6 +78,7 @@ declare const CheckCard: import('vue').DefineComponent<ExtractPropTypes<{
75
78
  default: boolean;
76
79
  };
77
80
  disabled: BooleanType;
81
+ readonly: BooleanType;
78
82
  theme: {
79
83
  type: PropType<CheckCardTheme>;
80
84
  default: string;
@@ -87,10 +91,9 @@ declare const CheckCard: import('vue').DefineComponent<ExtractPropTypes<{
87
91
  type: PropType<ShapeType>;
88
92
  default: string;
89
93
  };
90
- onChange: PropType<(event: CheckCardChangeEvent) => void>;
91
94
  }>> & Readonly<{
92
- onChange?: ((...args: any[]) => any) | undefined;
93
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
95
+ onChange?: ((event: CheckCardChangeEvent) => any) | undefined;
96
+ "onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
94
97
  }>, {
95
98
  size: SizeType;
96
99
  theme: CheckCardTheme;
@@ -98,4 +101,4 @@ declare const CheckCard: import('vue').DefineComponent<ExtractPropTypes<{
98
101
  modelValue: boolean;
99
102
  showIndicator: boolean | undefined;
100
103
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
101
- export default CheckCard;
104
+ export default _default;
@@ -8,6 +8,7 @@ export interface CheckCardRegistryItem {
8
8
  export interface CheckCardGroupContext {
9
9
  modelValue: ComputedRef<CheckCardValue | undefined>;
10
10
  disabled: ComputedRef<boolean>;
11
+ readonly: ComputedRef<boolean>;
11
12
  theme: ComputedRef<CheckCardTheme>;
12
13
  size: ComputedRef<SizeType>;
13
14
  shape: ComputedRef<ShapeType>;
@@ -7,6 +7,7 @@ export interface CheckCardOption {
7
7
  title: string;
8
8
  description?: string;
9
9
  disabled?: boolean;
10
+ readonly?: boolean;
10
11
  symbol?: IconType[];
11
12
  checkedSymbol?: IconType[];
12
13
  }
@@ -11,6 +11,7 @@ declare const checkboxGroupProps: {
11
11
  default: string;
12
12
  };
13
13
  disabled: BooleanType;
14
+ readonly: BooleanType;
14
15
  options: PropType<CheckboxOption[]>;
15
16
  direction: {
16
17
  type: PropType<DirectionType>;
@@ -19,12 +20,9 @@ declare const checkboxGroupProps: {
19
20
  size: {
20
21
  type: PropType<SizeType>;
21
22
  };
22
- onChange: {
23
- type: PropType<(value: CheckboxValue[]) => void>;
24
- };
25
23
  };
26
24
  export type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>;
27
- declare const CheckboxGroup: import('vue').DefineComponent<ExtractPropTypes<{
25
+ declare const FormCheckboxGroup: import('vue').DefineComponent<ExtractPropTypes<{
28
26
  modelValue: {
29
27
  type: PropType<CheckboxValue[]>;
30
28
  default: () => never[];
@@ -34,6 +32,7 @@ declare const CheckboxGroup: import('vue').DefineComponent<ExtractPropTypes<{
34
32
  default: string;
35
33
  };
36
34
  disabled: BooleanType;
35
+ readonly: BooleanType;
37
36
  options: PropType<CheckboxOption[]>;
38
37
  direction: {
39
38
  type: PropType<DirectionType>;
@@ -42,10 +41,10 @@ declare const CheckboxGroup: import('vue').DefineComponent<ExtractPropTypes<{
42
41
  size: {
43
42
  type: PropType<SizeType>;
44
43
  };
45
- onChange: {
46
- type: PropType<(value: CheckboxValue[]) => void>;
47
- };
48
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
44
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
45
+ "update:modelValue": (value: CheckboxValue[]) => boolean;
46
+ change: (value: CheckboxValue[]) => boolean;
47
+ }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
49
48
  modelValue: {
50
49
  type: PropType<CheckboxValue[]>;
51
50
  default: () => never[];
@@ -55,6 +54,7 @@ declare const CheckboxGroup: import('vue').DefineComponent<ExtractPropTypes<{
55
54
  default: string;
56
55
  };
57
56
  disabled: BooleanType;
57
+ readonly: BooleanType;
58
58
  options: PropType<CheckboxOption[]>;
59
59
  direction: {
60
60
  type: PropType<DirectionType>;
@@ -63,12 +63,12 @@ declare const CheckboxGroup: import('vue').DefineComponent<ExtractPropTypes<{
63
63
  size: {
64
64
  type: PropType<SizeType>;
65
65
  };
66
- onChange: {
67
- type: PropType<(value: CheckboxValue[]) => void>;
68
- };
69
- }>> & Readonly<{}>, {
66
+ }>> & Readonly<{
67
+ onChange?: ((value: CheckboxValue[]) => any) | undefined;
68
+ "onUpdate:modelValue"?: ((value: CheckboxValue[]) => any) | undefined;
69
+ }>, {
70
70
  direction: DirectionType;
71
71
  theme: ThemeType;
72
72
  modelValue: CheckboxValue[];
73
73
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
74
- export default CheckboxGroup;
74
+ export default FormCheckboxGroup;
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
1
+ import { ExtractPropTypes, HTMLAttributes, PropType, VNodeProps } from 'vue';
2
2
  import { BooleanType, SizeType, ThemeType, ValueType } from '../const/types';
3
3
  import { CheckboxChangeEvent } from './types';
4
4
  declare const checkboxProps: {
@@ -12,6 +12,7 @@ declare const checkboxProps: {
12
12
  };
13
13
  modelValue: {
14
14
  type: PropType<string | number | boolean>;
15
+ default: undefined;
15
16
  };
16
17
  value: {
17
18
  type: PropType<string | number | boolean>;
@@ -24,78 +25,43 @@ declare const checkboxProps: {
24
25
  default: string;
25
26
  };
26
27
  disabled: BooleanType;
28
+ readonly: BooleanType;
27
29
  indeterminate: BooleanType;
28
30
  size: {
29
31
  type: PropType<SizeType>;
30
32
  };
31
- onChange: {
32
- type: PropType<(e: CheckboxChangeEvent) => void>;
33
- };
34
33
  };
35
34
  export type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;
36
- declare const Checkbox: import('vue').DefineComponent<ExtractPropTypes<{
37
- checked: {
38
- type: BooleanType;
39
- default: boolean;
40
- };
41
- valueType: {
42
- type: PropType<ValueType>;
43
- default: string;
44
- };
45
- modelValue: {
46
- type: PropType<string | number | boolean>;
47
- };
48
- value: {
49
- type: PropType<string | number | boolean>;
50
- };
51
- label: {
52
- type: PropType<string | number>;
53
- };
54
- theme: {
55
- type: PropType<ThemeType>;
56
- default: string;
57
- };
58
- disabled: BooleanType;
59
- indeterminate: BooleanType;
60
- size: {
61
- type: PropType<SizeType>;
62
- };
63
- onChange: {
64
- type: PropType<(e: CheckboxChangeEvent) => void>;
65
- };
66
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
67
- checked: {
68
- type: BooleanType;
69
- default: boolean;
70
- };
71
- valueType: {
72
- type: PropType<ValueType>;
73
- default: string;
74
- };
75
- modelValue: {
76
- type: PropType<string | number | boolean>;
77
- };
78
- value: {
79
- type: PropType<string | number | boolean>;
80
- };
81
- label: {
82
- type: PropType<string | number>;
83
- };
84
- theme: {
85
- type: PropType<ThemeType>;
86
- default: string;
87
- };
88
- disabled: BooleanType;
89
- indeterminate: BooleanType;
90
- size: {
91
- type: PropType<SizeType>;
92
- };
93
- onChange: {
94
- type: PropType<(e: CheckboxChangeEvent) => void>;
35
+ type CheckboxModelProps<T extends string | number | boolean> = {
36
+ modelValue?: T;
37
+ "onUpdate:modelValue"?: (value: T) => void;
38
+ };
39
+ type CheckboxPublicProps = Omit<Partial<CheckboxProps>, "modelValue" | "valueType"> & Omit<HTMLAttributes, "onChange"> & {
40
+ key?: VNodeProps["key"];
41
+ onChange?: (event: CheckboxChangeEvent) => void;
42
+ };
43
+ type CheckboxComponent = {
44
+ new (props: CheckboxPublicProps & {
45
+ valueType: "string";
46
+ } & CheckboxModelProps<string>): {
47
+ $props: CheckboxPublicProps & {
48
+ valueType: "string";
49
+ } & CheckboxModelProps<string>;
50
+ };
51
+ new (props: CheckboxPublicProps & {
52
+ valueType: "number";
53
+ } & CheckboxModelProps<number>): {
54
+ $props: CheckboxPublicProps & {
55
+ valueType: "number";
56
+ } & CheckboxModelProps<number>;
57
+ };
58
+ new (props: CheckboxPublicProps & {
59
+ valueType?: "boolean";
60
+ } & CheckboxModelProps<boolean>): {
61
+ $props: CheckboxPublicProps & {
62
+ valueType?: "boolean";
63
+ } & CheckboxModelProps<boolean>;
95
64
  };
96
- }>> & Readonly<{}>, {
97
- theme: ThemeType;
98
- checked: boolean | undefined;
99
- valueType: ValueType;
100
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
101
- export default Checkbox;
65
+ };
66
+ declare const _default: CheckboxComponent;
67
+ export default _default;
@@ -2,6 +2,6 @@ import { default as Checkbox } from './checkbox';
2
2
  import { default as CheckboxGroup } from './checkbox-group';
3
3
  export type { CheckboxProps } from './checkbox';
4
4
  export type { CheckboxGroupProps } from './checkbox-group';
5
- export type { CheckboxChangeEvent as ChangeEvent, CheckboxOption } from './types';
5
+ export type { CheckboxChangeEvent as ChangeEvent, CheckboxOption, CheckboxValue } from './types';
6
6
  export { Checkbox, CheckboxGroup };
7
7
  export default Checkbox;
@@ -5,7 +5,8 @@ export interface CheckboxChangeEvent {
5
5
  }
6
6
  export interface CheckboxOption {
7
7
  label?: string;
8
- value?: string | number;
8
+ value: string | number;
9
9
  disabled?: boolean;
10
+ readonly?: boolean;
10
11
  }
11
12
  export type CheckboxValue = string | number | boolean;
@@ -1,11 +1,21 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { PropType, ExtractPropTypes, VNodeChild } from 'vue';
2
+ import { CollapseKey } from './context';
2
3
  declare const collapsePanelProps: {
3
- title: StringConstructor;
4
+ title: PropType<VNodeChild>;
5
+ disabled: BooleanConstructor;
4
6
  };
5
7
  export type CollapsePanelProps = ExtractPropTypes<typeof collapsePanelProps>;
6
8
  declare const CollapsePanel: import('vue').DefineComponent<ExtractPropTypes<{
7
- title: StringConstructor;
8
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
9
- title: StringConstructor;
10
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
+ title: PropType<VNodeChild>;
10
+ disabled: BooleanConstructor;
11
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ expand: (key: CollapseKey) => key is string | number;
13
+ }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
14
+ title: PropType<VNodeChild>;
15
+ disabled: BooleanConstructor;
16
+ }>> & Readonly<{
17
+ onExpand?: ((key: CollapseKey) => any) | undefined;
18
+ }>, {
19
+ disabled: boolean;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
11
21
  export default CollapsePanel;
@@ -1,5 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
- import { BooleanType, ShapeType, ThemeType } from '../const/types';
2
+ import { BooleanType, SurfaceShapeType, ThemeType } from '../const/types';
3
+ import { CollapseKey } from './context';
3
4
  declare const collapseProps: {
4
5
  openKeys: {
5
6
  type: PropType<(string | number)[]>;
@@ -12,10 +13,9 @@ declare const collapseProps: {
12
13
  default: string;
13
14
  };
14
15
  shape: {
15
- type: PropType<ShapeType>;
16
+ type: PropType<SurfaceShapeType>;
16
17
  default: string;
17
18
  };
18
- onChange: PropType<(key: string | number) => void>;
19
19
  };
20
20
  export type CollapseProps = ExtractPropTypes<typeof collapseProps>;
21
21
  declare const Collapse: import('vue').DefineComponent<ExtractPropTypes<{
@@ -30,11 +30,13 @@ declare const Collapse: import('vue').DefineComponent<ExtractPropTypes<{
30
30
  default: string;
31
31
  };
32
32
  shape: {
33
- type: PropType<ShapeType>;
33
+ type: PropType<SurfaceShapeType>;
34
34
  default: string;
35
35
  };
36
- onChange: PropType<(key: string | number) => void>;
37
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
36
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
37
+ change: (key: CollapseKey) => key is string | number;
38
+ "update:openKeys": (keys: CollapseKey[]) => boolean;
39
+ }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
38
40
  openKeys: {
39
41
  type: PropType<(string | number)[]>;
40
42
  default: () => never[];
@@ -46,13 +48,15 @@ declare const Collapse: import('vue').DefineComponent<ExtractPropTypes<{
46
48
  default: string;
47
49
  };
48
50
  shape: {
49
- type: PropType<ShapeType>;
51
+ type: PropType<SurfaceShapeType>;
50
52
  default: string;
51
53
  };
52
- onChange: PropType<(key: string | number) => void>;
53
- }>> & Readonly<{}>, {
54
+ }>> & Readonly<{
55
+ onChange?: ((key: CollapseKey) => any) | undefined;
56
+ "onUpdate:openKeys"?: ((keys: CollapseKey[]) => any) | undefined;
57
+ }>, {
54
58
  theme: ThemeType;
55
- shape: ShapeType;
59
+ shape: SurfaceShapeType;
56
60
  openKeys: (string | number)[];
57
61
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
58
62
  export default Collapse;
@@ -5,12 +5,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
5
5
  type: PropType<Parameters<typeof Color>[0]>;
6
6
  required: true;
7
7
  };
8
- onUpdateAlpha: PropType<(alpha: number) => void>;
9
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
8
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ updateAlpha: (alpha: number) => boolean;
10
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
11
  modelValue: {
11
12
  type: PropType<Parameters<typeof Color>[0]>;
12
13
  required: true;
13
14
  };
14
- onUpdateAlpha: PropType<(alpha: number) => void>;
15
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
15
+ }>> & Readonly<{
16
+ onUpdateAlpha?: ((alpha: number) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
18
  export default _default;
@@ -1,17 +1,18 @@
1
- import { PropType } from 'vue';
2
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
2
  hue: {
4
3
  type: NumberConstructor;
5
4
  default: number;
6
5
  };
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<{
6
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ updateHue: (hue: number) => boolean;
8
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
9
  hue: {
10
10
  type: NumberConstructor;
11
11
  default: number;
12
12
  };
13
- onUpdateHue: PropType<(hue: number) => void>;
14
- }>> & Readonly<{}>, {
13
+ }>> & Readonly<{
14
+ onUpdateHue?: ((hue: number) => any) | undefined;
15
+ }>, {
15
16
  hue: number;
16
17
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
17
18
  export default _default;