vue-tippy 4.14.0 → 4.15.0

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.
Files changed (34) hide show
  1. package/dist/src/components/Tippy.d.ts +421 -0
  2. package/dist/src/components/Tippy.d.ts.map +1 -0
  3. package/dist/src/components/TippySingleton.d.ts +266 -0
  4. package/dist/src/components/TippySingleton.d.ts.map +1 -0
  5. package/dist/src/composables/index.d.ts +4 -0
  6. package/dist/src/composables/index.d.ts.map +1 -0
  7. package/dist/src/composables/useSingleton.d.ts +6 -0
  8. package/dist/src/composables/useSingleton.d.ts.map +1 -0
  9. package/dist/src/composables/useTippy.d.ts +27 -0
  10. package/dist/src/composables/useTippy.d.ts.map +1 -0
  11. package/dist/src/composables/useTippyComponent.d.ts +8 -0
  12. package/dist/src/composables/useTippyComponent.d.ts.map +1 -0
  13. package/dist/src/directive/index.d.ts +4 -0
  14. package/dist/src/directive/index.d.ts.map +1 -0
  15. package/dist/src/index.d.ts +13 -0
  16. package/dist/src/index.d.ts.map +1 -0
  17. package/dist/src/plugin/index.d.ts +4 -0
  18. package/dist/src/plugin/index.d.ts.map +1 -0
  19. package/dist/src/types/index.d.ts +21 -0
  20. package/dist/src/types/index.d.ts.map +1 -0
  21. package/dist/vue-tippy.cjs +4789 -0
  22. package/dist/vue-tippy.d.ts +750 -0
  23. package/dist/vue-tippy.esm-browser.js +4460 -0
  24. package/dist/vue-tippy.esm.js +13 -3
  25. package/dist/vue-tippy.iife.js +4792 -0
  26. package/dist/vue-tippy.iife.prod.js +6 -0
  27. package/dist/vue-tippy.min.js +1 -1
  28. package/dist/vue-tippy.mjs +4460 -0
  29. package/dist/vue-tippy.prod.cjs +4473 -0
  30. package/dist/vue-tippy.umd.js +13 -3
  31. package/package.json +1 -1
  32. package/src/components/Tippy.vue +3 -3
  33. package/src/components/TippyNoStyles.vue +1 -1
  34. package/src/index.js +2 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TippySingleton.d.ts","sourceRoot":"","sources":["TippySingleton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,EAAE,2BAA2B,EAA2B,MAAM,KAAK,CAAA;AAE1E,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAGvC,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAU,oBAAqB,SAAQ,YAAY;KAAG;CACvD;AAuCD,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mUAwBlB,CAAA;AAEF,eAAe,cAAc,CAAA"}
