@useinsider/ab-components 0.0.43 → 0.0.46
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.
- package/dist/ab-components.cjs.js +17 -1
- package/dist/ab-components.cjs.js.map +1 -1
- package/dist/ab-components.css +1 -1
- package/dist/ab-components.es.js +2447 -1349
- package/dist/ab-components.es.js.map +1 -1
- package/dist/ab-components.iife.js +17 -1
- package/dist/ab-components.iife.js.map +1 -1
- package/dist/ab-components.umd.js +17 -1
- package/dist/ab-components.umd.js.map +1 -1
- package/dist/icons.svg +44 -0
- package/dist/index.d.ts +445 -19
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { ComponentProvideOptions } from 'vue';
|
|
|
3
3
|
import { DefineComponent } from 'vue';
|
|
4
4
|
import { Placement } from '@floating-ui/vue';
|
|
5
5
|
import { PublicProps } from 'vue';
|
|
6
|
+
import { Ref } from 'vue';
|
|
6
7
|
|
|
7
8
|
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
8
9
|
tooltipRef: HTMLDivElement;
|
|
@@ -11,11 +12,11 @@ triggerRef: HTMLDivElement;
|
|
|
11
12
|
}, any>;
|
|
12
13
|
|
|
13
14
|
declare const __VLS_component_2: DefineComponent<ModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
14
|
-
close: () => any;
|
|
15
15
|
submit: () => any;
|
|
16
|
+
close: () => any;
|
|
16
17
|
}, string, PublicProps, Readonly<ModalProps> & Readonly<{
|
|
17
|
-
onClose?: (() => any) | undefined;
|
|
18
18
|
onSubmit?: (() => any) | undefined;
|
|
19
|
+
onClose?: (() => any) | undefined;
|
|
19
20
|
}>, {
|
|
20
21
|
hasOverlay: boolean;
|
|
21
22
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -31,6 +32,139 @@ descriptionText: string;
|
|
|
31
32
|
fullWidthContentStatus: boolean;
|
|
32
33
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
33
34
|
|
|
35
|
+
declare const __VLS_component_4: DefineComponent<InBasicTextInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
36
|
+
click: (event: MouseEvent) => any;
|
|
37
|
+
input: (value: string | number) => any;
|
|
38
|
+
blur: (event: FocusEvent) => any;
|
|
39
|
+
change: (value: string | number) => any;
|
|
40
|
+
focus: (event: FocusEvent) => any;
|
|
41
|
+
keypress: (event: KeyboardEvent) => any;
|
|
42
|
+
keyup: (event: KeyboardEvent) => any;
|
|
43
|
+
paste: (event: ClipboardEvent) => any;
|
|
44
|
+
"update:modelValue": (value: string | number) => any;
|
|
45
|
+
leftIconClick: (event: MouseEvent) => any;
|
|
46
|
+
rightIconClick: (event: MouseEvent) => any;
|
|
47
|
+
}, string, PublicProps, Readonly<InBasicTextInputProps> & Readonly<{
|
|
48
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
49
|
+
onInput?: ((value: string | number) => any) | undefined;
|
|
50
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
51
|
+
onChange?: ((value: string | number) => any) | undefined;
|
|
52
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
53
|
+
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
54
|
+
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
55
|
+
onPaste?: ((event: ClipboardEvent) => any) | undefined;
|
|
56
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
57
|
+
onLeftIconClick?: ((event: MouseEvent) => any) | undefined;
|
|
58
|
+
onRightIconClick?: ((event: MouseEvent) => any) | undefined;
|
|
59
|
+
}>, {
|
|
60
|
+
leftIconName: IconNames;
|
|
61
|
+
rightIconName: IconNames;
|
|
62
|
+
type: "text" | "number";
|
|
63
|
+
modelValue: string | number;
|
|
64
|
+
preventXss: boolean;
|
|
65
|
+
theme: "grey" | "white";
|
|
66
|
+
labelStatus: boolean;
|
|
67
|
+
labelText: string;
|
|
68
|
+
states: "default" | "error" | "warning";
|
|
69
|
+
disabledStatus: boolean;
|
|
70
|
+
readonly: boolean;
|
|
71
|
+
leftIconStatus: boolean;
|
|
72
|
+
rightIconStatus: boolean;
|
|
73
|
+
suffixTextStatus: boolean;
|
|
74
|
+
suffixText: string;
|
|
75
|
+
autoComplete: string;
|
|
76
|
+
maxCharacterLength: number | string;
|
|
77
|
+
minValue: number | string;
|
|
78
|
+
maxValue: number | string;
|
|
79
|
+
autoFocus: boolean;
|
|
80
|
+
allowDecimal: boolean;
|
|
81
|
+
allowComma: boolean;
|
|
82
|
+
helperMessageStatus: boolean;
|
|
83
|
+
helperMessage: string;
|
|
84
|
+
stateMessage: string;
|
|
85
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
86
|
+
componentRoot: HTMLFieldSetElement;
|
|
87
|
+
textInput: HTMLInputElement;
|
|
88
|
+
}, HTMLFieldSetElement>;
|
|
89
|
+
|
|
90
|
+
declare const __VLS_component_5: DefineComponent<InDropdownMenuProps, {
|
|
91
|
+
isOpen: Ref<boolean, boolean>;
|
|
92
|
+
toggleMenu: () => void;
|
|
93
|
+
closeMenu: () => void;
|
|
94
|
+
selectedItem: Ref< {
|
|
95
|
+
text: string;
|
|
96
|
+
value: string;
|
|
97
|
+
} | null, MenuItem | {
|
|
98
|
+
text: string;
|
|
99
|
+
value: string;
|
|
100
|
+
} | null>;
|
|
101
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
102
|
+
"update:modelValue": (value: string) => any;
|
|
103
|
+
"add-error": (error: string) => any;
|
|
104
|
+
"item-added": (item: MenuItem) => any;
|
|
105
|
+
"select-item": (item: MenuItem) => any;
|
|
106
|
+
}, string, PublicProps, Readonly<InDropdownMenuProps> & Readonly<{
|
|
107
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
108
|
+
"onAdd-error"?: ((error: string) => any) | undefined;
|
|
109
|
+
"onItem-added"?: ((item: MenuItem) => any) | undefined;
|
|
110
|
+
"onSelect-item"?: ((item: MenuItem) => any) | undefined;
|
|
111
|
+
}>, {
|
|
112
|
+
modelValue: string;
|
|
113
|
+
menuHeight: number;
|
|
114
|
+
addable: boolean;
|
|
115
|
+
addButtonText: string;
|
|
116
|
+
searchable: boolean;
|
|
117
|
+
validateAddItem: (item: string, items: MenuItem[]) => string | null;
|
|
118
|
+
searchPlaceholder: string;
|
|
119
|
+
showSelectedIcon: boolean;
|
|
120
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
121
|
+
|
|
122
|
+
declare const __VLS_component_6: DefineComponent<PopoverProps, {
|
|
123
|
+
isOpen: Ref<boolean, boolean>;
|
|
124
|
+
toggle: () => void;
|
|
125
|
+
close: () => void;
|
|
126
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
127
|
+
close: () => any;
|
|
128
|
+
"update:modelValue": (value: boolean) => any;
|
|
129
|
+
open: () => any;
|
|
130
|
+
}, string, PublicProps, Readonly<PopoverProps> & Readonly<{
|
|
131
|
+
onClose?: (() => any) | undefined;
|
|
132
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
133
|
+
onOpen?: (() => any) | undefined;
|
|
134
|
+
}>, {
|
|
135
|
+
modelValue: boolean;
|
|
136
|
+
align: "left" | "center" | "right";
|
|
137
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
138
|
+
popoverRef: HTMLDivElement;
|
|
139
|
+
contentRef: HTMLDivElement;
|
|
140
|
+
}, HTMLDivElement>;
|
|
141
|
+
|
|
142
|
+
declare const __VLS_component_7: DefineComponent<InBoxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<InBoxProps> & Readonly<{}>, {
|
|
143
|
+
border: string;
|
|
144
|
+
borderRadius: string;
|
|
145
|
+
borderTriangle: boolean;
|
|
146
|
+
borderTrianglePosition: string;
|
|
147
|
+
borderTriangleAlign: string;
|
|
148
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
149
|
+
|
|
150
|
+
declare const __VLS_component_8: DefineComponent<ColorPickerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
151
|
+
close: () => any;
|
|
152
|
+
"color-change": (color: string) => any;
|
|
153
|
+
}, string, PublicProps, Readonly<ColorPickerProps> & Readonly<{
|
|
154
|
+
onClose?: (() => any) | undefined;
|
|
155
|
+
"onColor-change"?: ((color: string) => any) | undefined;
|
|
156
|
+
}>, {
|
|
157
|
+
color: string;
|
|
158
|
+
title: string;
|
|
159
|
+
showSaveButton: boolean;
|
|
160
|
+
presetColors: string[];
|
|
161
|
+
showOpacityInHex: boolean;
|
|
162
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
163
|
+
colorPickerRef: HTMLDivElement;
|
|
164
|
+
hueSliderRef: HTMLDivElement;
|
|
165
|
+
opacitySliderRef: HTMLDivElement;
|
|
166
|
+
}, HTMLDivElement>;
|
|
167
|
+
|
|
34
168
|
declare type __VLS_Props = {
|
|
35
169
|
id: string;
|
|
36
170
|
text: string;
|
|
@@ -72,12 +206,92 @@ declare function __VLS_template_3(): {
|
|
|
72
206
|
rootEl: HTMLDivElement;
|
|
73
207
|
};
|
|
74
208
|
|
|
209
|
+
declare function __VLS_template_4(): {
|
|
210
|
+
attrs: Partial<{}>;
|
|
211
|
+
slots: {
|
|
212
|
+
leftSlot?(_: {}): any;
|
|
213
|
+
rightSlot?(_: {}): any;
|
|
214
|
+
};
|
|
215
|
+
refs: {
|
|
216
|
+
componentRoot: HTMLFieldSetElement;
|
|
217
|
+
textInput: HTMLInputElement;
|
|
218
|
+
};
|
|
219
|
+
rootEl: HTMLFieldSetElement;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
declare function __VLS_template_5(): {
|
|
223
|
+
attrs: Partial<{}>;
|
|
224
|
+
slots: {
|
|
225
|
+
trigger?(_: {
|
|
226
|
+
isOpen: boolean;
|
|
227
|
+
toggle: () => void;
|
|
228
|
+
}): any;
|
|
229
|
+
item?(_: {
|
|
230
|
+
item: {
|
|
231
|
+
text: string;
|
|
232
|
+
value: string;
|
|
233
|
+
};
|
|
234
|
+
isSelected: boolean;
|
|
235
|
+
}): any;
|
|
236
|
+
};
|
|
237
|
+
refs: {};
|
|
238
|
+
rootEl: HTMLDivElement;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
declare function __VLS_template_6(): {
|
|
242
|
+
attrs: Partial<{}>;
|
|
243
|
+
slots: {
|
|
244
|
+
trigger?(_: {
|
|
245
|
+
isOpen: boolean;
|
|
246
|
+
toggle: () => void;
|
|
247
|
+
}): any;
|
|
248
|
+
default?(_: {}): any;
|
|
249
|
+
};
|
|
250
|
+
refs: {
|
|
251
|
+
popoverRef: HTMLDivElement;
|
|
252
|
+
contentRef: HTMLDivElement;
|
|
253
|
+
};
|
|
254
|
+
rootEl: HTMLDivElement;
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
declare function __VLS_template_7(): {
|
|
258
|
+
attrs: Partial<{}>;
|
|
259
|
+
slots: {
|
|
260
|
+
default?(_: {}): any;
|
|
261
|
+
};
|
|
262
|
+
refs: {};
|
|
263
|
+
rootEl: HTMLDivElement;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
declare function __VLS_template_8(): {
|
|
267
|
+
attrs: Partial<{}>;
|
|
268
|
+
slots: {
|
|
269
|
+
tabs?(_: {}): any;
|
|
270
|
+
};
|
|
271
|
+
refs: {
|
|
272
|
+
colorPickerRef: HTMLDivElement;
|
|
273
|
+
hueSliderRef: HTMLDivElement;
|
|
274
|
+
opacitySliderRef: HTMLDivElement;
|
|
275
|
+
};
|
|
276
|
+
rootEl: HTMLDivElement;
|
|
277
|
+
};
|
|
278
|
+
|
|
75
279
|
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
76
280
|
|
|
77
281
|
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
78
282
|
|
|
79
283
|
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
80
284
|
|
|
285
|
+
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
286
|
+
|
|
287
|
+
declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
|
|
288
|
+
|
|
289
|
+
declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
|
|
290
|
+
|
|
291
|
+
declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
|
|
292
|
+
|
|
293
|
+
declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
|
|
294
|
+
|
|
81
295
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
82
296
|
new (): {
|
|
83
297
|
$slots: S;
|
|
@@ -96,45 +310,105 @@ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
|
96
310
|
};
|
|
97
311
|
};
|
|
98
312
|
|
|
313
|
+
declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
314
|
+
new (): {
|
|
315
|
+
$slots: S;
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
declare type __VLS_WithTemplateSlots_5<T, S> = T & {
|
|
320
|
+
new (): {
|
|
321
|
+
$slots: S;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
declare type __VLS_WithTemplateSlots_6<T, S> = T & {
|
|
326
|
+
new (): {
|
|
327
|
+
$slots: S;
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
declare type __VLS_WithTemplateSlots_7<T, S> = T & {
|
|
332
|
+
new (): {
|
|
333
|
+
$slots: S;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
declare type __VLS_WithTemplateSlots_8<T, S> = T & {
|
|
338
|
+
new (): {
|
|
339
|
+
$slots: S;
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
declare type AllIconNames = IconNames | CustomIconNames;
|
|
344
|
+
|
|
99
345
|
export declare const Button: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
100
346
|
click: (event: MouseEvent) => any;
|
|
101
347
|
}, string, PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
102
348
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
103
349
|
}>, {
|
|
104
350
|
size: "default" | "small";
|
|
351
|
+
iconSize: 16 | 24;
|
|
105
352
|
loadingStatus: boolean;
|
|
106
353
|
successStatus: boolean;
|
|
107
354
|
disabled: boolean;
|
|
108
355
|
fill: boolean;
|
|
356
|
+
selected: boolean;
|
|
109
357
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
110
358
|
|
|
111
359
|
declare interface ButtonProps {
|
|
112
360
|
variant: 'solid' | 'ghost' | 'text' | 'outline';
|
|
113
|
-
color: 'primary' | 'subtle-primary' | 'secondary' | 'danger' | 'warning' | 'smart';
|
|
361
|
+
color: 'primary' | 'subtle-primary' | 'secondary' | 'neutral' | 'danger' | 'warning' | 'smart';
|
|
114
362
|
size?: 'default' | 'small';
|
|
115
363
|
leftIconName?: IconNames;
|
|
116
364
|
rightIconName?: IconNames;
|
|
365
|
+
iconSize?: 16 | 24;
|
|
117
366
|
loadingStatus?: boolean;
|
|
118
367
|
successStatus?: boolean;
|
|
119
368
|
label?: string;
|
|
120
369
|
disabled?: boolean;
|
|
121
370
|
fill?: boolean;
|
|
371
|
+
selected?: boolean;
|
|
372
|
+
customClass?: string;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
export declare const ColorPicker: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
|
|
376
|
+
|
|
377
|
+
declare interface ColorPickerProps {
|
|
378
|
+
color?: string;
|
|
379
|
+
title?: string;
|
|
380
|
+
showSaveButton?: boolean;
|
|
381
|
+
presetColors?: string[];
|
|
382
|
+
showOpacityInHex?: boolean;
|
|
122
383
|
}
|
|
123
384
|
|
|
385
|
+
declare type CustomIconNames = keyof typeof customIconObjects;
|
|
386
|
+
|
|
387
|
+
declare const customIconObjects: {
|
|
388
|
+
readonly 'mixed-text-color-settings': {
|
|
389
|
+
readonly viewBox: "0 0 24 24";
|
|
390
|
+
readonly content: "\n <path d=\"M20 18H4C2.9 18 2 18.9 2 20C2 21.1 2.9 22 4 22H20C21.1 22 22 21.1 22 20C22 18.9 21.1 18 20 18Z\" fill=\"url(#pattern0_5043_65214)\"/>\n <path d=\"M11.9997 2C12.3784 2 12.7248 2.21401 12.8942 2.55273L18.8942 14.5527C19.1412 15.0467 18.9409 15.6475 18.447 15.8945C17.953 16.1414 17.3521 15.9412 17.1052 15.4473L15.3815 12H8.61785L6.89422 15.4473C6.6472 15.9412 6.04637 16.1415 5.55242 15.8945C5.05863 15.6475 4.85828 15.0466 5.10516 14.5527L11.1052 2.55273L11.1764 2.43164C11.3613 2.16374 11.6683 2.00009 11.9997 2ZM9.61785 10H14.3815L11.9997 5.23633L9.61785 10Z\" fill=\"#495366\"/>\n <defs>\n <pattern id=\"pattern0_5043_65214\" patternContentUnits=\"objectBoundingBox\" width=\"1\" height=\"1\">\n <use xlink:href=\"#image0_5043_65214\" transform=\"matrix(0.05 0 0 0.25 0 -0.25)\"/>\n </pattern>\n <image id=\"image0_5043_65214\" width=\"20\" height=\"6\" preserveAspectRatio=\"none\" xlink:href=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAGCAYAAADDl76dAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADOSURBVHgBrZFLagJBFEXP608K8zGdBGeBBJJpCIS4kEBmWVPWEAi4CRciTh04EBE/TdMqbZVX2qkg4oUzeXXrVnGfBSPQAt5FW3yIN/EMw9TozGL+eg364yd4/Nb8B/wr/A/gt8vFKOcr/aTdemGdGxGxLj+IpmiIlFoVhJDg/CVZfIclGUQyBJ35vTdz3Jjj+jbC3Qdc0yvwkIyTFHFmHRl4/HeTXVdMxFwUYk3dk54yq1hawXTjCdWVuis19HV+KdNkRRFKFrl86n63lC1PDzizA2gvbQAAAABJRU5ErkJggg==\"/>\n </defs>";
|
|
391
|
+
};
|
|
392
|
+
readonly 'mixed-fill-color-settings': {
|
|
393
|
+
readonly viewBox: "0 0 24 24";
|
|
394
|
+
readonly content: "\n <path d=\"M19 2.5C20.3807 2.5 21.5 3.61929 21.5 5V19C21.5 20.3807 20.3807 21.5 19 21.5H5C3.61929 21.5 2.5 20.3807 2.5 19V5C2.5 3.61929 3.61929 2.5 5 2.5H19Z\" fill=\"url(#pattern0_5681_20639)\" stroke=\"#E1E1E1\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <defs>\n <pattern id=\"pattern0_5681_20639\" patternContentUnits=\"objectBoundingBox\" width=\"1\" height=\"1\">\n <use xlink:href=\"#image0_5681_20639\" transform=\"scale(0.0416667)\"/>\n </pattern>\n <image id=\"image0_5681_20639\" width=\"24\" height=\"24\" preserveAspectRatio=\"none\" xlink:href=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAATmSURBVHgBTZYJct02EEQHC8mvb9mVVDlJVXKC3CD3v0oqXrQvfyMJYPIalFyWi4a4oKenpzGj8M/f7q25BQ+WrdkQol3Hap/5/Xd3+602++yr/dJm+2Rn25dX2/uNjfWb7dp/NpZ/Wb9YbneW/ADOah6KmYHJ/7kUN/0E7laPPHZbWrCZ11pXr7bwrPGv1pUvL9Z8AehkoR0sA5rbyaLuIcALsAQdzGOD9E8/4JvirS1a4cPCvbJrBFGAwGVeLLYLOGdLBjABFdRC7YzZ2oO8s84o0+Xx/rz1j1CpZ6R8AjfR3/e8BYFZdO/f61kTeAymEFGbkVjfAEB27ExcPTBX4sMQiyWYJ2kI+/z2e0/7PVWeeGexkRCGWDh7Q/KNYUaiMsAqRtXERjamVG3ifuSDtC7AqPhkUSMG4C5kgHUNAAxIOPBsgD2xskA37VNWMPa2D9FqaBs34oz8NsAq1Qo4gF1zveI7mSBSNgJ5HKnNaJ5ZCZgVfAClExbbnr7l9Vc2DUhCmlsx0VG2pdrhKEKRIICWZlpQH9YZM2DquCPQFWaYLGdw0DEImCA2aS1I9EcxH0kpbrUo5FqwcT2xosIC6Joo5MyGmrv+iAhrmA+DlZQsJ4IOCYnIc3CrO7JntYkaLH8WG6ZoMyCx8YCDtQB2PuLqK7Pjzm1/aLa7kOUKEQLIKSXpQmOAFZco1B3dd60H8Wnp2eT1L+sSKb2I7oHDlU/U4dRsvHZW2BxI61SsFU4pNbF4oU4na5mDlY4YgzUv3X2SJXLBlABREnm30w8Trki1Z98FtsiUzoCfITDP1uqMKw+46dE+pAcC3VmMDwC/sPnAbg4fQWLQ2djOS14/A8CNnNRa7xcWrij1guRLtXqh8Ng1rDMKvNjO7+yj3VKKrxC6IcA9wK+9baSydDOQaneeKGf/VLqHk3oNmc28CBRHPaMiSShba5gA+OQPOO0GN31lx3e23/LuAUvT5AD3ebG4oAJxfN3WbOhcW1XTAVQ2JLMdoNgpIMlIY1vswKtH7HjDy6/9ivE7+t4T4Bnm9KIZMtQtnCnwMfbOoH6aw6TCcQHoY0VjpKqOUgsv1VOPfPwC4K2N8Rt+p00TaLQ7SvfCNZsvMBfwsF2mdoNp/EyR83SGPEBDe+uSsGgrhWRTPHfdh/RI+yBA+mL7qAC3trNnmyi41TP10iGEb1KbkI3V7GK3bp7GV+qCWE1958I128CaccQOO472xPrIdW/7/N124YaLgGSV5BoVFhd6TL2jtt5toT9w+LB73ud7ILGghkY4I8vJBieIEyQekeWVxvdkU3jagsQnguIYKhPb1qbVnhLdwBkGft17tDWM0jikeT/c44wTLwWI8ZsAFyQ64RxOeXoBHJmQJBMsI5sKn/Ge2kvIMoROM+eGU9xS6P53MsgTAXYcmEK6hQCaTmIteUYYjqmwIkM4bNML8Gg6sTID7MPaD6fT4iPtvVG/qLlAf3I1RyZsvqJoM4UMUeYlbQZ2RrIoz+qEBI1D3snUKl6Q67ZJJrdo6Gi6uSbclPswW6vaxUThqcE17Gd/tlPUQF9/jEHNXo/qTaUfezXyPpl9m7VNPuzzjecCEh0oN023lLcDRXfNHwG+wLL6q21jZxuBYkmjYPj3vyf6Wni+eawpH5zE1AsbqaJCt20yqqWHRK9vH+x//WrzK98GywMAAAAASUVORK5CYII=\"/>\n </defs>";
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
|
|
124
398
|
export declare const DropdownMenu: DefineComponent<DropdownProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
125
399
|
"update:modelValue": (value: string) => any;
|
|
126
400
|
"add-error": (error: string) => any;
|
|
127
|
-
"item-added": (item:
|
|
128
|
-
"select-item": (item:
|
|
401
|
+
"item-added": (item: MenuItem_2) => any;
|
|
402
|
+
"select-item": (item: MenuItem_2) => any;
|
|
129
403
|
}, string, PublicProps, Readonly<DropdownProps> & Readonly<{
|
|
130
404
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
131
405
|
"onAdd-error"?: ((error: string) => any) | undefined;
|
|
132
|
-
"onItem-added"?: ((item:
|
|
133
|
-
"onSelect-item"?: ((item:
|
|
406
|
+
"onItem-added"?: ((item: MenuItem_2) => any) | undefined;
|
|
407
|
+
"onSelect-item"?: ((item: MenuItem_2) => any) | undefined;
|
|
134
408
|
}>, {
|
|
135
409
|
modelValue: string;
|
|
136
410
|
menuHeight: number;
|
|
137
|
-
validateAddItem: (item: string, items:
|
|
411
|
+
validateAddItem: (item: string, items: MenuItem_2[]) => string | null;
|
|
138
412
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
139
413
|
dropdownRef: HTMLDivElement;
|
|
140
414
|
menuRef: HTMLDivElement;
|
|
@@ -150,27 +424,84 @@ declare interface DropdownProps {
|
|
|
150
424
|
addButtonText?: string;
|
|
151
425
|
searchable?: boolean;
|
|
152
426
|
searchPlaceHolder?: string;
|
|
153
|
-
items:
|
|
154
|
-
validateAddItem?: (item: string, items:
|
|
427
|
+
items: MenuItem_2[];
|
|
428
|
+
validateAddItem?: (item: string, items: MenuItem_2[]) => string | null;
|
|
155
429
|
}
|
|
156
430
|
|
|
157
431
|
export declare const Icon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconProps> & Readonly<{}>, {
|
|
158
|
-
size:
|
|
159
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
432
|
+
size: number | string;
|
|
433
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
160
434
|
|
|
161
435
|
/**
|
|
162
436
|
* Automatically generated icon types.
|
|
163
437
|
*
|
|
164
438
|
* NOTE: This file was auto-generated from 'icons.svg'
|
|
165
439
|
*/
|
|
166
|
-
export declare type IconNames = 'icon-info-box-error' | 'icon-tooltip-info' | 'filled-info-circle' | '
|
|
440
|
+
export declare type IconNames = 'icon-info-box-error' | 'icon-tooltip-info' | 'filled-info-circle' | 'filled-caution-circle' | 'filled-caution-triangle' | 'filled-caution-triangle-colored' | 'filled-error-box-colored' | 'line-plus-netural' | 'line-close-netural' | 'no-color' | 'line-search' | 'filled-dropdown-down' | 'filled-text-bold' | 'filled-text-italic' | 'filled-text-underline' | 'filled-text-strikethrough' | 'line-caution-triangle' | 'filled-error-box' | 'filled-info-circle' | 'line-check-natural' | 'loading-circle' | 'icon-smart' | 'line-reset' | 'line-arrow-left' | 'line-academy-02' | 'line-undo' | 'line-redo' | 'line-ai-message-reply-plus' | 'line-architect-segments-closed' | 'line-ai-send-icon' | 'line-smart-sirius-ai' | 'line-smart-ai' | 'line-minus-netural' | 'line-check-netural' | 'filled-caution-triangle' | 'line-tooltip' | 'gamification-icon' | 'popup-icon';
|
|
167
441
|
|
|
168
442
|
declare interface IconProps {
|
|
169
|
-
name:
|
|
170
|
-
size?:
|
|
443
|
+
name: AllIconNames;
|
|
444
|
+
size?: number | string;
|
|
171
445
|
color?: string;
|
|
172
446
|
}
|
|
173
447
|
|
|
448
|
+
export declare const InBasicTextInput: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
449
|
+
|
|
450
|
+
declare interface InBasicTextInputProps {
|
|
451
|
+
id: string;
|
|
452
|
+
name: string;
|
|
453
|
+
theme?: "grey" | "white";
|
|
454
|
+
modelValue?: string | number;
|
|
455
|
+
labelStatus?: boolean;
|
|
456
|
+
labelText?: string;
|
|
457
|
+
type?: "text" | "number";
|
|
458
|
+
states?: "default" | "error" | "warning";
|
|
459
|
+
placeholderText: string;
|
|
460
|
+
disabledStatus?: boolean;
|
|
461
|
+
readonly?: boolean;
|
|
462
|
+
leftIconStatus?: boolean;
|
|
463
|
+
leftIconName?: IconNames;
|
|
464
|
+
rightIconStatus?: boolean;
|
|
465
|
+
rightIconName?: IconNames;
|
|
466
|
+
suffixTextStatus?: boolean;
|
|
467
|
+
suffixText?: string;
|
|
468
|
+
autoComplete?: string;
|
|
469
|
+
maxCharacterLength?: number | string;
|
|
470
|
+
minValue?: number | string;
|
|
471
|
+
maxValue?: number | string;
|
|
472
|
+
autoFocus?: boolean;
|
|
473
|
+
allowDecimal?: boolean;
|
|
474
|
+
allowComma?: boolean;
|
|
475
|
+
preventXss?: boolean;
|
|
476
|
+
helperMessageStatus?: boolean;
|
|
477
|
+
helperMessage?: string;
|
|
478
|
+
stateMessage?: string;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
export declare const InBox: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
482
|
+
|
|
483
|
+
declare interface InBoxProps {
|
|
484
|
+
border?: string;
|
|
485
|
+
borderRadius?: string;
|
|
486
|
+
borderTriangle?: boolean;
|
|
487
|
+
borderTrianglePosition?: string;
|
|
488
|
+
borderTriangleAlign?: string;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
export declare const InDropdownMenu: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
492
|
+
|
|
493
|
+
declare interface InDropdownMenuProps {
|
|
494
|
+
modelValue?: string;
|
|
495
|
+
items: MenuItem[];
|
|
496
|
+
menuHeight?: number;
|
|
497
|
+
searchable?: boolean;
|
|
498
|
+
searchPlaceholder?: string;
|
|
499
|
+
addable?: boolean;
|
|
500
|
+
addButtonText?: string;
|
|
501
|
+
validateAddItem?: (item: string, items: MenuItem[]) => string | null;
|
|
502
|
+
showSelectedIcon?: boolean;
|
|
503
|
+
}
|
|
504
|
+
|
|
174
505
|
export declare const InInfoBox: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
175
506
|
|
|
176
507
|
export declare interface InInfoBoxProps {
|
|
@@ -185,8 +516,62 @@ export declare interface InInfoBoxProps {
|
|
|
185
516
|
fullWidthContentStatus?: boolean;
|
|
186
517
|
}
|
|
187
518
|
|
|
188
|
-
export declare const
|
|
519
|
+
export declare const InputButton: DefineComponent<InputButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
520
|
+
click: (event: MouseEvent) => any;
|
|
521
|
+
"input-change": (value: string) => any;
|
|
522
|
+
}, string, PublicProps, Readonly<InputButtonProps> & Readonly<{
|
|
523
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
524
|
+
"onInput-change"?: ((value: string) => any) | undefined;
|
|
525
|
+
}>, {
|
|
526
|
+
size: "default" | "small";
|
|
527
|
+
iconSize: 16 | 24;
|
|
528
|
+
loadingStatus: boolean;
|
|
529
|
+
successStatus: boolean;
|
|
530
|
+
disabled: boolean;
|
|
531
|
+
fill: boolean;
|
|
532
|
+
inputValue: string;
|
|
533
|
+
inputPlaceholder: string;
|
|
534
|
+
inputType: "text" | "number";
|
|
535
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
536
|
+
|
|
537
|
+
declare interface InputButtonProps {
|
|
538
|
+
variant: 'solid' | 'ghost' | 'text' | 'outline';
|
|
539
|
+
color: 'primary' | 'subtle-primary' | 'secondary' | 'neutral' | 'danger' | 'warning' | 'smart';
|
|
540
|
+
size?: 'default' | 'small';
|
|
541
|
+
rightIconName?: IconNames;
|
|
542
|
+
iconSize?: 16 | 24;
|
|
543
|
+
loadingStatus?: boolean;
|
|
544
|
+
successStatus?: boolean;
|
|
545
|
+
disabled?: boolean;
|
|
546
|
+
fill?: boolean;
|
|
547
|
+
customClass?: string;
|
|
548
|
+
inputValue?: string;
|
|
549
|
+
inputPlaceholder?: string;
|
|
550
|
+
inputType?: 'text' | 'number';
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
export declare const InTabs: DefineComponent<InTabsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
554
|
+
change: (value: string) => any;
|
|
555
|
+
"update:modelValue": (value: string) => any;
|
|
556
|
+
}, string, PublicProps, Readonly<InTabsProps> & Readonly<{
|
|
557
|
+
onChange?: ((value: string) => any) | undefined;
|
|
558
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
559
|
+
}>, {
|
|
560
|
+
disabled: boolean;
|
|
561
|
+
modelValue: string;
|
|
562
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
563
|
+
|
|
564
|
+
declare interface InTabsProps {
|
|
565
|
+
tabs: TabItem[];
|
|
566
|
+
modelValue?: string;
|
|
567
|
+
disabled?: boolean;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
export declare const InTextArea: DefineComponent<InTextAreaProps, {
|
|
571
|
+
textareaRef: Ref<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
572
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
189
573
|
click: (event: MouseEvent) => any;
|
|
574
|
+
blur: (event: FocusEvent) => any;
|
|
190
575
|
cut: (event: ClipboardEvent) => any;
|
|
191
576
|
keypress: (event: KeyboardEvent) => any;
|
|
192
577
|
keyup: (event: KeyboardEvent) => any;
|
|
@@ -194,6 +579,7 @@ paste: (event: ClipboardEvent) => any;
|
|
|
194
579
|
"update:modelValue": (value: string) => any;
|
|
195
580
|
}, string, PublicProps, Readonly<InTextAreaProps> & Readonly<{
|
|
196
581
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
582
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
197
583
|
onCut?: ((event: ClipboardEvent) => any) | undefined;
|
|
198
584
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
199
585
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
@@ -202,6 +588,7 @@ onPaste?: ((event: ClipboardEvent) => any) | undefined;
|
|
|
202
588
|
}>, {
|
|
203
589
|
label: string;
|
|
204
590
|
disabled: boolean;
|
|
591
|
+
type: "default" | "smart";
|
|
205
592
|
invalid: boolean;
|
|
206
593
|
preventXss: boolean;
|
|
207
594
|
theme: "grey" | "white";
|
|
@@ -223,12 +610,38 @@ export declare interface InTextAreaProps {
|
|
|
223
610
|
invalid?: boolean;
|
|
224
611
|
invalidMessage?: string;
|
|
225
612
|
theme?: 'grey' | 'white';
|
|
613
|
+
type?: 'default' | 'smart';
|
|
226
614
|
rowLength?: number;
|
|
227
615
|
preventXss?: boolean;
|
|
228
616
|
maxLength?: number;
|
|
229
617
|
}
|
|
230
618
|
|
|
231
|
-
declare
|
|
619
|
+
export declare const InToggle: DefineComponent<InToggleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
620
|
+
click: (checked: boolean) => any;
|
|
621
|
+
"update:modelValue": (value: boolean) => any;
|
|
622
|
+
}, string, PublicProps, Readonly<InToggleProps> & Readonly<{
|
|
623
|
+
onClick?: ((checked: boolean) => any) | undefined;
|
|
624
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
625
|
+
}>, {
|
|
626
|
+
disabled: boolean;
|
|
627
|
+
checked: boolean;
|
|
628
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
629
|
+
inputRef: HTMLInputElement;
|
|
630
|
+
}, HTMLFieldSetElement>;
|
|
631
|
+
|
|
632
|
+
declare interface InToggleProps {
|
|
633
|
+
id: string;
|
|
634
|
+
name: string;
|
|
635
|
+
checked?: boolean;
|
|
636
|
+
disabled?: boolean;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
export declare interface MenuItem {
|
|
640
|
+
text: string;
|
|
641
|
+
value: string;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
declare interface MenuItem_2 {
|
|
232
645
|
text: string;
|
|
233
646
|
value: string;
|
|
234
647
|
}
|
|
@@ -261,9 +674,9 @@ onPaste?: ((event: ClipboardEvent) => any) | undefined;
|
|
|
261
674
|
}>, {
|
|
262
675
|
size: "default" | "small";
|
|
263
676
|
label: string;
|
|
677
|
+
placeholder: string;
|
|
264
678
|
error: string;
|
|
265
679
|
modelValue: number;
|
|
266
|
-
placeholder: string;
|
|
267
680
|
maxLength: number;
|
|
268
681
|
min: number;
|
|
269
682
|
max: number;
|
|
@@ -278,6 +691,13 @@ declare interface OnPageMessageProps {
|
|
|
278
691
|
text: string;
|
|
279
692
|
}
|
|
280
693
|
|
|
694
|
+
export declare const Popover: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
695
|
+
|
|
696
|
+
declare interface PopoverProps {
|
|
697
|
+
modelValue?: boolean;
|
|
698
|
+
align?: 'left' | 'center' | 'right';
|
|
699
|
+
}
|
|
700
|
+
|
|
281
701
|
declare interface Props {
|
|
282
702
|
id: string;
|
|
283
703
|
name: string;
|
|
@@ -336,6 +756,12 @@ declare interface SegmentType {
|
|
|
336
756
|
icon?: IconNames;
|
|
337
757
|
}
|
|
338
758
|
|
|
759
|
+
export declare interface TabItem {
|
|
760
|
+
value: string;
|
|
761
|
+
label: string;
|
|
762
|
+
disabled?: boolean;
|
|
763
|
+
}
|
|
764
|
+
|
|
339
765
|
export declare const TextInput: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
340
766
|
input: (event: Event) => any;
|
|
341
767
|
blur: (event: FocusEvent) => any;
|
|
@@ -352,9 +778,9 @@ onPaste?: ((event: ClipboardEvent) => any) | undefined;
|
|
|
352
778
|
"onUpdate:modelValue"?: ((args_0: string | undefined) => any) | undefined;
|
|
353
779
|
}>, {
|
|
354
780
|
label: string;
|
|
781
|
+
placeholder: string;
|
|
355
782
|
error: string;
|
|
356
783
|
modelValue: string;
|
|
357
|
-
placeholder: string;
|
|
358
784
|
maxHeight: number;
|
|
359
785
|
maxLength: number;
|
|
360
786
|
multiline: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/ab-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.46",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
"test:unit": "vitest",
|
|
30
30
|
"build-only": "vite build",
|
|
31
31
|
"type-check": "vue-tsc --build",
|
|
32
|
+
"pack:move": "npm pack --pack-destination ../design-editor",
|
|
33
|
+
"publish:def": "npm run build && npm run pack:move && cd ../design-editor && npm i ./useinsider-ab-components-0.0.45.tgz && npm run dev",
|
|
32
34
|
"lint": "eslint . --fix",
|
|
33
35
|
"storybook": "storybook dev -p 6006",
|
|
34
36
|
"build-storybook": "storybook build"
|