@regardio/tailwind 0.1.2 → 0.2.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/utils/index.d.ts +3 -1
- package/dist/utils/index.js +2 -1
- package/package.json +50 -37
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
1
2
|
export { twMerge } from 'fluid-tailwindcss/tailwind-merge';
|
|
2
3
|
export { VariantProps, tv } from 'tailwind-variants';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Merge Tailwind CSS classes with conflict resolution
|
|
7
|
+
* Supports strings, objects, arrays, and conditional classes
|
|
6
8
|
*/
|
|
7
|
-
declare const cn: (...inputs:
|
|
9
|
+
declare const cn: (...inputs: ClassValue[]) => string;
|
|
8
10
|
|
|
9
11
|
export { cn };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { clsx } from 'clsx';
|
|
1
2
|
import { twMerge } from 'fluid-tailwindcss/tailwind-merge';
|
|
2
3
|
export { twMerge } from 'fluid-tailwindcss/tailwind-merge';
|
|
3
4
|
export { tv } from 'tailwind-variants';
|
|
4
5
|
|
|
5
6
|
// src/utils/index.ts
|
|
6
7
|
var cn = (...inputs) => {
|
|
7
|
-
return twMerge(inputs
|
|
8
|
+
return twMerge(clsx(inputs));
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
export { cn };
|
package/package.json
CHANGED
|
@@ -1,66 +1,79 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/package.json",
|
|
3
|
-
"
|
|
3
|
+
"name": "@regardio/tailwind",
|
|
4
|
+
"version": "0.2.0",
|
|
5
|
+
"description": "Regardio Tailwind CSS utilities and configuration",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"tailwind",
|
|
8
|
+
"tailwindcss",
|
|
9
|
+
"utilities",
|
|
10
|
+
"regardio"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://github.com/regardio/tailwind#readme",
|
|
4
13
|
"bugs": {
|
|
5
14
|
"url": "https://github.com/regardio/tailwind/issues"
|
|
6
15
|
},
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"tailwind-variants": "3.2.2",
|
|
11
|
-
"tw-animate-css": "1.4.0"
|
|
12
|
-
},
|
|
13
|
-
"description": "Regardio Tailwind CSS utilities and configuration",
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@regardio/dev": "1.10.2",
|
|
16
|
-
"@total-typescript/ts-reset": "0.6.1",
|
|
17
|
-
"@types/node": "25.0.3",
|
|
18
|
-
"tailwindcss": "4.1.18",
|
|
19
|
-
"tsup": "8.5.1",
|
|
20
|
-
"vitest": "4.0.16"
|
|
21
|
-
},
|
|
22
|
-
"engines": {
|
|
23
|
-
"node": ">=18"
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/regardio/tailwind.git"
|
|
24
19
|
},
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"author": "Bernd Matzner <bernd.matzner@regard.io>",
|
|
22
|
+
"type": "module",
|
|
25
23
|
"exports": {
|
|
26
24
|
"./styles": "./dist/styles/index.css",
|
|
27
25
|
"./styles/*": "./dist/styles/*",
|
|
28
26
|
"./utils": {
|
|
29
|
-
"
|
|
30
|
-
"
|
|
27
|
+
"types": "./dist/utils/index.d.ts",
|
|
28
|
+
"import": "./dist/utils/index.js"
|
|
31
29
|
}
|
|
32
30
|
},
|
|
33
|
-
"files": [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"license": "MIT",
|
|
37
|
-
"name": "@regardio/tailwind",
|
|
38
|
-
"peerDependencies": {
|
|
39
|
-
"tailwindcss": ">=4.0.0"
|
|
40
|
-
},
|
|
41
|
-
"publishConfig": {
|
|
42
|
-
"access": "public"
|
|
43
|
-
},
|
|
44
|
-
"repository": {
|
|
45
|
-
"type": "git",
|
|
46
|
-
"url": "git+https://github.com/regardio/tailwind.git"
|
|
47
|
-
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist"
|
|
33
|
+
],
|
|
48
34
|
"scripts": {
|
|
49
35
|
"build": "tsup && pnpm fix",
|
|
50
36
|
"dev": "tsup --watch",
|
|
51
37
|
"fix": "exec-p fix:*",
|
|
52
38
|
"fix:biome": "lint-biome check --write --unsafe .",
|
|
53
39
|
"fix:md": "lint-md --fix",
|
|
40
|
+
"fix:pkg": "lint-package --fix",
|
|
54
41
|
"lint": "exec-p lint:*",
|
|
55
42
|
"lint:biome": "lint-biome check .",
|
|
56
43
|
"lint:md": "lint-md",
|
|
44
|
+
"lint:pkg": "lint-package",
|
|
57
45
|
"prepare": "exec-husky",
|
|
58
46
|
"release": "flow-release",
|
|
47
|
+
"report": "vitest run --coverage",
|
|
59
48
|
"test": "exec-s test:*",
|
|
60
49
|
"test:unit": "vitest run",
|
|
61
50
|
"typecheck": "exec-tsc --noEmit",
|
|
62
51
|
"version": "flow-changeset version"
|
|
63
52
|
},
|
|
64
|
-
"
|
|
65
|
-
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"clsx": "2.1.1",
|
|
55
|
+
"fluid-tailwindcss": "1.0.5",
|
|
56
|
+
"tailwind-merge": "3.4.0",
|
|
57
|
+
"tailwind-variants": "3.2.2",
|
|
58
|
+
"tw-animate-css": "1.4.0"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@regardio/dev": "1.11.4",
|
|
62
|
+
"@total-typescript/ts-reset": "0.6.1",
|
|
63
|
+
"@types/node": "25.0.6",
|
|
64
|
+
"@vitest/coverage-v8": "4.0.16",
|
|
65
|
+
"@vitest/ui": "4.0.16",
|
|
66
|
+
"tailwindcss": "4.1.18",
|
|
67
|
+
"tsup": "8.5.1",
|
|
68
|
+
"vitest": "4.0.16"
|
|
69
|
+
},
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"tailwindcss": ">=4.0.0"
|
|
72
|
+
},
|
|
73
|
+
"engines": {
|
|
74
|
+
"node": ">=18"
|
|
75
|
+
},
|
|
76
|
+
"publishConfig": {
|
|
77
|
+
"access": "public"
|
|
78
|
+
}
|
|
66
79
|
}
|