@kong/kongponents 9.22.1-pr.2632.e92dffab9.0 → 9.22.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 (58) hide show
  1. package/dist/types/components/KAlert/KAlert.vue.d.ts +152 -13
  2. package/dist/types/components/KBadge/KBadge.vue.d.ts +13 -16
  3. package/dist/types/components/KBreadcrumbs/KBreadcrumbs.vue.d.ts +5 -4
  4. package/dist/types/components/KButton/KButton.vue.d.ts +5 -5
  5. package/dist/types/components/KCard/KCard.vue.d.ts +41 -15
  6. package/dist/types/components/KCatalog/KCatalog.vue.d.ts +517 -53
  7. package/dist/types/components/KCatalog/KCatalogItem.vue.d.ts +45 -15
  8. package/dist/types/components/KCheckbox/KCheckbox.vue.d.ts +5 -5
  9. package/dist/types/components/KCodeBlock/KCodeBlock.vue.d.ts +8 -193
  10. package/dist/types/components/KCodeBlock/KCodeBlockIconButton.vue.d.ts +3 -3
  11. package/dist/types/components/KCollapse/KCollapse.vue.d.ts +101 -19
  12. package/dist/types/components/KCopy/KCopy.vue.d.ts +1 -3
  13. package/dist/types/components/KDateTimePicker/KDateTimePicker.vue.d.ts +2 -265
  14. package/dist/types/components/KDropdown/KDropdown.vue.d.ts +808 -545
  15. package/dist/types/components/KDropdown/KDropdownItem.vue.d.ts +118 -11
  16. package/dist/types/components/KEmptyState/KEmptyState.vue.d.ts +165 -15
  17. package/dist/types/components/KExternalLink/KExternalLink.vue.d.ts +36 -10
  18. package/dist/types/components/KFileUpload/KFileUpload.vue.d.ts +733 -610
  19. package/dist/types/components/KInput/KInput.vue.d.ts +6 -9
  20. package/dist/types/components/KInputSwitch/KInputSwitch.vue.d.ts +4 -6
  21. package/dist/types/components/KLabel/KLabel.vue.d.ts +69 -13
  22. package/dist/types/components/KModal/KModal.vue.d.ts +444 -243
  23. package/dist/types/components/KModalFullscreen/KModalFullscreen.vue.d.ts +181 -23
  24. package/dist/types/components/KMultiselect/KMultiselect.vue.d.ts +10 -594
  25. package/dist/types/components/KMultiselect/KMultiselectItem.vue.d.ts +33 -11
  26. package/dist/types/components/KMultiselect/KMultiselectItems.vue.d.ts +74 -20
  27. package/dist/types/components/KPagination/KPagination.vue.d.ts +1 -3
  28. package/dist/types/components/KPagination/PaginationOffset.vue.d.ts +1 -1
  29. package/dist/types/components/KPop/KPop.vue.d.ts +211 -25
  30. package/dist/types/components/KPrompt/KPrompt.vue.d.ts +153 -12
  31. package/dist/types/components/KRadio/KRadio.vue.d.ts +5 -7
  32. package/dist/types/components/KSegmentedControl/KSegmentedControl.vue.d.ts +5 -5
  33. package/dist/types/components/KSelect/KSelect.vue.d.ts +441 -1213
  34. package/dist/types/components/KSelect/KSelectItem.vue.d.ts +33 -11
  35. package/dist/types/components/KSelect/KSelectItems.vue.d.ts +76 -20
  36. package/dist/types/components/KSkeleton/CardSkeleton.vue.d.ts +39 -14
  37. package/dist/types/components/KSkeleton/FormSkeleton.vue.d.ts +1 -1
  38. package/dist/types/components/KSkeleton/FullScreenGenericSpinner.vue.d.ts +1 -1
  39. package/dist/types/components/KSkeleton/FullScreenKongSkeleton.vue.d.ts +1 -1
  40. package/dist/types/components/KSkeleton/KSkeleton.vue.d.ts +127 -14
  41. package/dist/types/components/KSkeleton/KSkeletonBox.vue.d.ts +1 -1
  42. package/dist/types/components/KSkeleton/SkeletonBase.vue.d.ts +12 -12
  43. package/dist/types/components/KSkeleton/TableSkeleton.vue.d.ts +35 -11
  44. package/dist/types/components/KSlideout/KSlideout.vue.d.ts +126 -15
  45. package/dist/types/components/KStepper/KStep.vue.d.ts +1 -1
  46. package/dist/types/components/KTable/KTable.vue.d.ts +660 -30
  47. package/dist/types/components/KTableData/KTableData.vue.d.ts +142 -39
  48. package/dist/types/components/KTableView/BulkActionsDropdown.vue.d.ts +47 -11
  49. package/dist/types/components/KTableView/ColumnVisibilityMenu.vue.d.ts +1 -3
  50. package/dist/types/components/KTableView/KTableView.vue.d.ts +260 -41
  51. package/dist/types/components/KTabs/KTabs.vue.d.ts +111 -9
  52. package/dist/types/components/KTextArea/KTextArea.vue.d.ts +3 -3
  53. package/dist/types/components/KTooltip/KTooltip.vue.d.ts +106 -15
  54. package/dist/types/components/KTreeList/KTreeDraggable.vue.d.ts +9 -160
  55. package/dist/types/components/KTreeList/KTreeItem.vue.d.ts +5 -5
  56. package/dist/types/components/KTreeList/KTreeList.vue.d.ts +7 -366
  57. package/dist/types/components/KTruncate/KTruncate.vue.d.ts +102 -32
  58. package/package.json +36 -35
