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