@useinsider/ab-components 0.0.27 → 0.0.28
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 +1615 -703
- 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 +17 -182
- package/package.json +19 -16
package/dist/index.d.ts
CHANGED
|
@@ -1,180 +1,46 @@
|
|
|
1
|
-
import { AllowedComponentProps } from 'vue';
|
|
2
|
-
import { ComponentCustomProps } from 'vue';
|
|
3
|
-
import { ComponentOptionsBase } from 'vue';
|
|
4
1
|
import { ComponentOptionsMixin } from 'vue';
|
|
5
2
|
import { ComponentProvideOptions } from 'vue';
|
|
6
|
-
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
7
3
|
import { DefineComponent } from 'vue';
|
|
8
|
-
import {
|
|
9
|
-
import { GlobalDirectives } from 'vue';
|
|
4
|
+
import { Placement } from '@floating-ui/vue';
|
|
10
5
|
import { PublicProps } from 'vue';
|
|
11
|
-
import { StyleValue } from 'vue';
|
|
12
|
-
import { VNodeProps } from 'vue';
|
|
13
6
|
|
|
14
|
-
declare const __VLS_component: DefineComponent<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
absolutePositionStatus: boolean;
|
|
20
|
-
status: boolean;
|
|
21
|
-
iconName: IconNames;
|
|
22
|
-
absoluteTriangleAlignment: TriangleAlignment;
|
|
23
|
-
absoluteTrianglePosition: "top" | "bottom";
|
|
24
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
25
|
-
tooltipRootRef: HTMLDivElement;
|
|
26
|
-
tooltipIconRef: CreateComponentPublicInstanceWithMixins<Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
27
|
-
size: 16 | 24;
|
|
28
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, SVGSVGElement, ComponentProvideOptions, {
|
|
29
|
-
P: {};
|
|
30
|
-
B: {};
|
|
31
|
-
D: {};
|
|
32
|
-
C: {};
|
|
33
|
-
M: {};
|
|
34
|
-
Defaults: {};
|
|
35
|
-
}, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
36
|
-
size: 16 | 24;
|
|
37
|
-
}> | null;
|
|
38
|
-
tooltipPopupRef: HTMLDivElement;
|
|
39
|
-
}, HTMLDivElement>;
|
|
40
|
-
|
|
41
|
-
declare const __VLS_component_2: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
42
|
-
type: keyof typeof boxes;
|
|
43
|
-
borderTriangle: boolean;
|
|
44
|
-
boxSpacing: string;
|
|
45
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
8
|
+
tooltipRef: HTMLDivElement;
|
|
9
|
+
floatingArrowRef: HTMLDivElement;
|
|
10
|
+
triggerRef: HTMLDivElement;
|
|
11
|
+
}, any>;
|
|
46
12
|
|
|
47
13
|
declare type __VLS_Props = {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
14
|
+
id: string;
|
|
15
|
+
text: string;
|
|
16
|
+
placement?: Placement;
|
|
17
|
+
status?: boolean;
|
|
18
|
+
preventXss?: boolean;
|
|
19
|
+
iconName?: IconNames;
|
|
53
20
|
};
|
|
54
21
|
|
|
55
22
|
declare function __VLS_template(): {
|
|
56
23
|
attrs: Partial<{}>;
|
|
57
24
|
slots: {
|
|
58
|
-
triggerElement?(_: {}): any;
|
|
59
25
|
contentSlot?(_: {}): any;
|
|
26
|
+
default?(_: {}): any;
|
|
60
27
|
};
|
|
61
28
|
refs: {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, SVGSVGElement, ComponentProvideOptions, {
|
|
66
|
-
P: {};
|
|
67
|
-
B: {};
|
|
68
|
-
D: {};
|
|
69
|
-
C: {};
|
|
70
|
-
M: {};
|
|
71
|
-
Defaults: {};
|
|
72
|
-
}, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
73
|
-
size: 16 | 24;
|
|
74
|
-
}> | null;
|
|
75
|
-
tooltipPopupRef: HTMLDivElement;
|
|
76
|
-
};
|
|
77
|
-
rootEl: HTMLDivElement;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
declare function __VLS_template_2(): {
|
|
81
|
-
attrs: Partial<{}>;
|
|
82
|
-
slots: {
|
|
83
|
-
default?(_: {}): any;
|
|
84
|
-
front?(_: {}): any;
|
|
85
|
-
reverse?(_: {}): any;
|
|
29
|
+
tooltipRef: HTMLDivElement;
|
|
30
|
+
floatingArrowRef: HTMLDivElement;
|
|
31
|
+
triggerRef: HTMLDivElement;
|
|
86
32
|
};
|
|
87
|
-
|
|
88
|
-
rootEl: HTMLDivElement;
|
|
33
|
+
rootEl: any;
|
|
89
34
|
};
|
|
90
35
|
|
|
91
36
|
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
92
37
|
|
|
93
|
-
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
94
|
-
|
|
95
38
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
96
39
|
new (): {
|
|
97
40
|
$slots: S;
|
|
98
41
|
};
|
|
99
42
|
};
|
|
100
43
|
|
|
101
|
-
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
102
|
-
new (): {
|
|
103
|
-
$slots: S;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
export declare const Box: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
108
|
-
|
|
109
|
-
declare const boxes: {
|
|
110
|
-
readonly default: {
|
|
111
|
-
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<Props_3> & Readonly<{
|
|
112
|
-
onClick?: (() => any) | undefined;
|
|
113
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
114
|
-
click: () => any;
|
|
115
|
-
}, PublicProps, {
|
|
116
|
-
borderRadius: string;
|
|
117
|
-
borderTriangle: boolean;
|
|
118
|
-
borderTriangleAlign: "start" | "center" | "end";
|
|
119
|
-
borderTrianglePosition: "top" | "right" | "left" | "bottom";
|
|
120
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
121
|
-
P: {};
|
|
122
|
-
B: {};
|
|
123
|
-
D: {};
|
|
124
|
-
C: {};
|
|
125
|
-
M: {};
|
|
126
|
-
Defaults: {};
|
|
127
|
-
}, Readonly<Props_3> & Readonly<{
|
|
128
|
-
onClick?: (() => any) | undefined;
|
|
129
|
-
}>, {}, {}, {}, {}, {
|
|
130
|
-
borderRadius: string;
|
|
131
|
-
borderTriangle: boolean;
|
|
132
|
-
borderTriangleAlign: "start" | "center" | "end";
|
|
133
|
-
borderTrianglePosition: "top" | "right" | "left" | "bottom";
|
|
134
|
-
}>;
|
|
135
|
-
__isFragment?: never;
|
|
136
|
-
__isTeleport?: never;
|
|
137
|
-
__isSuspense?: never;
|
|
138
|
-
} & ComponentOptionsBase<Readonly<Props_3> & Readonly<{
|
|
139
|
-
onClick?: (() => any) | undefined;
|
|
140
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
141
|
-
click: () => any;
|
|
142
|
-
}, string, {
|
|
143
|
-
borderRadius: string;
|
|
144
|
-
borderTriangle: boolean;
|
|
145
|
-
borderTriangleAlign: "start" | "center" | "end";
|
|
146
|
-
borderTrianglePosition: "top" | "right" | "left" | "bottom";
|
|
147
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
148
|
-
$slots: {
|
|
149
|
-
default?(_: {}): any;
|
|
150
|
-
};
|
|
151
|
-
});
|
|
152
|
-
readonly flip: {
|
|
153
|
-
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<Props_4> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
154
|
-
boxSpacing: string;
|
|
155
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
156
|
-
P: {};
|
|
157
|
-
B: {};
|
|
158
|
-
D: {};
|
|
159
|
-
C: {};
|
|
160
|
-
M: {};
|
|
161
|
-
Defaults: {};
|
|
162
|
-
}, Readonly<Props_4> & Readonly<{}>, {}, {}, {}, {}, {
|
|
163
|
-
boxSpacing: string;
|
|
164
|
-
}>;
|
|
165
|
-
__isFragment?: never;
|
|
166
|
-
__isTeleport?: never;
|
|
167
|
-
__isSuspense?: never;
|
|
168
|
-
} & ComponentOptionsBase<Readonly<Props_4> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
169
|
-
boxSpacing: string;
|
|
170
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
171
|
-
$slots: {
|
|
172
|
-
front?(_: {}): any;
|
|
173
|
-
reverse?(_: {}): any;
|
|
174
|
-
};
|
|
175
|
-
});
|
|
176
|
-
};
|
|
177
|
-
|
|
178
44
|
export declare const Button: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
179
45
|
click: (event: MouseEvent) => any;
|
|
180
46
|
}, string, PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
@@ -318,18 +184,6 @@ declare interface Props_2 {
|
|
|
318
184
|
size?: 'default' | 'small';
|
|
319
185
|
}
|
|
320
186
|
|
|
321
|
-
declare interface Props_3 {
|
|
322
|
-
border?: string;
|
|
323
|
-
borderRadius?: string;
|
|
324
|
-
borderTriangle?: boolean;
|
|
325
|
-
borderTriangleAlign?: 'start' | 'center' | 'end';
|
|
326
|
-
borderTrianglePosition?: 'top' | 'right' | 'left' | 'bottom';
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
declare interface Props_4 {
|
|
330
|
-
boxSpacing?: string;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
187
|
export declare const SegmentButton: DefineComponent<SegmentButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
334
188
|
click: (value: string) => any;
|
|
335
189
|
"update:modelValue": (value: string) => any;
|
|
@@ -404,23 +258,4 @@ declare interface ToggleProps {
|
|
|
404
258
|
|
|
405
259
|
export declare const Tooltip: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
406
260
|
|
|
407
|
-
declare interface TooltipProps {
|
|
408
|
-
id: string;
|
|
409
|
-
text: string;
|
|
410
|
-
staticPosition?: ('top center' | 'top left' | 'top right' | 'bottom center' | 'bottom left' | 'bottom right' | 'right center' | 'right top' | 'right bottom' | 'left center' | 'left top' | 'left bottom');
|
|
411
|
-
dynamicPosition?: boolean;
|
|
412
|
-
absolutePositionStatus?: boolean;
|
|
413
|
-
offsetX?: number;
|
|
414
|
-
offsetY?: number;
|
|
415
|
-
maxHeight?: number;
|
|
416
|
-
status?: boolean;
|
|
417
|
-
preventXss?: boolean;
|
|
418
|
-
iconName?: IconNames;
|
|
419
|
-
absoluteTriangleAlignment?: TriangleAlignment;
|
|
420
|
-
absoluteTrianglePosition?: 'top' | 'bottom';
|
|
421
|
-
absolutePosition?: StyleValue;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
declare type TriangleAlignment = 'start' | 'center' | 'end' | 'top';
|
|
425
|
-
|
|
426
261
|
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/ab-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -49,18 +49,18 @@
|
|
|
49
49
|
"vue": "^3.5.13"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@chromatic-com/storybook": "
|
|
52
|
+
"@chromatic-com/storybook": "3.2.4",
|
|
53
53
|
"@cspell/eslint-plugin": "8.16.0",
|
|
54
54
|
"@eslint/eslintrc": "3.2.0",
|
|
55
55
|
"@eslint/js": "8.57.1",
|
|
56
|
-
"@storybook/addon-docs": "
|
|
57
|
-
"@storybook/addon-essentials": "
|
|
58
|
-
"@storybook/addon-interactions": "
|
|
59
|
-
"@storybook/addon-onboarding": "
|
|
60
|
-
"@storybook/blocks": "
|
|
61
|
-
"@storybook/test": "
|
|
62
|
-
"@storybook/vue3": "
|
|
63
|
-
"@storybook/vue3-vite": "
|
|
56
|
+
"@storybook/addon-docs": "8.5.6",
|
|
57
|
+
"@storybook/addon-essentials": "8.5.6",
|
|
58
|
+
"@storybook/addon-interactions": "8.5.6",
|
|
59
|
+
"@storybook/addon-onboarding": "8.5.6",
|
|
60
|
+
"@storybook/blocks": "8.5.6",
|
|
61
|
+
"@storybook/test": "8.5.6",
|
|
62
|
+
"@storybook/vue3": "8.5.6",
|
|
63
|
+
"@storybook/vue3-vite": "8.5.6",
|
|
64
64
|
"@stylistic/eslint-plugin": "2.10.1",
|
|
65
65
|
"@stylistic/eslint-plugin-migrate": "2.10.1",
|
|
66
66
|
"@tsconfig/node22": "^22.0.0",
|
|
@@ -93,16 +93,19 @@
|
|
|
93
93
|
"sass": "^1.83.1",
|
|
94
94
|
"sass-embedded": "^1.83.1",
|
|
95
95
|
"sass-loader": "^16.0.4",
|
|
96
|
-
"storybook": "
|
|
96
|
+
"storybook": "8.5.6",
|
|
97
97
|
"ts-deepmerge": "7.0.1",
|
|
98
98
|
"ts-node": "^10.9.2",
|
|
99
99
|
"typescript": "5.6.2",
|
|
100
100
|
"typescript-eslint": "8.14.0",
|
|
101
|
-
"vite": "
|
|
102
|
-
"vite-plugin-dts": "
|
|
103
|
-
"vite-plugin-vue-devtools": "
|
|
104
|
-
"vitest": "
|
|
101
|
+
"vite": "6.1.0",
|
|
102
|
+
"vite-plugin-dts": "4.5.0",
|
|
103
|
+
"vite-plugin-vue-devtools": "7.7.2",
|
|
104
|
+
"vitest": "3.0.5",
|
|
105
105
|
"vue-eslint-parser": "9.4.3",
|
|
106
|
-
"vue-tsc": "
|
|
106
|
+
"vue-tsc": "2.2.2"
|
|
107
|
+
},
|
|
108
|
+
"dependencies": {
|
|
109
|
+
"@floating-ui/vue": "^1.1.6"
|
|
107
110
|
}
|
|
108
111
|
}
|