@destyler/tooltip 0.0.6 → 0.0.7-beta.2
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/index.cjs +494 -25
- package/dist/index.d.cts +146 -5
- package/dist/index.d.mts +146 -5
- package/dist/index.d.ts +146 -5
- package/dist/index.mjs +490 -10
- package/package.json +11 -21
- package/README.md +0 -7
- package/dist/component.cjs +0 -669
- package/dist/component.d.cts +0 -770
- package/dist/component.d.mts +0 -770
- package/dist/component.d.ts +0 -770
- package/dist/component.mjs +0 -650
- package/dist/resolver.cjs +0 -25
- package/dist/resolver.d.cts +0 -6
- package/dist/resolver.d.mts +0 -6
- package/dist/resolver.d.ts +0 -6
- package/dist/resolver.mjs +0 -22
- package/dist/shared/tooltip.6a045e60.d.cts +0 -1047
- package/dist/shared/tooltip.6a045e60.d.mts +0 -1047
- package/dist/shared/tooltip.6a045e60.d.ts +0 -1047
package/dist/component.d.mts
DELETED
|
@@ -1,770 +0,0 @@
|
|
|
1
|
-
import { T as TooltipContext } from './shared/tooltip.6a045e60.mjs';
|
|
2
|
-
export { a as TooltipArrow, b as TooltipArrowProps, c as TooltipContent, f as TooltipContentProps, g as TooltipPortal, i as TooltipPortalProps, j as TooltipProvider, l as TooltipProviderProps, m as TooltipRoot, p as TooltipRootProps, q as TooltipTrigger, s as TooltipTriggerProps, t as tooltipArrowProps, d as tooltipContentEmits, e as tooltipContentProps, h as tooltipPortalProps, k as tooltipProviderProps, o as tooltipRootEmits, n as tooltipRootProps, r as tooltipTriggerProps } from './shared/tooltip.6a045e60.mjs';
|
|
3
|
-
import * as _vue_shared from '@vue/shared';
|
|
4
|
-
import * as _destyler_primitive from '@destyler/primitive';
|
|
5
|
-
import * as vue from 'vue';
|
|
6
|
-
import { PropType } from 'vue';
|
|
7
|
-
import { ExtractPublicPropTypes } from '@destyler/shared';
|
|
8
|
-
|
|
9
|
-
declare const TooltipContentHoverable: vue.DefineComponent<{
|
|
10
|
-
readonly side: {
|
|
11
|
-
readonly default: "top";
|
|
12
|
-
readonly type: vue.PropType<"top" | "right" | "bottom" | "left">;
|
|
13
|
-
readonly required: false;
|
|
14
|
-
};
|
|
15
|
-
readonly sideOffset: {
|
|
16
|
-
readonly type: vue.PropType<number>;
|
|
17
|
-
readonly required: false;
|
|
18
|
-
readonly default: 0;
|
|
19
|
-
};
|
|
20
|
-
readonly align: {
|
|
21
|
-
readonly type: vue.PropType<"start" | "center" | "end">;
|
|
22
|
-
readonly required: false;
|
|
23
|
-
readonly default: "center";
|
|
24
|
-
};
|
|
25
|
-
readonly alignOffset: {
|
|
26
|
-
readonly type: vue.PropType<number>;
|
|
27
|
-
readonly required: false;
|
|
28
|
-
readonly default: 0;
|
|
29
|
-
};
|
|
30
|
-
readonly avoidCollisions: {
|
|
31
|
-
readonly type: vue.PropType<boolean>;
|
|
32
|
-
readonly required: false;
|
|
33
|
-
readonly default: true;
|
|
34
|
-
};
|
|
35
|
-
readonly collisionBoundary: {
|
|
36
|
-
readonly type: vue.PropType<Element | (Element | null)[] | null>;
|
|
37
|
-
readonly required: false;
|
|
38
|
-
readonly default: () => never[];
|
|
39
|
-
};
|
|
40
|
-
readonly collisionPadding: {
|
|
41
|
-
readonly type: vue.PropType<number | Partial<Record<"top" | "right" | "bottom" | "left", number>>>;
|
|
42
|
-
readonly required: false;
|
|
43
|
-
readonly default: 0;
|
|
44
|
-
};
|
|
45
|
-
readonly arrowPadding: {
|
|
46
|
-
readonly type: vue.PropType<number>;
|
|
47
|
-
readonly required: false;
|
|
48
|
-
readonly default: 0;
|
|
49
|
-
};
|
|
50
|
-
readonly sticky: {
|
|
51
|
-
readonly type: vue.PropType<"partial" | "always">;
|
|
52
|
-
readonly required: false;
|
|
53
|
-
readonly default: "partial";
|
|
54
|
-
};
|
|
55
|
-
readonly hideWhenDetached: {
|
|
56
|
-
readonly type: vue.PropType<boolean>;
|
|
57
|
-
readonly required: false;
|
|
58
|
-
readonly default: false;
|
|
59
|
-
};
|
|
60
|
-
readonly ariaLabel: {
|
|
61
|
-
readonly type: vue.PropType<string>;
|
|
62
|
-
readonly required: false;
|
|
63
|
-
};
|
|
64
|
-
readonly as: {
|
|
65
|
-
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
66
|
-
readonly required: false;
|
|
67
|
-
readonly default: "div";
|
|
68
|
-
};
|
|
69
|
-
readonly asChild: {
|
|
70
|
-
readonly type: vue.PropType<boolean>;
|
|
71
|
-
readonly required: false;
|
|
72
|
-
readonly default: false;
|
|
73
|
-
};
|
|
74
|
-
}, {
|
|
75
|
-
forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
|
|
76
|
-
forwardedProps: vue.ComputedRef<{
|
|
77
|
-
readonly as: vue.FunctionalComponent<any, {}, any, {}> | {
|
|
78
|
-
new (...args: any[]): any;
|
|
79
|
-
__isFragment?: undefined;
|
|
80
|
-
__isTeleport?: undefined;
|
|
81
|
-
__isSuspense?: undefined;
|
|
82
|
-
} | _destyler_primitive.AsTag | {
|
|
83
|
-
[x: string]: any;
|
|
84
|
-
setup?: ((this: void, props: _vue_shared.LooseRequired<any>, ctx: {
|
|
85
|
-
attrs: {
|
|
86
|
-
[x: string]: unknown;
|
|
87
|
-
};
|
|
88
|
-
slots: Readonly<{
|
|
89
|
-
[name: string]: vue.Slot<any> | undefined;
|
|
90
|
-
}>;
|
|
91
|
-
emit: ((event: unknown, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
|
|
92
|
-
expose: (exposed?: Record<string, any> | undefined) => void;
|
|
93
|
-
}) => any) | undefined;
|
|
94
|
-
name?: string | undefined;
|
|
95
|
-
template?: string | object | undefined;
|
|
96
|
-
render?: Function | undefined;
|
|
97
|
-
components?: Record<string, vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any>> | undefined;
|
|
98
|
-
directives?: Record<string, vue.Directive<any, any>> | undefined;
|
|
99
|
-
inheritAttrs?: boolean | undefined;
|
|
100
|
-
emits?: any;
|
|
101
|
-
slots?: {} | undefined;
|
|
102
|
-
expose?: string[] | undefined;
|
|
103
|
-
serverPrefetch?: (() => void | Promise<any>) | undefined;
|
|
104
|
-
compilerOptions?: {
|
|
105
|
-
isCustomElement?: ((tag: string) => boolean) | undefined;
|
|
106
|
-
whitespace?: "preserve" | "condense" | undefined;
|
|
107
|
-
comments?: boolean | undefined;
|
|
108
|
-
delimiters?: [string, string] | undefined;
|
|
109
|
-
} | undefined;
|
|
110
|
-
call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
|
|
111
|
-
__isFragment?: undefined;
|
|
112
|
-
__isTeleport?: undefined;
|
|
113
|
-
__isSuspense?: undefined;
|
|
114
|
-
__defaults?: any;
|
|
115
|
-
compatConfig?: {
|
|
116
|
-
GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
|
|
117
|
-
GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
|
|
118
|
-
GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
|
|
119
|
-
GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
|
|
120
|
-
GLOBAL_SET?: boolean | "suppress-warning" | undefined;
|
|
121
|
-
GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
|
|
122
|
-
GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
|
|
123
|
-
GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
|
|
124
|
-
CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
|
|
125
|
-
CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
|
|
126
|
-
CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
|
|
127
|
-
CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
|
|
128
|
-
CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
|
|
129
|
-
CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
|
|
130
|
-
CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
|
|
131
|
-
INSTANCE_SET?: boolean | "suppress-warning" | undefined;
|
|
132
|
-
INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
|
|
133
|
-
INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
134
|
-
INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
|
|
135
|
-
INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
|
|
136
|
-
INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
|
|
137
|
-
INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
|
|
138
|
-
INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
|
|
139
|
-
INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
|
|
140
|
-
OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
|
|
141
|
-
OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
|
|
142
|
-
OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
143
|
-
OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
|
|
144
|
-
WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
|
|
145
|
-
PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
|
|
146
|
-
V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
|
|
147
|
-
CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
|
|
148
|
-
ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
|
|
149
|
-
ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
|
|
150
|
-
TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
|
|
151
|
-
TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
|
|
152
|
-
COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
|
|
153
|
-
COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
|
|
154
|
-
COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
|
|
155
|
-
RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
|
|
156
|
-
FILTERS?: boolean | "suppress-warning" | undefined;
|
|
157
|
-
PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
|
|
158
|
-
MODE?: 2 | 3 | ((comp: vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | null) => 2 | 3) | undefined;
|
|
159
|
-
} | undefined;
|
|
160
|
-
data?: ((this: any, vm: any) => any) | undefined;
|
|
161
|
-
computed?: vue.ComputedOptions | undefined;
|
|
162
|
-
methods?: vue.MethodOptions | undefined;
|
|
163
|
-
watch?: {
|
|
164
|
-
[x: string]: (string | vue.WatchCallback<any, any> | ({
|
|
165
|
-
handler: string | vue.WatchCallback<any, any>;
|
|
166
|
-
} & vue.WatchOptions<boolean>)) | (string | vue.WatchCallback<any, any> | ({
|
|
167
|
-
handler: string | vue.WatchCallback<any, any>;
|
|
168
|
-
} & vue.WatchOptions<boolean>))[];
|
|
169
|
-
} | undefined;
|
|
170
|
-
provide?: vue.ComponentProvideOptions | undefined;
|
|
171
|
-
inject?: {} | string[] | undefined;
|
|
172
|
-
filters?: Record<string, Function> | undefined;
|
|
173
|
-
mixins?: any[] | undefined;
|
|
174
|
-
extends?: any;
|
|
175
|
-
beforeCreate?: (() => void) | undefined;
|
|
176
|
-
created?: (() => void) | undefined;
|
|
177
|
-
beforeMount?: (() => void) | undefined;
|
|
178
|
-
mounted?: (() => void) | undefined;
|
|
179
|
-
beforeUpdate?: (() => void) | undefined;
|
|
180
|
-
updated?: (() => void) | undefined;
|
|
181
|
-
activated?: (() => void) | undefined;
|
|
182
|
-
deactivated?: (() => void) | undefined;
|
|
183
|
-
beforeDestroy?: (() => void) | undefined;
|
|
184
|
-
beforeUnmount?: (() => void) | undefined;
|
|
185
|
-
destroyed?: (() => void) | undefined;
|
|
186
|
-
unmounted?: (() => void) | undefined;
|
|
187
|
-
renderTracked?: ((e: vue.DebuggerEvent) => void) | undefined;
|
|
188
|
-
renderTriggered?: ((e: vue.DebuggerEvent) => void) | undefined;
|
|
189
|
-
errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | undefined;
|
|
190
|
-
delimiters?: [string, string] | undefined;
|
|
191
|
-
__differentiator?: string | number | symbol | undefined;
|
|
192
|
-
__isBuiltIn?: boolean | undefined;
|
|
193
|
-
__file?: string | undefined;
|
|
194
|
-
__name?: string | undefined;
|
|
195
|
-
};
|
|
196
|
-
readonly asChild: boolean;
|
|
197
|
-
readonly side: "top" | "right" | "bottom" | "left";
|
|
198
|
-
readonly sideOffset: number;
|
|
199
|
-
readonly align: "start" | "center" | "end";
|
|
200
|
-
readonly alignOffset: number;
|
|
201
|
-
readonly avoidCollisions: boolean;
|
|
202
|
-
readonly collisionBoundary: Element | (Element | null)[] | null;
|
|
203
|
-
readonly collisionPadding: number | {
|
|
204
|
-
top?: number | undefined;
|
|
205
|
-
right?: number | undefined;
|
|
206
|
-
bottom?: number | undefined;
|
|
207
|
-
left?: number | undefined;
|
|
208
|
-
};
|
|
209
|
-
readonly arrowPadding: number;
|
|
210
|
-
readonly sticky: "partial" | "always";
|
|
211
|
-
readonly hideWhenDetached: boolean;
|
|
212
|
-
readonly ariaLabel: string | undefined;
|
|
213
|
-
}>;
|
|
214
|
-
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
215
|
-
readonly side: {
|
|
216
|
-
readonly default: "top";
|
|
217
|
-
readonly type: vue.PropType<"top" | "right" | "bottom" | "left">;
|
|
218
|
-
readonly required: false;
|
|
219
|
-
};
|
|
220
|
-
readonly sideOffset: {
|
|
221
|
-
readonly type: vue.PropType<number>;
|
|
222
|
-
readonly required: false;
|
|
223
|
-
readonly default: 0;
|
|
224
|
-
};
|
|
225
|
-
readonly align: {
|
|
226
|
-
readonly type: vue.PropType<"start" | "center" | "end">;
|
|
227
|
-
readonly required: false;
|
|
228
|
-
readonly default: "center";
|
|
229
|
-
};
|
|
230
|
-
readonly alignOffset: {
|
|
231
|
-
readonly type: vue.PropType<number>;
|
|
232
|
-
readonly required: false;
|
|
233
|
-
readonly default: 0;
|
|
234
|
-
};
|
|
235
|
-
readonly avoidCollisions: {
|
|
236
|
-
readonly type: vue.PropType<boolean>;
|
|
237
|
-
readonly required: false;
|
|
238
|
-
readonly default: true;
|
|
239
|
-
};
|
|
240
|
-
readonly collisionBoundary: {
|
|
241
|
-
readonly type: vue.PropType<Element | (Element | null)[] | null>;
|
|
242
|
-
readonly required: false;
|
|
243
|
-
readonly default: () => never[];
|
|
244
|
-
};
|
|
245
|
-
readonly collisionPadding: {
|
|
246
|
-
readonly type: vue.PropType<number | Partial<Record<"top" | "right" | "bottom" | "left", number>>>;
|
|
247
|
-
readonly required: false;
|
|
248
|
-
readonly default: 0;
|
|
249
|
-
};
|
|
250
|
-
readonly arrowPadding: {
|
|
251
|
-
readonly type: vue.PropType<number>;
|
|
252
|
-
readonly required: false;
|
|
253
|
-
readonly default: 0;
|
|
254
|
-
};
|
|
255
|
-
readonly sticky: {
|
|
256
|
-
readonly type: vue.PropType<"partial" | "always">;
|
|
257
|
-
readonly required: false;
|
|
258
|
-
readonly default: "partial";
|
|
259
|
-
};
|
|
260
|
-
readonly hideWhenDetached: {
|
|
261
|
-
readonly type: vue.PropType<boolean>;
|
|
262
|
-
readonly required: false;
|
|
263
|
-
readonly default: false;
|
|
264
|
-
};
|
|
265
|
-
readonly ariaLabel: {
|
|
266
|
-
readonly type: vue.PropType<string>;
|
|
267
|
-
readonly required: false;
|
|
268
|
-
};
|
|
269
|
-
readonly as: {
|
|
270
|
-
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
271
|
-
readonly required: false;
|
|
272
|
-
readonly default: "div";
|
|
273
|
-
};
|
|
274
|
-
readonly asChild: {
|
|
275
|
-
readonly type: vue.PropType<boolean>;
|
|
276
|
-
readonly required: false;
|
|
277
|
-
readonly default: false;
|
|
278
|
-
};
|
|
279
|
-
}>>, {
|
|
280
|
-
readonly as: _destyler_primitive.AsTag | vue.Component;
|
|
281
|
-
readonly asChild: boolean;
|
|
282
|
-
readonly side: "top" | "right" | "bottom" | "left";
|
|
283
|
-
readonly sideOffset: number;
|
|
284
|
-
readonly align: "start" | "center" | "end";
|
|
285
|
-
readonly alignOffset: number;
|
|
286
|
-
readonly avoidCollisions: boolean;
|
|
287
|
-
readonly collisionBoundary: Element | (Element | null)[] | null;
|
|
288
|
-
readonly collisionPadding: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
|
|
289
|
-
readonly arrowPadding: number;
|
|
290
|
-
readonly sticky: "partial" | "always";
|
|
291
|
-
readonly hideWhenDetached: boolean;
|
|
292
|
-
}, {}>;
|
|
293
|
-
|
|
294
|
-
declare const tooltipContentImplProps: {
|
|
295
|
-
/**
|
|
296
|
-
* The preferred side of the trigger to render against when open.
|
|
297
|
-
* Will be reversed when collisions occur and avoidCollisions
|
|
298
|
-
* is enabled.
|
|
299
|
-
*
|
|
300
|
-
* @default top
|
|
301
|
-
*/
|
|
302
|
-
readonly side: {
|
|
303
|
-
readonly default: "top";
|
|
304
|
-
readonly type: PropType<"top" | "right" | "bottom" | "left">;
|
|
305
|
-
readonly required: false;
|
|
306
|
-
};
|
|
307
|
-
/**
|
|
308
|
-
* The distance in pixels from the trigger.
|
|
309
|
-
*
|
|
310
|
-
* @default 0
|
|
311
|
-
*/
|
|
312
|
-
readonly sideOffset: {
|
|
313
|
-
readonly type: PropType<number>;
|
|
314
|
-
readonly required: false;
|
|
315
|
-
readonly default: 0;
|
|
316
|
-
};
|
|
317
|
-
/**
|
|
318
|
-
* The preferred alignment against the trigger.
|
|
319
|
-
* May change when collisions occur.
|
|
320
|
-
*
|
|
321
|
-
* @default center
|
|
322
|
-
*/
|
|
323
|
-
readonly align: {
|
|
324
|
-
readonly type: PropType<"start" | "center" | "end">;
|
|
325
|
-
readonly required: false;
|
|
326
|
-
readonly default: "center";
|
|
327
|
-
};
|
|
328
|
-
/**
|
|
329
|
-
* An offset in pixels from the `start` or `end` alignment options.
|
|
330
|
-
*
|
|
331
|
-
* @default 0
|
|
332
|
-
*/
|
|
333
|
-
readonly alignOffset: {
|
|
334
|
-
readonly type: PropType<number>;
|
|
335
|
-
readonly required: false;
|
|
336
|
-
readonly default: 0;
|
|
337
|
-
};
|
|
338
|
-
/**
|
|
339
|
-
* When `true`, overrides the side andalign preferences
|
|
340
|
-
* to prevent collisions with boundary edges.
|
|
341
|
-
*
|
|
342
|
-
* @default true
|
|
343
|
-
*/
|
|
344
|
-
readonly avoidCollisions: {
|
|
345
|
-
readonly type: PropType<boolean>;
|
|
346
|
-
readonly required: false;
|
|
347
|
-
readonly default: true;
|
|
348
|
-
};
|
|
349
|
-
/**
|
|
350
|
-
* The element used as the collision boundary. By default
|
|
351
|
-
* this is the viewport, though you can provide additional
|
|
352
|
-
* element(s) to be included in this check.
|
|
353
|
-
*
|
|
354
|
-
* @default () => []
|
|
355
|
-
*/
|
|
356
|
-
readonly collisionBoundary: {
|
|
357
|
-
readonly type: PropType<Element | (Element | null)[] | null>;
|
|
358
|
-
readonly required: false;
|
|
359
|
-
readonly default: () => never[];
|
|
360
|
-
};
|
|
361
|
-
/**
|
|
362
|
-
* The distance in pixels from the boundary edges where collision
|
|
363
|
-
* detection should occur. Accepts a number (same for all sides),
|
|
364
|
-
* or a partial padding object, for example: { top: 20, left: 20 }.
|
|
365
|
-
*
|
|
366
|
-
* @default 0
|
|
367
|
-
*/
|
|
368
|
-
readonly collisionPadding: {
|
|
369
|
-
readonly type: PropType<number | Partial<Record<"top" | "right" | "bottom" | "left", number>>>;
|
|
370
|
-
readonly required: false;
|
|
371
|
-
readonly default: 0;
|
|
372
|
-
};
|
|
373
|
-
/**
|
|
374
|
-
* The distance in pixels from the boundary edges where collision
|
|
375
|
-
* detection should occur. Accepts a number (same for all sides),
|
|
376
|
-
* or a partial padding object, for example: { top: 20, left: 20 }.
|
|
377
|
-
*
|
|
378
|
-
* @default 0
|
|
379
|
-
*/
|
|
380
|
-
readonly arrowPadding: {
|
|
381
|
-
readonly type: PropType<number>;
|
|
382
|
-
readonly required: false;
|
|
383
|
-
readonly default: 0;
|
|
384
|
-
};
|
|
385
|
-
/**
|
|
386
|
-
* The sticky behavior on the align axis. `partial` will keep the
|
|
387
|
-
* content in the boundary as long as the trigger is at least partially
|
|
388
|
-
* in the boundary whilst "always" will keep the content in the boundary
|
|
389
|
-
* regardless.
|
|
390
|
-
*
|
|
391
|
-
* @default partial
|
|
392
|
-
*/
|
|
393
|
-
readonly sticky: {
|
|
394
|
-
readonly type: PropType<"partial" | "always">;
|
|
395
|
-
readonly required: false;
|
|
396
|
-
readonly default: "partial";
|
|
397
|
-
};
|
|
398
|
-
/**
|
|
399
|
-
* Whether to hide the content when the trigger becomes fully occluded.
|
|
400
|
-
*
|
|
401
|
-
* @default false
|
|
402
|
-
*/
|
|
403
|
-
readonly hideWhenDetached: {
|
|
404
|
-
readonly type: PropType<boolean>;
|
|
405
|
-
readonly required: false;
|
|
406
|
-
readonly default: false;
|
|
407
|
-
};
|
|
408
|
-
/**
|
|
409
|
-
* By default, screenreaders will announce the content inside
|
|
410
|
-
* the component. If this is not descriptive enough, or you have
|
|
411
|
-
* content that cannot be announced, use aria-label as a more
|
|
412
|
-
* descriptive label.
|
|
413
|
-
*
|
|
414
|
-
*/
|
|
415
|
-
readonly ariaLabel: {
|
|
416
|
-
readonly type: PropType<string>;
|
|
417
|
-
readonly required: false;
|
|
418
|
-
};
|
|
419
|
-
readonly as: {
|
|
420
|
-
readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
421
|
-
readonly required: false;
|
|
422
|
-
readonly default: "div";
|
|
423
|
-
};
|
|
424
|
-
readonly asChild: {
|
|
425
|
-
readonly type: PropType<boolean>;
|
|
426
|
-
readonly required: false;
|
|
427
|
-
readonly default: false; /**
|
|
428
|
-
* The distance in pixels from the trigger.
|
|
429
|
-
*
|
|
430
|
-
* @default 0
|
|
431
|
-
*/
|
|
432
|
-
};
|
|
433
|
-
};
|
|
434
|
-
type TooltipContentImplProps = ExtractPublicPropTypes<typeof tooltipContentImplProps>;
|
|
435
|
-
declare const tooltipContentImplEmits: {
|
|
436
|
-
/**
|
|
437
|
-
* Event handler called when focus moves to the destructive action after opening. It can be prevented by calling `event.preventDefault`
|
|
438
|
-
*/
|
|
439
|
-
escapeKeyDown: (_event: KeyboardEvent) => boolean;
|
|
440
|
-
/**
|
|
441
|
-
* Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling `event.preventDefault`.
|
|
442
|
-
*/
|
|
443
|
-
pointerDownOutside: (_event: Event) => boolean;
|
|
444
|
-
};
|
|
445
|
-
declare const TooltipContentImpl: vue.DefineComponent<{
|
|
446
|
-
/**
|
|
447
|
-
* The preferred side of the trigger to render against when open.
|
|
448
|
-
* Will be reversed when collisions occur and avoidCollisions
|
|
449
|
-
* is enabled.
|
|
450
|
-
*
|
|
451
|
-
* @default top
|
|
452
|
-
*/
|
|
453
|
-
readonly side: {
|
|
454
|
-
readonly default: "top";
|
|
455
|
-
readonly type: PropType<"top" | "right" | "bottom" | "left">;
|
|
456
|
-
readonly required: false;
|
|
457
|
-
};
|
|
458
|
-
/**
|
|
459
|
-
* The distance in pixels from the trigger.
|
|
460
|
-
*
|
|
461
|
-
* @default 0
|
|
462
|
-
*/
|
|
463
|
-
readonly sideOffset: {
|
|
464
|
-
readonly type: PropType<number>;
|
|
465
|
-
readonly required: false;
|
|
466
|
-
readonly default: 0;
|
|
467
|
-
};
|
|
468
|
-
/**
|
|
469
|
-
* The preferred alignment against the trigger.
|
|
470
|
-
* May change when collisions occur.
|
|
471
|
-
*
|
|
472
|
-
* @default center
|
|
473
|
-
*/
|
|
474
|
-
readonly align: {
|
|
475
|
-
readonly type: PropType<"start" | "center" | "end">;
|
|
476
|
-
readonly required: false;
|
|
477
|
-
readonly default: "center";
|
|
478
|
-
};
|
|
479
|
-
/**
|
|
480
|
-
* An offset in pixels from the `start` or `end` alignment options.
|
|
481
|
-
*
|
|
482
|
-
* @default 0
|
|
483
|
-
*/
|
|
484
|
-
readonly alignOffset: {
|
|
485
|
-
readonly type: PropType<number>;
|
|
486
|
-
readonly required: false;
|
|
487
|
-
readonly default: 0;
|
|
488
|
-
};
|
|
489
|
-
/**
|
|
490
|
-
* When `true`, overrides the side andalign preferences
|
|
491
|
-
* to prevent collisions with boundary edges.
|
|
492
|
-
*
|
|
493
|
-
* @default true
|
|
494
|
-
*/
|
|
495
|
-
readonly avoidCollisions: {
|
|
496
|
-
readonly type: PropType<boolean>;
|
|
497
|
-
readonly required: false;
|
|
498
|
-
readonly default: true;
|
|
499
|
-
};
|
|
500
|
-
/**
|
|
501
|
-
* The element used as the collision boundary. By default
|
|
502
|
-
* this is the viewport, though you can provide additional
|
|
503
|
-
* element(s) to be included in this check.
|
|
504
|
-
*
|
|
505
|
-
* @default () => []
|
|
506
|
-
*/
|
|
507
|
-
readonly collisionBoundary: {
|
|
508
|
-
readonly type: PropType<Element | (Element | null)[] | null>;
|
|
509
|
-
readonly required: false;
|
|
510
|
-
readonly default: () => never[];
|
|
511
|
-
};
|
|
512
|
-
/**
|
|
513
|
-
* The distance in pixels from the boundary edges where collision
|
|
514
|
-
* detection should occur. Accepts a number (same for all sides),
|
|
515
|
-
* or a partial padding object, for example: { top: 20, left: 20 }.
|
|
516
|
-
*
|
|
517
|
-
* @default 0
|
|
518
|
-
*/
|
|
519
|
-
readonly collisionPadding: {
|
|
520
|
-
readonly type: PropType<number | Partial<Record<"top" | "right" | "bottom" | "left", number>>>;
|
|
521
|
-
readonly required: false;
|
|
522
|
-
readonly default: 0;
|
|
523
|
-
};
|
|
524
|
-
/**
|
|
525
|
-
* The distance in pixels from the boundary edges where collision
|
|
526
|
-
* detection should occur. Accepts a number (same for all sides),
|
|
527
|
-
* or a partial padding object, for example: { top: 20, left: 20 }.
|
|
528
|
-
*
|
|
529
|
-
* @default 0
|
|
530
|
-
*/
|
|
531
|
-
readonly arrowPadding: {
|
|
532
|
-
readonly type: PropType<number>;
|
|
533
|
-
readonly required: false;
|
|
534
|
-
readonly default: 0;
|
|
535
|
-
};
|
|
536
|
-
/**
|
|
537
|
-
* The sticky behavior on the align axis. `partial` will keep the
|
|
538
|
-
* content in the boundary as long as the trigger is at least partially
|
|
539
|
-
* in the boundary whilst "always" will keep the content in the boundary
|
|
540
|
-
* regardless.
|
|
541
|
-
*
|
|
542
|
-
* @default partial
|
|
543
|
-
*/
|
|
544
|
-
readonly sticky: {
|
|
545
|
-
readonly type: PropType<"partial" | "always">;
|
|
546
|
-
readonly required: false;
|
|
547
|
-
readonly default: "partial";
|
|
548
|
-
};
|
|
549
|
-
/**
|
|
550
|
-
* Whether to hide the content when the trigger becomes fully occluded.
|
|
551
|
-
*
|
|
552
|
-
* @default false
|
|
553
|
-
*/
|
|
554
|
-
readonly hideWhenDetached: {
|
|
555
|
-
readonly type: PropType<boolean>;
|
|
556
|
-
readonly required: false;
|
|
557
|
-
readonly default: false;
|
|
558
|
-
};
|
|
559
|
-
/**
|
|
560
|
-
* By default, screenreaders will announce the content inside
|
|
561
|
-
* the component. If this is not descriptive enough, or you have
|
|
562
|
-
* content that cannot be announced, use aria-label as a more
|
|
563
|
-
* descriptive label.
|
|
564
|
-
*
|
|
565
|
-
*/
|
|
566
|
-
readonly ariaLabel: {
|
|
567
|
-
readonly type: PropType<string>;
|
|
568
|
-
readonly required: false;
|
|
569
|
-
};
|
|
570
|
-
readonly as: {
|
|
571
|
-
readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
572
|
-
readonly required: false;
|
|
573
|
-
readonly default: "div";
|
|
574
|
-
};
|
|
575
|
-
readonly asChild: {
|
|
576
|
-
readonly type: PropType<boolean>;
|
|
577
|
-
readonly required: false;
|
|
578
|
-
readonly default: false; /**
|
|
579
|
-
* The distance in pixels from the trigger.
|
|
580
|
-
*
|
|
581
|
-
* @default 0
|
|
582
|
-
*/
|
|
583
|
-
};
|
|
584
|
-
}, {
|
|
585
|
-
rootContext: TooltipContext;
|
|
586
|
-
popperContentProps: vue.ComputedRef<{
|
|
587
|
-
as: _destyler_primitive.AsTag | vue.Component;
|
|
588
|
-
asChild: boolean;
|
|
589
|
-
side: "top" | "right" | "bottom" | "left";
|
|
590
|
-
sideOffset: number;
|
|
591
|
-
align: "start" | "center" | "end";
|
|
592
|
-
alignOffset: number;
|
|
593
|
-
avoidCollisions: boolean;
|
|
594
|
-
collisionBoundary: Element | (Element | null)[] | null;
|
|
595
|
-
collisionPadding: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
|
|
596
|
-
arrowPadding: number;
|
|
597
|
-
sticky: "partial" | "always";
|
|
598
|
-
hideWhenDetached: boolean;
|
|
599
|
-
onEscapeKeyDown: ((_event: KeyboardEvent) => any) | undefined;
|
|
600
|
-
onPointerDownOutside: ((_event: Event) => any) | undefined;
|
|
601
|
-
}>;
|
|
602
|
-
ariaLabel: vue.ComputedRef<string>;
|
|
603
|
-
forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
|
|
604
|
-
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
605
|
-
/**
|
|
606
|
-
* Event handler called when focus moves to the destructive action after opening. It can be prevented by calling `event.preventDefault`
|
|
607
|
-
*/
|
|
608
|
-
escapeKeyDown: (_event: KeyboardEvent) => boolean;
|
|
609
|
-
/**
|
|
610
|
-
* Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling `event.preventDefault`.
|
|
611
|
-
*/
|
|
612
|
-
pointerDownOutside: (_event: Event) => boolean;
|
|
613
|
-
}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
614
|
-
/**
|
|
615
|
-
* The preferred side of the trigger to render against when open.
|
|
616
|
-
* Will be reversed when collisions occur and avoidCollisions
|
|
617
|
-
* is enabled.
|
|
618
|
-
*
|
|
619
|
-
* @default top
|
|
620
|
-
*/
|
|
621
|
-
readonly side: {
|
|
622
|
-
readonly default: "top";
|
|
623
|
-
readonly type: PropType<"top" | "right" | "bottom" | "left">;
|
|
624
|
-
readonly required: false;
|
|
625
|
-
};
|
|
626
|
-
/**
|
|
627
|
-
* The distance in pixels from the trigger.
|
|
628
|
-
*
|
|
629
|
-
* @default 0
|
|
630
|
-
*/
|
|
631
|
-
readonly sideOffset: {
|
|
632
|
-
readonly type: PropType<number>;
|
|
633
|
-
readonly required: false;
|
|
634
|
-
readonly default: 0;
|
|
635
|
-
};
|
|
636
|
-
/**
|
|
637
|
-
* The preferred alignment against the trigger.
|
|
638
|
-
* May change when collisions occur.
|
|
639
|
-
*
|
|
640
|
-
* @default center
|
|
641
|
-
*/
|
|
642
|
-
readonly align: {
|
|
643
|
-
readonly type: PropType<"start" | "center" | "end">;
|
|
644
|
-
readonly required: false;
|
|
645
|
-
readonly default: "center";
|
|
646
|
-
};
|
|
647
|
-
/**
|
|
648
|
-
* An offset in pixels from the `start` or `end` alignment options.
|
|
649
|
-
*
|
|
650
|
-
* @default 0
|
|
651
|
-
*/
|
|
652
|
-
readonly alignOffset: {
|
|
653
|
-
readonly type: PropType<number>;
|
|
654
|
-
readonly required: false;
|
|
655
|
-
readonly default: 0;
|
|
656
|
-
};
|
|
657
|
-
/**
|
|
658
|
-
* When `true`, overrides the side andalign preferences
|
|
659
|
-
* to prevent collisions with boundary edges.
|
|
660
|
-
*
|
|
661
|
-
* @default true
|
|
662
|
-
*/
|
|
663
|
-
readonly avoidCollisions: {
|
|
664
|
-
readonly type: PropType<boolean>;
|
|
665
|
-
readonly required: false;
|
|
666
|
-
readonly default: true;
|
|
667
|
-
};
|
|
668
|
-
/**
|
|
669
|
-
* The element used as the collision boundary. By default
|
|
670
|
-
* this is the viewport, though you can provide additional
|
|
671
|
-
* element(s) to be included in this check.
|
|
672
|
-
*
|
|
673
|
-
* @default () => []
|
|
674
|
-
*/
|
|
675
|
-
readonly collisionBoundary: {
|
|
676
|
-
readonly type: PropType<Element | (Element | null)[] | null>;
|
|
677
|
-
readonly required: false;
|
|
678
|
-
readonly default: () => never[];
|
|
679
|
-
};
|
|
680
|
-
/**
|
|
681
|
-
* The distance in pixels from the boundary edges where collision
|
|
682
|
-
* detection should occur. Accepts a number (same for all sides),
|
|
683
|
-
* or a partial padding object, for example: { top: 20, left: 20 }.
|
|
684
|
-
*
|
|
685
|
-
* @default 0
|
|
686
|
-
*/
|
|
687
|
-
readonly collisionPadding: {
|
|
688
|
-
readonly type: PropType<number | Partial<Record<"top" | "right" | "bottom" | "left", number>>>;
|
|
689
|
-
readonly required: false;
|
|
690
|
-
readonly default: 0;
|
|
691
|
-
};
|
|
692
|
-
/**
|
|
693
|
-
* The distance in pixels from the boundary edges where collision
|
|
694
|
-
* detection should occur. Accepts a number (same for all sides),
|
|
695
|
-
* or a partial padding object, for example: { top: 20, left: 20 }.
|
|
696
|
-
*
|
|
697
|
-
* @default 0
|
|
698
|
-
*/
|
|
699
|
-
readonly arrowPadding: {
|
|
700
|
-
readonly type: PropType<number>;
|
|
701
|
-
readonly required: false;
|
|
702
|
-
readonly default: 0;
|
|
703
|
-
};
|
|
704
|
-
/**
|
|
705
|
-
* The sticky behavior on the align axis. `partial` will keep the
|
|
706
|
-
* content in the boundary as long as the trigger is at least partially
|
|
707
|
-
* in the boundary whilst "always" will keep the content in the boundary
|
|
708
|
-
* regardless.
|
|
709
|
-
*
|
|
710
|
-
* @default partial
|
|
711
|
-
*/
|
|
712
|
-
readonly sticky: {
|
|
713
|
-
readonly type: PropType<"partial" | "always">;
|
|
714
|
-
readonly required: false;
|
|
715
|
-
readonly default: "partial";
|
|
716
|
-
};
|
|
717
|
-
/**
|
|
718
|
-
* Whether to hide the content when the trigger becomes fully occluded.
|
|
719
|
-
*
|
|
720
|
-
* @default false
|
|
721
|
-
*/
|
|
722
|
-
readonly hideWhenDetached: {
|
|
723
|
-
readonly type: PropType<boolean>;
|
|
724
|
-
readonly required: false;
|
|
725
|
-
readonly default: false;
|
|
726
|
-
};
|
|
727
|
-
/**
|
|
728
|
-
* By default, screenreaders will announce the content inside
|
|
729
|
-
* the component. If this is not descriptive enough, or you have
|
|
730
|
-
* content that cannot be announced, use aria-label as a more
|
|
731
|
-
* descriptive label.
|
|
732
|
-
*
|
|
733
|
-
*/
|
|
734
|
-
readonly ariaLabel: {
|
|
735
|
-
readonly type: PropType<string>;
|
|
736
|
-
readonly required: false;
|
|
737
|
-
};
|
|
738
|
-
readonly as: {
|
|
739
|
-
readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
740
|
-
readonly required: false;
|
|
741
|
-
readonly default: "div";
|
|
742
|
-
};
|
|
743
|
-
readonly asChild: {
|
|
744
|
-
readonly type: PropType<boolean>;
|
|
745
|
-
readonly required: false;
|
|
746
|
-
readonly default: false; /**
|
|
747
|
-
* The distance in pixels from the trigger.
|
|
748
|
-
*
|
|
749
|
-
* @default 0
|
|
750
|
-
*/
|
|
751
|
-
};
|
|
752
|
-
}>> & {
|
|
753
|
-
onEscapeKeyDown?: ((_event: KeyboardEvent) => any) | undefined;
|
|
754
|
-
onPointerDownOutside?: ((_event: Event) => any) | undefined;
|
|
755
|
-
}, {
|
|
756
|
-
readonly as: _destyler_primitive.AsTag | vue.Component;
|
|
757
|
-
readonly asChild: boolean;
|
|
758
|
-
readonly side: "top" | "right" | "bottom" | "left";
|
|
759
|
-
readonly sideOffset: number;
|
|
760
|
-
readonly align: "start" | "center" | "end";
|
|
761
|
-
readonly alignOffset: number;
|
|
762
|
-
readonly avoidCollisions: boolean;
|
|
763
|
-
readonly collisionBoundary: Element | (Element | null)[] | null;
|
|
764
|
-
readonly collisionPadding: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
|
|
765
|
-
readonly arrowPadding: number;
|
|
766
|
-
readonly sticky: "partial" | "always";
|
|
767
|
-
readonly hideWhenDetached: boolean;
|
|
768
|
-
}, {}>;
|
|
769
|
-
|
|
770
|
-
export { TooltipContentHoverable, TooltipContentImpl, type TooltipContentImplProps, tooltipContentImplEmits, tooltipContentImplProps };
|