forked from vitest-dev/vitest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecosystem-functions.ts
78 lines (73 loc) · 1.98 KB
/
ecosystem-functions.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import type { VueUseFunction } from './types'
export const head: VueUseFunction[] = [
{
name: 'createHead',
package: 'head',
description: 'create the head manager instance.',
category: '@Head',
external: 'https://github.com/vueuse/head#api',
},
{
name: 'useHead',
package: 'head',
description: 'update head meta tags reactively.',
category: '@Head',
external: 'https://github.com/vueuse/head#api',
},
]
const motionDefaults = {
package: 'motion',
category: '@Motion',
}
export const motion: VueUseFunction[] = [
{
...motionDefaults,
name: 'useMotion',
description: 'putting your components in motion.',
external: 'https://motion.vueuse.org/api/use-motion.html',
},
{
...motionDefaults,
name: 'useSpring',
description: 'spring animations.',
external: 'https://motion.vueuse.org/api/use-spring.html',
},
{
...motionDefaults,
name: 'useMotionProperties',
description: 'access Motion Properties for a target element.',
external: 'https://motion.vueuse.org/api/use-motion-properties.html',
},
{
...motionDefaults,
name: 'useMotionVariants',
description: 'handle the Variants state and selection.',
external: 'https://motion.vueuse.org/api/use-motion-variants.html',
},
{
...motionDefaults,
name: 'useElementStyle',
description: 'sync a reactive object to a target element CSS styling',
external: 'https://motion.vueuse.org/api/use-element-style.html',
},
{
...motionDefaults,
name: 'useElementTransform',
description: 'sync a reactive object to a target element CSS transform.',
external: 'https://motion.vueuse.org/api/use-element-transform.html',
},
]
export const sound: VueUseFunction[] = [
{
name: 'useSound',
package: 'sound',
description: 'play sound effects reactively.',
category: '@Sound',
external: 'https://github.com/vueuse/sound#examples',
},
]
export const ecosystemFunctions = [
...head,
...motion,
...sound,
]