@regardio/tailwind 0.1.3 → 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.
@@ -0,0 +1,13 @@
1
+ import { ClassValue } from "clsx";
2
+ import { twMerge } from "fluid-tailwindcss/tailwind-merge";
3
+ import { tv } from "tailwind-variants";
4
+
5
+ //#region src/utils/index.d.ts
6
+
7
+ /**
8
+ * Merge Tailwind CSS classes with conflict resolution
9
+ * Supports strings, objects, arrays, and conditional classes
10
+ */
11
+ declare const cn: (...inputs: ClassValue[]) => string;
12
+ //#endregion
13
+ export { cn, tv, twMerge };
package/dist/index.mjs ADDED
@@ -0,0 +1,15 @@
1
+ import { clsx } from "clsx";
2
+ import { twMerge } from "fluid-tailwindcss/tailwind-merge";
3
+ import { tv } from "tailwind-variants";
4
+
5
+ //#region src/utils/index.ts
6
+ /**
7
+ * Merge Tailwind CSS classes with conflict resolution
8
+ * Supports strings, objects, arrays, and conditional classes
9
+ */
10
+ const cn = (...inputs) => {
11
+ return twMerge(clsx(inputs));
12
+ };
13
+
14
+ //#endregion
15
+ export { cn, tv, twMerge };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://www.schemastore.org/package.json",
3
3
  "name": "@regardio/tailwind",
4
- "version": "0.1.3",
4
+ "version": "0.3.0",
5
5
  "description": "Regardio Tailwind CSS utilities and configuration",
6
6
  "keywords": [
7
7
  "tailwind",
@@ -24,16 +24,16 @@
24
24
  "./styles": "./dist/styles/index.css",
25
25
  "./styles/*": "./dist/styles/*",
26
26
  "./utils": {
27
- "types": "./dist/utils/index.d.ts",
28
- "import": "./dist/utils/index.js"
27
+ "types": "./dist/index.d.mts",
28
+ "import": "./dist/index.mjs"
29
29
  }
30
30
  },
31
31
  "files": [
32
32
  "dist"
33
33
  ],
34
34
  "scripts": {
35
- "build": "tsup && pnpm fix",
36
- "dev": "tsup --watch",
35
+ "build": "tsdown && pnpm fix",
36
+ "dev": "tsdown --watch",
37
37
  "fix": "exec-p fix:*",
38
38
  "fix:biome": "lint-biome check --write --unsafe .",
39
39
  "fix:md": "lint-md --fix",
@@ -51,20 +51,21 @@
51
51
  "version": "flow-changeset version"
52
52
  },
53
53
  "dependencies": {
54
+ "clsx": "2.1.1",
54
55
  "fluid-tailwindcss": "1.0.5",
55
56
  "tailwind-merge": "3.4.0",
56
57
  "tailwind-variants": "3.2.2",
57
58
  "tw-animate-css": "1.4.0"
58
59
  },
59
60
  "devDependencies": {
60
- "@regardio/dev": "1.11.1",
61
+ "@regardio/dev": "1.12.0",
61
62
  "@total-typescript/ts-reset": "0.6.1",
62
- "@types/node": "25.0.3",
63
- "@vitest/coverage-v8": "4.0.16",
64
- "@vitest/ui": "4.0.16",
63
+ "@types/node": "25.0.8",
64
+ "@vitest/coverage-v8": "4.0.17",
65
+ "@vitest/ui": "4.0.17",
65
66
  "tailwindcss": "4.1.18",
66
- "tsup": "8.5.1",
67
- "vitest": "4.0.16"
67
+ "tsdown": "0.20.0-beta.2",
68
+ "vitest": "4.0.17"
68
69
  },
69
70
  "peerDependencies": {
70
71
  "tailwindcss": ">=4.0.0"
@@ -1,9 +0,0 @@
1
- export { twMerge } from 'fluid-tailwindcss/tailwind-merge';
2
- export { VariantProps, tv } from 'tailwind-variants';
3
-
4
- /**
5
- * Merge Tailwind CSS classes with conflict resolution
6
- */
7
- declare const cn: (...inputs: (string | undefined | null | false)[]) => string;
8
-
9
- export { cn };
@@ -1,10 +0,0 @@
1
- import { twMerge } from 'fluid-tailwindcss/tailwind-merge';
2
- export { twMerge } from 'fluid-tailwindcss/tailwind-merge';
3
- export { tv } from 'tailwind-variants';
4
-
5
- // src/utils/index.ts
6
- var cn = (...inputs) => {
7
- return twMerge(inputs.filter(Boolean).join(" "));
8
- };
9
-
10
- export { cn };