wave-ui 3.0.0 → 3.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wave-ui",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "An emerging UI framework for Vue.js (2 & 3) with only the bright side. :sunny:",
5
5
  "author": "Antoni Andre <antoniandre.web@gmail.com>",
6
6
  "homepage": "https://antoniandre.github.io/wave-ui",
@@ -134,11 +134,13 @@ export default class WaveUI {
134
134
  if (!options.theme) options.theme = 'light'
135
135
  // Move colors inside a theme if there are option.colors without theme.
136
136
  // E.g. colors: { primary, ... } & not colors: { light { primary, ... }, dark: { primary, ... } })
137
- const colors = { ...options.colors }
138
- if (!options.colors?.light) options.colors.light = colors
139
- if (!options.colors?.dark) options.colors.dark = colors
140
- // Cleanup anything else than themes in config.colors.
141
- options.colors = { light: options.colors.light, dark: options.colors.dark }
137
+ if (options.colors) {
138
+ const colors = { ...options.colors }
139
+ if (!options.colors.light) options.colors.light = colors
140
+ if (!options.colors.dark) options.colors.dark = colors
141
+ // Cleanup anything else than themes in config.colors.
142
+ options.colors = { light: options.colors.light, dark: options.colors.dark }
143
+ }
142
144
 
143
145
  // Merge user options into the default config.
144
146
  let { components, ...config } = options