@destyler/hover-card 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 +155 -209
- package/dist/component.d.cts +247 -98
- package/dist/component.d.mts +247 -98
- package/dist/component.d.ts +247 -98
- package/dist/component.mjs +145 -208
- package/dist/index.cjs +12 -6
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +3 -2
- package/dist/resolver.cjs +10 -6
- package/dist/resolver.d.cts +3 -3
- package/dist/resolver.d.mts +3 -3
- package/dist/resolver.d.ts +3 -3
- package/dist/resolver.mjs +9 -5
- package/dist/shared/hover-card.c926f135.d.cts +843 -0
- package/dist/shared/hover-card.c926f135.d.mts +843 -0
- package/dist/shared/hover-card.c926f135.d.ts +843 -0
- package/package.json +19 -20
- package/dist/shared/hover-card.2208f99f.d.cts +0 -546
- package/dist/shared/hover-card.2208f99f.d.mts +0 -546
- package/dist/shared/hover-card.2208f99f.d.ts +0 -546
package/dist/component.mjs
CHANGED
|
@@ -1,44 +1,51 @@
|
|
|
1
1
|
import { defineComponent, h, toRefs, ref, watchEffect, onMounted, onUnmounted, withModifiers, mergeProps, nextTick } from 'vue';
|
|
2
|
+
import { primitiveProps, Primitive } from '@destyler/primitive';
|
|
2
3
|
import { useForwardExpose, useVModel, useForwardProps, useForwardPropsEmits } from '@destyler/composition';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { PopperArrow, PopperRoot, popperContentProps, PopperContent, PopperAnchor } from '@destyler/popper';
|
|
5
|
+
import { Presence } from '@destyler/presence';
|
|
6
|
+
import { DismissableLayer } from '@destyler/dismissable-layer';
|
|
7
|
+
import { dismissableLayerEmits } from '@destyler/dismissable-layer/component';
|
|
6
8
|
import { createContext } from '@destyler/shared';
|
|
7
|
-
import {
|
|
8
|
-
import { DestylerPrimitive } from '@destyler/primitive';
|
|
9
|
+
import { teleportPrimitiveProps, TeleportPrimitive } from '@destyler/teleport';
|
|
9
10
|
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const hoverCardArrowProps = {
|
|
12
|
+
...primitiveProps,
|
|
13
|
+
/**
|
|
14
|
+
* @default svg
|
|
15
|
+
*/
|
|
16
|
+
as: {
|
|
17
|
+
...primitiveProps.as,
|
|
18
|
+
default: "svg"
|
|
15
19
|
},
|
|
20
|
+
/**
|
|
21
|
+
* The width of the arrow in pixels.
|
|
22
|
+
*
|
|
23
|
+
* @default 10
|
|
24
|
+
*/
|
|
16
25
|
width: {
|
|
17
26
|
type: Number,
|
|
18
27
|
required: false,
|
|
19
28
|
default: 10
|
|
20
29
|
},
|
|
30
|
+
/**
|
|
31
|
+
* The height of the arrow in pixels.
|
|
32
|
+
*
|
|
33
|
+
* @default 5
|
|
34
|
+
*/
|
|
21
35
|
height: {
|
|
22
36
|
type: Number,
|
|
23
37
|
required: false,
|
|
24
38
|
default: 5
|
|
25
|
-
},
|
|
26
|
-
as: {
|
|
27
|
-
type: [String, Object],
|
|
28
|
-
required: false,
|
|
29
|
-
default: "svg"
|
|
30
39
|
}
|
|
31
40
|
};
|
|
32
|
-
const
|
|
41
|
+
const HoverCardArrow = defineComponent({
|
|
33
42
|
name: "DestylerHoverCardArrow",
|
|
34
|
-
props:
|
|
43
|
+
props: hoverCardArrowProps,
|
|
35
44
|
setup() {
|
|
36
45
|
useForwardExpose();
|
|
37
46
|
},
|
|
38
47
|
render() {
|
|
39
|
-
return h(
|
|
40
|
-
default: () => this.$slots.default?.()
|
|
41
|
-
});
|
|
48
|
+
return h(PopperArrow, this.$props, () => this.$slots.default?.());
|
|
42
49
|
}
|
|
43
50
|
});
|
|
44
51
|
|
|
@@ -57,32 +64,63 @@ function getTabbableNodes(container) {
|
|
|
57
64
|
return nodes;
|
|
58
65
|
}
|
|
59
66
|
|
|
60
|
-
const
|
|
67
|
+
const hoverCardRootProps = {
|
|
68
|
+
/**
|
|
69
|
+
* The controlled open state of the hover card.
|
|
70
|
+
* Can be binded as `v-model:open`.
|
|
71
|
+
*
|
|
72
|
+
* @default undefined
|
|
73
|
+
*/
|
|
61
74
|
open: {
|
|
62
75
|
type: Boolean,
|
|
63
|
-
required:
|
|
76
|
+
required: false,
|
|
77
|
+
default: void 0
|
|
64
78
|
},
|
|
79
|
+
/**
|
|
80
|
+
* The open state of the hover card when it is initially rendered.
|
|
81
|
+
* Use when you do not need to control its open state.
|
|
82
|
+
*
|
|
83
|
+
* @default false
|
|
84
|
+
*/
|
|
65
85
|
defaultOpen: {
|
|
66
86
|
type: Boolean,
|
|
67
87
|
required: false,
|
|
68
88
|
default: false
|
|
69
89
|
},
|
|
90
|
+
/**
|
|
91
|
+
* The duration from when the mouse enters the
|
|
92
|
+
* trigger until the hover card opens.
|
|
93
|
+
*
|
|
94
|
+
* @default 700
|
|
95
|
+
*/
|
|
70
96
|
openDelay: {
|
|
71
97
|
type: Number,
|
|
72
98
|
required: false,
|
|
73
99
|
default: 700
|
|
74
100
|
},
|
|
101
|
+
/**
|
|
102
|
+
* The duration from when the mouse leaves the trigger
|
|
103
|
+
* or content until the hover card closes.
|
|
104
|
+
*
|
|
105
|
+
* @default 300
|
|
106
|
+
*/
|
|
75
107
|
closeDelay: {
|
|
76
108
|
type: Number,
|
|
77
109
|
required: false,
|
|
78
110
|
default: 300
|
|
79
111
|
}
|
|
80
112
|
};
|
|
113
|
+
const hoverCardRootEmits = {
|
|
114
|
+
/**
|
|
115
|
+
* Event handler called when the open state of the hover card changes.
|
|
116
|
+
*/
|
|
117
|
+
"update:open": (_value) => true
|
|
118
|
+
};
|
|
81
119
|
const [injectHoverCardRootContext, provideHoverCardRootContext] = createContext("DestylerHoverCardRoot");
|
|
82
|
-
const
|
|
120
|
+
const HoverCardRoot = defineComponent({
|
|
83
121
|
name: "DestylerHoverCardRoot",
|
|
84
|
-
props:
|
|
85
|
-
emits:
|
|
122
|
+
props: hoverCardRootProps,
|
|
123
|
+
emits: hoverCardRootEmits,
|
|
86
124
|
setup(props, { emit }) {
|
|
87
125
|
const { openDelay, closeDelay } = toRefs(props);
|
|
88
126
|
useForwardExpose();
|
|
@@ -119,92 +157,20 @@ const DestylerHoverCardRoot = defineComponent({
|
|
|
119
157
|
});
|
|
120
158
|
},
|
|
121
159
|
render() {
|
|
122
|
-
return h(
|
|
123
|
-
default: () => this.$slots.default?.()
|
|
124
|
-
});
|
|
160
|
+
return h(PopperRoot, {}, () => this.$slots.default?.());
|
|
125
161
|
}
|
|
126
162
|
});
|
|
127
163
|
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
},
|
|
134
|
-
asChild: {
|
|
135
|
-
type: Boolean,
|
|
136
|
-
required: false,
|
|
137
|
-
default: false
|
|
138
|
-
},
|
|
139
|
-
side: {
|
|
140
|
-
type: String,
|
|
141
|
-
required: false,
|
|
142
|
-
default: "bottom"
|
|
143
|
-
},
|
|
144
|
-
sideOffset: {
|
|
145
|
-
type: Number,
|
|
146
|
-
required: false,
|
|
147
|
-
default: 0
|
|
148
|
-
},
|
|
149
|
-
align: {
|
|
150
|
-
type: String,
|
|
151
|
-
required: false,
|
|
152
|
-
default: "center"
|
|
153
|
-
},
|
|
154
|
-
alignOffset: {
|
|
155
|
-
type: Number,
|
|
156
|
-
required: false,
|
|
157
|
-
default: 0
|
|
158
|
-
},
|
|
159
|
-
avoidCollisions: {
|
|
160
|
-
type: Boolean,
|
|
161
|
-
required: false,
|
|
162
|
-
default: true
|
|
163
|
-
},
|
|
164
|
-
collisionBoundary: {
|
|
165
|
-
type: [Object, Array, null],
|
|
166
|
-
required: false,
|
|
167
|
-
default: () => []
|
|
168
|
-
},
|
|
169
|
-
collisionPadding: {
|
|
170
|
-
type: [Number, Object],
|
|
171
|
-
required: false,
|
|
172
|
-
default: 0
|
|
173
|
-
},
|
|
174
|
-
arrowPadding: {
|
|
175
|
-
type: Number,
|
|
176
|
-
required: false,
|
|
177
|
-
default: 0
|
|
178
|
-
},
|
|
179
|
-
sticky: {
|
|
180
|
-
type: String,
|
|
181
|
-
required: false,
|
|
182
|
-
default: "partial"
|
|
183
|
-
},
|
|
184
|
-
hideWhenDetached: {
|
|
185
|
-
type: Boolean,
|
|
186
|
-
required: false,
|
|
187
|
-
default: false
|
|
188
|
-
},
|
|
189
|
-
updatePositionStrategy: {
|
|
190
|
-
type: String,
|
|
191
|
-
required: false,
|
|
192
|
-
default: "optimized"
|
|
193
|
-
},
|
|
194
|
-
onPlaced: {
|
|
195
|
-
type: Function,
|
|
196
|
-
required: false
|
|
197
|
-
},
|
|
198
|
-
prioritizePosition: {
|
|
199
|
-
type: Boolean,
|
|
200
|
-
required: false,
|
|
201
|
-
default: false
|
|
202
|
-
}
|
|
164
|
+
const hoverCardContentImplProps = {
|
|
165
|
+
...popperContentProps
|
|
166
|
+
};
|
|
167
|
+
const hoverCardContentImplEmits = {
|
|
168
|
+
...dismissableLayerEmits
|
|
203
169
|
};
|
|
204
|
-
const
|
|
170
|
+
const HoverCardContentImpl = defineComponent({
|
|
205
171
|
name: "DestylerHoverCardContentImpl",
|
|
206
|
-
props:
|
|
207
|
-
emits:
|
|
172
|
+
props: hoverCardContentImplProps,
|
|
173
|
+
emits: hoverCardContentImplEmits,
|
|
208
174
|
setup(props) {
|
|
209
175
|
const forwarded = useForwardProps(props);
|
|
210
176
|
const { forwardRef, currentElement: contentElement } = useForwardExpose();
|
|
@@ -236,7 +202,7 @@ const DestylerHoverCardContentImpl = defineComponent({
|
|
|
236
202
|
if (contentElement.value) {
|
|
237
203
|
document.addEventListener("pointerup", handlePointerUp);
|
|
238
204
|
const tabbables = getTabbableNodes(contentElement.value);
|
|
239
|
-
tabbables.forEach((tabbable) => tabbable.setAttribute("tabindex", "
|
|
205
|
+
tabbables.forEach((tabbable) => tabbable.setAttribute("tabindex", "-1"));
|
|
240
206
|
}
|
|
241
207
|
});
|
|
242
208
|
onUnmounted(() => {
|
|
@@ -252,7 +218,7 @@ const DestylerHoverCardContentImpl = defineComponent({
|
|
|
252
218
|
};
|
|
253
219
|
},
|
|
254
220
|
render() {
|
|
255
|
-
return h(
|
|
221
|
+
return h(DismissableLayer, {
|
|
256
222
|
asChild: true,
|
|
257
223
|
disableOutsidePointerEvents: false,
|
|
258
224
|
onEscapeKeyDown: (event) => {
|
|
@@ -267,45 +233,46 @@ const DestylerHoverCardContentImpl = defineComponent({
|
|
|
267
233
|
onDismiss: () => {
|
|
268
234
|
this.rootContext.onDismiss();
|
|
269
235
|
}
|
|
270
|
-
}, {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
this.rootContext.hasSelectionRef.value = false;
|
|
288
|
-
this.rootContext.isPointerDownOnContentRef.value = true;
|
|
289
|
-
}
|
|
290
|
-
}), {
|
|
291
|
-
default: () => this.$slots.default?.()
|
|
292
|
-
});
|
|
236
|
+
}, () => h(PopperContent, mergeProps(this.forwarded, this.$attrs, {
|
|
237
|
+
"ref": (el) => this.forwardRef(el),
|
|
238
|
+
"data-state": this.rootContext.open.value ? "open" : "closed",
|
|
239
|
+
"style": {
|
|
240
|
+
"userSelect": this.containSelection ? "text" : void 0,
|
|
241
|
+
"WebkitUserSelect": this.containSelection ? "text" : void 0,
|
|
242
|
+
"--destyler-hover-card-content-transform-origin": "var(--destyler-popper-transform-origin)",
|
|
243
|
+
"--destyler-hover-card-content-available-width": "var(--destyler-popper-available-width)",
|
|
244
|
+
"--destyler-hover-card-content-available-height": "var(--destyler-popper-available-height)",
|
|
245
|
+
"--destyler-hover-card-trigger-width": "var(--destyler-popper-anchor-width)",
|
|
246
|
+
"--destyler-hover-card-trigger-height": "var(--destyler-popper-anchor-height)"
|
|
247
|
+
},
|
|
248
|
+
"onPointerdown": (event) => {
|
|
249
|
+
if (event.currentTarget.contains(event.target))
|
|
250
|
+
this.containSelection = true;
|
|
251
|
+
this.rootContext.hasSelectionRef.value = false;
|
|
252
|
+
this.rootContext.isPointerDownOnContentRef.value = true;
|
|
293
253
|
}
|
|
294
|
-
});
|
|
254
|
+
}), () => this.$slots.default?.()));
|
|
295
255
|
}
|
|
296
256
|
});
|
|
297
257
|
|
|
298
|
-
const
|
|
299
|
-
...
|
|
258
|
+
const hoverCardContentProps = {
|
|
259
|
+
...hoverCardContentImplProps,
|
|
260
|
+
/**
|
|
261
|
+
* Used to force mounting when more control is needed.
|
|
262
|
+
* Useful when controlling animation with Vue animation libraries.
|
|
263
|
+
*/
|
|
300
264
|
forceMount: {
|
|
301
265
|
type: Boolean,
|
|
302
266
|
required: false
|
|
303
267
|
}
|
|
304
268
|
};
|
|
305
|
-
const
|
|
269
|
+
const hoverCardContentEmits = {
|
|
270
|
+
...hoverCardContentImplEmits
|
|
271
|
+
};
|
|
272
|
+
const HoverCardContent = defineComponent({
|
|
306
273
|
name: "DestylerHoverCardContent",
|
|
307
|
-
props:
|
|
308
|
-
emits:
|
|
274
|
+
props: hoverCardContentProps,
|
|
275
|
+
emits: hoverCardContentEmits,
|
|
309
276
|
setup(props, { emit }) {
|
|
310
277
|
const forwarded = useForwardPropsEmits(props, emit);
|
|
311
278
|
const { forwardRef } = useForwardExpose();
|
|
@@ -317,68 +284,44 @@ const DestylerHoverCardContent = defineComponent({
|
|
|
317
284
|
};
|
|
318
285
|
},
|
|
319
286
|
render() {
|
|
320
|
-
return h(
|
|
287
|
+
return h(Presence, {
|
|
321
288
|
present: this.forceMount || this.rootContext.open.value
|
|
322
|
-
}, {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
onPointerleave: (event) => {
|
|
330
|
-
excludeTouch(this.rootContext.onClose)(event);
|
|
331
|
-
}
|
|
332
|
-
}), {
|
|
333
|
-
default: () => this.$slots.default?.()
|
|
334
|
-
});
|
|
289
|
+
}, () => h(HoverCardContentImpl, mergeProps(this.forwarded, {
|
|
290
|
+
ref: (el) => this.forwardRef(el),
|
|
291
|
+
onPointerenter: (event) => {
|
|
292
|
+
excludeTouch(this.rootContext.onOpen)(event);
|
|
293
|
+
},
|
|
294
|
+
onPointerleave: (event) => {
|
|
295
|
+
excludeTouch(this.rootContext.onClose)(event);
|
|
335
296
|
}
|
|
336
|
-
});
|
|
297
|
+
}), () => this.$slots.default?.()));
|
|
337
298
|
}
|
|
338
299
|
});
|
|
339
300
|
|
|
340
|
-
const
|
|
341
|
-
|
|
342
|
-
type: [String, Object],
|
|
343
|
-
required: false,
|
|
344
|
-
default: "body"
|
|
345
|
-
},
|
|
346
|
-
disabled: {
|
|
347
|
-
type: Boolean,
|
|
348
|
-
required: false,
|
|
349
|
-
default: false
|
|
350
|
-
},
|
|
351
|
-
forceMount: {
|
|
352
|
-
type: Boolean,
|
|
353
|
-
required: false,
|
|
354
|
-
default: false
|
|
355
|
-
}
|
|
301
|
+
const hoverCardPortalProps = {
|
|
302
|
+
...teleportPrimitiveProps
|
|
356
303
|
};
|
|
357
|
-
const
|
|
304
|
+
const HoverCardPortal = defineComponent({
|
|
358
305
|
name: "DestylerHoverCardPortal",
|
|
359
|
-
props:
|
|
306
|
+
props: hoverCardPortalProps,
|
|
360
307
|
render() {
|
|
361
|
-
return h(
|
|
362
|
-
default: () => this.$slots.default?.()
|
|
363
|
-
});
|
|
308
|
+
return h(TeleportPrimitive, this.$props, () => this.$slots.default?.());
|
|
364
309
|
}
|
|
365
310
|
});
|
|
366
311
|
|
|
367
|
-
const
|
|
312
|
+
const hoverCardTriggerProps = {
|
|
313
|
+
...primitiveProps,
|
|
314
|
+
/**
|
|
315
|
+
* @default a
|
|
316
|
+
*/
|
|
368
317
|
as: {
|
|
369
|
-
|
|
370
|
-
required: false,
|
|
318
|
+
...primitiveProps.as,
|
|
371
319
|
default: "a"
|
|
372
|
-
},
|
|
373
|
-
asChild: {
|
|
374
|
-
type: Boolean,
|
|
375
|
-
required: false,
|
|
376
|
-
default: false
|
|
377
320
|
}
|
|
378
321
|
};
|
|
379
|
-
const
|
|
322
|
+
const HoverCardTrigger = defineComponent({
|
|
380
323
|
name: "DestylerHoverCardTrigger",
|
|
381
|
-
props:
|
|
324
|
+
props: hoverCardTriggerProps,
|
|
382
325
|
setup() {
|
|
383
326
|
const { forwardRef } = useForwardExpose();
|
|
384
327
|
const rootContext = injectHoverCardRootContext();
|
|
@@ -388,33 +331,27 @@ const DestylerHoverCardTrigger = defineComponent({
|
|
|
388
331
|
};
|
|
389
332
|
},
|
|
390
333
|
render() {
|
|
391
|
-
return h(
|
|
334
|
+
return h(PopperAnchor, {
|
|
392
335
|
asChild: true
|
|
393
|
-
}, {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
"onBlur": () => {
|
|
410
|
-
this.rootContext.onClose();
|
|
411
|
-
}
|
|
412
|
-
}, {
|
|
413
|
-
default: () => this.$slots.default?.()
|
|
414
|
-
});
|
|
336
|
+
}, () => h(Primitive, {
|
|
337
|
+
"ref": (el) => this.forwardRef(el),
|
|
338
|
+
"as": this.$props.as,
|
|
339
|
+
"asChild": this.$props.asChild,
|
|
340
|
+
"data-state": this.rootContext.open.value ? "open" : "closed",
|
|
341
|
+
"onPointerenter": (event) => {
|
|
342
|
+
excludeTouch(this.rootContext.onOpen)(event);
|
|
343
|
+
},
|
|
344
|
+
"onPointerleave": (event) => {
|
|
345
|
+
excludeTouch(this.rootContext.onClose)(event);
|
|
346
|
+
},
|
|
347
|
+
"onFocus": () => {
|
|
348
|
+
this.rootContext.onOpen();
|
|
349
|
+
},
|
|
350
|
+
"onBlur": () => {
|
|
351
|
+
this.rootContext.onClose();
|
|
415
352
|
}
|
|
416
|
-
});
|
|
353
|
+
}, () => this.$slots.default?.()));
|
|
417
354
|
}
|
|
418
355
|
});
|
|
419
356
|
|
|
420
|
-
export {
|
|
357
|
+
export { HoverCardArrow, HoverCardContent, HoverCardContentImpl, HoverCardPortal, HoverCardRoot, HoverCardTrigger, hoverCardArrowProps, hoverCardContentEmits, hoverCardContentImplEmits, hoverCardContentImplProps, hoverCardContentProps, hoverCardPortalProps, hoverCardRootEmits, hoverCardRootProps, hoverCardTriggerProps };
|
package/dist/index.cjs
CHANGED
|
@@ -2,18 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./component.cjs');
|
|
4
4
|
require('vue');
|
|
5
|
+
require('@destyler/primitive');
|
|
5
6
|
require('@destyler/composition');
|
|
6
7
|
require('@destyler/popper');
|
|
7
8
|
require('@destyler/presence');
|
|
8
9
|
require('@destyler/dismissable-layer');
|
|
10
|
+
require('@destyler/dismissable-layer/component');
|
|
9
11
|
require('@destyler/shared');
|
|
10
12
|
require('@destyler/teleport');
|
|
11
|
-
require('@destyler/primitive');
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
16
|
+
exports.HoverCardArrow = index.HoverCardArrow;
|
|
17
|
+
exports.HoverCardContent = index.HoverCardContent;
|
|
18
|
+
exports.HoverCardPortal = index.HoverCardPortal;
|
|
19
|
+
exports.HoverCardRoot = index.HoverCardRoot;
|
|
20
|
+
exports.HoverCardTrigger = index.HoverCardTrigger;
|
|
21
|
+
exports.hoverCardArrowProps = index.hoverCardArrowProps;
|
|
22
|
+
exports.hoverCardContentProps = index.hoverCardContentProps;
|
|
23
|
+
exports.hoverCardPortalProps = index.hoverCardPortalProps;
|
|
24
|
+
exports.hoverCardRootProps = index.hoverCardRootProps;
|
|
25
|
+
exports.hoverCardTriggerProps = index.hoverCardTriggerProps;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a as HoverCardArrow, b as HoverCardArrowProps, c as HoverCardContent, f as HoverCardContentProps, g as HoverCardPortal, j as HoverCardPortalProps, k as HoverCardRoot, n as HoverCardRootProps, o as HoverCardTrigger, q as HoverCardTriggerProps, h as hoverCardArrowProps, d as hoverCardContentProps, i as hoverCardPortalProps, l as hoverCardRootProps, p as hoverCardTriggerProps } from './shared/hover-card.c926f135.cjs';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import '@destyler/primitive';
|
|
4
4
|
import '@destyler/shared';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a as HoverCardArrow, b as HoverCardArrowProps, c as HoverCardContent, f as HoverCardContentProps, g as HoverCardPortal, j as HoverCardPortalProps, k as HoverCardRoot, n as HoverCardRootProps, o as HoverCardTrigger, q as HoverCardTriggerProps, h as hoverCardArrowProps, d as hoverCardContentProps, i as hoverCardPortalProps, l as hoverCardRootProps, p as hoverCardTriggerProps } from './shared/hover-card.c926f135.mjs';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import '@destyler/primitive';
|
|
4
4
|
import '@destyler/shared';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a as HoverCardArrow, b as HoverCardArrowProps, c as HoverCardContent, f as HoverCardContentProps, g as HoverCardPortal, j as HoverCardPortalProps, k as HoverCardRoot, n as HoverCardRootProps, o as HoverCardTrigger, q as HoverCardTriggerProps, h as hoverCardArrowProps, d as hoverCardContentProps, i as hoverCardPortalProps, l as hoverCardRootProps, p as hoverCardTriggerProps } from './shared/hover-card.c926f135.js';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import '@destyler/primitive';
|
|
4
4
|
import '@destyler/shared';
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { HoverCardArrow, HoverCardContent, HoverCardPortal, HoverCardRoot, HoverCardTrigger, hoverCardArrowProps, hoverCardContentProps, hoverCardPortalProps, hoverCardRootProps, hoverCardTriggerProps } from './component.mjs';
|
|
2
2
|
import 'vue';
|
|
3
|
+
import '@destyler/primitive';
|
|
3
4
|
import '@destyler/composition';
|
|
4
5
|
import '@destyler/popper';
|
|
5
6
|
import '@destyler/presence';
|
|
6
7
|
import '@destyler/dismissable-layer';
|
|
8
|
+
import '@destyler/dismissable-layer/component';
|
|
7
9
|
import '@destyler/shared';
|
|
8
10
|
import '@destyler/teleport';
|
|
9
|
-
import '@destyler/primitive';
|
package/dist/resolver.cjs
CHANGED
|
@@ -3,18 +3,22 @@
|
|
|
3
3
|
const name = "@destyler/hover-card";
|
|
4
4
|
|
|
5
5
|
const packageName = name;
|
|
6
|
-
const
|
|
7
|
-
"
|
|
6
|
+
const hoverCardComponentName = [
|
|
7
|
+
"HoverCardArrow",
|
|
8
|
+
"HoverCardContent",
|
|
9
|
+
"HoverCardPortal",
|
|
10
|
+
"HoverCardRoot",
|
|
11
|
+
"HoverCardTrigger"
|
|
8
12
|
];
|
|
9
|
-
function
|
|
13
|
+
function HoverCardResolver() {
|
|
10
14
|
return {
|
|
11
15
|
type: "component",
|
|
12
16
|
resolve: (name2) => {
|
|
13
|
-
if (
|
|
17
|
+
if (hoverCardComponentName.includes(name2))
|
|
14
18
|
return { name: name2, from: packageName };
|
|
15
19
|
}
|
|
16
20
|
};
|
|
17
21
|
}
|
|
18
22
|
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
23
|
+
exports.HoverCardResolver = HoverCardResolver;
|
|
24
|
+
exports.hoverCardComponentName = hoverCardComponentName;
|
package/dist/resolver.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentResolver } from 'unplugin-vue-components';
|
|
2
2
|
|
|
3
|
-
declare const
|
|
4
|
-
declare function
|
|
3
|
+
declare const hoverCardComponentName: string[];
|
|
4
|
+
declare function HoverCardResolver(): ComponentResolver;
|
|
5
5
|
|
|
6
|
-
export {
|
|
6
|
+
export { HoverCardResolver, hoverCardComponentName };
|
package/dist/resolver.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentResolver } from 'unplugin-vue-components';
|
|
2
2
|
|
|
3
|
-
declare const
|
|
4
|
-
declare function
|
|
3
|
+
declare const hoverCardComponentName: string[];
|
|
4
|
+
declare function HoverCardResolver(): ComponentResolver;
|
|
5
5
|
|
|
6
|
-
export {
|
|
6
|
+
export { HoverCardResolver, hoverCardComponentName };
|
package/dist/resolver.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentResolver } from 'unplugin-vue-components';
|
|
2
2
|
|
|
3
|
-
declare const
|
|
4
|
-
declare function
|
|
3
|
+
declare const hoverCardComponentName: string[];
|
|
4
|
+
declare function HoverCardResolver(): ComponentResolver;
|
|
5
5
|
|
|
6
|
-
export {
|
|
6
|
+
export { HoverCardResolver, hoverCardComponentName };
|
package/dist/resolver.mjs
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
const name = "@destyler/hover-card";
|
|
2
2
|
|
|
3
3
|
const packageName = name;
|
|
4
|
-
const
|
|
5
|
-
"
|
|
4
|
+
const hoverCardComponentName = [
|
|
5
|
+
"HoverCardArrow",
|
|
6
|
+
"HoverCardContent",
|
|
7
|
+
"HoverCardPortal",
|
|
8
|
+
"HoverCardRoot",
|
|
9
|
+
"HoverCardTrigger"
|
|
6
10
|
];
|
|
7
|
-
function
|
|
11
|
+
function HoverCardResolver() {
|
|
8
12
|
return {
|
|
9
13
|
type: "component",
|
|
10
14
|
resolve: (name2) => {
|
|
11
|
-
if (
|
|
15
|
+
if (hoverCardComponentName.includes(name2))
|
|
12
16
|
return { name: name2, from: packageName };
|
|
13
17
|
}
|
|
14
18
|
};
|
|
15
19
|
}
|
|
16
20
|
|
|
17
|
-
export {
|
|
21
|
+
export { HoverCardResolver, hoverCardComponentName };
|