@sprucelabs/spruce-heartwood-utils 31.2.4 → 31.2.6

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.
@@ -78,7 +78,9 @@ export class ThemeManagerImpl {
78
78
  for (const style of styles) {
79
79
  const visual = Object.entries((_c = cardStyles[style]) !== null && _c !== void 0 ? _c : {});
80
80
  for (const [key, value] of visual) {
81
- this.setProp(`${style}Card${key.charAt(0).toUpperCase() + key.slice(1)}`, value);
81
+ if (typeof value === 'string') {
82
+ this.setProp(`${style}Card${key.charAt(0).toUpperCase() + key.slice(1)}`, value);
83
+ }
82
84
  }
83
85
  }
84
86
  }
@@ -58,7 +58,9 @@ class ThemeManagerImpl {
58
58
  for (const style of styles) {
59
59
  const visual = Object.entries(cardStyles[style] ?? {});
60
60
  for (const [key, value] of visual) {
61
- this.setProp(`${style}Card${key.charAt(0).toUpperCase() + key.slice(1)}`, value);
61
+ if (typeof value === 'string') {
62
+ this.setProp(`${style}Card${key.charAt(0).toUpperCase() + key.slice(1)}`, value);
63
+ }
62
64
  }
63
65
  }
64
66
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-heartwood-utils",
3
3
  "description": "Heartwood Utilities",
4
- "version": "31.2.4",
4
+ "version": "31.2.6",
5
5
  "skill": {
6
6
  "namespace": "heartwood"
7
7
  },