@destyler/tooltip 0.0.6 → 0.0.7-beta.1
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
|
@@ -1,1047 +0,0 @@
|
|
|
1
|
-
import * as _destyler_primitive from '@destyler/primitive';
|
|
2
|
-
import * as vue from 'vue';
|
|
3
|
-
import { PropType, Ref } from 'vue';
|
|
4
|
-
import { ExtractPublicPropTypes } from '@destyler/shared';
|
|
5
|
-
import * as _vue_shared from '@vue/shared';
|
|
6
|
-
|
|
7
|
-
declare const tooltipArrowProps: {
|
|
8
|
-
readonly as: {
|
|
9
|
-
readonly default: "svg";
|
|
10
|
-
readonly type: vue.PropType<vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | _destyler_primitive.AsTag>;
|
|
11
|
-
readonly required: false;
|
|
12
|
-
};
|
|
13
|
-
readonly width: {
|
|
14
|
-
readonly type: vue.PropType<number>;
|
|
15
|
-
readonly required: false;
|
|
16
|
-
readonly default: 10;
|
|
17
|
-
};
|
|
18
|
-
readonly height: {
|
|
19
|
-
readonly type: vue.PropType<number>;
|
|
20
|
-
readonly required: false;
|
|
21
|
-
readonly default: 5;
|
|
22
|
-
};
|
|
23
|
-
readonly asChild: {
|
|
24
|
-
readonly type: vue.PropType<boolean>;
|
|
25
|
-
readonly required: false;
|
|
26
|
-
readonly default: false;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
type TooltipArrowProps = ExtractPublicPropTypes<typeof tooltipArrowProps>;
|
|
30
|
-
declare const TooltipArrow: vue.DefineComponent<{
|
|
31
|
-
readonly as: {
|
|
32
|
-
readonly default: "svg";
|
|
33
|
-
readonly type: vue.PropType<vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | _destyler_primitive.AsTag>;
|
|
34
|
-
readonly required: false;
|
|
35
|
-
};
|
|
36
|
-
readonly width: {
|
|
37
|
-
readonly type: vue.PropType<number>;
|
|
38
|
-
readonly required: false;
|
|
39
|
-
readonly default: 10;
|
|
40
|
-
};
|
|
41
|
-
readonly height: {
|
|
42
|
-
readonly type: vue.PropType<number>;
|
|
43
|
-
readonly required: false;
|
|
44
|
-
readonly default: 5;
|
|
45
|
-
};
|
|
46
|
-
readonly asChild: {
|
|
47
|
-
readonly type: vue.PropType<boolean>;
|
|
48
|
-
readonly required: false;
|
|
49
|
-
readonly default: false;
|
|
50
|
-
};
|
|
51
|
-
}, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
52
|
-
readonly as: {
|
|
53
|
-
readonly default: "svg";
|
|
54
|
-
readonly type: vue.PropType<vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | _destyler_primitive.AsTag>;
|
|
55
|
-
readonly required: false;
|
|
56
|
-
};
|
|
57
|
-
readonly width: {
|
|
58
|
-
readonly type: vue.PropType<number>;
|
|
59
|
-
readonly required: false;
|
|
60
|
-
readonly default: 10;
|
|
61
|
-
};
|
|
62
|
-
readonly height: {
|
|
63
|
-
readonly type: vue.PropType<number>;
|
|
64
|
-
readonly required: false;
|
|
65
|
-
readonly default: 5;
|
|
66
|
-
};
|
|
67
|
-
readonly asChild: {
|
|
68
|
-
readonly type: vue.PropType<boolean>;
|
|
69
|
-
readonly required: false;
|
|
70
|
-
readonly default: false;
|
|
71
|
-
};
|
|
72
|
-
}>>, {
|
|
73
|
-
readonly as: vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | _destyler_primitive.AsTag;
|
|
74
|
-
readonly width: number;
|
|
75
|
-
readonly height: number;
|
|
76
|
-
readonly asChild: boolean;
|
|
77
|
-
}, {}>;
|
|
78
|
-
|
|
79
|
-
declare const tooltipRootProps: {
|
|
80
|
-
/**
|
|
81
|
-
* The open state of the tooltip when it is initially rendered.
|
|
82
|
-
* Use when you do not need to control its open state.
|
|
83
|
-
*
|
|
84
|
-
* @default false
|
|
85
|
-
*/
|
|
86
|
-
readonly defaultOpen: {
|
|
87
|
-
readonly type: PropType<boolean>;
|
|
88
|
-
readonly required: false;
|
|
89
|
-
readonly default: false;
|
|
90
|
-
};
|
|
91
|
-
/**
|
|
92
|
-
* The controlled open state of the tooltip.
|
|
93
|
-
*/
|
|
94
|
-
readonly open: {
|
|
95
|
-
readonly type: PropType<boolean>;
|
|
96
|
-
readonly required: false;
|
|
97
|
-
readonly default: undefined;
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* Override the duration given to the `Provider` to customise
|
|
101
|
-
* the open delay for a specific tooltip.
|
|
102
|
-
*
|
|
103
|
-
* @default 400
|
|
104
|
-
*/
|
|
105
|
-
readonly delayDuration: {
|
|
106
|
-
readonly type: PropType<number>;
|
|
107
|
-
readonly required: false;
|
|
108
|
-
readonly default: 400;
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* Prevents Tooltip.Content from remaining open when hovering.
|
|
112
|
-
* Disabling this has accessibility consequences. Inherits
|
|
113
|
-
* from Tooltip.Provider.
|
|
114
|
-
*/
|
|
115
|
-
readonly disableHoverableContent: {
|
|
116
|
-
readonly type: PropType<boolean>;
|
|
117
|
-
readonly required: false;
|
|
118
|
-
readonly default: undefined;
|
|
119
|
-
};
|
|
120
|
-
/**
|
|
121
|
-
* When `true`, clicking on trigger will not close the content.
|
|
122
|
-
*
|
|
123
|
-
* @default false
|
|
124
|
-
*/
|
|
125
|
-
readonly disableClosingTrigger: {
|
|
126
|
-
readonly type: PropType<boolean>;
|
|
127
|
-
readonly required: false;
|
|
128
|
-
readonly default: undefined;
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* When `true`, disable tooltip
|
|
132
|
-
*
|
|
133
|
-
* @default false
|
|
134
|
-
*/
|
|
135
|
-
readonly disabled: {
|
|
136
|
-
readonly type: PropType<boolean>;
|
|
137
|
-
readonly required: false;
|
|
138
|
-
readonly default: undefined;
|
|
139
|
-
};
|
|
140
|
-
/**
|
|
141
|
-
* Prevent the tooltip from opening if the focus did not come from
|
|
142
|
-
* the keyboard by matching against the `:focus-visible` selector.
|
|
143
|
-
* This is useful if you want to avoid opening it when switching
|
|
144
|
-
* browser tabs or closing a dialog.
|
|
145
|
-
*
|
|
146
|
-
* @default false
|
|
147
|
-
*/
|
|
148
|
-
readonly ignoreNonKeyboardFocus: {
|
|
149
|
-
readonly type: PropType<boolean>;
|
|
150
|
-
readonly required: false;
|
|
151
|
-
readonly default: undefined;
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
type TooltipRootProps = ExtractPublicPropTypes<typeof tooltipRootProps>;
|
|
155
|
-
declare const tooltipRootEmits: {
|
|
156
|
-
/**
|
|
157
|
-
* Event handler called when the open state of the tooltip changes.
|
|
158
|
-
*/
|
|
159
|
-
'update:open': (_value: boolean) => boolean;
|
|
160
|
-
};
|
|
161
|
-
interface TooltipContext {
|
|
162
|
-
contentId: string;
|
|
163
|
-
open: Ref<boolean>;
|
|
164
|
-
stateAttribute: Ref<'closed' | 'delayed-open' | 'instant-open'>;
|
|
165
|
-
trigger: Ref<HTMLElement | undefined>;
|
|
166
|
-
onTriggerChange: (trigger: HTMLElement | undefined) => void;
|
|
167
|
-
onTriggerEnter: () => void;
|
|
168
|
-
onTriggerLeave: () => void;
|
|
169
|
-
onOpen: () => void;
|
|
170
|
-
onClose: () => void;
|
|
171
|
-
disableHoverableContent: Ref<boolean>;
|
|
172
|
-
disableClosingTrigger: Ref<boolean>;
|
|
173
|
-
disabled: Ref<boolean>;
|
|
174
|
-
ignoreNonKeyboardFocus: Ref<boolean>;
|
|
175
|
-
}
|
|
176
|
-
declare const TooltipRoot: vue.DefineComponent<{
|
|
177
|
-
/**
|
|
178
|
-
* The open state of the tooltip when it is initially rendered.
|
|
179
|
-
* Use when you do not need to control its open state.
|
|
180
|
-
*
|
|
181
|
-
* @default false
|
|
182
|
-
*/
|
|
183
|
-
readonly defaultOpen: {
|
|
184
|
-
readonly type: PropType<boolean>;
|
|
185
|
-
readonly required: false;
|
|
186
|
-
readonly default: false;
|
|
187
|
-
};
|
|
188
|
-
/**
|
|
189
|
-
* The controlled open state of the tooltip.
|
|
190
|
-
*/
|
|
191
|
-
readonly open: {
|
|
192
|
-
readonly type: PropType<boolean>;
|
|
193
|
-
readonly required: false;
|
|
194
|
-
readonly default: undefined;
|
|
195
|
-
};
|
|
196
|
-
/**
|
|
197
|
-
* Override the duration given to the `Provider` to customise
|
|
198
|
-
* the open delay for a specific tooltip.
|
|
199
|
-
*
|
|
200
|
-
* @default 400
|
|
201
|
-
*/
|
|
202
|
-
readonly delayDuration: {
|
|
203
|
-
readonly type: PropType<number>;
|
|
204
|
-
readonly required: false;
|
|
205
|
-
readonly default: 400;
|
|
206
|
-
};
|
|
207
|
-
/**
|
|
208
|
-
* Prevents Tooltip.Content from remaining open when hovering.
|
|
209
|
-
* Disabling this has accessibility consequences. Inherits
|
|
210
|
-
* from Tooltip.Provider.
|
|
211
|
-
*/
|
|
212
|
-
readonly disableHoverableContent: {
|
|
213
|
-
readonly type: PropType<boolean>;
|
|
214
|
-
readonly required: false;
|
|
215
|
-
readonly default: undefined;
|
|
216
|
-
};
|
|
217
|
-
/**
|
|
218
|
-
* When `true`, clicking on trigger will not close the content.
|
|
219
|
-
*
|
|
220
|
-
* @default false
|
|
221
|
-
*/
|
|
222
|
-
readonly disableClosingTrigger: {
|
|
223
|
-
readonly type: PropType<boolean>;
|
|
224
|
-
readonly required: false;
|
|
225
|
-
readonly default: undefined;
|
|
226
|
-
};
|
|
227
|
-
/**
|
|
228
|
-
* When `true`, disable tooltip
|
|
229
|
-
*
|
|
230
|
-
* @default false
|
|
231
|
-
*/
|
|
232
|
-
readonly disabled: {
|
|
233
|
-
readonly type: PropType<boolean>;
|
|
234
|
-
readonly required: false;
|
|
235
|
-
readonly default: undefined;
|
|
236
|
-
};
|
|
237
|
-
/**
|
|
238
|
-
* Prevent the tooltip from opening if the focus did not come from
|
|
239
|
-
* the keyboard by matching against the `:focus-visible` selector.
|
|
240
|
-
* This is useful if you want to avoid opening it when switching
|
|
241
|
-
* browser tabs or closing a dialog.
|
|
242
|
-
*
|
|
243
|
-
* @default false
|
|
244
|
-
*/
|
|
245
|
-
readonly ignoreNonKeyboardFocus: {
|
|
246
|
-
readonly type: PropType<boolean>;
|
|
247
|
-
readonly required: false;
|
|
248
|
-
readonly default: undefined;
|
|
249
|
-
};
|
|
250
|
-
}, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
251
|
-
/**
|
|
252
|
-
* Event handler called when the open state of the tooltip changes.
|
|
253
|
-
*/
|
|
254
|
-
'update:open': (_value: boolean) => boolean;
|
|
255
|
-
}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
256
|
-
/**
|
|
257
|
-
* The open state of the tooltip when it is initially rendered.
|
|
258
|
-
* Use when you do not need to control its open state.
|
|
259
|
-
*
|
|
260
|
-
* @default false
|
|
261
|
-
*/
|
|
262
|
-
readonly defaultOpen: {
|
|
263
|
-
readonly type: PropType<boolean>;
|
|
264
|
-
readonly required: false;
|
|
265
|
-
readonly default: false;
|
|
266
|
-
};
|
|
267
|
-
/**
|
|
268
|
-
* The controlled open state of the tooltip.
|
|
269
|
-
*/
|
|
270
|
-
readonly open: {
|
|
271
|
-
readonly type: PropType<boolean>;
|
|
272
|
-
readonly required: false;
|
|
273
|
-
readonly default: undefined;
|
|
274
|
-
};
|
|
275
|
-
/**
|
|
276
|
-
* Override the duration given to the `Provider` to customise
|
|
277
|
-
* the open delay for a specific tooltip.
|
|
278
|
-
*
|
|
279
|
-
* @default 400
|
|
280
|
-
*/
|
|
281
|
-
readonly delayDuration: {
|
|
282
|
-
readonly type: PropType<number>;
|
|
283
|
-
readonly required: false;
|
|
284
|
-
readonly default: 400;
|
|
285
|
-
};
|
|
286
|
-
/**
|
|
287
|
-
* Prevents Tooltip.Content from remaining open when hovering.
|
|
288
|
-
* Disabling this has accessibility consequences. Inherits
|
|
289
|
-
* from Tooltip.Provider.
|
|
290
|
-
*/
|
|
291
|
-
readonly disableHoverableContent: {
|
|
292
|
-
readonly type: PropType<boolean>;
|
|
293
|
-
readonly required: false;
|
|
294
|
-
readonly default: undefined;
|
|
295
|
-
};
|
|
296
|
-
/**
|
|
297
|
-
* When `true`, clicking on trigger will not close the content.
|
|
298
|
-
*
|
|
299
|
-
* @default false
|
|
300
|
-
*/
|
|
301
|
-
readonly disableClosingTrigger: {
|
|
302
|
-
readonly type: PropType<boolean>;
|
|
303
|
-
readonly required: false;
|
|
304
|
-
readonly default: undefined;
|
|
305
|
-
};
|
|
306
|
-
/**
|
|
307
|
-
* When `true`, disable tooltip
|
|
308
|
-
*
|
|
309
|
-
* @default false
|
|
310
|
-
*/
|
|
311
|
-
readonly disabled: {
|
|
312
|
-
readonly type: PropType<boolean>;
|
|
313
|
-
readonly required: false;
|
|
314
|
-
readonly default: undefined;
|
|
315
|
-
};
|
|
316
|
-
/**
|
|
317
|
-
* Prevent the tooltip from opening if the focus did not come from
|
|
318
|
-
* the keyboard by matching against the `:focus-visible` selector.
|
|
319
|
-
* This is useful if you want to avoid opening it when switching
|
|
320
|
-
* browser tabs or closing a dialog.
|
|
321
|
-
*
|
|
322
|
-
* @default false
|
|
323
|
-
*/
|
|
324
|
-
readonly ignoreNonKeyboardFocus: {
|
|
325
|
-
readonly type: PropType<boolean>;
|
|
326
|
-
readonly required: false;
|
|
327
|
-
readonly default: undefined;
|
|
328
|
-
};
|
|
329
|
-
}>> & {
|
|
330
|
-
"onUpdate:open"?: ((_value: boolean) => any) | undefined;
|
|
331
|
-
}, {
|
|
332
|
-
readonly delayDuration: number;
|
|
333
|
-
readonly disableHoverableContent: boolean;
|
|
334
|
-
readonly disableClosingTrigger: boolean;
|
|
335
|
-
readonly disabled: boolean;
|
|
336
|
-
readonly ignoreNonKeyboardFocus: boolean;
|
|
337
|
-
readonly defaultOpen: boolean;
|
|
338
|
-
readonly open: boolean;
|
|
339
|
-
}, {}>;
|
|
340
|
-
|
|
341
|
-
declare const tooltipContentProps: {
|
|
342
|
-
readonly side: {
|
|
343
|
-
readonly default: "top";
|
|
344
|
-
readonly type: vue.PropType<"top" | "right" | "bottom" | "left">;
|
|
345
|
-
readonly required: false;
|
|
346
|
-
};
|
|
347
|
-
readonly sideOffset: {
|
|
348
|
-
readonly type: vue.PropType<number>;
|
|
349
|
-
readonly required: false;
|
|
350
|
-
readonly default: 0;
|
|
351
|
-
};
|
|
352
|
-
readonly align: {
|
|
353
|
-
readonly type: vue.PropType<"start" | "center" | "end">;
|
|
354
|
-
readonly required: false;
|
|
355
|
-
readonly default: "center";
|
|
356
|
-
};
|
|
357
|
-
readonly alignOffset: {
|
|
358
|
-
readonly type: vue.PropType<number>;
|
|
359
|
-
readonly required: false;
|
|
360
|
-
readonly default: 0;
|
|
361
|
-
};
|
|
362
|
-
readonly avoidCollisions: {
|
|
363
|
-
readonly type: vue.PropType<boolean>;
|
|
364
|
-
readonly required: false;
|
|
365
|
-
readonly default: true;
|
|
366
|
-
};
|
|
367
|
-
readonly collisionBoundary: {
|
|
368
|
-
readonly type: vue.PropType<Element | (Element | null)[] | null>;
|
|
369
|
-
readonly required: false;
|
|
370
|
-
readonly default: () => never[];
|
|
371
|
-
};
|
|
372
|
-
readonly collisionPadding: {
|
|
373
|
-
readonly type: vue.PropType<number | Partial<Record<"top" | "right" | "bottom" | "left", number>>>;
|
|
374
|
-
readonly required: false;
|
|
375
|
-
readonly default: 0;
|
|
376
|
-
};
|
|
377
|
-
readonly arrowPadding: {
|
|
378
|
-
readonly type: vue.PropType<number>;
|
|
379
|
-
readonly required: false;
|
|
380
|
-
readonly default: 0;
|
|
381
|
-
};
|
|
382
|
-
readonly sticky: {
|
|
383
|
-
readonly type: vue.PropType<"partial" | "always">;
|
|
384
|
-
readonly required: false;
|
|
385
|
-
readonly default: "partial";
|
|
386
|
-
};
|
|
387
|
-
readonly hideWhenDetached: {
|
|
388
|
-
readonly type: vue.PropType<boolean>;
|
|
389
|
-
readonly required: false;
|
|
390
|
-
readonly default: false;
|
|
391
|
-
};
|
|
392
|
-
readonly ariaLabel: {
|
|
393
|
-
readonly type: vue.PropType<string>;
|
|
394
|
-
readonly required: false;
|
|
395
|
-
};
|
|
396
|
-
readonly as: {
|
|
397
|
-
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
398
|
-
readonly required: false;
|
|
399
|
-
readonly default: "div";
|
|
400
|
-
};
|
|
401
|
-
readonly asChild: {
|
|
402
|
-
readonly type: vue.PropType<boolean>;
|
|
403
|
-
readonly required: false;
|
|
404
|
-
readonly default: false;
|
|
405
|
-
};
|
|
406
|
-
};
|
|
407
|
-
type TooltipContentProps = ExtractPublicPropTypes<typeof tooltipContentProps>;
|
|
408
|
-
declare const tooltipContentEmits: {
|
|
409
|
-
escapeKeyDown: (_event: KeyboardEvent) => boolean;
|
|
410
|
-
pointerDownOutside: (_event: Event) => boolean;
|
|
411
|
-
};
|
|
412
|
-
declare const TooltipContent: vue.DefineComponent<{
|
|
413
|
-
readonly side: {
|
|
414
|
-
readonly default: "top";
|
|
415
|
-
readonly type: vue.PropType<"top" | "right" | "bottom" | "left">;
|
|
416
|
-
readonly required: false;
|
|
417
|
-
};
|
|
418
|
-
readonly sideOffset: {
|
|
419
|
-
readonly type: vue.PropType<number>;
|
|
420
|
-
readonly required: false;
|
|
421
|
-
readonly default: 0;
|
|
422
|
-
};
|
|
423
|
-
readonly align: {
|
|
424
|
-
readonly type: vue.PropType<"start" | "center" | "end">;
|
|
425
|
-
readonly required: false;
|
|
426
|
-
readonly default: "center";
|
|
427
|
-
};
|
|
428
|
-
readonly alignOffset: {
|
|
429
|
-
readonly type: vue.PropType<number>;
|
|
430
|
-
readonly required: false;
|
|
431
|
-
readonly default: 0;
|
|
432
|
-
};
|
|
433
|
-
readonly avoidCollisions: {
|
|
434
|
-
readonly type: vue.PropType<boolean>;
|
|
435
|
-
readonly required: false;
|
|
436
|
-
readonly default: true;
|
|
437
|
-
};
|
|
438
|
-
readonly collisionBoundary: {
|
|
439
|
-
readonly type: vue.PropType<Element | (Element | null)[] | null>;
|
|
440
|
-
readonly required: false;
|
|
441
|
-
readonly default: () => never[];
|
|
442
|
-
};
|
|
443
|
-
readonly collisionPadding: {
|
|
444
|
-
readonly type: vue.PropType<number | Partial<Record<"top" | "right" | "bottom" | "left", number>>>;
|
|
445
|
-
readonly required: false;
|
|
446
|
-
readonly default: 0;
|
|
447
|
-
};
|
|
448
|
-
readonly arrowPadding: {
|
|
449
|
-
readonly type: vue.PropType<number>;
|
|
450
|
-
readonly required: false;
|
|
451
|
-
readonly default: 0;
|
|
452
|
-
};
|
|
453
|
-
readonly sticky: {
|
|
454
|
-
readonly type: vue.PropType<"partial" | "always">;
|
|
455
|
-
readonly required: false;
|
|
456
|
-
readonly default: "partial";
|
|
457
|
-
};
|
|
458
|
-
readonly hideWhenDetached: {
|
|
459
|
-
readonly type: vue.PropType<boolean>;
|
|
460
|
-
readonly required: false;
|
|
461
|
-
readonly default: false;
|
|
462
|
-
};
|
|
463
|
-
readonly ariaLabel: {
|
|
464
|
-
readonly type: vue.PropType<string>;
|
|
465
|
-
readonly required: false;
|
|
466
|
-
};
|
|
467
|
-
readonly as: {
|
|
468
|
-
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
469
|
-
readonly required: false;
|
|
470
|
-
readonly default: "div";
|
|
471
|
-
};
|
|
472
|
-
readonly asChild: {
|
|
473
|
-
readonly type: vue.PropType<boolean>;
|
|
474
|
-
readonly required: false;
|
|
475
|
-
readonly default: false;
|
|
476
|
-
};
|
|
477
|
-
}, {
|
|
478
|
-
rootContext: TooltipContext;
|
|
479
|
-
forwarded: vue.ComputedRef<{
|
|
480
|
-
readonly as: vue.FunctionalComponent<any, {}, any, {}> | {
|
|
481
|
-
new (...args: any[]): any;
|
|
482
|
-
__isFragment?: undefined;
|
|
483
|
-
__isTeleport?: undefined;
|
|
484
|
-
__isSuspense?: undefined;
|
|
485
|
-
} | _destyler_primitive.AsTag | {
|
|
486
|
-
[x: string]: any;
|
|
487
|
-
setup?: ((this: void, props: _vue_shared.LooseRequired<any>, ctx: {
|
|
488
|
-
attrs: {
|
|
489
|
-
[x: string]: unknown;
|
|
490
|
-
};
|
|
491
|
-
slots: Readonly<{
|
|
492
|
-
[name: string]: vue.Slot<any> | undefined;
|
|
493
|
-
}>;
|
|
494
|
-
emit: ((event: unknown, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
|
|
495
|
-
expose: (exposed?: Record<string, any> | undefined) => void;
|
|
496
|
-
}) => any) | undefined;
|
|
497
|
-
name?: string | undefined;
|
|
498
|
-
template?: string | object | undefined;
|
|
499
|
-
render?: Function | undefined;
|
|
500
|
-
components?: Record<string, vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any>> | undefined;
|
|
501
|
-
directives?: Record<string, vue.Directive<any, any>> | undefined;
|
|
502
|
-
inheritAttrs?: boolean | undefined;
|
|
503
|
-
emits?: any;
|
|
504
|
-
slots?: {} | undefined;
|
|
505
|
-
expose?: string[] | undefined;
|
|
506
|
-
serverPrefetch?: (() => void | Promise<any>) | undefined;
|
|
507
|
-
compilerOptions?: {
|
|
508
|
-
isCustomElement?: ((tag: string) => boolean) | undefined;
|
|
509
|
-
whitespace?: "preserve" | "condense" | undefined;
|
|
510
|
-
comments?: boolean | undefined;
|
|
511
|
-
delimiters?: [string, string] | undefined;
|
|
512
|
-
} | undefined;
|
|
513
|
-
call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
|
|
514
|
-
__isFragment?: undefined;
|
|
515
|
-
__isTeleport?: undefined;
|
|
516
|
-
__isSuspense?: undefined;
|
|
517
|
-
__defaults?: any;
|
|
518
|
-
compatConfig?: {
|
|
519
|
-
GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
|
|
520
|
-
GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
|
|
521
|
-
GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
|
|
522
|
-
GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
|
|
523
|
-
GLOBAL_SET?: boolean | "suppress-warning" | undefined;
|
|
524
|
-
GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
|
|
525
|
-
GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
|
|
526
|
-
GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
|
|
527
|
-
CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
|
|
528
|
-
CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
|
|
529
|
-
CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
|
|
530
|
-
CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
|
|
531
|
-
CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
|
|
532
|
-
CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
|
|
533
|
-
CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
|
|
534
|
-
INSTANCE_SET?: boolean | "suppress-warning" | undefined;
|
|
535
|
-
INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
|
|
536
|
-
INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
537
|
-
INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
|
|
538
|
-
INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
|
|
539
|
-
INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
|
|
540
|
-
INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
|
|
541
|
-
INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
|
|
542
|
-
INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
|
|
543
|
-
OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
|
|
544
|
-
OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
|
|
545
|
-
OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
546
|
-
OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
|
|
547
|
-
WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
|
|
548
|
-
PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
|
|
549
|
-
V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
|
|
550
|
-
CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
|
|
551
|
-
ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
|
|
552
|
-
ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
|
|
553
|
-
TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
|
|
554
|
-
TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
|
|
555
|
-
COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
|
|
556
|
-
COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
|
|
557
|
-
COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
|
|
558
|
-
RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
|
|
559
|
-
FILTERS?: boolean | "suppress-warning" | undefined;
|
|
560
|
-
PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
|
|
561
|
-
MODE?: 2 | 3 | ((comp: vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | null) => 2 | 3) | undefined;
|
|
562
|
-
} | undefined;
|
|
563
|
-
data?: ((this: any, vm: any) => any) | undefined;
|
|
564
|
-
computed?: vue.ComputedOptions | undefined;
|
|
565
|
-
methods?: vue.MethodOptions | undefined;
|
|
566
|
-
watch?: {
|
|
567
|
-
[x: string]: (string | vue.WatchCallback<any, any> | ({
|
|
568
|
-
handler: string | vue.WatchCallback<any, any>;
|
|
569
|
-
} & vue.WatchOptions<boolean>)) | (string | vue.WatchCallback<any, any> | ({
|
|
570
|
-
handler: string | vue.WatchCallback<any, any>;
|
|
571
|
-
} & vue.WatchOptions<boolean>))[];
|
|
572
|
-
} | undefined;
|
|
573
|
-
provide?: vue.ComponentProvideOptions | undefined;
|
|
574
|
-
inject?: {} | string[] | undefined;
|
|
575
|
-
filters?: Record<string, Function> | undefined;
|
|
576
|
-
mixins?: any[] | undefined;
|
|
577
|
-
extends?: any;
|
|
578
|
-
beforeCreate?: (() => void) | undefined;
|
|
579
|
-
created?: (() => void) | undefined;
|
|
580
|
-
beforeMount?: (() => void) | undefined;
|
|
581
|
-
mounted?: (() => void) | undefined;
|
|
582
|
-
beforeUpdate?: (() => void) | undefined;
|
|
583
|
-
updated?: (() => void) | undefined;
|
|
584
|
-
activated?: (() => void) | undefined;
|
|
585
|
-
deactivated?: (() => void) | undefined;
|
|
586
|
-
beforeDestroy?: (() => void) | undefined;
|
|
587
|
-
beforeUnmount?: (() => void) | undefined;
|
|
588
|
-
destroyed?: (() => void) | undefined;
|
|
589
|
-
unmounted?: (() => void) | undefined;
|
|
590
|
-
renderTracked?: ((e: vue.DebuggerEvent) => void) | undefined;
|
|
591
|
-
renderTriggered?: ((e: vue.DebuggerEvent) => void) | undefined;
|
|
592
|
-
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;
|
|
593
|
-
delimiters?: [string, string] | undefined;
|
|
594
|
-
__differentiator?: string | number | symbol | undefined;
|
|
595
|
-
__isBuiltIn?: boolean | undefined;
|
|
596
|
-
__file?: string | undefined;
|
|
597
|
-
__name?: string | undefined;
|
|
598
|
-
};
|
|
599
|
-
readonly asChild: boolean;
|
|
600
|
-
readonly side: "top" | "right" | "bottom" | "left";
|
|
601
|
-
readonly sideOffset: number;
|
|
602
|
-
readonly align: "start" | "center" | "end";
|
|
603
|
-
readonly alignOffset: number;
|
|
604
|
-
readonly avoidCollisions: boolean;
|
|
605
|
-
readonly collisionBoundary: Element | (Element | null)[] | null;
|
|
606
|
-
readonly collisionPadding: number | {
|
|
607
|
-
top?: number | undefined;
|
|
608
|
-
right?: number | undefined;
|
|
609
|
-
bottom?: number | undefined;
|
|
610
|
-
left?: number | undefined;
|
|
611
|
-
};
|
|
612
|
-
readonly arrowPadding: number;
|
|
613
|
-
readonly sticky: "partial" | "always";
|
|
614
|
-
readonly hideWhenDetached: boolean;
|
|
615
|
-
readonly ariaLabel: string | undefined;
|
|
616
|
-
readonly onEscapeKeyDown: ((_event: KeyboardEvent) => any) | undefined;
|
|
617
|
-
readonly onPointerDownOutside: ((_event: Event) => any) | undefined;
|
|
618
|
-
} & Record<string, any>>;
|
|
619
|
-
forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
|
|
620
|
-
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
621
|
-
escapeKeyDown: (_event: KeyboardEvent) => boolean;
|
|
622
|
-
pointerDownOutside: (_event: Event) => boolean;
|
|
623
|
-
}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
624
|
-
readonly side: {
|
|
625
|
-
readonly default: "top";
|
|
626
|
-
readonly type: vue.PropType<"top" | "right" | "bottom" | "left">;
|
|
627
|
-
readonly required: false;
|
|
628
|
-
};
|
|
629
|
-
readonly sideOffset: {
|
|
630
|
-
readonly type: vue.PropType<number>;
|
|
631
|
-
readonly required: false;
|
|
632
|
-
readonly default: 0;
|
|
633
|
-
};
|
|
634
|
-
readonly align: {
|
|
635
|
-
readonly type: vue.PropType<"start" | "center" | "end">;
|
|
636
|
-
readonly required: false;
|
|
637
|
-
readonly default: "center";
|
|
638
|
-
};
|
|
639
|
-
readonly alignOffset: {
|
|
640
|
-
readonly type: vue.PropType<number>;
|
|
641
|
-
readonly required: false;
|
|
642
|
-
readonly default: 0;
|
|
643
|
-
};
|
|
644
|
-
readonly avoidCollisions: {
|
|
645
|
-
readonly type: vue.PropType<boolean>;
|
|
646
|
-
readonly required: false;
|
|
647
|
-
readonly default: true;
|
|
648
|
-
};
|
|
649
|
-
readonly collisionBoundary: {
|
|
650
|
-
readonly type: vue.PropType<Element | (Element | null)[] | null>;
|
|
651
|
-
readonly required: false;
|
|
652
|
-
readonly default: () => never[];
|
|
653
|
-
};
|
|
654
|
-
readonly collisionPadding: {
|
|
655
|
-
readonly type: vue.PropType<number | Partial<Record<"top" | "right" | "bottom" | "left", number>>>;
|
|
656
|
-
readonly required: false;
|
|
657
|
-
readonly default: 0;
|
|
658
|
-
};
|
|
659
|
-
readonly arrowPadding: {
|
|
660
|
-
readonly type: vue.PropType<number>;
|
|
661
|
-
readonly required: false;
|
|
662
|
-
readonly default: 0;
|
|
663
|
-
};
|
|
664
|
-
readonly sticky: {
|
|
665
|
-
readonly type: vue.PropType<"partial" | "always">;
|
|
666
|
-
readonly required: false;
|
|
667
|
-
readonly default: "partial";
|
|
668
|
-
};
|
|
669
|
-
readonly hideWhenDetached: {
|
|
670
|
-
readonly type: vue.PropType<boolean>;
|
|
671
|
-
readonly required: false;
|
|
672
|
-
readonly default: false;
|
|
673
|
-
};
|
|
674
|
-
readonly ariaLabel: {
|
|
675
|
-
readonly type: vue.PropType<string>;
|
|
676
|
-
readonly required: false;
|
|
677
|
-
};
|
|
678
|
-
readonly as: {
|
|
679
|
-
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
680
|
-
readonly required: false;
|
|
681
|
-
readonly default: "div";
|
|
682
|
-
};
|
|
683
|
-
readonly asChild: {
|
|
684
|
-
readonly type: vue.PropType<boolean>;
|
|
685
|
-
readonly required: false;
|
|
686
|
-
readonly default: false;
|
|
687
|
-
};
|
|
688
|
-
}>> & {
|
|
689
|
-
onEscapeKeyDown?: ((_event: KeyboardEvent) => any) | undefined;
|
|
690
|
-
onPointerDownOutside?: ((_event: Event) => any) | undefined;
|
|
691
|
-
}, {
|
|
692
|
-
readonly as: _destyler_primitive.AsTag | vue.Component;
|
|
693
|
-
readonly asChild: boolean;
|
|
694
|
-
readonly side: "top" | "right" | "bottom" | "left";
|
|
695
|
-
readonly sideOffset: number;
|
|
696
|
-
readonly align: "start" | "center" | "end";
|
|
697
|
-
readonly alignOffset: number;
|
|
698
|
-
readonly avoidCollisions: boolean;
|
|
699
|
-
readonly collisionBoundary: Element | (Element | null)[] | null;
|
|
700
|
-
readonly collisionPadding: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
|
|
701
|
-
readonly arrowPadding: number;
|
|
702
|
-
readonly sticky: "partial" | "always";
|
|
703
|
-
readonly hideWhenDetached: boolean;
|
|
704
|
-
}, {}>;
|
|
705
|
-
|
|
706
|
-
declare const tooltipPortalProps: {
|
|
707
|
-
readonly to: {
|
|
708
|
-
readonly type: vue.PropType<string | HTMLElement>;
|
|
709
|
-
readonly required: false;
|
|
710
|
-
readonly default: "body";
|
|
711
|
-
};
|
|
712
|
-
readonly disabled: {
|
|
713
|
-
readonly type: vue.PropType<boolean>;
|
|
714
|
-
readonly required: false;
|
|
715
|
-
readonly default: false;
|
|
716
|
-
};
|
|
717
|
-
readonly forceMount: {
|
|
718
|
-
readonly type: vue.PropType<boolean>;
|
|
719
|
-
readonly required: false;
|
|
720
|
-
readonly default: false;
|
|
721
|
-
};
|
|
722
|
-
};
|
|
723
|
-
type TooltipPortalProps = ExtractPublicPropTypes<typeof tooltipPortalProps>;
|
|
724
|
-
declare const TooltipPortal: vue.DefineComponent<{
|
|
725
|
-
readonly to: {
|
|
726
|
-
readonly type: vue.PropType<string | HTMLElement>;
|
|
727
|
-
readonly required: false;
|
|
728
|
-
readonly default: "body";
|
|
729
|
-
};
|
|
730
|
-
readonly disabled: {
|
|
731
|
-
readonly type: vue.PropType<boolean>;
|
|
732
|
-
readonly required: false;
|
|
733
|
-
readonly default: false;
|
|
734
|
-
};
|
|
735
|
-
readonly forceMount: {
|
|
736
|
-
readonly type: vue.PropType<boolean>;
|
|
737
|
-
readonly required: false;
|
|
738
|
-
readonly default: false;
|
|
739
|
-
};
|
|
740
|
-
}, unknown, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
741
|
-
readonly to: {
|
|
742
|
-
readonly type: vue.PropType<string | HTMLElement>;
|
|
743
|
-
readonly required: false;
|
|
744
|
-
readonly default: "body";
|
|
745
|
-
};
|
|
746
|
-
readonly disabled: {
|
|
747
|
-
readonly type: vue.PropType<boolean>;
|
|
748
|
-
readonly required: false;
|
|
749
|
-
readonly default: false;
|
|
750
|
-
};
|
|
751
|
-
readonly forceMount: {
|
|
752
|
-
readonly type: vue.PropType<boolean>;
|
|
753
|
-
readonly required: false;
|
|
754
|
-
readonly default: false;
|
|
755
|
-
};
|
|
756
|
-
}>>, {
|
|
757
|
-
readonly disabled: boolean;
|
|
758
|
-
readonly to: string | HTMLElement;
|
|
759
|
-
readonly forceMount: boolean;
|
|
760
|
-
}, {}>;
|
|
761
|
-
|
|
762
|
-
declare const tooltipProviderProps: {
|
|
763
|
-
/**
|
|
764
|
-
* The duration from when the pointer enters the trigger until the tooltip gets opened.
|
|
765
|
-
*
|
|
766
|
-
* @default 700
|
|
767
|
-
*/
|
|
768
|
-
readonly delayDuration: {
|
|
769
|
-
readonly type: PropType<number>;
|
|
770
|
-
readonly required: false;
|
|
771
|
-
readonly default: 700;
|
|
772
|
-
};
|
|
773
|
-
/**
|
|
774
|
-
* How much time a user has to enter another trigger without incurring a delay again.
|
|
775
|
-
*
|
|
776
|
-
* @default 300
|
|
777
|
-
*/
|
|
778
|
-
readonly skipDelayDuration: {
|
|
779
|
-
readonly type: PropType<number>;
|
|
780
|
-
readonly required: false;
|
|
781
|
-
readonly default: 300;
|
|
782
|
-
};
|
|
783
|
-
/**
|
|
784
|
-
* When `true`, trying to hover the content will result in the tooltip closing as the pointer leaves the trigger.
|
|
785
|
-
*
|
|
786
|
-
* @default false
|
|
787
|
-
*/
|
|
788
|
-
readonly disableHoverableContent: {
|
|
789
|
-
readonly type: PropType<boolean>;
|
|
790
|
-
readonly required: false;
|
|
791
|
-
readonly default: false;
|
|
792
|
-
};
|
|
793
|
-
/**
|
|
794
|
-
* When `true`, clicking on trigger will not close the content.
|
|
795
|
-
*
|
|
796
|
-
* @default false
|
|
797
|
-
*/
|
|
798
|
-
readonly disableClosingTrigger: {
|
|
799
|
-
readonly type: PropType<boolean>;
|
|
800
|
-
readonly required: false;
|
|
801
|
-
readonly default: false;
|
|
802
|
-
};
|
|
803
|
-
/**
|
|
804
|
-
* When `true`, disable tooltip
|
|
805
|
-
*
|
|
806
|
-
* @default false
|
|
807
|
-
*/
|
|
808
|
-
readonly disabled: {
|
|
809
|
-
readonly type: PropType<boolean>;
|
|
810
|
-
readonly required: false;
|
|
811
|
-
readonly default: false;
|
|
812
|
-
};
|
|
813
|
-
/**
|
|
814
|
-
* Prevent the tooltip from opening if the focus did not come from
|
|
815
|
-
* the keyboard by matching against the `:focus-visible` selector.
|
|
816
|
-
* This is useful if you want to avoid opening it when switching
|
|
817
|
-
* browser tabs or closing a dialog.
|
|
818
|
-
*
|
|
819
|
-
* @default false
|
|
820
|
-
*/
|
|
821
|
-
readonly ignoreNonKeyboardFocus: {
|
|
822
|
-
readonly type: PropType<boolean>;
|
|
823
|
-
readonly required: false;
|
|
824
|
-
readonly default: false;
|
|
825
|
-
};
|
|
826
|
-
};
|
|
827
|
-
type TooltipProviderProps = ExtractPublicPropTypes<typeof tooltipProviderProps>;
|
|
828
|
-
interface TooltipProviderContext {
|
|
829
|
-
isOpenDelayed: Ref<boolean>;
|
|
830
|
-
delayDuration: Ref<number>;
|
|
831
|
-
onOpen: () => void;
|
|
832
|
-
onClose: () => void;
|
|
833
|
-
isPointerInTransitRef: Ref<boolean>;
|
|
834
|
-
disableHoverableContent: Ref<boolean>;
|
|
835
|
-
disableClosingTrigger: Ref<boolean>;
|
|
836
|
-
disabled: Ref<boolean>;
|
|
837
|
-
ignoreNonKeyboardFocus: Ref<boolean>;
|
|
838
|
-
}
|
|
839
|
-
declare const TooltipProvider: vue.DefineComponent<{
|
|
840
|
-
/**
|
|
841
|
-
* The duration from when the pointer enters the trigger until the tooltip gets opened.
|
|
842
|
-
*
|
|
843
|
-
* @default 700
|
|
844
|
-
*/
|
|
845
|
-
readonly delayDuration: {
|
|
846
|
-
readonly type: PropType<number>;
|
|
847
|
-
readonly required: false;
|
|
848
|
-
readonly default: 700;
|
|
849
|
-
};
|
|
850
|
-
/**
|
|
851
|
-
* How much time a user has to enter another trigger without incurring a delay again.
|
|
852
|
-
*
|
|
853
|
-
* @default 300
|
|
854
|
-
*/
|
|
855
|
-
readonly skipDelayDuration: {
|
|
856
|
-
readonly type: PropType<number>;
|
|
857
|
-
readonly required: false;
|
|
858
|
-
readonly default: 300;
|
|
859
|
-
};
|
|
860
|
-
/**
|
|
861
|
-
* When `true`, trying to hover the content will result in the tooltip closing as the pointer leaves the trigger.
|
|
862
|
-
*
|
|
863
|
-
* @default false
|
|
864
|
-
*/
|
|
865
|
-
readonly disableHoverableContent: {
|
|
866
|
-
readonly type: PropType<boolean>;
|
|
867
|
-
readonly required: false;
|
|
868
|
-
readonly default: false;
|
|
869
|
-
};
|
|
870
|
-
/**
|
|
871
|
-
* When `true`, clicking on trigger will not close the content.
|
|
872
|
-
*
|
|
873
|
-
* @default false
|
|
874
|
-
*/
|
|
875
|
-
readonly disableClosingTrigger: {
|
|
876
|
-
readonly type: PropType<boolean>;
|
|
877
|
-
readonly required: false;
|
|
878
|
-
readonly default: false;
|
|
879
|
-
};
|
|
880
|
-
/**
|
|
881
|
-
* When `true`, disable tooltip
|
|
882
|
-
*
|
|
883
|
-
* @default false
|
|
884
|
-
*/
|
|
885
|
-
readonly disabled: {
|
|
886
|
-
readonly type: PropType<boolean>;
|
|
887
|
-
readonly required: false;
|
|
888
|
-
readonly default: false;
|
|
889
|
-
};
|
|
890
|
-
/**
|
|
891
|
-
* Prevent the tooltip from opening if the focus did not come from
|
|
892
|
-
* the keyboard by matching against the `:focus-visible` selector.
|
|
893
|
-
* This is useful if you want to avoid opening it when switching
|
|
894
|
-
* browser tabs or closing a dialog.
|
|
895
|
-
*
|
|
896
|
-
* @default false
|
|
897
|
-
*/
|
|
898
|
-
readonly ignoreNonKeyboardFocus: {
|
|
899
|
-
readonly type: PropType<boolean>;
|
|
900
|
-
readonly required: false;
|
|
901
|
-
readonly default: false;
|
|
902
|
-
};
|
|
903
|
-
}, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
904
|
-
/**
|
|
905
|
-
* The duration from when the pointer enters the trigger until the tooltip gets opened.
|
|
906
|
-
*
|
|
907
|
-
* @default 700
|
|
908
|
-
*/
|
|
909
|
-
readonly delayDuration: {
|
|
910
|
-
readonly type: PropType<number>;
|
|
911
|
-
readonly required: false;
|
|
912
|
-
readonly default: 700;
|
|
913
|
-
};
|
|
914
|
-
/**
|
|
915
|
-
* How much time a user has to enter another trigger without incurring a delay again.
|
|
916
|
-
*
|
|
917
|
-
* @default 300
|
|
918
|
-
*/
|
|
919
|
-
readonly skipDelayDuration: {
|
|
920
|
-
readonly type: PropType<number>;
|
|
921
|
-
readonly required: false;
|
|
922
|
-
readonly default: 300;
|
|
923
|
-
};
|
|
924
|
-
/**
|
|
925
|
-
* When `true`, trying to hover the content will result in the tooltip closing as the pointer leaves the trigger.
|
|
926
|
-
*
|
|
927
|
-
* @default false
|
|
928
|
-
*/
|
|
929
|
-
readonly disableHoverableContent: {
|
|
930
|
-
readonly type: PropType<boolean>;
|
|
931
|
-
readonly required: false;
|
|
932
|
-
readonly default: false;
|
|
933
|
-
};
|
|
934
|
-
/**
|
|
935
|
-
* When `true`, clicking on trigger will not close the content.
|
|
936
|
-
*
|
|
937
|
-
* @default false
|
|
938
|
-
*/
|
|
939
|
-
readonly disableClosingTrigger: {
|
|
940
|
-
readonly type: PropType<boolean>;
|
|
941
|
-
readonly required: false;
|
|
942
|
-
readonly default: false;
|
|
943
|
-
};
|
|
944
|
-
/**
|
|
945
|
-
* When `true`, disable tooltip
|
|
946
|
-
*
|
|
947
|
-
* @default false
|
|
948
|
-
*/
|
|
949
|
-
readonly disabled: {
|
|
950
|
-
readonly type: PropType<boolean>;
|
|
951
|
-
readonly required: false;
|
|
952
|
-
readonly default: false;
|
|
953
|
-
};
|
|
954
|
-
/**
|
|
955
|
-
* Prevent the tooltip from opening if the focus did not come from
|
|
956
|
-
* the keyboard by matching against the `:focus-visible` selector.
|
|
957
|
-
* This is useful if you want to avoid opening it when switching
|
|
958
|
-
* browser tabs or closing a dialog.
|
|
959
|
-
*
|
|
960
|
-
* @default false
|
|
961
|
-
*/
|
|
962
|
-
readonly ignoreNonKeyboardFocus: {
|
|
963
|
-
readonly type: PropType<boolean>;
|
|
964
|
-
readonly required: false;
|
|
965
|
-
readonly default: false;
|
|
966
|
-
};
|
|
967
|
-
}>>, {
|
|
968
|
-
readonly delayDuration: number;
|
|
969
|
-
readonly skipDelayDuration: number;
|
|
970
|
-
readonly disableHoverableContent: boolean;
|
|
971
|
-
readonly disableClosingTrigger: boolean;
|
|
972
|
-
readonly disabled: boolean;
|
|
973
|
-
readonly ignoreNonKeyboardFocus: boolean;
|
|
974
|
-
}, {}>;
|
|
975
|
-
|
|
976
|
-
declare const tooltipTriggerProps: {
|
|
977
|
-
/**
|
|
978
|
-
* @default button
|
|
979
|
-
*/
|
|
980
|
-
readonly as: {
|
|
981
|
-
readonly default: "button";
|
|
982
|
-
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
983
|
-
readonly required: false;
|
|
984
|
-
};
|
|
985
|
-
readonly asChild: {
|
|
986
|
-
readonly type: vue.PropType<boolean>;
|
|
987
|
-
readonly required: false;
|
|
988
|
-
readonly default: false;
|
|
989
|
-
};
|
|
990
|
-
};
|
|
991
|
-
type TooltipTriggerProps = ExtractPublicPropTypes<typeof tooltipTriggerProps>;
|
|
992
|
-
declare const TooltipTrigger: vue.DefineComponent<{
|
|
993
|
-
/**
|
|
994
|
-
* @default button
|
|
995
|
-
*/
|
|
996
|
-
readonly as: {
|
|
997
|
-
readonly default: "button";
|
|
998
|
-
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
999
|
-
readonly required: false;
|
|
1000
|
-
};
|
|
1001
|
-
readonly asChild: {
|
|
1002
|
-
readonly type: vue.PropType<boolean>;
|
|
1003
|
-
readonly required: false;
|
|
1004
|
-
readonly default: false;
|
|
1005
|
-
};
|
|
1006
|
-
}, {
|
|
1007
|
-
rootContext: TooltipContext;
|
|
1008
|
-
providerContext: TooltipProviderContext;
|
|
1009
|
-
forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
|
|
1010
|
-
isPointerDown: vue.Ref<boolean>;
|
|
1011
|
-
hasPointerMoveOpened: vue.Ref<boolean>;
|
|
1012
|
-
handlePointerDown: () => void;
|
|
1013
|
-
tooltipListeners: vue.ComputedRef<{
|
|
1014
|
-
onclick?: undefined;
|
|
1015
|
-
onfocus?: undefined;
|
|
1016
|
-
onpointermove?: undefined;
|
|
1017
|
-
onpointerleave?: undefined;
|
|
1018
|
-
onpointerdown?: undefined;
|
|
1019
|
-
onblur?: undefined;
|
|
1020
|
-
} | {
|
|
1021
|
-
onclick: () => void;
|
|
1022
|
-
onfocus: (event: FocusEvent) => void;
|
|
1023
|
-
onpointermove: (event: PointerEvent) => void;
|
|
1024
|
-
onpointerleave: () => void;
|
|
1025
|
-
onpointerdown: () => void;
|
|
1026
|
-
onblur: () => void;
|
|
1027
|
-
}>;
|
|
1028
|
-
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
1029
|
-
/**
|
|
1030
|
-
* @default button
|
|
1031
|
-
*/
|
|
1032
|
-
readonly as: {
|
|
1033
|
-
readonly default: "button";
|
|
1034
|
-
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
1035
|
-
readonly required: false;
|
|
1036
|
-
};
|
|
1037
|
-
readonly asChild: {
|
|
1038
|
-
readonly type: vue.PropType<boolean>;
|
|
1039
|
-
readonly required: false;
|
|
1040
|
-
readonly default: false;
|
|
1041
|
-
};
|
|
1042
|
-
}>>, {
|
|
1043
|
-
readonly as: _destyler_primitive.AsTag | vue.Component;
|
|
1044
|
-
readonly asChild: boolean;
|
|
1045
|
-
}, {}>;
|
|
1046
|
-
|
|
1047
|
-
export { type TooltipContext as T, TooltipArrow as a, type TooltipArrowProps as b, TooltipContent as c, tooltipContentEmits as d, tooltipContentProps as e, type TooltipContentProps as f, TooltipPortal as g, tooltipPortalProps as h, type TooltipPortalProps as i, TooltipProvider as j, tooltipProviderProps as k, type TooltipProviderProps as l, TooltipRoot as m, tooltipRootProps as n, tooltipRootEmits as o, type TooltipRootProps as p, TooltipTrigger as q, tooltipTriggerProps as r, type TooltipTriggerProps as s, tooltipArrowProps as t };
|