vueless 1.4.9 → 1.4.10-beta.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/README.md CHANGED
@@ -28,7 +28,7 @@ A UI library with Open Architecture for Vue.js 3 and Nuxt.js 3 / 4, powered by [
28
28
  - 🖼️ Inline SVG icons
29
29
  - 🪄 Auto component imports (as you use them)
30
30
  - 🧿 Uncompiled source in npm for better DX
31
- - 🧪️ 1500+ unit tests ensuring consistent logic
31
+ - 🧪️ 1600+ unit tests ensuring consistent logic
32
32
  - 🛡️ Full TypeScript support with type safety
33
33
 
34
34
  ## Built-In Storybook
@@ -13,7 +13,7 @@ export function createVuelessAdapter(options?: LocaleOptions): LocaleInstance {
13
13
  const current = shallowRef(options?.locale ?? FALLBACK_LOCALE_CODE);
14
14
  const fallback = shallowRef(options?.fallback ?? FALLBACK_LOCALE_CODE);
15
15
 
16
- const messages = ref(merge({ en }, options?.messages));
16
+ const messages = ref(merge({}, { en }, options?.messages));
17
17
 
18
18
  return {
19
19
  name: "vueless",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "1.4.9",
3
+ "version": "1.4.10-beta.1",
4
4
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
5
5
  "author": "Johnny Grid <hello@vueless.com> (https://vueless.com)",
6
6
  "homepage": "https://vueless.com",
@@ -43,8 +43,8 @@
43
43
  "tailwindcss": "^4.2.4",
44
44
  "tippy.js": "^6.3.7",
45
45
  "unplugin-vue-components": "^32.0.0",
46
- "vuedraggable": "4.1.0",
47
- "vue-router": "^5.0.6"
46
+ "vue-router": "^5.0.6",
47
+ "vuedraggable": "4.1.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@material-symbols/svg-500": "^0.44.4",
@@ -59,7 +59,7 @@
59
59
  "@vue/eslint-config-typescript": "^14.7.0",
60
60
  "@vue/test-utils": "^2.4.8",
61
61
  "@vue/tsconfig": "^0.9.1",
62
- "@vueless/storybook": "^1.5.6",
62
+ "@vueless/storybook": "^1.6.0",
63
63
  "eslint": "^10.2.1",
64
64
  "eslint-plugin-storybook": "^10.3.5",
65
65
  "eslint-plugin-vue": "^10.9.0",
@@ -47,7 +47,9 @@ export async function getVuelessConfig(basePath = "") {
47
47
  }
48
48
 
49
49
  /* Merge tailwind classes with removing duplicates. */
50
- const twMerge = extendTailwindMerge(merge(TAILWIND_MERGE_EXTENSION, vuelessConfig.tailwindMerge));
50
+ const twMerge = extendTailwindMerge(
51
+ merge({}, TAILWIND_MERGE_EXTENSION, vuelessConfig.tailwindMerge),
52
+ );
51
53
 
52
54
  /**
53
55
  * Export cx (class merge) method:
package/utils/ui.ts CHANGED
@@ -60,7 +60,9 @@ if (isSSR) {
60
60
  /**
61
61
  * Extend twMerge (tailwind merge) by vueless and user config:
62
62
  */
63
- const twMerge = extendTailwindMerge(merge(TAILWIND_MERGE_EXTENSION, vuelessConfig.tailwindMerge));
63
+ const twMerge = extendTailwindMerge(
64
+ merge({}, TAILWIND_MERGE_EXTENSION, vuelessConfig.tailwindMerge),
65
+ );
64
66
 
65
67
  /**
66
68
  * Export cva (class variance authority) methods:
@@ -25,23 +25,23 @@ To customize the default `vueless` or your own custom theme, simply update your
25
25
 
26
26
  <Source code={`
27
27
  .tippy-box[data-theme~="custom"] {
28
- background-color: var(--vl-neutral-accented);
28
+ background-color: var(--vl-bg-inverted);
29
29
  color: var(--vl-text-inverted);
30
30
  }
31
-
31
+
32
32
  .tippy-box[data-theme~="custom"][data-placement^="top"] > .tippy-arrow:before {
33
- border-top-color: var(--vl-neutral-accented);
33
+ border-top-color: var(--vl-bg-inverted);
34
34
  }
35
-
35
+
36
36
  .tippy-box[data-theme~="custom"][data-placement^="bottom"] > .tippy-arrow:before {
37
- border-bottom-color: var(--vl-neutral-accented);
37
+ border-bottom-color: var(--vl-bg-inverted);
38
38
  }
39
-
39
+
40
40
  .tippy-box[data-theme~="custom"][data-placement^="left"] > .tippy-arrow:before {
41
- border-left-color: var(--vl-neutral-accented);
41
+ border-left-color: var(--vl-bg-inverted);
42
42
  }
43
-
43
+
44
44
  .tippy-box[data-theme~="custom"][data-placement^="right"] > .tippy-arrow:before {
45
- border-right-color: var(--vl-neutral-accented);
45
+ border-right-color: var(--vl-bg-inverted);
46
46
  }
47
47
  `} language="jsx" dark />
@@ -19,7 +19,7 @@ if (isCSR) {
19
19
  animation: "shift-away",
20
20
  };
21
21
 
22
- settings = merge(defaultSettings, vuelessConfig.directives?.tooltip || {}) as DefaultProps;
22
+ settings = merge({}, defaultSettings, vuelessConfig.directives?.tooltip || {}) as DefaultProps;
23
23
  tippy.setDefaultProps(settings);
24
24
  }
25
25
 
@@ -59,13 +59,13 @@ function onUnmounted(el: TippyTargetElement) {
59
59
 
60
60
  function setUpTippy(el: HTMLElement, props: string | TippyProps) {
61
61
  if (typeof props === "string" && props.length) {
62
- tippy(el, merge(settings, { content: props }));
62
+ tippy(el, merge({}, settings, { content: props }));
63
63
 
64
64
  return;
65
65
  }
66
66
 
67
67
  if (typeof props !== "string" && props.content && String(props.content).length) {
68
- tippy(el, merge(settings, props || {}));
68
+ tippy(el, merge({}, settings, props || {}));
69
69
  }
70
70
  }
71
71
 
@@ -73,12 +73,12 @@ function updateTippyProps(tippyInstance: TippyInstance | undefined, props: strin
73
73
  if (!tippyInstance || isSSR) return;
74
74
 
75
75
  if (typeof props === "string") {
76
- tippyInstance.setProps(merge(settings, { content: props }));
76
+ tippyInstance.setProps(merge({}, settings, { content: props }));
77
77
 
78
78
  return;
79
79
  }
80
80
 
81
- tippyInstance.setProps(merge(settings, props || {}));
81
+ tippyInstance.setProps(merge({}, settings, props || {}));
82
82
  }
83
83
 
84
84
  export default {