@kong/kongponents 9.26.3-pr.2679.c19b815ca.0 → 9.27.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.
@@ -1,240 +1,7 @@
1
- import type { PropType } from 'vue';
2
- import type { BadgeAppearance } from '../../../types';
3
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
- appearance: {
5
- type: PropType<BadgeAppearance>;
6
- required: false;
7
- default: string;
8
- validator: (value: string) => boolean;
9
- };
10
- /**
11
- * Tooltip text that will be displayed on hover.
12
- */
13
- tooltip: {
14
- type: StringConstructor;
15
- default: string;
16
- };
17
- /**
18
- * Whether tooltip should only be shown when the badge is truncated.
19
- */
20
- truncationTooltip: {
21
- type: BooleanConstructor;
22
- default: boolean;
23
- };
24
- /**
25
- * Max width to apply truncation at
26
- * Is superseded by CSS variable if both provided
27
- */
28
- maxWidth: {
29
- type: StringConstructor;
30
- default: string;
31
- };
32
- /**
33
- * A boolean whether or not to show the icon before the badge text (or after).
34
- */
35
- iconBefore: {
36
- type: BooleanConstructor;
37
- default: boolean;
38
- };
39
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
40
- appearance: {
41
- type: PropType<BadgeAppearance>;
42
- required: false;
43
- default: string;
44
- validator: (value: string) => boolean;
45
- };
46
- /**
47
- * Tooltip text that will be displayed on hover.
48
- */
49
- tooltip: {
50
- type: StringConstructor;
51
- default: string;
52
- };
53
- /**
54
- * Whether tooltip should only be shown when the badge is truncated.
55
- */
56
- truncationTooltip: {
57
- type: BooleanConstructor;
58
- default: boolean;
59
- };
60
- /**
61
- * Max width to apply truncation at
62
- * Is superseded by CSS variable if both provided
63
- */
64
- maxWidth: {
65
- type: StringConstructor;
66
- default: string;
67
- };
68
- /**
69
- * A boolean whether or not to show the icon before the badge text (or after).
70
- */
71
- iconBefore: {
72
- type: BooleanConstructor;
73
- default: boolean;
74
- };
75
- }>> & Readonly<{}>, {
76
- appearance: BadgeAppearance;
77
- maxWidth: string;
78
- tooltip: string;
79
- truncationTooltip: boolean;
80
- iconBefore: boolean;
81
- }, {}, {
82
- KButton: {
83
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../../../types").ButtonProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
84
- P: {};
85
- B: {};
86
- D: {};
87
- C: {};
88
- M: {};
89
- Defaults: {};
90
- }, Readonly<import("../../../types").ButtonProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
91
- __isFragment?: never;
92
- __isTeleport?: never;
93
- __isSuspense?: never;
94
- } & import("vue").ComponentOptionsBase<Readonly<import("../../../types").ButtonProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
95
- $slots: import("../../../types").ButtonSlots;
96
- });
97
- KTooltip: {
98
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
99
- text: {
100
- type: StringConstructor;
101
- required: false;
102
- default: string;
103
- };
104
- placement: {
105
- type: PropType<import("../../../types").PopPlacements>;
106
- default: string;
107
- validator: (value: import("../../../types").PopPlacements) => boolean;
108
- };
109
- maxWidth: {
110
- type: StringConstructor;
111
- default: string;
112
- };
113
- label: {
114
- type: StringConstructor;
115
- default: string;
116
- };
117
- tooltipId: {
118
- type: StringConstructor;
119
- default: string;
120
- };
121
- zIndex: {
122
- type: NumberConstructor;
123
- default: number;
124
- };
125
- kpopAttributes: {
126
- type: PropType<import("../../../types").PopoverAttributes>;
127
- default: () => void;
128
- };
129
- }>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
130
- label: string;
131
- text: string;
132
- placement: "auto" | "top" | "top-start" | "top-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end";
133
- maxWidth: string;
134
- zIndex: number;
135
- tooltipId: string;
136
- kpopAttributes: import("../../../types").PopoverAttributes;
137
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
138
- P: {};
139
- B: {};
140
- D: {};
141
- C: {};
142
- M: {};
143
- Defaults: {};
144
- }, Readonly<import("vue").ExtractPropTypes<{
145
- text: {
146
- type: StringConstructor;
147
- required: false;
148
- default: string;
149
- };
150
- placement: {
151
- type: PropType<import("../../../types").PopPlacements>;
152
- default: string;
153
- validator: (value: import("../../../types").PopPlacements) => boolean;
154
- };
155
- maxWidth: {
156
- type: StringConstructor;
157
- default: string;
158
- };
159
- label: {
160
- type: StringConstructor;
161
- default: string;
162
- };
163
- tooltipId: {
164
- type: StringConstructor;
165
- default: string;
166
- };
167
- zIndex: {
168
- type: NumberConstructor;
169
- default: number;
170
- };
171
- kpopAttributes: {
172
- type: PropType<import("../../../types").PopoverAttributes>;
173
- default: () => void;
174
- };
175
- }>> & Readonly<{}>, {}, {}, {}, {}, {
176
- label: string;
177
- text: string;
178
- placement: "auto" | "top" | "top-start" | "top-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end";
179
- maxWidth: string;
180
- zIndex: number;
181
- tooltipId: string;
182
- kpopAttributes: import("../../../types").PopoverAttributes;
183
- }>;
184
- __isFragment?: never;
185
- __isTeleport?: never;
186
- __isSuspense?: never;
187
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
188
- text: {
189
- type: StringConstructor;
190
- required: false;
191
- default: string;
192
- };
193
- placement: {
194
- type: PropType<import("../../../types").PopPlacements>;
195
- default: string;
196
- validator: (value: import("../../../types").PopPlacements) => boolean;
197
- };
198
- maxWidth: {
199
- type: StringConstructor;
200
- default: string;
201
- };
202
- label: {
203
- type: StringConstructor;
204
- default: string;
205
- };
206
- tooltipId: {
207
- type: StringConstructor;
208
- default: string;
209
- };
210
- zIndex: {
211
- type: NumberConstructor;
212
- default: number;
213
- };
214
- kpopAttributes: {
215
- type: PropType<import("../../../types").PopoverAttributes>;
216
- default: () => void;
217
- };
218
- }>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
219
- label: string;
220
- text: string;
221
- placement: "auto" | "top" | "top-start" | "top-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end";
222
- maxWidth: string;
223
- zIndex: number;
224
- tooltipId: string;
225
- kpopAttributes: import("../../../types").PopoverAttributes;
226
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
227
- $slots: {
228
- default?: (((props: {}) => any) & ((props: {}) => any)) | undefined;
229
- content?: ((props: {
230
- label: string;
231
- }) => any) | undefined;
232
- };
233
- });
234
- }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
235
- icon?: ((props: {}) => any) | undefined;
236
- default?: ((props: {}) => any) | undefined;
237
- }>;
1
+ import type { BadgeProps, BadgeSlots } from '../../../types';
2
+ type __VLS_Slots = BadgeSlots;
3
+ declare const __VLS_component: import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
238
5
  export default _default;
