@destyler/tooltip 0.0.3 → 0.0.4
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/README.md +7 -0
- package/dist/component.cjs +369 -360
- package/dist/component.d.cts +438 -58
- package/dist/component.d.mts +438 -58
- package/dist/component.d.ts +438 -58
- package/dist/component.mjs +359 -360
- package/dist/index.cjs +13 -7
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/resolver.cjs +8 -8
- package/dist/resolver.d.cts +2 -2
- package/dist/resolver.d.mts +2 -2
- package/dist/resolver.d.ts +2 -2
- package/dist/resolver.mjs +8 -8
- package/dist/shared/tooltip.6a045e60.d.cts +1047 -0
- package/dist/shared/tooltip.6a045e60.d.mts +1047 -0
- package/dist/shared/tooltip.6a045e60.d.ts +1047 -0
- package/package.json +18 -20
- package/dist/shared/tooltip.79d8523b.d.cts +0 -600
- package/dist/shared/tooltip.79d8523b.d.mts +0 -600
- package/dist/shared/tooltip.79d8523b.d.ts +0 -600
package/dist/component.d.cts
CHANGED
|
@@ -1,27 +1,16 @@
|
|
|
1
|
-
import { T as TooltipContext } from './shared/tooltip.
|
|
2
|
-
export {
|
|
3
|
-
import * as
|
|
4
|
-
import { PropType, Component } from 'vue';
|
|
1
|
+
import { T as TooltipContext } from './shared/tooltip.6a045e60.cjs';
|
|
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.cjs';
|
|
3
|
+
import * as _vue_shared from '@vue/shared';
|
|
5
4
|
import * as _destyler_primitive from '@destyler/primitive';
|
|
6
|
-
import
|
|
5
|
+
import * as vue from 'vue';
|
|
6
|
+
import { PropType } from 'vue';
|
|
7
7
|
import { ExtractPublicPropTypes } from '@destyler/shared';
|
|
8
|
-
import '@vue/shared';
|
|
9
8
|
|
|
10
|
-
declare const
|
|
11
|
-
readonly as: {
|
|
12
|
-
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
13
|
-
readonly required: false;
|
|
14
|
-
readonly default: "div";
|
|
15
|
-
};
|
|
16
|
-
readonly asChild: {
|
|
17
|
-
readonly type: vue.PropType<boolean>;
|
|
18
|
-
readonly required: false;
|
|
19
|
-
readonly default: false;
|
|
20
|
-
};
|
|
9
|
+
declare const TooltipContentHoverable: vue.DefineComponent<{
|
|
21
10
|
readonly side: {
|
|
11
|
+
readonly default: "top";
|
|
22
12
|
readonly type: vue.PropType<"top" | "right" | "bottom" | "left">;
|
|
23
13
|
readonly required: false;
|
|
24
|
-
readonly default: "top";
|
|
25
14
|
};
|
|
26
15
|
readonly sideOffset: {
|
|
27
16
|
readonly type: vue.PropType<number>;
|
|
@@ -72,9 +61,6 @@ declare const DestylerTooltipContentHoverable: vue.DefineComponent<{
|
|
|
72
61
|
readonly type: vue.PropType<string>;
|
|
73
62
|
readonly required: false;
|
|
74
63
|
};
|
|
75
|
-
}, {
|
|
76
|
-
forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
|
|
77
|
-
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
78
64
|
readonly as: {
|
|
79
65
|
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
80
66
|
readonly required: false;
|
|
@@ -85,10 +71,151 @@ declare const DestylerTooltipContentHoverable: vue.DefineComponent<{
|
|
|
85
71
|
readonly required: false;
|
|
86
72
|
readonly default: false;
|
|
87
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<{
|
|
88
215
|
readonly side: {
|
|
216
|
+
readonly default: "top";
|
|
89
217
|
readonly type: vue.PropType<"top" | "right" | "bottom" | "left">;
|
|
90
218
|
readonly required: false;
|
|
91
|
-
readonly default: "top";
|
|
92
219
|
};
|
|
93
220
|
readonly sideOffset: {
|
|
94
221
|
readonly type: vue.PropType<number>;
|
|
@@ -139,6 +266,16 @@ declare const DestylerTooltipContentHoverable: vue.DefineComponent<{
|
|
|
139
266
|
readonly type: vue.PropType<string>;
|
|
140
267
|
readonly required: false;
|
|
141
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
|
+
};
|
|
142
279
|
}>>, {
|
|
143
280
|
readonly as: _destyler_primitive.AsTag | vue.Component;
|
|
144
281
|
readonly asChild: boolean;
|
|
@@ -154,144 +291,300 @@ declare const DestylerTooltipContentHoverable: vue.DefineComponent<{
|
|
|
154
291
|
readonly hideWhenDetached: boolean;
|
|
155
292
|
}, {}>;
|
|
156
293
|
|
|
157
|
-
declare const
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
readonly required: false;
|
|
166
|
-
readonly default: false;
|
|
167
|
-
};
|
|
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
|
+
*/
|
|
168
302
|
readonly side: {
|
|
303
|
+
readonly default: "top";
|
|
169
304
|
readonly type: PropType<"top" | "right" | "bottom" | "left">;
|
|
170
305
|
readonly required: false;
|
|
171
|
-
readonly default: "top";
|
|
172
306
|
};
|
|
307
|
+
/**
|
|
308
|
+
* The distance in pixels from the trigger.
|
|
309
|
+
*
|
|
310
|
+
* @default 0
|
|
311
|
+
*/
|
|
173
312
|
readonly sideOffset: {
|
|
174
313
|
readonly type: PropType<number>;
|
|
175
314
|
readonly required: false;
|
|
176
315
|
readonly default: 0;
|
|
177
316
|
};
|
|
317
|
+
/**
|
|
318
|
+
* The preferred alignment against the trigger.
|
|
319
|
+
* May change when collisions occur.
|
|
320
|
+
*
|
|
321
|
+
* @default center
|
|
322
|
+
*/
|
|
178
323
|
readonly align: {
|
|
179
324
|
readonly type: PropType<"start" | "center" | "end">;
|
|
180
325
|
readonly required: false;
|
|
181
326
|
readonly default: "center";
|
|
182
327
|
};
|
|
328
|
+
/**
|
|
329
|
+
* An offset in pixels from the `start` or `end` alignment options.
|
|
330
|
+
*
|
|
331
|
+
* @default 0
|
|
332
|
+
*/
|
|
183
333
|
readonly alignOffset: {
|
|
184
334
|
readonly type: PropType<number>;
|
|
185
335
|
readonly required: false;
|
|
186
336
|
readonly default: 0;
|
|
187
337
|
};
|
|
338
|
+
/**
|
|
339
|
+
* When `true`, overrides the side andalign preferences
|
|
340
|
+
* to prevent collisions with boundary edges.
|
|
341
|
+
*
|
|
342
|
+
* @default true
|
|
343
|
+
*/
|
|
188
344
|
readonly avoidCollisions: {
|
|
189
345
|
readonly type: PropType<boolean>;
|
|
190
346
|
readonly required: false;
|
|
191
347
|
readonly default: true;
|
|
192
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
|
+
*/
|
|
193
356
|
readonly collisionBoundary: {
|
|
194
357
|
readonly type: PropType<Element | (Element | null)[] | null>;
|
|
195
358
|
readonly required: false;
|
|
196
359
|
readonly default: () => never[];
|
|
197
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
|
+
*/
|
|
198
368
|
readonly collisionPadding: {
|
|
199
369
|
readonly type: PropType<number | Partial<Record<"top" | "right" | "bottom" | "left", number>>>;
|
|
200
370
|
readonly required: false;
|
|
201
371
|
readonly default: 0;
|
|
202
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
|
+
*/
|
|
203
380
|
readonly arrowPadding: {
|
|
204
381
|
readonly type: PropType<number>;
|
|
205
382
|
readonly required: false;
|
|
206
383
|
readonly default: 0;
|
|
207
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
|
+
*/
|
|
208
393
|
readonly sticky: {
|
|
209
394
|
readonly type: PropType<"partial" | "always">;
|
|
210
395
|
readonly required: false;
|
|
211
396
|
readonly default: "partial";
|
|
212
397
|
};
|
|
398
|
+
/**
|
|
399
|
+
* Whether to hide the content when the trigger becomes fully occluded.
|
|
400
|
+
*
|
|
401
|
+
* @default false
|
|
402
|
+
*/
|
|
213
403
|
readonly hideWhenDetached: {
|
|
214
404
|
readonly type: PropType<boolean>;
|
|
215
405
|
readonly required: false;
|
|
216
406
|
readonly default: false;
|
|
217
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
|
+
*/
|
|
218
415
|
readonly ariaLabel: {
|
|
219
416
|
readonly type: PropType<string>;
|
|
220
417
|
readonly required: false;
|
|
221
418
|
};
|
|
222
|
-
};
|
|
223
|
-
type DestylerTooltipContentImplProps = ExtractPublicPropTypes<typeof destylerTooltipContentImplProps>;
|
|
224
|
-
declare const DestylerTooltipContentImpl: vue.DefineComponent<{
|
|
225
419
|
readonly as: {
|
|
226
|
-
readonly type: PropType<AsTag | Component>;
|
|
420
|
+
readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
227
421
|
readonly required: false;
|
|
228
422
|
readonly default: "div";
|
|
229
423
|
};
|
|
230
424
|
readonly asChild: {
|
|
231
425
|
readonly type: PropType<boolean>;
|
|
232
426
|
readonly required: false;
|
|
233
|
-
readonly default: false;
|
|
427
|
+
readonly default: false; /**
|
|
428
|
+
* The distance in pixels from the trigger.
|
|
429
|
+
*
|
|
430
|
+
* @default 0
|
|
431
|
+
*/
|
|
234
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
|
+
*/
|
|
235
453
|
readonly side: {
|
|
454
|
+
readonly default: "top";
|
|
236
455
|
readonly type: PropType<"top" | "right" | "bottom" | "left">;
|
|
237
456
|
readonly required: false;
|
|
238
|
-
readonly default: "top";
|
|
239
457
|
};
|
|
458
|
+
/**
|
|
459
|
+
* The distance in pixels from the trigger.
|
|
460
|
+
*
|
|
461
|
+
* @default 0
|
|
462
|
+
*/
|
|
240
463
|
readonly sideOffset: {
|
|
241
464
|
readonly type: PropType<number>;
|
|
242
465
|
readonly required: false;
|
|
243
466
|
readonly default: 0;
|
|
244
467
|
};
|
|
468
|
+
/**
|
|
469
|
+
* The preferred alignment against the trigger.
|
|
470
|
+
* May change when collisions occur.
|
|
471
|
+
*
|
|
472
|
+
* @default center
|
|
473
|
+
*/
|
|
245
474
|
readonly align: {
|
|
246
475
|
readonly type: PropType<"start" | "center" | "end">;
|
|
247
476
|
readonly required: false;
|
|
248
477
|
readonly default: "center";
|
|
249
478
|
};
|
|
479
|
+
/**
|
|
480
|
+
* An offset in pixels from the `start` or `end` alignment options.
|
|
481
|
+
*
|
|
482
|
+
* @default 0
|
|
483
|
+
*/
|
|
250
484
|
readonly alignOffset: {
|
|
251
485
|
readonly type: PropType<number>;
|
|
252
486
|
readonly required: false;
|
|
253
487
|
readonly default: 0;
|
|
254
488
|
};
|
|
489
|
+
/**
|
|
490
|
+
* When `true`, overrides the side andalign preferences
|
|
491
|
+
* to prevent collisions with boundary edges.
|
|
492
|
+
*
|
|
493
|
+
* @default true
|
|
494
|
+
*/
|
|
255
495
|
readonly avoidCollisions: {
|
|
256
496
|
readonly type: PropType<boolean>;
|
|
257
497
|
readonly required: false;
|
|
258
498
|
readonly default: true;
|
|
259
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
|
+
*/
|
|
260
507
|
readonly collisionBoundary: {
|
|
261
508
|
readonly type: PropType<Element | (Element | null)[] | null>;
|
|
262
509
|
readonly required: false;
|
|
263
510
|
readonly default: () => never[];
|
|
264
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
|
+
*/
|
|
265
519
|
readonly collisionPadding: {
|
|
266
520
|
readonly type: PropType<number | Partial<Record<"top" | "right" | "bottom" | "left", number>>>;
|
|
267
521
|
readonly required: false;
|
|
268
522
|
readonly default: 0;
|
|
269
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
|
+
*/
|
|
270
531
|
readonly arrowPadding: {
|
|
271
532
|
readonly type: PropType<number>;
|
|
272
533
|
readonly required: false;
|
|
273
534
|
readonly default: 0;
|
|
274
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
|
+
*/
|
|
275
544
|
readonly sticky: {
|
|
276
545
|
readonly type: PropType<"partial" | "always">;
|
|
277
546
|
readonly required: false;
|
|
278
547
|
readonly default: "partial";
|
|
279
548
|
};
|
|
549
|
+
/**
|
|
550
|
+
* Whether to hide the content when the trigger becomes fully occluded.
|
|
551
|
+
*
|
|
552
|
+
* @default false
|
|
553
|
+
*/
|
|
280
554
|
readonly hideWhenDetached: {
|
|
281
555
|
readonly type: PropType<boolean>;
|
|
282
556
|
readonly required: false;
|
|
283
557
|
readonly default: false;
|
|
284
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
|
+
*/
|
|
285
566
|
readonly ariaLabel: {
|
|
286
567
|
readonly type: PropType<string>;
|
|
287
568
|
readonly required: false;
|
|
288
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
|
+
};
|
|
289
584
|
}, {
|
|
290
|
-
contentElement: vue.Ref<HTMLElement | undefined>;
|
|
291
585
|
rootContext: TooltipContext;
|
|
292
586
|
popperContentProps: vue.ComputedRef<{
|
|
293
|
-
|
|
294
|
-
as: AsTag | Component;
|
|
587
|
+
as: _destyler_primitive.AsTag | vue.Component;
|
|
295
588
|
asChild: boolean;
|
|
296
589
|
side: "top" | "right" | "bottom" | "left";
|
|
297
590
|
sideOffset: number;
|
|
@@ -303,77 +596,164 @@ declare const DestylerTooltipContentImpl: vue.DefineComponent<{
|
|
|
303
596
|
arrowPadding: number;
|
|
304
597
|
sticky: "partial" | "always";
|
|
305
598
|
hideWhenDetached: boolean;
|
|
599
|
+
onEscapeKeyDown: ((_event: KeyboardEvent) => any) | undefined;
|
|
600
|
+
onPointerDownOutside: ((_event: Event) => any) | undefined;
|
|
306
601
|
}>;
|
|
307
602
|
ariaLabel: vue.ComputedRef<string>;
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
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
|
+
*/
|
|
319
621
|
readonly side: {
|
|
622
|
+
readonly default: "top";
|
|
320
623
|
readonly type: PropType<"top" | "right" | "bottom" | "left">;
|
|
321
624
|
readonly required: false;
|
|
322
|
-
readonly default: "top";
|
|
323
625
|
};
|
|
626
|
+
/**
|
|
627
|
+
* The distance in pixels from the trigger.
|
|
628
|
+
*
|
|
629
|
+
* @default 0
|
|
630
|
+
*/
|
|
324
631
|
readonly sideOffset: {
|
|
325
632
|
readonly type: PropType<number>;
|
|
326
633
|
readonly required: false;
|
|
327
634
|
readonly default: 0;
|
|
328
635
|
};
|
|
636
|
+
/**
|
|
637
|
+
* The preferred alignment against the trigger.
|
|
638
|
+
* May change when collisions occur.
|
|
639
|
+
*
|
|
640
|
+
* @default center
|
|
641
|
+
*/
|
|
329
642
|
readonly align: {
|
|
330
643
|
readonly type: PropType<"start" | "center" | "end">;
|
|
331
644
|
readonly required: false;
|
|
332
645
|
readonly default: "center";
|
|
333
646
|
};
|
|
647
|
+
/**
|
|
648
|
+
* An offset in pixels from the `start` or `end` alignment options.
|
|
649
|
+
*
|
|
650
|
+
* @default 0
|
|
651
|
+
*/
|
|
334
652
|
readonly alignOffset: {
|
|
335
653
|
readonly type: PropType<number>;
|
|
336
654
|
readonly required: false;
|
|
337
655
|
readonly default: 0;
|
|
338
656
|
};
|
|
657
|
+
/**
|
|
658
|
+
* When `true`, overrides the side andalign preferences
|
|
659
|
+
* to prevent collisions with boundary edges.
|
|
660
|
+
*
|
|
661
|
+
* @default true
|
|
662
|
+
*/
|
|
339
663
|
readonly avoidCollisions: {
|
|
340
664
|
readonly type: PropType<boolean>;
|
|
341
665
|
readonly required: false;
|
|
342
666
|
readonly default: true;
|
|
343
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
|
+
*/
|
|
344
675
|
readonly collisionBoundary: {
|
|
345
676
|
readonly type: PropType<Element | (Element | null)[] | null>;
|
|
346
677
|
readonly required: false;
|
|
347
678
|
readonly default: () => never[];
|
|
348
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
|
+
*/
|
|
349
687
|
readonly collisionPadding: {
|
|
350
688
|
readonly type: PropType<number | Partial<Record<"top" | "right" | "bottom" | "left", number>>>;
|
|
351
689
|
readonly required: false;
|
|
352
690
|
readonly default: 0;
|
|
353
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
|
+
*/
|
|
354
699
|
readonly arrowPadding: {
|
|
355
700
|
readonly type: PropType<number>;
|
|
356
701
|
readonly required: false;
|
|
357
702
|
readonly default: 0;
|
|
358
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
|
+
*/
|
|
359
712
|
readonly sticky: {
|
|
360
713
|
readonly type: PropType<"partial" | "always">;
|
|
361
714
|
readonly required: false;
|
|
362
715
|
readonly default: "partial";
|
|
363
716
|
};
|
|
717
|
+
/**
|
|
718
|
+
* Whether to hide the content when the trigger becomes fully occluded.
|
|
719
|
+
*
|
|
720
|
+
* @default false
|
|
721
|
+
*/
|
|
364
722
|
readonly hideWhenDetached: {
|
|
365
723
|
readonly type: PropType<boolean>;
|
|
366
724
|
readonly required: false;
|
|
367
725
|
readonly default: false;
|
|
368
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
|
+
*/
|
|
369
734
|
readonly ariaLabel: {
|
|
370
735
|
readonly type: PropType<string>;
|
|
371
736
|
readonly required: false;
|
|
372
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
|
+
};
|
|
373
752
|
}>> & {
|
|
374
|
-
|
|
753
|
+
onEscapeKeyDown?: ((_event: KeyboardEvent) => any) | undefined;
|
|
754
|
+
onPointerDownOutside?: ((_event: Event) => any) | undefined;
|
|
375
755
|
}, {
|
|
376
|
-
readonly as: AsTag | Component;
|
|
756
|
+
readonly as: _destyler_primitive.AsTag | vue.Component;
|
|
377
757
|
readonly asChild: boolean;
|
|
378
758
|
readonly side: "top" | "right" | "bottom" | "left";
|
|
379
759
|
readonly sideOffset: number;
|
|
@@ -387,4 +767,4 @@ declare const DestylerTooltipContentImpl: vue.DefineComponent<{
|
|
|
387
767
|
readonly hideWhenDetached: boolean;
|
|
388
768
|
}, {}>;
|
|
389
769
|
|
|
390
|
-
export {
|
|
770
|
+
export { TooltipContentHoverable, TooltipContentImpl, type TooltipContentImplProps, tooltipContentImplEmits, tooltipContentImplProps };
|