@nexa-ui-kit/core 1.0.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,14 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var clsx = require('clsx');
5
+ var tailwindMerge = require('tailwind-merge');
6
+
7
+ // src/utils/cn.ts
8
+ function cn(...inputs) {
9
+ return tailwindMerge.twMerge(clsx.clsx(inputs));
10
+ }
11
+
12
+ exports.cn = cn;
13
+ //# sourceMappingURL=index.cjs.map
14
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/cn.ts"],"names":["twMerge","clsx"],"mappings":";;;;;;AAWO,SAAS,MAAM,MAAA,EAA8B;AAClD,EAAA,OAAOA,qBAAA,CAAQC,SAAA,CAAK,MAAM,CAAC,CAAA;AAC7B","file":"index.cjs","sourcesContent":["import { type ClassValue, clsx } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\n/**\n * Merge Tailwind CSS classes with conflict resolution.\n * Combines clsx for conditional classes and tailwind-merge for deduplication.\n *\n * @example\n * cn('px-2 py-1', 'px-4') // => 'py-1 px-4'\n * cn('text-red-500', condition && 'text-blue-500')\n */\nexport function cn(...inputs: ClassValue[]): string {\n return twMerge(clsx(inputs))\n}\n"]}
@@ -0,0 +1,13 @@
1
+ import { ClassValue } from 'clsx';
2
+
3
+ /**
4
+ * Merge Tailwind CSS classes with conflict resolution.
5
+ * Combines clsx for conditional classes and tailwind-merge for deduplication.
6
+ *
7
+ * @example
8
+ * cn('px-2 py-1', 'px-4') // => 'py-1 px-4'
9
+ * cn('text-red-500', condition && 'text-blue-500')
10
+ */
11
+ declare function cn(...inputs: ClassValue[]): string;
12
+
13
+ export { cn };
@@ -0,0 +1,13 @@
1
+ import { ClassValue } from 'clsx';
2
+
3
+ /**
4
+ * Merge Tailwind CSS classes with conflict resolution.
5
+ * Combines clsx for conditional classes and tailwind-merge for deduplication.
6
+ *
7
+ * @example
8
+ * cn('px-2 py-1', 'px-4') // => 'py-1 px-4'
9
+ * cn('text-red-500', condition && 'text-blue-500')
10
+ */
11
+ declare function cn(...inputs: ClassValue[]): string;
12
+
13
+ export { cn };
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { clsx } from 'clsx';
3
+ import { twMerge } from 'tailwind-merge';
4
+
5
+ // src/utils/cn.ts
6
+ function cn(...inputs) {
7
+ return twMerge(clsx(inputs));
8
+ }
9
+
10
+ export { cn };
11
+ //# sourceMappingURL=index.mjs.map
12
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/cn.ts"],"names":[],"mappings":";;;;AAWO,SAAS,MAAM,MAAA,EAA8B;AAClD,EAAA,OAAO,OAAA,CAAQ,IAAA,CAAK,MAAM,CAAC,CAAA;AAC7B","file":"index.mjs","sourcesContent":["import { type ClassValue, clsx } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\n/**\n * Merge Tailwind CSS classes with conflict resolution.\n * Combines clsx for conditional classes and tailwind-merge for deduplication.\n *\n * @example\n * cn('px-2 py-1', 'px-4') // => 'py-1 px-4'\n * cn('text-red-500', condition && 'text-blue-500')\n */\nexport function cn(...inputs: ClassValue[]): string {\n return twMerge(clsx(inputs))\n}\n"]}
package/package.json ADDED
@@ -0,0 +1,113 @@
1
+ {
2
+ "name": "@nexa-ui-kit/core",
3
+ "version": "1.0.0",
4
+ "description": "Unstyled, accessible React components for building design systems",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "main": "./dist/index.cjs",
11
+ "module": "./dist/index.mjs",
12
+ "types": "./dist/index.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "import": {
16
+ "types": "./dist/index.d.ts",
17
+ "default": "./dist/index.mjs"
18
+ },
19
+ "require": {
20
+ "types": "./dist/index.d.cts",
21
+ "default": "./dist/index.cjs"
22
+ }
23
+ },
24
+ "./utils": {
25
+ "import": {
26
+ "types": "./dist/utils/index.d.ts",
27
+ "default": "./dist/utils/index.mjs"
28
+ },
29
+ "require": {
30
+ "types": "./dist/utils/index.d.cts",
31
+ "default": "./dist/utils/index.cjs"
32
+ }
33
+ }
34
+ },
35
+ "files": [
36
+ "dist",
37
+ "README.md"
38
+ ],
39
+ "sideEffects": false,
40
+ "scripts": {
41
+ "build": "tsup",
42
+ "dev": "tsup --watch",
43
+ "typecheck": "tsc --noEmit",
44
+ "clean": "rm -rf dist",
45
+ "validate": "attw --pack . --ignore-rules no-resolution && publint ."
46
+ },
47
+ "peerDependencies": {
48
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
49
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
50
+ "react-hook-form": ">=7.0.0",
51
+ "framer-motion": "^11.0.0 || ^12.0.0"
52
+ },
53
+ "peerDependenciesMeta": {
54
+ "framer-motion": {
55
+ "optional": true
56
+ },
57
+ "react-hook-form": {
58
+ "optional": true
59
+ }
60
+ },
61
+ "dependencies": {
62
+ "@radix-ui/react-alert-dialog": "^1.1.15",
63
+ "@radix-ui/react-checkbox": "^1.1.0",
64
+ "@radix-ui/react-context-menu": "^2.2.16",
65
+ "@radix-ui/react-dialog": "^1.1.15",
66
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
67
+ "@radix-ui/react-label": "^2.1.0",
68
+ "@radix-ui/react-menubar": "^1.1.16",
69
+ "@radix-ui/react-scroll-area": "^1.2.10",
70
+ "@radix-ui/react-select": "^2.2.6",
71
+ "@radix-ui/react-separator": "^1.1.0",
72
+ "@radix-ui/react-slot": "^1.2.0",
73
+ "@radix-ui/react-toast": "^1.2.15",
74
+ "@radix-ui/react-toggle": "^1.1.0",
75
+ "@radix-ui/react-toggle-group": "^1.1.11",
76
+ "@radix-ui/react-toolbar": "^1.1.11",
77
+ "class-variance-authority": "^0.7.1",
78
+ "clsx": "^2.1.0",
79
+ "cmdk": "^1.1.1",
80
+ "date-fns": "^4.1.0",
81
+ "embla-carousel-react": "^8.6.0",
82
+ "input-otp": "^1.4.2",
83
+ "lucide-react": "^0.563.0",
84
+ "react-day-picker": "^9.13.0",
85
+ "react-is": "^17.0.0 || ^18.0.0 || ^19.0.0",
86
+ "recharts": "^3.7.0",
87
+ "sonner": "^2.0.7",
88
+ "tailwind-merge": "^3.4.0"
89
+ },
90
+ "devDependencies": {
91
+ "@types/react": "^19.0.0",
92
+ "@types/react-dom": "^19.0.0",
93
+ "framer-motion": "^12.0.0",
94
+ "react": "^19.0.0",
95
+ "react-dom": "^19.0.0",
96
+ "react-hook-form": "^7.71.1",
97
+ "tsup": "^8.4.0",
98
+ "typescript": "^5.7.0"
99
+ },
100
+ "keywords": [
101
+ "react",
102
+ "components",
103
+ "ui",
104
+ "design-system",
105
+ "accessible",
106
+ "unstyled"
107
+ ],
108
+ "repository": {
109
+ "type": "git",
110
+ "url": "git+https://github.com/nexa-opensource/nexa-ui-kit.git",
111
+ "directory": "packages/core"
112
+ }
113
+ }