@wishbone-media/spark 0.4.0 → 0.5.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.
@@ -0,0 +1,55 @@
1
+ import { defaultConfig } from '@formkit/vue';
2
+ import { genesisIcons } from '@formkit/icons';
3
+ import { createAutoAnimatePlugin } from '@formkit/addons';
4
+ import {
5
+ createProPlugin,
6
+ autocomplete,
7
+ colorpicker,
8
+ datepicker,
9
+ dropdown,
10
+ rating,
11
+ repeater,
12
+ slider,
13
+ taglist,
14
+ toggle
15
+ } from '@formkit/pro';
16
+ import { rootClasses } from '@wishbone-media/spark/formkit.theme.mjs';
17
+
18
+ const proPlugin = createProPlugin('fk-8c746502a21', {
19
+ autocomplete,
20
+ colorpicker,
21
+ datepicker,
22
+ dropdown,
23
+ rating,
24
+ repeater,
25
+ slider,
26
+ taglist,
27
+ toggle
28
+ });
29
+
30
+ const autoAnimatePlugin = createAutoAnimatePlugin(
31
+ {
32
+ /* optional AutoAnimate config */
33
+ // default:
34
+ duration: 250,
35
+ easing: 'ease-in-out',
36
+ delay: 0
37
+ },
38
+ {
39
+ /* optional animation targets object */
40
+ // default:
41
+ global: ['outer', 'inner'],
42
+ form: ['form'],
43
+ repeater: ['items']
44
+ }
45
+ );
46
+
47
+ export default defaultConfig({
48
+ config: {
49
+ rootClasses
50
+ },
51
+ icons: {
52
+ ...genesisIcons
53
+ },
54
+ plugins: [proPlugin, autoAnimatePlugin]
55
+ });