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/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.es.js +309 -309
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/wave-ui/core.js +7 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wave-ui",
|
|
3
|
-
"version": "3.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",
|
package/src/wave-ui/core.js
CHANGED
|
@@ -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
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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
|