@wishbone-media/spark 0.24.0 → 0.26.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.
package/formkit.config.js CHANGED
@@ -1,5 +1,4 @@
1
- import { defaultConfig } from '@formkit/vue';
2
- import { genesisIcons } from '@formkit/icons';
1
+ // Note: Consumer apps should wrap the returned config with defaultConfig()
3
2
  import { createAutoAnimatePlugin } from '@formkit/addons';
4
3
  import {
5
4
  createProPlugin,
@@ -11,9 +10,11 @@ import {
11
10
  repeater,
12
11
  slider,
13
12
  taglist,
14
- toggle
13
+ toggle,
14
+ togglebuttons,
15
15
  } from '@formkit/pro';
16
16
  import { rootClasses } from '@wishbone-media/spark/formkit.theme.mjs';
17
+ import { formKitIcons, formKitIconLoader, formKitGenesisOverride } from '@wishbone-media/spark';
17
18
 
18
19
  const autoAnimatePlugin = createAutoAnimatePlugin(
19
20
  {
@@ -46,16 +47,20 @@ export default function createFormKitConfig(formKitProKey) {
46
47
  repeater,
47
48
  slider,
48
49
  taglist,
49
- toggle
50
+ toggle,
51
+ togglebuttons,
50
52
  });
51
53
 
52
- return defaultConfig({
54
+ // Return plain config object - consumer apps wrap with defaultConfig()
55
+ return {
53
56
  config: {
54
57
  rootClasses
55
58
  },
56
59
  icons: {
57
- ...genesisIcons
60
+ ...formKitGenesisOverride, // FontAwesome replacements for FormKit's built-in icons
61
+ ...formKitIcons, // Additional FA icons available via prefix-icon/suffix-icon
58
62
  },
63
+ iconLoader: formKitIconLoader,
59
64
  plugins: [proPlugin, autoAnimatePlugin]
60
- });
65
+ };
61
66
  }