@raxium/vue-addons-shared 0.1.1 → 0.1.2

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/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export * from './composables/useForwardExpose';
2
2
  export * from './composables/useForwardProps';
3
3
  export * from './composables/useFowardPropsEmits';
4
4
  export * from './context/createContext';
5
+ export * from './utils';
package/dist/index.js CHANGED
@@ -2,3 +2,4 @@ export * from './composables/useForwardExpose';
2
2
  export * from './composables/useForwardProps';
3
3
  export * from './composables/useFowardPropsEmits';
4
4
  export * from './context/createContext';
5
+ export * from './utils';
@@ -0,0 +1,5 @@
1
+ import type { ClassValue } from 'clsx';
2
+ import clsx from 'clsx';
3
+ export declare function cn(...classes: ClassValue[]): string;
4
+ export declare function cx(...classes: ClassValue[]): string;
5
+ export { clsx };
@@ -0,0 +1,9 @@
1
+ import clsx from 'clsx';
2
+ import { twMerge } from 'tailwind-merge';
3
+ export function cn(...classes) {
4
+ return twMerge(clsx(...classes));
5
+ }
6
+ export function cx(...classes) {
7
+ return clsx(...classes);
8
+ }
9
+ export { clsx };
@@ -0,0 +1 @@
1
+ export * from './cn';
@@ -0,0 +1 @@
1
+ export * from './cn';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@raxium/vue-addons-shared",
3
3
  "type": "module",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "description": "Shared utilities for Raxium Vue Addons",
6
6
  "author": {
7
7
  "name": "Hwacc",
@@ -30,7 +30,9 @@
30
30
  "vue": "^3.5.27"
31
31
  },
32
32
  "dependencies": {
33
- "@vueuse/core": "^14.1.0"
33
+ "@vueuse/core": "^14.1.0",
34
+ "clsx": "^2.1.1",
35
+ "tailwind-merge": "^3.5.0"
34
36
  },
35
37
  "devDependencies": {
36
38
  "typescript": "^5.9.3"