vue-tippy 6.0.0-alpha.50 → 6.0.0-alpha.53
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/dist/vue-tippy.cjs +87 -3
- package/dist/vue-tippy.esm-browser.js +91 -11
- package/dist/vue-tippy.iife.js +87 -3
- package/dist/vue-tippy.iife.prod.js +2 -2
- package/dist/vue-tippy.mjs +91 -11
- package/dist/vue-tippy.prod.cjs +87 -3
- package/package.json +5 -2
- package/src/components/Tippy.ts +144 -0
- package/src/components/TippySingleton.ts +74 -0
- package/src/composables/index.ts +3 -0
- package/src/composables/useSingleton.ts +44 -0
- package/src/composables/useTippy.ts +255 -0
- package/src/composables/useTippyComponent.ts +25 -0
- package/src/directive/index.ts +89 -0
- package/src/global.d.ts +4 -0
- package/src/index.ts +39 -0
- package/src/plugin/index.ts +18 -0
- package/src/types/index.ts +30 -0
- package/tsconfig.json +31 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
import Tippy from '../components/Tippy'
|
2
|
+
import { Props, Content, DefaultProps, Instance } from 'tippy.js'
|
3
|
+
import { VNode, Ref, Component } from 'vue'
|
4
|
+
|
5
|
+
export declare type TippyContent = Content | VNode | Component | Ref
|
6
|
+
export declare type TippyTarget =
|
7
|
+
| Element
|
8
|
+
| Element[]
|
9
|
+
| Ref<Element | undefined>
|
10
|
+
| Ref<Element[] | undefined>
|
11
|
+
| null
|
12
|
+
|
13
|
+
export declare type TippyOptions = Partial<
|
14
|
+
Omit<Props, 'content' | 'triggerTarget'> & {
|
15
|
+
content: TippyContent
|
16
|
+
triggerTarget: TippyTarget
|
17
|
+
}
|
18
|
+
>
|
19
|
+
|
20
|
+
export declare type TippyComponent = InstanceType<typeof Tippy>
|
21
|
+
|
22
|
+
export interface TippyPluginOptions {
|
23
|
+
directive?: string
|
24
|
+
component?: string
|
25
|
+
componentSingleton?: string
|
26
|
+
defaultProps?: Partial<DefaultProps>
|
27
|
+
}
|
28
|
+
|
29
|
+
export type TippyInstance = Instance | Element | undefined
|
30
|
+
export type TippyInstances = Ref<TippyInstance>[] | Ref<TippyInstance[]> | (() => TippyInstance[])
|
package/tsconfig.json
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"include": ["src/**/*"],
|
3
|
+
"compilerOptions": {
|
4
|
+
"baseUrl": ".",
|
5
|
+
"rootDir": ".",
|
6
|
+
"outDir": "dist",
|
7
|
+
"sourceMap": false,
|
8
|
+
"noEmit": true,
|
9
|
+
|
10
|
+
"target": "es2019",
|
11
|
+
"module": "esnext",
|
12
|
+
"moduleResolution": "node",
|
13
|
+
"allowJs": false,
|
14
|
+
|
15
|
+
"noUnusedLocals": true,
|
16
|
+
"strictNullChecks": true,
|
17
|
+
"noImplicitAny": true,
|
18
|
+
"noImplicitThis": true,
|
19
|
+
"noImplicitReturns": true,
|
20
|
+
"strict": true,
|
21
|
+
"isolatedModules": false,
|
22
|
+
|
23
|
+
"experimentalDecorators": true,
|
24
|
+
"resolveJsonModule": true,
|
25
|
+
"esModuleInterop": true,
|
26
|
+
"removeComments": false,
|
27
|
+
"jsx": "preserve",
|
28
|
+
"lib": ["esnext", "dom"],
|
29
|
+
"types": ["node"]
|
30
|
+
}
|
31
|
+
}
|