vue-tippy 4.16.0 → 4.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -10,24 +10,18 @@
10
10
  <a href="https://github.com/KABBOUCHI/vue-tippy/tree/v1">For tippyJS v1 use v1 branch</a>
11
11
  </aside>
12
12
 
13
- <br/>
14
-
15
- <aside class="notice">
16
- <a href="https://vue-tippy.netlify.app/">Vue 3 alpha version</a>
17
- </aside>
18
-
19
-
20
13
 
21
14
  ## Documentation
22
15
 
23
- For full v4 documentation, visit [https://kabbouchi.github.io/vue-tippy/4.0/](https://kabbouchi.github.io/vue-tippy/4.0/).
16
+ For full v4 documentation, visit [https://kabbouchi.github.io/vue-tippy/4.0/](https://kabbouchi.github.io/vue-tippy/4.0/).
17
+ For v6 alpha documentation, visit [https://vue-tippy.netlify.app/](https://vue-tippy.netlify.app/).
24
18
 
25
19
  ## Installation
26
20
 
27
21
  ```bash
28
- npm install --save vue-tippy
22
+ npm install --save vue-tippy@v4
29
23
  # or
30
- yarn add vue-tippy
24
+ yarn add vue-tippy@v4
31
25
  ```
32
26
 
33
27
  ## Usage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-tippy",
3
- "version": "4.16.0",
3
+ "version": "4.16.1",
4
4
  "description": "Directive and Component wrapper for Tippy.js",
5
5
  "author": "Georges KABBOUCHI <georges.kabbouchi@gmail.com>",
6
6
  "files": [
package/src/.DS_Store ADDED
Binary file
@@ -1,421 +0,0 @@
1
- import { UnwrapNestedRefs, PropType } from 'vue';
2
- import { TippyOptions } from '../types';
3
- import { useTippy } from '../composables';
4
- declare module '@vue/runtime-core' {
5
- interface ComponentCustomProps extends TippyOptions {
6
- to: string | Element;
7
- tag: string;
8
- contentTag: string;
9
- contentClass: string;
10
- }
11
- interface ComponentCustomProperties extends UnwrapNestedRefs<ReturnType<typeof useTippy>> {
12
- }
13
- }
14
- declare const TippyComponent: import("vue").DefineComponent<{
15
- to: {
16
- type: PropType<string | Element>;
17
- };
18
- tag: {
19
- type: StringConstructor;
20
- default: string;
21
- };
22
- contentTag: {
23
- type: StringConstructor;
24
- default: string;
25
- };
26
- contentClass: {
27
- type: StringConstructor;
28
- default: null;
29
- };
30
- appendTo: {
31
- default: () => Element | "parent" | ((ref: Element) => Element);
32
- };
33
- aria: {
34
- default: () => {
35
- content?: "auto" | "describedby" | "labelledby" | null | undefined;
36
- expanded?: boolean | "auto" | undefined;
37
- };
38
- };
39
- delay: {
40
- default: () => number | [number, number];
41
- };
42
- duration: {
43
- default: () => number | [number, number];
44
- };
45
- getReferenceClientRect: {
46
- default: () => import("tippy.js").GetReferenceClientRect | null;
47
- };
48
- hideOnClick: {
49
- type: (StringConstructor | BooleanConstructor)[];
50
- default: () => boolean | "toggle";
51
- };
52
- ignoreAttributes: {
53
- type: BooleanConstructor;
54
- default: () => boolean;
55
- };
56
- interactive: {
57
- type: BooleanConstructor;
58
- default: () => boolean;
59
- };
60
- interactiveBorder: {
61
- default: () => number;
62
- };
63
- interactiveDebounce: {
64
- default: () => number;
65
- };
66
- moveTransition: {
67
- default: () => string;
68
- };
69
- offset: {
70
- default: () => [number, number] | (({ placement, popper, reference, }: {
71
- placement: import("@popperjs/core").Placement;
72
- popper: import("@popperjs/core").Rect;
73
- reference: import("@popperjs/core").Rect;
74
- }) => [number, number]);
75
- };
76
- onAfterUpdate: {
77
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, partialProps: Partial<import("tippy.js").Props>) => void;
78
- };
79
- onBeforeUpdate: {
80
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, partialProps: Partial<import("tippy.js").Props>) => void;
81
- };
82
- onCreate: {
83
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
84
- };
85
- onDestroy: {
86
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
87
- };
88
- onHidden: {
89
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
90
- };
91
- onHide: {
92
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => false | void;
93
- };
94
- onMount: {
95
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
96
- };
97
- onShow: {
98
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => false | void;
99
- };
100
- onShown: {
101
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
102
- };
103
- onTrigger: {
104
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, event: Event) => void;
105
- };
106
- onUntrigger: {
107
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, event: Event) => void;
108
- };
109
- onClickOutside: {
110
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, event: Event) => void;
111
- };
112
- placement: {
113
- default: () => import("@popperjs/core").Placement;
114
- };
115
- plugins: {
116
- default: () => import("tippy.js").Plugin<unknown>[];
117
- };
118
- popperOptions: {
119
- default: () => Partial<import("@popperjs/core").Options>;
120
- };
121
- render: {
122
- default: () => ((instance: import("tippy.js").Instance<import("tippy.js").Props>) => {
123
- popper: import("tippy.js").PopperElement<import("tippy.js").Props>;
124
- onUpdate?: ((prevProps: import("tippy.js").Props, nextProps: import("tippy.js").Props) => void) | undefined;
125
- }) | null;
126
- };
127
- showOnCreate: {
128
- type: BooleanConstructor;
129
- default: () => boolean;
130
- };
131
- touch: {
132
- type: (StringConstructor | BooleanConstructor | ArrayConstructor)[];
133
- default: () => boolean | "hold" | ["hold", number];
134
- };
135
- trigger: {
136
- default: () => string;
137
- };
138
- triggerTarget: {
139
- default: () => Element | Element[] | null;
140
- };
141
- animateFill: {
142
- type: BooleanConstructor;
143
- default: () => boolean;
144
- };
145
- followCursor: {
146
- type: (StringConstructor | BooleanConstructor)[];
147
- default: () => boolean | "horizontal" | "vertical" | "initial";
148
- };
149
- inlinePositioning: {
150
- type: BooleanConstructor;
151
- default: () => boolean;
152
- };
153
- sticky: {
154
- type: (StringConstructor | BooleanConstructor)[];
155
- default: () => boolean | "reference" | "popper";
156
- };
157
- allowHTML: {
158
- type: BooleanConstructor;
159
- default: () => boolean;
160
- };
161
- animation: {
162
- default: () => string | boolean;
163
- };
164
- arrow: {
165
- default: () => string | boolean | DocumentFragment | SVGElement;
166
- };
167
- content: {
168
- default: () => import("tippy.js").Content;
169
- };
170
- inertia: {
171
- default: () => boolean;
172
- };
173
- maxWidth: {
174
- default: () => string | number;
175
- };
176
- role: {
177
- default: () => string;
178
- };
179
- theme: {
180
- default: () => string;
181
- };
182
- zIndex: {
183
- default: () => number;
184
- };
185
- }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
186
- [key: string]: any;
187
- }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "state"[], "state", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
188
- to: {
189
- type: PropType<string | Element>;
190
- };
191
- tag: {
192
- type: StringConstructor;
193
- default: string;
194
- };
195
- contentTag: {
196
- type: StringConstructor;
197
- default: string;
198
- };
199
- contentClass: {
200
- type: StringConstructor;
201
- default: null;
202
- };
203
- appendTo: {
204
- default: () => Element | "parent" | ((ref: Element) => Element);
205
- };
206
- aria: {
207
- default: () => {
208
- content?: "auto" | "describedby" | "labelledby" | null | undefined;
209
- expanded?: boolean | "auto" | undefined;
210
- };
211
- };
212
- delay: {
213
- default: () => number | [number, number];
214
- };
215
- duration: {
216
- default: () => number | [number, number];
217
- };
218
- getReferenceClientRect: {
219
- default: () => import("tippy.js").GetReferenceClientRect | null;
220
- };
221
- hideOnClick: {
222
- type: (StringConstructor | BooleanConstructor)[];
223
- default: () => boolean | "toggle";
224
- };
225
- ignoreAttributes: {
226
- type: BooleanConstructor;
227
- default: () => boolean;
228
- };
229
- interactive: {
230
- type: BooleanConstructor;
231
- default: () => boolean;
232
- };
233
- interactiveBorder: {
234
- default: () => number;
235
- };
236
- interactiveDebounce: {
237
- default: () => number;
238
- };
239
- moveTransition: {
240
- default: () => string;
241
- };
242
- offset: {
243
- default: () => [number, number] | (({ placement, popper, reference, }: {
244
- placement: import("@popperjs/core").Placement;
245
- popper: import("@popperjs/core").Rect;
246
- reference: import("@popperjs/core").Rect;
247
- }) => [number, number]);
248
- };
249
- onAfterUpdate: {
250
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, partialProps: Partial<import("tippy.js").Props>) => void;
251
- };
252
- onBeforeUpdate: {
253
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, partialProps: Partial<import("tippy.js").Props>) => void;
254
- };
255
- onCreate: {
256
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
257
- };
258
- onDestroy: {
259
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
260
- };
261
- onHidden: {
262
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
263
- };
264
- onHide: {
265
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => false | void;
266
- };
267
- onMount: {
268
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
269
- };
270
- onShow: {
271
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => false | void;
272
- };
273
- onShown: {
274
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
275
- };
276
- onTrigger: {
277
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, event: Event) => void;
278
- };
279
- onUntrigger: {
280
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, event: Event) => void;
281
- };
282
- onClickOutside: {
283
- default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, event: Event) => void;
284
- };
285
- placement: {
286
- default: () => import("@popperjs/core").Placement;
287
- };
288
- plugins: {
289
- default: () => import("tippy.js").Plugin<unknown>[];
290
- };
291
- popperOptions: {
292
- default: () => Partial<import("@popperjs/core").Options>;
293
- };
294
- render: {
295
- default: () => ((instance: import("tippy.js").Instance<import("tippy.js").Props>) => {
296
- popper: import("tippy.js").PopperElement<import("tippy.js").Props>;
297
- onUpdate?: ((prevProps: import("tippy.js").Props, nextProps: import("tippy.js").Props) => void) | undefined;
298
- }) | null;
299
- };
300
- showOnCreate: {
301
- type: BooleanConstructor;
302
- default: () => boolean;
303
- };
304
- touch: {
305
- type: (StringConstructor | BooleanConstructor | ArrayConstructor)[];
306
- default: () => boolean | "hold" | ["hold", number];
307
- };
308
- trigger: {
309
- default: () => string;
310
- };
311
- triggerTarget: {
312
- default: () => Element | Element[] | null;
313
- };
314
- animateFill: {
315
- type: BooleanConstructor;
316
- default: () => boolean;
317
- };
318
- followCursor: {
319
- type: (StringConstructor | BooleanConstructor)[];
320
- default: () => boolean | "horizontal" | "vertical" | "initial";
321
- };
322
- inlinePositioning: {
323
- type: BooleanConstructor;
324
- default: () => boolean;
325
- };
326
- sticky: {
327
- type: (StringConstructor | BooleanConstructor)[];
328
- default: () => boolean | "reference" | "popper";
329
- };
330
- allowHTML: {
331
- type: BooleanConstructor;
332
- default: () => boolean;
333
- };
334
- animation: {
335
- default: () => string | boolean;
336
- };
337
- arrow: {
338
- default: () => string | boolean | DocumentFragment | SVGElement;
339
- };
340
- content: {
341
- default: () => import("tippy.js").Content;
342
- };
343
- inertia: {
344
- default: () => boolean;
345
- };
346
- maxWidth: {
347
- default: () => string | number;
348
- };
349
- role: {
350
- default: () => string;
351
- };
352
- theme: {
353
- default: () => string;
354
- };
355
- zIndex: {
356
- default: () => number;
357
- };
358
- }>> & {
359
- onState?: ((...args: any[]) => any) | undefined;
360
- }, {
361
- content: import("tippy.js").Content;
362
- triggerTarget: Element | Element[];
363
- getReferenceClientRect: import("tippy.js").GetReferenceClientRect;
364
- animateFill: boolean;
365
- appendTo: Element | "parent" | ((ref: Element) => Element);
366
- aria: {
367
- content?: "auto" | "describedby" | "labelledby" | null | undefined;
368
- expanded?: boolean | "auto" | undefined;
369
- };
370
- delay: number | [number, number];
371
- duration: number | [number, number];
372
- followCursor: string | boolean;
373
- hideOnClick: string | boolean;
374
- ignoreAttributes: boolean;
375
- inlinePositioning: boolean;
376
- interactive: boolean;
377
- interactiveBorder: number;
378
- interactiveDebounce: number;
379
- moveTransition: string;
380
- offset: [number, number] | (({ placement, popper, reference, }: {
381
- placement: import("@popperjs/core").Placement;
382
- popper: import("@popperjs/core").Rect;
383
- reference: import("@popperjs/core").Rect;
384
- }) => [number, number]);
385
- placement: import("@popperjs/core").Placement;
386
- plugins: import("tippy.js").Plugin<unknown>[];
387
- popperOptions: Partial<import("@popperjs/core").Options>;
388
- render: (instance: import("tippy.js").Instance<import("tippy.js").Props>) => {
389
- popper: import("tippy.js").PopperElement<import("tippy.js").Props>;
390
- onUpdate?: ((prevProps: import("tippy.js").Props, nextProps: import("tippy.js").Props) => void) | undefined;
391
- };
392
- showOnCreate: boolean;
393
- sticky: string | boolean;
394
- touch: string | boolean | unknown[];
395
- trigger: string;
396
- onAfterUpdate: (instance: import("tippy.js").Instance<import("tippy.js").Props>, partialProps: Partial<import("tippy.js").Props>) => void;
397
- onBeforeUpdate: (instance: import("tippy.js").Instance<import("tippy.js").Props>, partialProps: Partial<import("tippy.js").Props>) => void;
398
- onCreate: (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
399
- onDestroy: (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
400
- onHidden: (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
401
- onHide: (instance: import("tippy.js").Instance<import("tippy.js").Props>) => false | void;
402
- onMount: (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
403
- onShow: (instance: import("tippy.js").Instance<import("tippy.js").Props>) => false | void;
404
- onShown: (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
405
- onTrigger: (instance: import("tippy.js").Instance<import("tippy.js").Props>, event: Event) => void;
406
- onUntrigger: (instance: import("tippy.js").Instance<import("tippy.js").Props>, event: Event) => void;
407
- onClickOutside: (instance: import("tippy.js").Instance<import("tippy.js").Props>, event: Event) => void;
408
- allowHTML: boolean;
409
- animation: string | boolean;
410
- arrow: string | boolean | DocumentFragment | SVGElement;
411
- inertia: boolean;
412
- maxWidth: string | number;
413
- role: string;
414
- theme: string;
415
- zIndex: number;
416
- tag: string;
417
- contentTag: string;
418
- contentClass: string;
419
- }>;
420
- export default TippyComponent;
421
- //# sourceMappingURL=Tippy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tippy.d.ts","sourceRoot":"","sources":["Tippy.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,gBAAgB,EAA+C,QAAQ,EAAE,MAAM,KAAK,CAAA;AACtH,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAGzC,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAU,oBAAqB,SAAQ,YAAY;QACjD,EAAE,EAAE,MAAM,GAAG,OAAO,CAAA;QACpB,GAAG,EAAE,MAAM,CAAA;QACX,UAAU,EAAE,MAAM,CAAA;QAClB,YAAY,EAAE,MAAM,CAAA;KACrB;IACD,UAAU,yBAA0B,SAAQ,gBAAgB,CAAC,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;KAAI;CAC9F;AAGD,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2IlB,CAAA;AAEF,eAAe,cAAc,CAAA"}