@useinsider/ab-components 0.0.29 → 0.0.31
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 +1 -1
- package/dist/ab-components.cjs.js.map +1 -1
- package/dist/ab-components.css +1 -1
- package/dist/ab-components.es.js +745 -658
- package/dist/ab-components.es.js.map +1 -1
- package/dist/ab-components.iife.js +1 -1
- package/dist/ab-components.iife.js.map +1 -1
- package/dist/ab-components.umd.js +1 -1
- package/dist/ab-components.umd.js.map +1 -1
- package/dist/index.d.ts +38 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,16 @@ floatingArrowRef: HTMLDivElement;
|
|
|
10
10
|
triggerRef: HTMLDivElement;
|
|
11
11
|
}, any>;
|
|
12
12
|
|
|
13
|
+
declare const __VLS_component_2: DefineComponent<ModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
14
|
+
close: () => any;
|
|
15
|
+
submit: () => any;
|
|
16
|
+
}, string, PublicProps, Readonly<ModalProps> & Readonly<{
|
|
17
|
+
onClose?: (() => any) | undefined;
|
|
18
|
+
onSubmit?: (() => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
hasOverlay: boolean;
|
|
21
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
|
|
13
23
|
declare type __VLS_Props = {
|
|
14
24
|
id: string;
|
|
15
25
|
text: string;
|
|
@@ -33,14 +43,31 @@ declare function __VLS_template(): {
|
|
|
33
43
|
rootEl: any;
|
|
34
44
|
};
|
|
35
45
|
|
|
46
|
+
declare function __VLS_template_2(): {
|
|
47
|
+
attrs: Partial<{}>;
|
|
48
|
+
slots: {
|
|
49
|
+
section?(_: {}): any;
|
|
50
|
+
};
|
|
51
|
+
refs: {};
|
|
52
|
+
rootEl: any;
|
|
53
|
+
};
|
|
54
|
+
|
|
36
55
|
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
37
56
|
|
|
57
|
+
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
58
|
+
|
|
38
59
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
39
60
|
new (): {
|
|
40
61
|
$slots: S;
|
|
41
62
|
};
|
|
42
63
|
};
|
|
43
64
|
|
|
65
|
+
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
66
|
+
new (): {
|
|
67
|
+
$slots: S;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
|
|
44
71
|
export declare const Button: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
45
72
|
click: (event: MouseEvent) => any;
|
|
46
73
|
}, string, PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
@@ -121,6 +148,17 @@ declare interface MenuItem {
|
|
|
121
148
|
value: string;
|
|
122
149
|
}
|
|
123
150
|
|
|
151
|
+
export declare const Modal: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
152
|
+
|
|
153
|
+
declare interface ModalProps {
|
|
154
|
+
title: string;
|
|
155
|
+
isOpen: boolean;
|
|
156
|
+
size: 'small' | 'medium';
|
|
157
|
+
cancelText: string;
|
|
158
|
+
submitText: string;
|
|
159
|
+
hasOverlay?: boolean;
|
|
160
|
+
}
|
|
161
|
+
|
|
124
162
|
export declare const NumberInput: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
125
163
|
input: (event: Event) => any;
|
|
126
164
|
blur: (event: FocusEvent) => any;
|