@destyler/tooltip 0.0.3 → 0.0.5
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.cjs
CHANGED
|
@@ -4,181 +4,101 @@ const vue = require('vue');
|
|
|
4
4
|
const popper = require('@destyler/popper');
|
|
5
5
|
const composition = require('@destyler/composition');
|
|
6
6
|
const shared = require('@destyler/shared');
|
|
7
|
+
const primitive = require('@destyler/primitive');
|
|
7
8
|
const core = require('@vueuse/core');
|
|
8
9
|
const dismissableLayer = require('@destyler/dismissable-layer');
|
|
9
10
|
const visuallyHidden = require('@destyler/visually-hidden');
|
|
10
11
|
const teleport = require('@destyler/teleport');
|
|
11
|
-
const primitive = require('@destyler/primitive');
|
|
12
12
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
type: [String, Object],
|
|
16
|
-
required: false,
|
|
17
|
-
default: "div"
|
|
18
|
-
},
|
|
19
|
-
asChild: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
required: false,
|
|
22
|
-
default: false
|
|
23
|
-
},
|
|
24
|
-
width: {
|
|
25
|
-
type: Number,
|
|
26
|
-
required: false,
|
|
27
|
-
default: 10
|
|
28
|
-
},
|
|
29
|
-
height: {
|
|
30
|
-
type: Number,
|
|
31
|
-
required: false,
|
|
32
|
-
default: 5
|
|
33
|
-
}
|
|
13
|
+
const tooltipArrowProps = {
|
|
14
|
+
...popper.popperArrowProps
|
|
34
15
|
};
|
|
35
|
-
const
|
|
16
|
+
const TooltipArrow = vue.defineComponent({
|
|
36
17
|
name: "DestylerTooltipArrow",
|
|
37
|
-
props:
|
|
18
|
+
props: tooltipArrowProps,
|
|
19
|
+
setup() {
|
|
20
|
+
composition.useForwardExpose();
|
|
21
|
+
},
|
|
38
22
|
render() {
|
|
39
|
-
return vue.h(popper.
|
|
23
|
+
return vue.h(popper.PopperArrow, vue.mergeProps(this.$props), () => this.$slots.default?.());
|
|
40
24
|
}
|
|
41
25
|
});
|
|
42
26
|
|
|
43
27
|
const TOOLTIP_OPEN = "tooltip.open";
|
|
44
|
-
function getExitSideFromRect(point, rect) {
|
|
45
|
-
const top = Math.abs(rect.top - point.y);
|
|
46
|
-
const bottom = Math.abs(rect.bottom - point.y);
|
|
47
|
-
const right = Math.abs(rect.right - point.x);
|
|
48
|
-
const left = Math.abs(rect.left - point.x);
|
|
49
|
-
switch (Math.min(top, bottom, right, left)) {
|
|
50
|
-
case left:
|
|
51
|
-
return "left";
|
|
52
|
-
case right:
|
|
53
|
-
return "right";
|
|
54
|
-
case top:
|
|
55
|
-
return "top";
|
|
56
|
-
case bottom:
|
|
57
|
-
return "bottom";
|
|
58
|
-
default:
|
|
59
|
-
throw new Error("unreachable");
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
function getPaddedExitPoints(exitPoint, exitSide, padding = 5) {
|
|
63
|
-
const paddedExitPoints = [];
|
|
64
|
-
switch (exitSide) {
|
|
65
|
-
case "top":
|
|
66
|
-
paddedExitPoints.push(
|
|
67
|
-
{ x: exitPoint.x - padding, y: exitPoint.y + padding },
|
|
68
|
-
{ x: exitPoint.x + padding, y: exitPoint.y + padding }
|
|
69
|
-
);
|
|
70
|
-
break;
|
|
71
|
-
case "bottom":
|
|
72
|
-
paddedExitPoints.push(
|
|
73
|
-
{ x: exitPoint.x - padding, y: exitPoint.y - padding },
|
|
74
|
-
{ x: exitPoint.x + padding, y: exitPoint.y - padding }
|
|
75
|
-
);
|
|
76
|
-
break;
|
|
77
|
-
case "left":
|
|
78
|
-
paddedExitPoints.push(
|
|
79
|
-
{ x: exitPoint.x + padding, y: exitPoint.y - padding },
|
|
80
|
-
{ x: exitPoint.x + padding, y: exitPoint.y + padding }
|
|
81
|
-
);
|
|
82
|
-
break;
|
|
83
|
-
case "right":
|
|
84
|
-
paddedExitPoints.push(
|
|
85
|
-
{ x: exitPoint.x - padding, y: exitPoint.y - padding },
|
|
86
|
-
{ x: exitPoint.x - padding, y: exitPoint.y + padding }
|
|
87
|
-
);
|
|
88
|
-
break;
|
|
89
|
-
}
|
|
90
|
-
return paddedExitPoints;
|
|
91
|
-
}
|
|
92
|
-
function getPointsFromRect(rect) {
|
|
93
|
-
const { top, right, bottom, left } = rect;
|
|
94
|
-
return [
|
|
95
|
-
{ x: left, y: top },
|
|
96
|
-
{ x: right, y: top },
|
|
97
|
-
{ x: right, y: bottom },
|
|
98
|
-
{ x: left, y: bottom }
|
|
99
|
-
];
|
|
100
|
-
}
|
|
101
|
-
function getHull(points) {
|
|
102
|
-
const newPoints = points.slice();
|
|
103
|
-
newPoints.sort((a, b) => {
|
|
104
|
-
if (a.x < b.x)
|
|
105
|
-
return -1;
|
|
106
|
-
else if (a.x > b.x)
|
|
107
|
-
return 1;
|
|
108
|
-
else if (a.y < b.y)
|
|
109
|
-
return -1;
|
|
110
|
-
else if (a.y > b.y)
|
|
111
|
-
return 1;
|
|
112
|
-
else
|
|
113
|
-
return 0;
|
|
114
|
-
});
|
|
115
|
-
return getHullPresorted(newPoints);
|
|
116
|
-
}
|
|
117
|
-
function getHullPresorted(points) {
|
|
118
|
-
if (points.length <= 1)
|
|
119
|
-
return points.slice();
|
|
120
|
-
const upperHull = [];
|
|
121
|
-
for (let i = 0; i < points.length; i++) {
|
|
122
|
-
const p = points[i];
|
|
123
|
-
while (upperHull.length >= 2) {
|
|
124
|
-
const q = upperHull[upperHull.length - 1];
|
|
125
|
-
const r = upperHull[upperHull.length - 2];
|
|
126
|
-
if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x))
|
|
127
|
-
upperHull.pop();
|
|
128
|
-
else
|
|
129
|
-
break;
|
|
130
|
-
}
|
|
131
|
-
upperHull.push(p);
|
|
132
|
-
}
|
|
133
|
-
upperHull.pop();
|
|
134
|
-
const lowerHull = [];
|
|
135
|
-
for (let i = points.length - 1; i >= 0; i--) {
|
|
136
|
-
const p = points[i];
|
|
137
|
-
while (lowerHull.length >= 2) {
|
|
138
|
-
const q = lowerHull[lowerHull.length - 1];
|
|
139
|
-
const r = lowerHull[lowerHull.length - 2];
|
|
140
|
-
if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x))
|
|
141
|
-
lowerHull.pop();
|
|
142
|
-
else
|
|
143
|
-
break;
|
|
144
|
-
}
|
|
145
|
-
lowerHull.push(p);
|
|
146
|
-
}
|
|
147
|
-
lowerHull.pop();
|
|
148
|
-
if (upperHull.length === 1 && lowerHull.length === 1 && upperHull[0].x === lowerHull[0].x && upperHull[0].y === lowerHull[0].y)
|
|
149
|
-
return upperHull;
|
|
150
|
-
else
|
|
151
|
-
return upperHull.concat(lowerHull);
|
|
152
|
-
}
|
|
153
28
|
|
|
154
|
-
const
|
|
29
|
+
const tooltipProviderProps = {
|
|
30
|
+
/**
|
|
31
|
+
* The duration from when the pointer enters the trigger until the tooltip gets opened.
|
|
32
|
+
*
|
|
33
|
+
* @default 700
|
|
34
|
+
*/
|
|
155
35
|
delayDuration: {
|
|
156
36
|
type: Number,
|
|
157
37
|
required: false,
|
|
158
38
|
default: 700
|
|
159
39
|
},
|
|
40
|
+
/**
|
|
41
|
+
* How much time a user has to enter another trigger without incurring a delay again.
|
|
42
|
+
*
|
|
43
|
+
* @default 300
|
|
44
|
+
*/
|
|
160
45
|
skipDelayDuration: {
|
|
161
46
|
type: Number,
|
|
162
47
|
required: false,
|
|
163
48
|
default: 300
|
|
164
49
|
},
|
|
50
|
+
/**
|
|
51
|
+
* When `true`, trying to hover the content will result in the tooltip closing as the pointer leaves the trigger.
|
|
52
|
+
*
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
165
55
|
disableHoverableContent: {
|
|
166
56
|
type: Boolean,
|
|
167
57
|
required: false,
|
|
168
58
|
default: false
|
|
169
59
|
},
|
|
60
|
+
/**
|
|
61
|
+
* When `true`, clicking on trigger will not close the content.
|
|
62
|
+
*
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
170
65
|
disableClosingTrigger: {
|
|
171
66
|
type: Boolean,
|
|
172
67
|
required: false,
|
|
173
68
|
default: false
|
|
69
|
+
},
|
|
70
|
+
/**
|
|
71
|
+
* When `true`, disable tooltip
|
|
72
|
+
*
|
|
73
|
+
* @default false
|
|
74
|
+
*/
|
|
75
|
+
disabled: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
required: false,
|
|
78
|
+
default: false
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
* Prevent the tooltip from opening if the focus did not come from
|
|
82
|
+
* the keyboard by matching against the `:focus-visible` selector.
|
|
83
|
+
* This is useful if you want to avoid opening it when switching
|
|
84
|
+
* browser tabs or closing a dialog.
|
|
85
|
+
*
|
|
86
|
+
* @default false
|
|
87
|
+
*/
|
|
88
|
+
ignoreNonKeyboardFocus: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
required: false,
|
|
91
|
+
default: false
|
|
174
92
|
}
|
|
175
93
|
};
|
|
176
94
|
const [injectTooltipProviderContext, provideTooltipProviderContext] = shared.createContext("DestylerTooltipProvider");
|
|
177
|
-
const
|
|
95
|
+
const TooltipProvider = vue.defineComponent({
|
|
178
96
|
name: "DestylerTooltipProvider",
|
|
179
|
-
|
|
97
|
+
inheritAttrs: false,
|
|
98
|
+
props: tooltipProviderProps,
|
|
180
99
|
setup(props) {
|
|
181
|
-
const { delayDuration, skipDelayDuration, disableHoverableContent, disableClosingTrigger } = vue.toRefs(props);
|
|
100
|
+
const { delayDuration, skipDelayDuration, disableHoverableContent, disableClosingTrigger, ignoreNonKeyboardFocus, disabled } = vue.toRefs(props);
|
|
101
|
+
composition.useForwardExpose();
|
|
182
102
|
const isOpenDelayed = vue.ref(true);
|
|
183
103
|
const isPointerInTransitRef = vue.ref(false);
|
|
184
104
|
const { start: startTimer, stop: clearTimer } = composition.useTimeoutFn(() => {
|
|
@@ -195,11 +115,10 @@ const DestylerTooltipProvider = vue.defineComponent({
|
|
|
195
115
|
startTimer();
|
|
196
116
|
},
|
|
197
117
|
isPointerInTransitRef,
|
|
198
|
-
onPointerInTransitChange(inTransit) {
|
|
199
|
-
isPointerInTransitRef.value = inTransit;
|
|
200
|
-
},
|
|
201
118
|
disableHoverableContent,
|
|
202
|
-
disableClosingTrigger
|
|
119
|
+
disableClosingTrigger,
|
|
120
|
+
disabled,
|
|
121
|
+
ignoreNonKeyboardFocus
|
|
203
122
|
});
|
|
204
123
|
},
|
|
205
124
|
render() {
|
|
@@ -207,50 +126,105 @@ const DestylerTooltipProvider = vue.defineComponent({
|
|
|
207
126
|
}
|
|
208
127
|
});
|
|
209
128
|
|
|
210
|
-
const
|
|
129
|
+
const tooltipRootProps = {
|
|
130
|
+
/**
|
|
131
|
+
* The open state of the tooltip when it is initially rendered.
|
|
132
|
+
* Use when you do not need to control its open state.
|
|
133
|
+
*
|
|
134
|
+
* @default false
|
|
135
|
+
*/
|
|
211
136
|
defaultOpen: {
|
|
212
137
|
type: Boolean,
|
|
213
138
|
required: false,
|
|
214
139
|
default: false
|
|
215
140
|
},
|
|
141
|
+
/**
|
|
142
|
+
* The controlled open state of the tooltip.
|
|
143
|
+
*/
|
|
216
144
|
open: {
|
|
217
145
|
type: Boolean,
|
|
218
146
|
required: false,
|
|
219
147
|
default: void 0
|
|
220
148
|
},
|
|
149
|
+
/**
|
|
150
|
+
* Override the duration given to the `Provider` to customise
|
|
151
|
+
* the open delay for a specific tooltip.
|
|
152
|
+
*
|
|
153
|
+
* @default 400
|
|
154
|
+
*/
|
|
221
155
|
delayDuration: {
|
|
222
156
|
type: Number,
|
|
223
157
|
required: false,
|
|
224
158
|
default: 400
|
|
225
159
|
},
|
|
160
|
+
/**
|
|
161
|
+
* Prevents Tooltip.Content from remaining open when hovering.
|
|
162
|
+
* Disabling this has accessibility consequences. Inherits
|
|
163
|
+
* from Tooltip.Provider.
|
|
164
|
+
*/
|
|
226
165
|
disableHoverableContent: {
|
|
227
166
|
type: Boolean,
|
|
228
167
|
required: false,
|
|
229
168
|
default: void 0
|
|
230
169
|
},
|
|
170
|
+
/**
|
|
171
|
+
* When `true`, clicking on trigger will not close the content.
|
|
172
|
+
*
|
|
173
|
+
* @default false
|
|
174
|
+
*/
|
|
231
175
|
disableClosingTrigger: {
|
|
232
176
|
type: Boolean,
|
|
233
177
|
required: false,
|
|
234
178
|
default: void 0
|
|
179
|
+
},
|
|
180
|
+
/**
|
|
181
|
+
* When `true`, disable tooltip
|
|
182
|
+
*
|
|
183
|
+
* @default false
|
|
184
|
+
*/
|
|
185
|
+
disabled: {
|
|
186
|
+
type: Boolean,
|
|
187
|
+
required: false,
|
|
188
|
+
default: void 0
|
|
189
|
+
},
|
|
190
|
+
/**
|
|
191
|
+
* Prevent the tooltip from opening if the focus did not come from
|
|
192
|
+
* the keyboard by matching against the `:focus-visible` selector.
|
|
193
|
+
* This is useful if you want to avoid opening it when switching
|
|
194
|
+
* browser tabs or closing a dialog.
|
|
195
|
+
*
|
|
196
|
+
* @default false
|
|
197
|
+
*/
|
|
198
|
+
ignoreNonKeyboardFocus: {
|
|
199
|
+
type: Boolean,
|
|
200
|
+
required: false,
|
|
201
|
+
default: void 0
|
|
235
202
|
}
|
|
236
203
|
};
|
|
204
|
+
const tooltipRootEmits = {
|
|
205
|
+
/**
|
|
206
|
+
* Event handler called when the open state of the tooltip changes.
|
|
207
|
+
*/
|
|
208
|
+
"update:open": (_value) => true
|
|
209
|
+
};
|
|
237
210
|
const [injectTooltipRootContext, provideTooltipRootContext] = shared.createContext("DestylerTooltipRoot");
|
|
238
|
-
const
|
|
211
|
+
const TooltipRoot = vue.defineComponent({
|
|
239
212
|
name: "DestylerTooltipRoot",
|
|
240
|
-
props:
|
|
241
|
-
emits:
|
|
213
|
+
props: tooltipRootProps,
|
|
214
|
+
emits: tooltipRootEmits,
|
|
242
215
|
setup(props, { emit }) {
|
|
216
|
+
composition.useForwardExpose();
|
|
243
217
|
const providerContext = injectTooltipProviderContext();
|
|
244
|
-
const disableHoverableContent = vue.computed(() =>
|
|
245
|
-
return props.disableHoverableContent ?? providerContext.disableHoverableContent.value;
|
|
246
|
-
});
|
|
218
|
+
const disableHoverableContent = vue.computed(() => props.disableHoverableContent ?? providerContext.disableHoverableContent.value);
|
|
247
219
|
const disableClosingTrigger = vue.computed(() => props.disableClosingTrigger ?? providerContext.disableClosingTrigger.value);
|
|
220
|
+
const disableTooltip = vue.computed(() => props.disabled ?? providerContext.disabled.value);
|
|
248
221
|
const delayDuration = vue.computed(() => props.delayDuration ?? providerContext.delayDuration.value);
|
|
249
|
-
const
|
|
222
|
+
const ignoreNonKeyboardFocus = vue.computed(() => props.ignoreNonKeyboardFocus ?? providerContext.ignoreNonKeyboardFocus.value);
|
|
223
|
+
const open = composition.useVModel(props, "open", emit, {
|
|
250
224
|
defaultValue: props.defaultOpen,
|
|
251
225
|
passive: props.open === void 0
|
|
252
226
|
});
|
|
253
|
-
vue.watch(
|
|
227
|
+
vue.watch(open, (isOpen) => {
|
|
254
228
|
if (!providerContext.onClose)
|
|
255
229
|
return;
|
|
256
230
|
if (isOpen) {
|
|
@@ -263,29 +237,29 @@ const DestylerTooltipRoot = vue.defineComponent({
|
|
|
263
237
|
const wasOpenDelayedRef = vue.ref(false);
|
|
264
238
|
const trigger = vue.ref();
|
|
265
239
|
const stateAttribute = vue.computed(() => {
|
|
266
|
-
if (!
|
|
240
|
+
if (!open.value)
|
|
267
241
|
return "closed";
|
|
268
242
|
return wasOpenDelayedRef.value ? "delayed-open" : "instant-open";
|
|
269
243
|
});
|
|
270
244
|
const { start: startTimer, stop: clearTimer } = composition.useTimeoutFn(() => {
|
|
271
245
|
wasOpenDelayedRef.value = true;
|
|
272
|
-
|
|
246
|
+
open.value = true;
|
|
273
247
|
}, delayDuration, { immediate: false });
|
|
274
248
|
function handleOpen() {
|
|
275
249
|
clearTimer();
|
|
276
250
|
wasOpenDelayedRef.value = false;
|
|
277
|
-
|
|
251
|
+
open.value = true;
|
|
278
252
|
}
|
|
279
253
|
function handleClose() {
|
|
280
254
|
clearTimer();
|
|
281
|
-
|
|
255
|
+
open.value = false;
|
|
282
256
|
}
|
|
283
257
|
function handleDelayedOpen() {
|
|
284
258
|
startTimer();
|
|
285
259
|
}
|
|
286
260
|
provideTooltipRootContext({
|
|
287
|
-
contentId:
|
|
288
|
-
open
|
|
261
|
+
contentId: "",
|
|
262
|
+
open,
|
|
289
263
|
stateAttribute,
|
|
290
264
|
trigger,
|
|
291
265
|
onTriggerChange(el) {
|
|
@@ -298,96 +272,150 @@ const DestylerTooltipRoot = vue.defineComponent({
|
|
|
298
272
|
handleOpen();
|
|
299
273
|
},
|
|
300
274
|
onTriggerLeave() {
|
|
301
|
-
if (disableHoverableContent.value)
|
|
275
|
+
if (disableHoverableContent.value) {
|
|
302
276
|
handleClose();
|
|
303
|
-
else
|
|
277
|
+
} else {
|
|
304
278
|
clearTimer();
|
|
279
|
+
}
|
|
305
280
|
},
|
|
306
281
|
onOpen: handleOpen,
|
|
307
282
|
onClose: handleClose,
|
|
308
283
|
disableHoverableContent,
|
|
309
|
-
disableClosingTrigger
|
|
284
|
+
disableClosingTrigger,
|
|
285
|
+
disabled: disableTooltip,
|
|
286
|
+
ignoreNonKeyboardFocus
|
|
310
287
|
});
|
|
311
288
|
},
|
|
312
289
|
render() {
|
|
313
|
-
return vue.h(popper.
|
|
290
|
+
return vue.h(popper.PopperRoot, null, () => this.$slots.default?.());
|
|
314
291
|
}
|
|
315
292
|
});
|
|
316
293
|
|
|
317
|
-
const
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
default: false
|
|
327
|
-
},
|
|
294
|
+
const tooltipContentImplProps = {
|
|
295
|
+
...primitive.primitiveProps,
|
|
296
|
+
/**
|
|
297
|
+
* The preferred side of the trigger to render against when open.
|
|
298
|
+
* Will be reversed when collisions occur and avoidCollisions
|
|
299
|
+
* is enabled.
|
|
300
|
+
*
|
|
301
|
+
* @default top
|
|
302
|
+
*/
|
|
328
303
|
side: {
|
|
329
|
-
|
|
330
|
-
required: false,
|
|
304
|
+
...popper.popperContentProps.side,
|
|
331
305
|
default: "top"
|
|
332
306
|
},
|
|
307
|
+
/**
|
|
308
|
+
* The distance in pixels from the trigger.
|
|
309
|
+
*
|
|
310
|
+
* @default 0
|
|
311
|
+
*/
|
|
333
312
|
sideOffset: {
|
|
334
|
-
|
|
335
|
-
required: false,
|
|
336
|
-
default: 0
|
|
313
|
+
...popper.popperContentProps.sideOffset
|
|
337
314
|
},
|
|
315
|
+
/**
|
|
316
|
+
* The preferred alignment against the trigger.
|
|
317
|
+
* May change when collisions occur.
|
|
318
|
+
*
|
|
319
|
+
* @default center
|
|
320
|
+
*/
|
|
338
321
|
align: {
|
|
339
|
-
|
|
340
|
-
required: false,
|
|
341
|
-
default: "center"
|
|
322
|
+
...popper.popperContentProps.align
|
|
342
323
|
},
|
|
324
|
+
/**
|
|
325
|
+
* An offset in pixels from the `start` or `end` alignment options.
|
|
326
|
+
*
|
|
327
|
+
* @default 0
|
|
328
|
+
*/
|
|
343
329
|
alignOffset: {
|
|
344
|
-
|
|
345
|
-
required: false,
|
|
346
|
-
default: 0
|
|
330
|
+
...popper.popperContentProps.alignOffset
|
|
347
331
|
},
|
|
332
|
+
/**
|
|
333
|
+
* When `true`, overrides the side andalign preferences
|
|
334
|
+
* to prevent collisions with boundary edges.
|
|
335
|
+
*
|
|
336
|
+
* @default true
|
|
337
|
+
*/
|
|
348
338
|
avoidCollisions: {
|
|
349
|
-
|
|
350
|
-
required: false,
|
|
351
|
-
default: true
|
|
339
|
+
...popper.popperContentProps.avoidCollisions
|
|
352
340
|
},
|
|
341
|
+
/**
|
|
342
|
+
* The element used as the collision boundary. By default
|
|
343
|
+
* this is the viewport, though you can provide additional
|
|
344
|
+
* element(s) to be included in this check.
|
|
345
|
+
*
|
|
346
|
+
* @default () => []
|
|
347
|
+
*/
|
|
353
348
|
collisionBoundary: {
|
|
354
|
-
|
|
355
|
-
required: false,
|
|
356
|
-
default: () => []
|
|
349
|
+
...popper.popperContentProps.collisionBoundary
|
|
357
350
|
},
|
|
351
|
+
/**
|
|
352
|
+
* The distance in pixels from the boundary edges where collision
|
|
353
|
+
* detection should occur. Accepts a number (same for all sides),
|
|
354
|
+
* or a partial padding object, for example: { top: 20, left: 20 }.
|
|
355
|
+
*
|
|
356
|
+
* @default 0
|
|
357
|
+
*/
|
|
358
358
|
collisionPadding: {
|
|
359
|
-
|
|
360
|
-
required: false,
|
|
361
|
-
default: 0
|
|
359
|
+
...popper.popperContentProps.collisionPadding
|
|
362
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
|
+
*/
|
|
363
368
|
arrowPadding: {
|
|
364
|
-
|
|
365
|
-
required: false,
|
|
366
|
-
default: 0
|
|
369
|
+
...popper.popperContentProps.arrowPadding
|
|
367
370
|
},
|
|
371
|
+
/**
|
|
372
|
+
* The sticky behavior on the align axis. `partial` will keep the
|
|
373
|
+
* content in the boundary as long as the trigger is at least partially
|
|
374
|
+
* in the boundary whilst "always" will keep the content in the boundary
|
|
375
|
+
* regardless.
|
|
376
|
+
*
|
|
377
|
+
* @default partial
|
|
378
|
+
*/
|
|
368
379
|
sticky: {
|
|
369
|
-
|
|
370
|
-
required: false,
|
|
371
|
-
default: "partial"
|
|
380
|
+
...popper.popperContentProps.sticky
|
|
372
381
|
},
|
|
382
|
+
/**
|
|
383
|
+
* Whether to hide the content when the trigger becomes fully occluded.
|
|
384
|
+
*
|
|
385
|
+
* @default false
|
|
386
|
+
*/
|
|
373
387
|
hideWhenDetached: {
|
|
374
|
-
|
|
375
|
-
required: false,
|
|
376
|
-
default: false
|
|
388
|
+
...popper.popperContentProps.hideWhenDetached
|
|
377
389
|
},
|
|
390
|
+
/**
|
|
391
|
+
* By default, screenreaders will announce the content inside
|
|
392
|
+
* the component. If this is not descriptive enough, or you have
|
|
393
|
+
* content that cannot be announced, use aria-label as a more
|
|
394
|
+
* descriptive label.
|
|
395
|
+
*
|
|
396
|
+
*/
|
|
378
397
|
ariaLabel: {
|
|
379
398
|
type: String,
|
|
380
399
|
required: false
|
|
381
400
|
}
|
|
382
401
|
};
|
|
383
|
-
const
|
|
384
|
-
|
|
402
|
+
const tooltipContentImplEmits = {
|
|
403
|
+
/**
|
|
404
|
+
* Event handler called when focus moves to the destructive action after opening. It can be prevented by calling `event.preventDefault`
|
|
405
|
+
*/
|
|
406
|
+
escapeKeyDown: (_event) => true,
|
|
407
|
+
/**
|
|
408
|
+
* Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling `event.preventDefault`.
|
|
409
|
+
*/
|
|
410
|
+
pointerDownOutside: (_event) => true
|
|
411
|
+
};
|
|
412
|
+
const TooltipContentImpl = vue.defineComponent({
|
|
385
413
|
name: "DestylerTooltipContentImpl",
|
|
386
|
-
props:
|
|
387
|
-
emits:
|
|
414
|
+
props: tooltipContentImplProps,
|
|
415
|
+
emits: tooltipContentImplEmits,
|
|
388
416
|
setup(props) {
|
|
389
|
-
const contentElement = vue.ref();
|
|
390
417
|
const rootContext = injectTooltipRootContext();
|
|
418
|
+
const { forwardRef } = composition.useForwardExpose();
|
|
391
419
|
const slot = vue.useSlots();
|
|
392
420
|
const defaultSlot = vue.computed(() => slot.default?.());
|
|
393
421
|
const ariaLabel = vue.computed(() => {
|
|
@@ -403,7 +431,7 @@ const DestylerTooltipContentImpl = vue.defineComponent({
|
|
|
403
431
|
defaultSlot.value?.forEach((node) => recursiveTextSearch(node));
|
|
404
432
|
return content;
|
|
405
433
|
});
|
|
406
|
-
const
|
|
434
|
+
const popperContentProps2 = vue.computed(() => {
|
|
407
435
|
const { ariaLabel: _, ...restProps } = props;
|
|
408
436
|
return restProps;
|
|
409
437
|
});
|
|
@@ -416,14 +444,14 @@ const DestylerTooltipContentImpl = vue.defineComponent({
|
|
|
416
444
|
core.useEventListener(window, TOOLTIP_OPEN, rootContext.onClose);
|
|
417
445
|
});
|
|
418
446
|
return {
|
|
419
|
-
contentElement,
|
|
420
447
|
rootContext,
|
|
421
|
-
popperContentProps,
|
|
422
|
-
ariaLabel
|
|
448
|
+
popperContentProps: popperContentProps2,
|
|
449
|
+
ariaLabel,
|
|
450
|
+
forwardRef
|
|
423
451
|
};
|
|
424
452
|
},
|
|
425
453
|
render() {
|
|
426
|
-
return vue.h(dismissableLayer.
|
|
454
|
+
return vue.h(dismissableLayer.DismissableLayer, {
|
|
427
455
|
asChild: true,
|
|
428
456
|
disableOutsidePointerEvents: false,
|
|
429
457
|
onEscapeKeyDown: (event) => {
|
|
@@ -434,164 +462,137 @@ const DestylerTooltipContentImpl = vue.defineComponent({
|
|
|
434
462
|
event.preventDefault();
|
|
435
463
|
this.$emit("pointerDownOutside", event);
|
|
436
464
|
},
|
|
465
|
+
onFocusOutside: vue.withModifiers(() => {
|
|
466
|
+
}, ["prevent"]),
|
|
437
467
|
onDismiss: () => {
|
|
438
468
|
this.rootContext.onClose();
|
|
439
469
|
}
|
|
440
|
-
}, () => vue.h(popper.
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
"
|
|
447
|
-
"
|
|
448
|
-
"
|
|
470
|
+
}, () => vue.h(popper.PopperContent, vue.mergeProps(
|
|
471
|
+
{
|
|
472
|
+
...this.$attrs,
|
|
473
|
+
...this.popperContentProps
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"ref": this.forwardRef,
|
|
477
|
+
"data-state": this.rootContext.stateAttribute.value,
|
|
478
|
+
"style": {
|
|
479
|
+
"--destyler-tooltip-content-transform-origin": "var(--destyler-popper-transform-origin)",
|
|
480
|
+
"--destyler-tooltip-content-available-width": "var(--destyler-popper-available-width)",
|
|
481
|
+
"--destyler-tooltip-content-available-height": "var(--destyler-popper-available-height)",
|
|
482
|
+
"--destyler-tooltip-trigger-width": "var(--destyler-popper-anchor-width)",
|
|
483
|
+
"--destyler-tooltip-trigger-height": "var(--destyler-popper-anchor-height)"
|
|
484
|
+
}
|
|
449
485
|
}
|
|
450
|
-
|
|
486
|
+
), () => [
|
|
451
487
|
this.$slots.default?.(),
|
|
452
|
-
vue.h(visuallyHidden.
|
|
453
|
-
role: "tooltip"
|
|
488
|
+
vue.h(visuallyHidden.VisuallyHidden, {
|
|
489
|
+
role: "tooltip",
|
|
490
|
+
id: this.rootContext.contentId
|
|
454
491
|
}, () => this.ariaLabel)
|
|
455
492
|
]));
|
|
456
493
|
}
|
|
457
494
|
});
|
|
458
495
|
|
|
459
|
-
const
|
|
496
|
+
const TooltipContentHoverable = vue.defineComponent({
|
|
460
497
|
name: "DestylerTooltipContentHoverable",
|
|
461
|
-
props:
|
|
462
|
-
setup() {
|
|
498
|
+
props: tooltipContentImplProps,
|
|
499
|
+
setup(props) {
|
|
500
|
+
const forwardedProps = composition.useForwardProps(props);
|
|
463
501
|
const { forwardRef, currentElement } = composition.useForwardExpose();
|
|
464
502
|
const { trigger, onClose } = injectTooltipRootContext();
|
|
465
503
|
const providerContext = injectTooltipProviderContext();
|
|
466
|
-
const
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
}
|
|
471
|
-
function handleCreateGraceArea(event, hoverTarget) {
|
|
472
|
-
const currentTarget = event.currentTarget;
|
|
473
|
-
const exitPoint = { x: event.clientX, y: event.clientY };
|
|
474
|
-
const exitSide = getExitSideFromRect(exitPoint, currentTarget.getBoundingClientRect());
|
|
475
|
-
const paddedExitPoints = getPaddedExitPoints(exitPoint, exitSide);
|
|
476
|
-
const hoverTargetPoints = getPointsFromRect(hoverTarget.getBoundingClientRect());
|
|
477
|
-
const graceArea = getHull([...paddedExitPoints, ...hoverTargetPoints]);
|
|
478
|
-
pointerGraceArea.value = graceArea;
|
|
479
|
-
providerContext.onPointerInTransitChange(true);
|
|
480
|
-
}
|
|
481
|
-
vue.watchEffect((cleanupFn) => {
|
|
482
|
-
if (trigger.value && currentElement.value) {
|
|
483
|
-
const handleTriggerLeave = (event) => handleCreateGraceArea(event, currentElement.value);
|
|
484
|
-
const handleContentLeave = (event) => handleCreateGraceArea(event, trigger.value);
|
|
485
|
-
trigger.value.addEventListener("pointerleave", handleTriggerLeave);
|
|
486
|
-
currentElement.value.addEventListener("pointerleave", handleContentLeave);
|
|
487
|
-
cleanupFn(() => {
|
|
488
|
-
trigger.value?.removeEventListener("pointerleave", handleTriggerLeave);
|
|
489
|
-
currentElement.value?.removeEventListener("pointerleave", handleContentLeave);
|
|
490
|
-
});
|
|
491
|
-
}
|
|
492
|
-
});
|
|
493
|
-
vue.watchEffect((cleanupFn) => {
|
|
494
|
-
if (pointerGraceArea.value) {
|
|
495
|
-
const handleTrackPointerGrace = (event) => {
|
|
496
|
-
if (!pointerGraceArea.value)
|
|
497
|
-
return;
|
|
498
|
-
const target = event.target;
|
|
499
|
-
const pointerPosition = { x: event.clientX, y: event.clientY };
|
|
500
|
-
const hasEnteredTarget = trigger.value?.contains(target) || currentElement.value?.contains(target);
|
|
501
|
-
const isPointerOutsideGraceArea = !shared.isPointInPolygon(pointerPosition, pointerGraceArea.value);
|
|
502
|
-
if (hasEnteredTarget) {
|
|
503
|
-
handleRemoveGraceArea();
|
|
504
|
-
} else if (isPointerOutsideGraceArea) {
|
|
505
|
-
handleRemoveGraceArea();
|
|
506
|
-
onClose();
|
|
507
|
-
}
|
|
508
|
-
};
|
|
509
|
-
document.addEventListener("pointermove", handleTrackPointerGrace);
|
|
510
|
-
cleanupFn(() => document.removeEventListener("pointermove", handleTrackPointerGrace));
|
|
511
|
-
}
|
|
504
|
+
const { isPointerInTransit, onPointerExit } = composition.useGraceArea(trigger, currentElement);
|
|
505
|
+
providerContext.isPointerInTransitRef = isPointerInTransit;
|
|
506
|
+
onPointerExit(() => {
|
|
507
|
+
onClose();
|
|
512
508
|
});
|
|
513
509
|
return {
|
|
514
|
-
forwardRef
|
|
510
|
+
forwardRef,
|
|
511
|
+
forwardedProps
|
|
515
512
|
};
|
|
516
513
|
},
|
|
517
514
|
render() {
|
|
518
|
-
return vue.h(
|
|
519
|
-
ref:
|
|
520
|
-
|
|
521
|
-
}, () => this.$slots.default?.());
|
|
515
|
+
return vue.h(TooltipContentImpl, vue.mergeProps(this.forwardedProps, {
|
|
516
|
+
ref: this.forwardRef
|
|
517
|
+
}), () => this.$slots.default?.());
|
|
522
518
|
}
|
|
523
519
|
});
|
|
524
520
|
|
|
525
|
-
const
|
|
526
|
-
...
|
|
521
|
+
const tooltipContentProps = {
|
|
522
|
+
...tooltipContentImplProps
|
|
523
|
+
};
|
|
524
|
+
const tooltipContentEmits = {
|
|
525
|
+
...tooltipContentImplEmits
|
|
527
526
|
};
|
|
528
|
-
const
|
|
529
|
-
const DestylerTooltipContent = vue.defineComponent({
|
|
527
|
+
const TooltipContent = vue.defineComponent({
|
|
530
528
|
name: "DestylerTooltipContent",
|
|
531
|
-
props:
|
|
532
|
-
emits:
|
|
529
|
+
props: tooltipContentProps,
|
|
530
|
+
emits: tooltipContentEmits,
|
|
533
531
|
setup(props, { emit }) {
|
|
534
532
|
const rootContext = injectTooltipRootContext();
|
|
535
533
|
const forwarded = composition.useForwardPropsEmits(props, emit);
|
|
534
|
+
const { forwardRef } = composition.useForwardExpose();
|
|
536
535
|
return {
|
|
537
536
|
rootContext,
|
|
538
|
-
forwarded
|
|
537
|
+
forwarded,
|
|
538
|
+
forwardRef
|
|
539
539
|
};
|
|
540
540
|
},
|
|
541
541
|
render() {
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
542
|
+
if (this.rootContext.open.value) {
|
|
543
|
+
return vue.h(this.rootContext.disableHoverableContent.value ? TooltipContentImpl : TooltipContentHoverable, vue.mergeProps(this.forwarded, {
|
|
544
|
+
ref: this.forwardRef
|
|
545
|
+
}), () => this.$slots.default?.());
|
|
546
|
+
}
|
|
546
547
|
}
|
|
547
548
|
});
|
|
548
549
|
|
|
549
|
-
const
|
|
550
|
-
|
|
551
|
-
type: [String, Object],
|
|
552
|
-
required: false,
|
|
553
|
-
default: "body"
|
|
554
|
-
},
|
|
555
|
-
disabled: {
|
|
556
|
-
type: Boolean,
|
|
557
|
-
required: false,
|
|
558
|
-
default: false
|
|
559
|
-
},
|
|
560
|
-
forceMount: {
|
|
561
|
-
type: Boolean,
|
|
562
|
-
required: false,
|
|
563
|
-
default: false
|
|
564
|
-
}
|
|
550
|
+
const tooltipPortalProps = {
|
|
551
|
+
...teleport.teleportPrimitiveProps
|
|
565
552
|
};
|
|
566
|
-
const
|
|
553
|
+
const TooltipPortal = vue.defineComponent({
|
|
567
554
|
name: "DestylerTooltipPortal",
|
|
568
|
-
props:
|
|
555
|
+
props: tooltipPortalProps,
|
|
569
556
|
render() {
|
|
570
|
-
return vue.h(teleport.
|
|
557
|
+
return vue.h(teleport.TeleportPrimitive, vue.mergeProps(this.$props), () => this.$slots.default?.());
|
|
571
558
|
}
|
|
572
559
|
});
|
|
573
560
|
|
|
574
|
-
const
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
},
|
|
561
|
+
const tooltipTriggerProps = {
|
|
562
|
+
...primitive.primitiveProps,
|
|
563
|
+
/**
|
|
564
|
+
* @default button
|
|
565
|
+
*/
|
|
580
566
|
as: {
|
|
581
|
-
|
|
582
|
-
required: false,
|
|
567
|
+
...primitive.primitiveProps.as,
|
|
583
568
|
default: "button"
|
|
584
569
|
}
|
|
585
570
|
};
|
|
586
|
-
const
|
|
571
|
+
const TooltipTrigger = vue.defineComponent({
|
|
587
572
|
name: "DestylerTooltipTrigger",
|
|
588
|
-
props:
|
|
573
|
+
props: tooltipTriggerProps,
|
|
589
574
|
setup() {
|
|
590
575
|
const rootContext = injectTooltipRootContext();
|
|
591
576
|
const providerContext = injectTooltipProviderContext();
|
|
577
|
+
rootContext.contentId || (rootContext.contentId = composition.useId(void 0, "destyler-tooltip-content"));
|
|
592
578
|
const { forwardRef, currentElement: triggerElement } = composition.useForwardExpose();
|
|
593
579
|
const isPointerDown = vue.ref(false);
|
|
594
580
|
const hasPointerMoveOpened = vue.ref(false);
|
|
581
|
+
const tooltipListeners = vue.computed(() => {
|
|
582
|
+
if (rootContext.disabled.value)
|
|
583
|
+
return {};
|
|
584
|
+
return {
|
|
585
|
+
onclick: handleClick,
|
|
586
|
+
onfocus: handleFocus,
|
|
587
|
+
onpointermove: handlePointerMove,
|
|
588
|
+
onpointerleave: handlePointerLeave,
|
|
589
|
+
onpointerdown: handlePointerDown,
|
|
590
|
+
onblur: handleBlur
|
|
591
|
+
};
|
|
592
|
+
});
|
|
593
|
+
vue.onMounted(() => {
|
|
594
|
+
rootContext.onTriggerChange(triggerElement.value);
|
|
595
|
+
});
|
|
595
596
|
function handlePointerUp() {
|
|
596
597
|
isPointerDown.value = false;
|
|
597
598
|
}
|
|
@@ -599,62 +600,70 @@ const DestylerTooltipTrigger = vue.defineComponent({
|
|
|
599
600
|
isPointerDown.value = true;
|
|
600
601
|
document.addEventListener("pointerup", handlePointerUp, { once: true });
|
|
601
602
|
}
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
603
|
+
function handlePointerMove(event) {
|
|
604
|
+
if (event.pointerType === "touch")
|
|
605
|
+
return;
|
|
606
|
+
if (!hasPointerMoveOpened.value && !providerContext.isPointerInTransitRef.value) {
|
|
607
|
+
rootContext.onTriggerEnter();
|
|
608
|
+
hasPointerMoveOpened.value = true;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
function handlePointerLeave() {
|
|
612
|
+
rootContext.onTriggerLeave();
|
|
613
|
+
hasPointerMoveOpened.value = false;
|
|
614
|
+
}
|
|
615
|
+
function handleFocus(event) {
|
|
616
|
+
if (isPointerDown.value)
|
|
617
|
+
return;
|
|
618
|
+
if (rootContext.ignoreNonKeyboardFocus.value && !event.target.matches?.(":focus-visible"))
|
|
619
|
+
return;
|
|
620
|
+
rootContext.onOpen();
|
|
621
|
+
}
|
|
622
|
+
function handleBlur() {
|
|
623
|
+
rootContext.onClose();
|
|
624
|
+
}
|
|
625
|
+
function handleClick() {
|
|
626
|
+
if (!rootContext.disableClosingTrigger.value)
|
|
627
|
+
rootContext.onClose();
|
|
628
|
+
}
|
|
605
629
|
return {
|
|
606
630
|
rootContext,
|
|
607
631
|
providerContext,
|
|
608
632
|
forwardRef,
|
|
609
633
|
isPointerDown,
|
|
610
634
|
hasPointerMoveOpened,
|
|
611
|
-
handlePointerDown
|
|
635
|
+
handlePointerDown,
|
|
636
|
+
tooltipListeners
|
|
612
637
|
};
|
|
613
638
|
},
|
|
614
639
|
render() {
|
|
615
|
-
return vue.h(popper.
|
|
640
|
+
return vue.h(popper.PopperAnchor, {
|
|
616
641
|
asChild: true
|
|
617
|
-
}, () => vue.h(primitive.
|
|
618
|
-
"ref":
|
|
642
|
+
}, () => vue.h(primitive.Primitive, vue.mergeProps(this.tooltipListeners, {
|
|
643
|
+
"ref": this.forwardRef,
|
|
619
644
|
"aria-describedby": this.rootContext.open.value ? this.rootContext.contentId : void 0,
|
|
620
645
|
"data-state": this.rootContext.stateAttribute.value,
|
|
621
646
|
"as": this.$props.as,
|
|
622
|
-
"asChild": this.$props.asChild
|
|
623
|
-
|
|
624
|
-
if (event.pointerType === "touch")
|
|
625
|
-
return;
|
|
626
|
-
if (!this.hasPointerMoveOpened && !this.providerContext.isPointerInTransitRef.value) {
|
|
627
|
-
this.rootContext.onTriggerEnter();
|
|
628
|
-
this.hasPointerMoveOpened = true;
|
|
629
|
-
}
|
|
630
|
-
},
|
|
631
|
-
"onPointerleave": () => {
|
|
632
|
-
this.rootContext.onTriggerLeave();
|
|
633
|
-
this.hasPointerMoveOpened = false;
|
|
634
|
-
},
|
|
635
|
-
"onPointerdown": () => {
|
|
636
|
-
this.handlePointerDown();
|
|
637
|
-
},
|
|
638
|
-
"onFocus": () => {
|
|
639
|
-
if (!this.isPointerDown)
|
|
640
|
-
this.rootContext.onOpen();
|
|
641
|
-
},
|
|
642
|
-
"onBlur": () => {
|
|
643
|
-
this.rootContext.onClose();
|
|
644
|
-
},
|
|
645
|
-
"onClick": () => {
|
|
646
|
-
if (!this.rootContext.disableClosingTrigger.value)
|
|
647
|
-
this.rootContext.onClose();
|
|
648
|
-
}
|
|
649
|
-
}, () => this.$slots.default?.()));
|
|
647
|
+
"asChild": this.$props.asChild
|
|
648
|
+
}), () => this.$slots.default?.()));
|
|
650
649
|
}
|
|
651
650
|
});
|
|
652
651
|
|
|
653
|
-
exports.
|
|
654
|
-
exports.
|
|
655
|
-
exports.
|
|
656
|
-
exports.
|
|
657
|
-
exports.
|
|
658
|
-
exports.
|
|
659
|
-
exports.
|
|
660
|
-
exports.
|
|
652
|
+
exports.TooltipArrow = TooltipArrow;
|
|
653
|
+
exports.TooltipContent = TooltipContent;
|
|
654
|
+
exports.TooltipContentHoverable = TooltipContentHoverable;
|
|
655
|
+
exports.TooltipContentImpl = TooltipContentImpl;
|
|
656
|
+
exports.TooltipPortal = TooltipPortal;
|
|
657
|
+
exports.TooltipProvider = TooltipProvider;
|
|
658
|
+
exports.TooltipRoot = TooltipRoot;
|
|
659
|
+
exports.TooltipTrigger = TooltipTrigger;
|
|
660
|
+
exports.tooltipArrowProps = tooltipArrowProps;
|
|
661
|
+
exports.tooltipContentEmits = tooltipContentEmits;
|
|
662
|
+
exports.tooltipContentImplEmits = tooltipContentImplEmits;
|
|
663
|
+
exports.tooltipContentImplProps = tooltipContentImplProps;
|
|
664
|
+
exports.tooltipContentProps = tooltipContentProps;
|
|
665
|
+
exports.tooltipPortalProps = tooltipPortalProps;
|
|
666
|
+
exports.tooltipProviderProps = tooltipProviderProps;
|
|
667
|
+
exports.tooltipRootEmits = tooltipRootEmits;
|
|
668
|
+
exports.tooltipRootProps = tooltipRootProps;
|
|
669
|
+
exports.tooltipTriggerProps = tooltipTriggerProps;
|