@@ -1,15 +1,154 @@
1
1
  import type { PropType } from 'vue';
2
2
  import type { AlertAppearance } from '../../../types';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: {
6
- icon?(_: {}): any;
7
- default?(_: {}): any;
8
- };
9
- refs: {};
10
- rootEl: HTMLDivElement;
11
- };
12
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
3
+ import { CloseIcon } from '@kong/icons';
4
+ import { KUI_ICON_SIZE_40 } from '@kong/design-tokens';
5
+ declare const getAlertIcon: import("vue").ComputedRef<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ title: {
7
+ type: StringConstructor;
8
+ required: false;
9
+ default: string;
10
+ };
11
+ color: {
12
+ type: StringConstructor;
13
+ required: false;
14
+ default: string;
15
+ };
16
+ display: {
17
+ type: StringConstructor;
18
+ required: false;
19
+ default: string;
20
+ };
21
+ decorative: {
22
+ type: BooleanConstructor;
23
+ required: false;
24
+ default: boolean;
25
+ };
26
+ size: {
27
+ type: (StringConstructor | NumberConstructor)[];
28
+ required: false;
29
+ default: "24px";
30
+ validator: (sizeValue: number | string) => boolean;
31
+ };
32
+ as: {
33
+ type: StringConstructor;
34
+ required: false;
35
+ default: string;
36
+ };
37
+ staticIds: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
42
+ title: {
43
+ type: StringConstructor;
44
+ required: false;
45
+ default: string;
46
+ };
47
+ color: {
48
+ type: StringConstructor;
49
+ required: false;
50
+ default: string;
51
+ };
52
+ display: {
53
+ type: StringConstructor;
54
+ required: false;
55
+ default: string;
56
+ };
57
+ decorative: {
58
+ type: BooleanConstructor;
59
+ required: false;
60
+ default: boolean;
61
+ };
62
+ size: {
63
+ type: (StringConstructor | NumberConstructor)[];
64
+ required: false;
65
+ default: "24px";
66
+ validator: (sizeValue: number | string) => boolean;
67
+ };
68
+ as: {
69
+ type: StringConstructor;
70
+ required: false;
71
+ default: string;
72
+ };
73
+ staticIds: {
74
+ type: BooleanConstructor;
75
+ default: boolean;
76
+ };
77
+ }>> & Readonly<{}>, {
78
+ title: string;
79
+ color: string;
80
+ display: string;
81
+ decorative: boolean;
82
+ size: string | number;
83
+ as: string;
84
+ staticIds: boolean;
85
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
86
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
87
+ declare var __VLS_1: {}, __VLS_7: {};
88
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
89
+ icon?: (props: typeof __VLS_1) => any;
90
+ } & {
91
+ default?: (props: typeof __VLS_7) => any;
92
+ }>;
93
+ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
94
+ title: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ };
98
+ message: {
99
+ type: StringConstructor;
100
+ default: string;
101
+ };
102
+ appearance: {
103
+ type: PropType<AlertAppearance>;
104
+ default: string;
105
+ validator: (value: AlertAppearance) => boolean;
106
+ };
107
+ showIcon: {
108
+ type: BooleanConstructor;
109
+ default: boolean;
110
+ };
111
+ dismissible: {
112
+ type: BooleanConstructor;
113
+ default: boolean;
114
+ };
115
+ }>, {
116
+ CloseIcon: typeof CloseIcon;
117
+ KUI_ICON_SIZE_40: typeof KUI_ICON_SIZE_40;
118
+ getAlertIcon: typeof getAlertIcon;
119
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
120
+ dismiss: (...args: any[]) => void;
121
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
122
+ title: {
123
+ type: StringConstructor;
124
+ default: string;
125
+ };
126
+ message: {
127
+ type: StringConstructor;
128
+ default: string;
129
+ };
130
+ appearance: {
131
+ type: PropType<AlertAppearance>;
132
+ default: string;
133
+ validator: (value: AlertAppearance) => boolean;
134
+ };
135
+ showIcon: {
136
+ type: BooleanConstructor;
137
+ default: boolean;
138
+ };
139
+ dismissible: {
140
+ type: BooleanConstructor;
141
+ default: boolean;
142
+ };
143
+ }>> & Readonly<{
144
+ onDismiss?: ((...args: any[]) => any) | undefined;
145
+ }>, {
146
+ title: string;
147
+ message: string;
148
+ appearance: AlertAppearance;
149
+ showIcon: boolean;
150
+ dismissible: boolean;
151
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
13
152
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
14
153
  title: {
15
154
  type: StringConstructor;
@@ -64,10 +203,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
64
203
  appearance: AlertAppearance;
65
204
  showIcon: boolean;
66
205
  dismissible: boolean;
67
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
68
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
206
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
207
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
69
208
  export default _default;
70
- type __VLS_WithTemplateSlots<T, S> = T & {
209
+ type __VLS_WithSlots<T, S> = T & {
71
210
  new (): {
72
211
  $slots: S;
73
212
  };
@@ -1,6 +1,6 @@
1
1
  import type { PropType } from 'vue';
2
2
  import type { BadgeAppearance } from '../../../types';
3
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  appearance: {
5
5
  type: PropType<BadgeAppearance>;
6
6
  required: false;
@@ -113,8 +113,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
113
113
  size: import("../../../types").ButtonSize;
114
114
  disabled: boolean;
115
115
  appearance: import("../../../types").ButtonAppearance;
116
- to: string | Record<string, any>;
117
116
  icon: boolean;
117
+ to: string | Record<string, any>;
118
118
  }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
119
119
  P: {};
120
120
  B: {};
@@ -155,8 +155,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
155
155
  size: import("../../../types").ButtonSize;
156
156
  disabled: boolean;
157
157
  appearance: import("../../../types").ButtonAppearance;
158
- to: string | Record<string, any>;
159
158
  icon: boolean;
159
+ to: string | Record<string, any>;
160
160
  }>;
161
161
  __isFragment?: never;
162
162
  __isTeleport?: never;
@@ -194,12 +194,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
194
194
  size: import("../../../types").ButtonSize;
195
195
  disabled: boolean;
196
196
  appearance: import("../../../types").ButtonAppearance;
197
- to: string | Record<string, any>;
198
197
  icon: boolean;
198
+ to: string | Record<string, any>;
199
199
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
200
200
  $slots: {
201
- icon?(_: {}): any;
202
- default?(_: {}): any;
201
+ icon?: ((props: {}) => any) | undefined;
202
+ default?: ((props: {}) => any) | undefined;
203
203
  };
204
204
  });
205
205
  KTooltip: {
@@ -318,21 +318,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
318
318
  tooltipId: string;
319
319
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
320
320
  $slots: {
321
- default?(_: {}): any;
322
- default?(_: {}): any;
323
- content?(_: {
321
+ default?: (((props: {}) => any) & ((props: {}) => any)) | undefined;
322
+ content?: ((props: {
324
323
  label: string;
325
- }): any;
324
+ }) => any) | undefined;
326
325
  };
327
326
  });
