vueless 0.0.249 → 0.0.250

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": "vueless",
3
- "version": "0.0.249",
3
+ "version": "0.0.250",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless Component Framework.",
6
6
  "homepage": "https://vueless.com",
@@ -261,11 +261,11 @@ export default class UIService {
261
261
  */
262
262
  setTheme = (config = {}) => {
263
263
  const isDarkMode = this.setDarkMode(config);
264
- const brand = config?.brand || vuelessConfig?.brand || DEFAULT_BRAND_COLOR;
265
- const gray = config?.gray || vuelessConfig?.gray || DEFAULT_GRAY_COLOR;
266
- const ring = config?.ring || vuelessConfig?.ring || DEFAULT_RING;
267
- const ringOffset = config?.ringOffset || vuelessConfig?.ringOffset || DEFAULT_RING_OFFSET;
268
- const rounding = Number(config?.rounding) || vuelessConfig?.rounding || DEFAULT_ROUNDING;
264
+ const brand = config?.brand ?? vuelessConfig?.brand ?? DEFAULT_BRAND_COLOR;
265
+ const gray = config?.gray ?? vuelessConfig?.gray ?? DEFAULT_GRAY_COLOR;
266
+ const ring = config?.ring ?? vuelessConfig?.ring ?? DEFAULT_RING;
267
+ const ringOffset = config?.ringOffset ?? vuelessConfig?.ringOffset ?? DEFAULT_RING_OFFSET;
268
+ const rounding = config?.rounding ?? vuelessConfig?.rounding ?? DEFAULT_ROUNDING;
269
269
 
270
270
  // eslint-disable-next-line prettier/prettier, vue/max-len
271
271
  let brandColor = BRAND_COLORS.some((color) => color === brand) || brand === GRAYSCALE_COLOR ? brand : DEFAULT_BRAND_COLOR;
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.249",
4
+ "version": "0.0.250",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",