@axiomui/utils 0.2.0 → 0.3.0

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.cts CHANGED
@@ -1,7 +1,12 @@
1
- type ClassPrimitive = string | number | boolean | null | undefined;
2
- type ClassDictionary = Record<string, boolean | null | undefined>;
3
- type ClassArray = ClassValue[];
4
- type ClassValue = ClassPrimitive | ClassDictionary | ClassArray;
1
+ import { ClassValue } from 'clsx';
2
+ export { ClassValue } from 'clsx';
3
+
4
+ /**
5
+ * cn = clsx + tailwind-merge
6
+ *
7
+ * 1. clsx → handles conditional classes
8
+ * 2. twMerge → resolves Tailwind conflicts correctly
9
+ */
5
10
  declare function cn(...inputs: ClassValue[]): string;
6
11
 
7
- export { type ClassValue, cn };
12
+ export { cn };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,12 @@
1
- type ClassPrimitive = string | number | boolean | null | undefined;
2
- type ClassDictionary = Record<string, boolean | null | undefined>;
3
- type ClassArray = ClassValue[];
4
- type ClassValue = ClassPrimitive | ClassDictionary | ClassArray;
1
+ import { ClassValue } from 'clsx';
2
+ export { ClassValue } from 'clsx';
3
+
4
+ /**
5
+ * cn = clsx + tailwind-merge
6
+ *
7
+ * 1. clsx → handles conditional classes
8
+ * 2. twMerge → resolves Tailwind conflicts correctly
9
+ */
5
10
  declare function cn(...inputs: ClassValue[]): string;
6
11
 
7
- export { type ClassValue, cn };
12
+ export { cn };