328
- }, {}, string, import("vue").ComponentProvideOptions, true, {
329
- badgeTextElement: HTMLDivElement;
330
- }, HTMLDivElement>, {
331
- icon?(_: {}): any;
332
- default?(_: {}): any;
327
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
328
+ icon?: ((props: {}) => any) | undefined;
329
+ default?: ((props: {}) => any) | undefined;
333
330
  }>;
334
331
  export default _default;
335
- type __VLS_WithTemplateSlots<T, S> = T & {
332
+ type __VLS_WithSlots<T, S> = T & {
336
333
  new (): {
337
334
  $slots: S;
338
335
  };
@@ -1,6 +1,6 @@
1
1
  import type { PropType } from 'vue';
2
2
  import type { BreadcrumbItem } from '../../../types';
3
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  items: {
5
5
  type: PropType<BreadcrumbItem[]>;
6
6
  default: BreadcrumbItem[];
@@ -27,11 +27,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
27
27
  }>> & Readonly<{}>, {
28
28
  items: BreadcrumbItem[];
29
29
  itemMaxWidth: string;
30
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Partial<Record<`icon-${string}`, (_: {}) => any>> & {
31
- divider?(_: {}): any;
30
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
31
+ [x: `icon-${string}`]: ((props: {}) => any) | undefined;
32
+ divider?: ((props: {}) => any) | undefined;
32
33
  }>;
33
34
  export default _default;
34
- type __VLS_WithTemplateSlots<T, S> = T & {
35
+ type __VLS_WithSlots<T, S> = T & {
35
36
  new (): {
36
37
  $slots: S;
37
38
  };
@@ -1,6 +1,6 @@
1
1
  import type { PropType } from 'vue';
2
2
  import type { ButtonAppearance, ButtonSize } from '../../../types';
3
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  /**
5
5
  * Base styling of the button
6
6
  * One of ['primary', 'secondary', 'tertiary', 'danger']
@@ -83,14 +83,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
83
83
  size: ButtonSize;
84
84
  disabled: boolean;
85
85
  appearance: ButtonAppearance;
86
- to: string | Record<string, any>;
87
86
  icon: boolean;
87
+ to: string | Record<string, any>;
88
88
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
89
- icon?(_: {}): any;
90
- default?(_: {}): any;
89
+ icon?: ((props: {}) => any) | undefined;
90
+ default?: ((props: {}) => any) | undefined;
91
91
  }>;
92
92
  export default _default;
93
- type __VLS_WithTemplateSlots<T, S> = T & {
93
+ type __VLS_WithSlots<T, S> = T & {
94
94
  new (): {
95
95
  $slots: S;
96
96
  };
@@ -1,17 +1,43 @@
1
1
  import { type PropType } from 'vue';
2
2
  import type { HeaderTag } from '../../../types';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: {
6
- title?(_: {}): any;
7
- actions?(_: {}): any;
8
- default?(_: {}): any;
9
- footer?(_: {}): any;
10
- };
11
- refs: {};
12
- rootEl: HTMLDivElement;
13
- };
14
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
3
+ declare const showCardHeader: import("vue").ComputedRef<boolean>;
4
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
5
+ declare var __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {};
6
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
7
+ title?: (props: typeof __VLS_5) => any;
8
+ } & {
9
+ actions?: (props: typeof __VLS_7) => any;
10
+ } & {
11
+ default?: (props: typeof __VLS_9) => any;
12
+ } & {
13
+ footer?: (props: typeof __VLS_11) => any;
14
+ }>;
15
+ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
16
+ title: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ titleTag: {
21
+ type: PropType<HeaderTag>;
22
+ default: string;
23
+ validator: (value: HeaderTag) => boolean;
24
+ };
25
+ }>, {
26
+ showCardHeader: typeof showCardHeader;
27
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28
+ title: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ titleTag: {
33
+ type: PropType<HeaderTag>;
34
+ default: string;
35
+ validator: (value: HeaderTag) => boolean;
36
+ };
37
+ }>> & Readonly<{}>, {
38
+ title: string;
39
+ titleTag: HeaderTag;
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
41
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
16
42
  title: {
17
43
  type: StringConstructor;
@@ -35,10 +61,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
35
61
  }>> & Readonly<{}>, {
36
62
  title: string;
37
63
  titleTag: HeaderTag;
38
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
39
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
64
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
65
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
40
66
  export default _default;
41
- type __VLS_WithTemplateSlots<T, S> = T & {
67
+ type __VLS_WithSlots<T, S> = T & {
42
68
  new (): {
43
69
  $slots: S;
44
70
  };