@@ -0,0 +1,4 @@
1
+ export { useTippy } from './useTippy';
2
+ export { useTippyComponent } from './useTippyComponent';
3
+ export { useSingleton } from './useSingleton';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { TippyInstances } from '../types';
2
+ import { CreateSingletonProps, Props } from 'tippy.js';
3
+ export declare function useSingleton(instances: TippyInstances, optionalProps?: Partial<CreateSingletonProps<Props>>): {
4
+ singleton: import("vue").Ref<import("tippy.js").CreateSingletonInstance<CreateSingletonProps<Props>> | undefined>;
5
+ };
6
+ //# sourceMappingURL=useSingleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSingleton.d.ts","sourceRoot":"","sources":["useSingleton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,UAAU,CAAA;AACxD,OAAO,EAEL,oBAAoB,EAEpB,KAAK,EACN,MAAM,UAAU,CAAA;AAGjB,wBAAgB,YAAY,CAC1B,SAAS,EAAE,cAAc,EACzB,aAAa,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;;EAgCrD"}
@@ -0,0 +1,27 @@
1
+ import { Instance, Props } from 'tippy.js';
2
+ import { Ref } from 'vue';
3
+ import { TippyOptions, TippyContent } from '../types';
4
+ export declare function useTippy(el: Element | (() => Element) | Ref<Element> | Ref<Element | undefined>, opts?: TippyOptions, settings?: {
5
+ mount: boolean;
6
+ }): {
7
+ tippy: Ref<Instance<Props> | undefined>;
8
+ refresh: () => void;
9
+ refreshContent: () => void;
10
+ setContent: (value: TippyContent) => void;
11
+ setProps: (value: TippyOptions) => void;
12
+ destroy: () => void;
13
+ hide: () => void;
14
+ show: () => void;
15
+ disable: () => void;
16
+ enable: () => void;
17
+ unmount: () => void;
18
+ mount: () => void;
19
+ state: Ref<{
20
+ isEnabled: boolean;
21
+ isVisible: boolean;
22
+ isDestroyed: boolean;
23
+ isMounted: boolean;
24
+ isShown: boolean;
25
+ }>;
26
+ };
27
+ //# sourceMappingURL=useTippy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTippy.d.ts","sourceRoot":"","sources":["useTippy.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,QAAQ,EAAE,KAAK,EAAW,MAAM,UAAU,CAAA;AAC1D,OAAO,EAGL,GAAG,EAUJ,MAAM,KAAK,CAAA;AACZ,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AASrD,wBAAgB,QAAQ,CACtB,EAAE,EAAE,OAAO,GAAG,CAAC,MAAM,OAAO,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC,OAAO,GAAG,SAAS,CAAC,EACvE,IAAI,GAAE,YAAiB,EACvB,QAAQ,GAAE;IACR,KAAK,EAAE,OAAO,CAAA;CACG;;;;wBAiIQ,YAAY;sBAId,YAAY;;;;;;;;;;;;;;;EA4FtC"}
@@ -0,0 +1,8 @@
1
+ import { TippyComponent, TippyOptions } from '../types';
2
+ export declare function useTippyComponent(opts?: TippyOptions, children?: any): {
3
+ instance: import("vue").Ref<TippyComponent | undefined>;
4
+ TippyComponent: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
5
+ [key: string]: any;
6
+ }>;
7
+ };
8
+ //# sourceMappingURL=useTippyComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTippyComponent.d.ts","sourceRoot":"","sources":["useTippyComponent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAGvD,wBAAgB,iBAAiB,CAC/B,IAAI,GAAE,YAAiB,EACvB,QAAQ,CAAC,EAAE,GAAG;;;;;EAkBf"}
@@ -0,0 +1,4 @@
1
+ import { Directive } from 'vue';
2
+ declare const directive: Directive;
3
+ export default directive;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAE/B,QAAA,MAAM,SAAS,EAAE,SAmFhB,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -0,0 +1,13 @@
1
+ import tippy, { roundArrow } from 'tippy.js';
2
+ import Tippy from './components/Tippy';
3
+ import TippySingleton from './components/TippySingleton';
4
+ import directive from './directive';
5
+ import plugin from './plugin';
6
+ import { useTippy } from './composables/useTippy';
7
+ import { useTippyComponent } from './composables/useTippyComponent';
8
+ import { useSingleton } from './composables/useSingleton';
9
+ declare const setDefaultProps: (partialProps: Partial<import("tippy.js").DefaultProps>) => void;
10
+ export { useTippy, useTippyComponent, roundArrow, tippy, useSingleton, setDefaultProps, Tippy, TippySingleton, directive, plugin, };
11
+ export * from './types';
12
+ export default plugin;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAKZ,UAAU,EACX,MAAM,UAAU,CAAA;AAEjB,OAAO,KAAK,MAAM,oBAAoB,CAAA;AACtC,OAAO,cAAc,MAAM,6BAA6B,CAAA;AACxD,OAAO,SAAS,MAAM,aAAa,CAAA;AACnC,OAAO,MAAM,MAAM,UAAU,CAAA;AAE7B,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,QAAA,MAAM,eAAe,kEAAwB,CAAA;AAO7C,OAAO,EACL,QAAQ,EACR,iBAAiB,EACjB,UAAU,EACV,KAAK,EACL,YAAY,EACZ,eAAe,EACf,KAAK,EACL,cAAc,EACd,SAAS,EACT,MAAM,GACP,CAAA;AAED,cAAc,SAAS,CAAA;AACvB,eAAe,MAAM,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { Plugin } from 'vue';
2
+ declare const plugin: Plugin;
3
+ export default plugin;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AAI5B,QAAA,MAAM,MAAM,EAAE,MAQb,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -0,0 +1,21 @@
1
+ import Tippy from '../components/Tippy';
2
+ import { useTippy } from '../composables';
3
+ import { Props, Content, DefaultProps, Instance } from 'tippy.js';
4
+ import { VNode, Ref, Component, UnwrapNestedRefs } from 'vue';
5
+ export declare type TippyContent = Content | VNode | Component | Ref;
6
+ export declare type TippyTarget = Element | Element[] | Ref<Element | undefined> | Ref<Element[] | undefined> | null;
7
+ export declare type TippyOptions = Partial<Omit<Props, 'content' | 'triggerTarget' | 'getReferenceClientRect'> & {
8
+ content: TippyContent;
9
+ triggerTarget: TippyTarget;
10
+ getReferenceClientRect: null | (() => DOMRect & any);
11
+ }>;
12
+ export declare type TippyComponent = InstanceType<typeof Tippy> & UnwrapNestedRefs<Pick<ReturnType<typeof useTippy>, 'tippy' | 'refresh' | 'refreshContent' | 'setContent' | 'setProps' | 'destroy' | 'hide' | 'show' | 'disable' | 'enable' | 'unmount' | 'mount' | 'state'>>;
13
+ export interface TippyPluginOptions {
14
+ directive?: string;
15
+ component?: string;
16
+ componentSingleton?: string;
17
+ defaultProps?: Partial<DefaultProps>;
18
+ }
19
+ export declare type TippyInstance = Instance | Element | undefined;
20
+ export declare type TippyInstances = Ref<TippyInstance>[] | Ref<TippyInstance[]> | (() => TippyInstance[]);
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,qBAAqB,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACjE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAE7D,MAAM,CAAC,OAAO,MAAM,YAAY,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,GAAG,GAAG,CAAA;AACpE,MAAM,CAAC,OAAO,MAAM,WAAW,GAC3B,OAAO,GAC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