239
6
  type __VLS_WithSlots<T, S> = T & {
240
7
  new (): {
@@ -1,36 +1,42 @@
1
- import type { PropType } from 'vue';
2
- import type { BreadcrumbItem } from '../../../types';
3
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
- items: {
5
- type: PropType<BreadcrumbItem[]>;
6
- default: BreadcrumbItem[];
7
- required: true;
8
- validator: (items: BreadcrumbItem[]) => boolean;
1
+ import type { BreadcrumbItem, BreadcrumbProps } from '../../../types';
2
+ declare const getSizeFromString: (sizeStr: string) => string;
3
+ declare const getComponentAttrs: (item: BreadcrumbItem) => {
4
+ type: string;
5
+ attrs: {
6
+ title: string | undefined;
7
+ to?: undefined;
8
+ href?: undefined;
9
9
  };
10
- itemMaxWidth: {
11
- type: StringConstructor;
12
- required: false;
13
- default: string;
10
+ } | {
11
+ type: string;
12
+ attrs: {
13
+ title: string | undefined;
14
+ to: object;
15
+ href?: undefined;
14
16
  };
15
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
- items: {
17
- type: PropType<BreadcrumbItem[]>;
18
- default: BreadcrumbItem[];
19
- required: true;
20
- validator: (items: BreadcrumbItem[]) => boolean;
17
+ } | {
18
+ type: string;
19
+ attrs: {
20
+ href: string;
21
+ title: string | undefined;
22
+ to?: undefined;
21
23
  };
22
- itemMaxWidth: {
23
- type: StringConstructor;
24
- required: false;
25
- default: string;
26
- };
27
- }>> & Readonly<{}>, {
28
- items: BreadcrumbItem[];
29
- itemMaxWidth: string;
30
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
31
- [x: `icon-${string}`]: ((props: {}) => any) | undefined;
32
- divider?: ((props: {}) => any) | undefined;
24
+ };
25
+ declare const getBreadcrumbKey: (item: BreadcrumbItem, idx: number) => string;
26
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
27
+ declare var __VLS_6: `icon-${string}`, __VLS_7: {}, __VLS_9: {};
28
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
29
+ [K in NonNullable<typeof __VLS_6>]?: (props: typeof __VLS_7) => any;
30
+ } & {
31
+ divider?: (props: typeof __VLS_9) => any;
33
32
  }>;
33
+ declare const __VLS_self: import("vue").DefineComponent<BreadcrumbProps, {
34
+ getSizeFromString: typeof getSizeFromString;
35
+ getComponentAttrs: typeof getComponentAttrs;
36
+ getBreadcrumbKey: typeof getBreadcrumbKey;
37
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BreadcrumbProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
+ declare const __VLS_component: import("vue").DefineComponent<BreadcrumbProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BreadcrumbProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
39
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
34
40
  export default _default;
35
41
  type __VLS_WithSlots<T, S> = T & {
36
42
  new (): {
@@ -1,10 +1,230 @@
1
- import type { EmptyStateProps, EmptyStateSlots } from '../../../types';
2
- type __VLS_Slots = EmptyStateSlots;
3
- declare const __VLS_component: import("vue").DefineComponent<EmptyStateProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
- "click-action": () => any;
5
- }, string, import("vue").PublicProps, Readonly<EmptyStateProps> & Readonly<{
6
- "onClick-action"?: (() => any) | undefined;
7
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
1
+ import { type PropType } from 'vue';
2
+ import { KUI_ICON_SIZE_60 } from '@kong/design-tokens';
3
+ import KButton from '../../components/KButton/KButton.vue';
4
+ import { EmptyStateIconVariants } from '../../../types';
5
+ import type { EmptyStateIconVariant } from '../../../types';
6
+ declare const getEmptyStateIcon: import("vue").ComputedRef<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
+ title: {
8
+ type: StringConstructor;
9
+ required: false;
10
+ default: string;
11
+ };
12
+ color: {
13
+ type: StringConstructor;
14
+ required: false;
15
+ default: string;
16
+ };
17
+ display: {
18
+ type: StringConstructor;
19
+ required: false;
20
+ default: string;
21
+ };
22
+ decorative: {
23
+ type: BooleanConstructor;
24
+ required: false;
25
+ default: boolean;
26
+ };
27
+ size: {
28
+ type: (StringConstructor | NumberConstructor)[];
29
+ required: false;
30
+ default: "24px";
31
+ validator: (sizeValue: number | string) => boolean;
32
+ };
33
+ as: {
34
+ type: StringConstructor;
35
+ required: false;
36
+ default: string;
37
+ };
38
+ staticIds: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
43
+ title: {
44
+ type: StringConstructor;
45
+ required: false;
46
+ default: string;
47
+ };
48
+ color: {
49
+ type: StringConstructor;
50
+ required: false;
51
+ default: string;
52
+ };
53
+ display: {
54
+ type: StringConstructor;
55
+ required: false;
56
+ default: string;
57
+ };
58
+ decorative: {
59
+ type: BooleanConstructor;
60
+ required: false;
61
+ default: boolean;
62
+ };
63
+ size: {
64
+ type: (StringConstructor | NumberConstructor)[];
65
+ required: false;
66
+ default: "24px";
67
+ validator: (sizeValue: number | string) => boolean;
68
+ };
69
+ as: {
70
+ type: StringConstructor;
71
+ required: false;
72
+ default: string;
73
+ };
74
+ staticIds: {
75
+ type: BooleanConstructor;
76
+ default: boolean;
77
+ };
78
+ }>> & Readonly<{}>, {
79
+ title: string;
80
+ color: string;
81
+ display: string;
82
+ decorative: boolean;
83
+ size: string | number;
84
+ as: string;
85
+ staticIds: boolean;
86
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
87
+ declare const getIconColor: import("vue").ComputedRef<string>;
88
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
89
+ declare var __VLS_1: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {};
90
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
91
+ icon?: (props: typeof __VLS_1) => any;
92
+ } & {
93
+ title?: (props: typeof __VLS_7) => any;
94
+ } & {
95
+ default?: (props: typeof __VLS_9) => any;
96
+ } & {
97
+ action?: (props: typeof __VLS_11) => any;
98
+ }>;
99
+ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
100
+ title: {
101
+ type: StringConstructor;
102
+ default: string;
103
+ };
104
+ message: {
105
+ type: StringConstructor;
106
+ default: string;
107
+ };
108
+ actionButtonVisible: {
109
+ type: BooleanConstructor;
110
+ default: boolean;
111
+ };
112
+ actionButtonText: {
113
+ type: StringConstructor;
114
+ default: string;
115
+ };
116
+ actionButtonDisabled: {
117
+ type: BooleanConstructor;
118
+ default: boolean;
119
+ };
120
+ iconVariant: {
121
+ type: PropType<EmptyStateIconVariant>;
122
+ default: EmptyStateIconVariants;
123
+ };
124
+ }>, {
125
+ KUI_ICON_SIZE_60: typeof KUI_ICON_SIZE_60;
126
+ KButton: typeof KButton;
127
+ getEmptyStateIcon: typeof getEmptyStateIcon;
128
+ getIconColor: typeof getIconColor;
129
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
130
+ "click-action": (...args: any[]) => void;
131
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
132
+ title: {
133
+ type: StringConstructor;
134
+ default: string;
135
+ };
136
+ message: {
137
+ type: StringConstructor;
138
+ default: string;
139
+ };
140
+ actionButtonVisible: {
141
+ type: BooleanConstructor;
142
+ default: boolean;
143
+ };
144
+ actionButtonText: {
145
+ type: StringConstructor;
146
+ default: string;
147
+ };
148
+ actionButtonDisabled: {
149
+ type: BooleanConstructor;
150
+ default: boolean;
151
+ };
152
+ iconVariant: {
153
+ type: PropType<EmptyStateIconVariant>;
154
+ default: EmptyStateIconVariants;
155
+ };
156
+ }>> & Readonly<{
157
+ "onClick-action"?: ((...args: any[]) => any) | undefined;
158
+ }>, {
159
+ title: string;
160
+ message: string;
161
+ actionButtonVisible: boolean;
162
+ actionButtonText: string;
163
+ actionButtonDisabled: boolean;
164
+ iconVariant: "search" | "default" | "error" | "kong";
165
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
166
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
167
+ title: {
168
+ type: StringConstructor;
169
+ default: string;
170
+ };
171
+ message: {
172
+ type: StringConstructor;
173
+ default: string;
174
+ };
175
+ actionButtonVisible: {
176
+ type: BooleanConstructor;
177
+ default: boolean;
178
+ };
179
+ actionButtonText: {
180
+ type: StringConstructor;
181
+ default: string;
182
+ };
183
+ actionButtonDisabled: {
184
+ type: BooleanConstructor;
185
+ default: boolean;
186
+ };
187
+ iconVariant: {
188
+ type: PropType<EmptyStateIconVariant>;
189
+ default: EmptyStateIconVariants;
190
+ };
191
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
192
+ "click-action": (...args: any[]) => void;
193
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
194
+ title: {
195
+ type: StringConstructor;
196
+ default: string;
197
+ };
198
+ message: {
199
+ type: StringConstructor;
200
+ default: string;
201
+ };
202
+ actionButtonVisible: {
203
+ type: BooleanConstructor;
204
+ default: boolean;
205
+ };
206
+ actionButtonText: {
207
+ type: StringConstructor;
208
+ default: string;
209
+ };
210
+ actionButtonDisabled: {
211
+ type: BooleanConstructor;
212
+ default: boolean;
213
+ };
214
+ iconVariant: {
215
+ type: PropType<EmptyStateIconVariant>;
216
+ default: EmptyStateIconVariants;
217
+ };
218
+ }>> & Readonly<{
219
+ "onClick-action"?: ((...args: any[]) => any) | undefined;
220
+ }>, {
221
+ title: string;
222
+ message: string;
223
+ actionButtonVisible: boolean;
224
+ actionButtonText: string;
225
+ actionButtonDisabled: boolean;
226
+ iconVariant: "search" | "default" | "error" | "kong";
227
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
228
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
9
229
  export default _default;
10
230
  type __VLS_WithSlots<T, S> = T & {
@@ -4,3 +4,38 @@ export type BadgeMethodAppearanceRecord = Record<BadgeMethodAppearance, BadgeMet
4
4
  export type BadgeAppearanceRecord = Record<BadgeAppearance, BadgeAppearance>;
5
5
  export declare const BadgeMethodAppearances: BadgeMethodAppearanceRecord;
6
6
  export declare const BadgeAppearances: BadgeAppearanceRecord;
7
+ export interface BadgeProps {
8
+ /**
9
+ * Base style of the badge.
10
+ * One of ['info', 'success', 'warning', 'danger', 'neutral', 'decorative', BadgeMethodAppearance].
11
+ * @default 'info'
12
+ */
13
+ appearance?: BadgeAppearance;
14
+ /**
15
+ * Tooltip text that will be displayed on hover.
16
+ */
17
+ tooltip?: string;
18
+ /**
19
+ * Whether tooltip should only be shown when the badge is truncated.
20
+ */
21
+ truncationTooltip?: boolean;
22
+ /**
23
+ * Max width to apply truncation at
24
+ * Is superseded by CSS variable if both provided.
25
+ */
26
+ maxWidth?: string;
27
+ /**
28
+ * A boolean whether or not to show the icon before the badge text (or after).
29
+ */
30
+ iconBefore?: boolean;
31
+ }
32
+ export type BadgeSlots = {
33
+ /**
34
+ * The badge content.
35
+ */
36
+ default?(): any;
37
+ /**
38
+ * Used to pass an icon or (other element) into the badge. Positioning (whether this slot content is rendered before or after the badge content) is configured with the `iconBefore` prop.
39
+ */
40
+ icon?(): any;
41
+ };
@@ -9,3 +9,15 @@ export interface BreadcrumbItem {
9
9
  key?: string;
10
10
  maxWidth?: string;
11
11
  }
12
+ export interface BreadcrumbProps {
13
+ /**
14
+ * An array of breadcrumb items.
15
+ * @type {BreadcrumbItem[]}
16
+ */
17
+ items: BreadcrumbItem[];
18
+ /**
19
+ * Maximum width of each breadcrumb item for truncating to ellipsis.
20
+ * @default '100px'
21
+ */
22
+ itemMaxWidth?: string;
23
+ }
@@ -4,61 +4,4 @@ export declare enum EmptyStateIconVariants {
4
4
  Search = "search",
5
5
  Kong = "kong"
6
6
  }
7
- export interface EmptyStateProps {
8
- /**
9
- * The title of the empty state.
10
- * @default ''
11
- */
12
- title?: string;
13
- /**
14
- * The message of the empty state.
15
- * @default ''
16
- */
17
- message?: string;
18
- /**
19
- * When true, shows action button.
20
- * @default true
21
- */
22
- actionButtonVisible?: boolean;
23
- /**
24
- * Text within action button.
25
- * @default ''
26
- */
27
- actionButtonText?: string;
28
- /**
29
- * When true, disable the action button.
30
- * @default false
31
- */
32
- actionButtonDisabled?: boolean;
33
- /**
34
- * Type of the icon in empty state.
35
- * One of ['default', 'error', 'search', 'kong'].
36
- * @default 'default'
37
- */
38
- iconVariant?: EmptyStateIconVariant;
39
- }
40
- export interface EmptyStateEmits {
41
- /**
42
- * Emitted when dismiss button is clicked.
43
- */
44
- 'click-action': [];
45
- }
46
- export interface EmptyStateSlots {
47
- /**
48
- * Slot for empty state content.
49
- */
50
- default?(): any;
51
- /**
52
- * Slot for custom icon of the empty state.
53
- */
54
- icon?(): any;
55
- /**
56
- * Slot for custom title of the empty state.
57
- */
58
- title?(): any;
59
- /**
60
- * Slot for custom action area of the empty state.
61
- */
62
- action?(): any;
63
- }
64
7
  export type EmptyStateIconVariant = `${EmptyStateIconVariants}`;