@nextlyhq/ui 0.0.2-alpha.68 → 0.0.2-alpha.69

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.cjs CHANGED
@@ -1,13 +1,24 @@
1
- 'use strict';
2
-
3
- var clsx = require('clsx');
4
- var tailwindMerge = require('tailwind-merge');
5
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ let clsx = require("clsx");
3
+ let tailwind_merge = require("tailwind-merge");
6
4
  // src/lib/utils.ts
5
+ /**
6
+ * Utility function to merge class names with Tailwind CSS support.
7
+ *
8
+ * Combines clsx for conditional class names with tailwind-merge
9
+ * to properly handle Tailwind CSS class conflicts.
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * cn('px-2 py-1', 'px-4') // => 'py-1 px-4'
14
+ * cn('text-muted-foreground', condition && 'text-foreground')
15
+ * ```
16
+ *
17
+ * @experimental
18
+ */
7
19
  function cn(...inputs) {
8
- return tailwindMerge.twMerge(clsx.clsx(inputs));
20
+ return (0, tailwind_merge.twMerge)((0, clsx.clsx)(inputs));
9
21
  }
10
-
11
22
  exports.cn = cn;
12
- //# sourceMappingURL=utils.cjs.map
23
+
13
24
  //# sourceMappingURL=utils.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/lib/utils.ts"],"names":["twMerge","clsx"],"mappings":";;;;;;AAiBO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAOA,qBAAA,CAAQC,SAAA,CAAK,MAAM,CAAC,CAAA;AAC7B","file":"utils.cjs","sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/**\n * Utility function to merge class names with Tailwind CSS support.\n *\n * Combines clsx for conditional class names with tailwind-merge\n * to properly handle Tailwind CSS class conflicts.\n *\n * @example\n * ```typescript\n * cn('px-2 py-1', 'px-4') // => 'py-1 px-4'\n * cn('text-muted-foreground', condition && 'text-foreground')\n * ```\n *\n * @experimental\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"]}
1
+ {"version":3,"file":"utils.cjs","names":["twMerge"],"sources":["../src/lib/utils.ts"],"sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/**\n * Utility function to merge class names with Tailwind CSS support.\n *\n * Combines clsx for conditional class names with tailwind-merge\n * to properly handle Tailwind CSS class conflicts.\n *\n * @example\n * ```typescript\n * cn('px-2 py-1', 'px-4') // => 'py-1 px-4'\n * cn('text-muted-foreground', condition && 'text-foreground')\n * ```\n *\n * @experimental\n */\nexport function cn(...inputs: ClassValue[]): string {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAiBA,SAAgB,GAAG,GAAG,QAA8B;CAClD,QAAA,GAAOA,eAAAA,QAAAA,EAAAA,GAAQ,KAAA,KAAA,CAAK,MAAM,CAAC;AAC7B"}
package/dist/utils.d.cts CHANGED
@@ -1,5 +1,4 @@
1
- import { ClassValue } from 'clsx';
2
-
1
+ import { ClassValue } from "clsx";
3
2
  /**
4
3
  * Utility function to merge class names with Tailwind CSS support.
5
4
  *
@@ -14,6 +13,5 @@ import { ClassValue } from 'clsx';
14
13
  *
15
14
  * @experimental
16
15
  */
17
- declare function cn(...inputs: ClassValue[]): string;
18
-
19
- export { cn };
16
+ export declare function cn(...inputs: ClassValue[]): string;
17
+ //# sourceMappingURL=utils.d.cts.map
package/dist/utils.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { ClassValue } from 'clsx';
2
-
1
+ import { ClassValue } from "clsx";
3
2
  /**
4
3
  * Utility function to merge class names with Tailwind CSS support.
5
4
  *
@@ -14,6 +13,5 @@ import { ClassValue } from 'clsx';
14
13
  *
15
14
  * @experimental
16
15
  */
17
- declare function cn(...inputs: ClassValue[]): string;
18
-
19
- export { cn };
16
+ export declare function cn(...inputs: ClassValue[]): string;
17
+ //# sourceMappingURL=utils.d.ts.map
package/dist/utils.mjs CHANGED
@@ -1,11 +1,23 @@
1
- import { clsx } from 'clsx';
2
- import { twMerge } from 'tailwind-merge';
3
-
1
+ import { clsx } from "clsx";
2
+ import { twMerge } from "tailwind-merge";
4
3
  // src/lib/utils.ts
4
+ /**
5
+ * Utility function to merge class names with Tailwind CSS support.
6
+ *
7
+ * Combines clsx for conditional class names with tailwind-merge
8
+ * to properly handle Tailwind CSS class conflicts.
9
+ *
10
+ * @example
11
+ * ```typescript
12
+ * cn('px-2 py-1', 'px-4') // => 'py-1 px-4'
13
+ * cn('text-muted-foreground', condition && 'text-foreground')
14
+ * ```
15
+ *
16
+ * @experimental
17
+ */
5
18
  function cn(...inputs) {
6
- return twMerge(clsx(inputs));
19
+ return twMerge(clsx(inputs));
7
20
  }
8
-
9
21
  export { cn };
10
- //# sourceMappingURL=utils.mjs.map
22
+
11
23
  //# sourceMappingURL=utils.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/lib/utils.ts"],"names":[],"mappings":";;;;AAiBO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAO,OAAA,CAAQ,IAAA,CAAK,MAAM,CAAC,CAAA;AAC7B","file":"utils.mjs","sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/**\n * Utility function to merge class names with Tailwind CSS support.\n *\n * Combines clsx for conditional class names with tailwind-merge\n * to properly handle Tailwind CSS class conflicts.\n *\n * @example\n * ```typescript\n * cn('px-2 py-1', 'px-4') // => 'py-1 px-4'\n * cn('text-muted-foreground', condition && 'text-foreground')\n * ```\n *\n * @experimental\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"]}
1
+ {"version":3,"file":"utils.mjs","names":[],"sources":["../src/lib/utils.ts"],"sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/**\n * Utility function to merge class names with Tailwind CSS support.\n *\n * Combines clsx for conditional class names with tailwind-merge\n * to properly handle Tailwind CSS class conflicts.\n *\n * @example\n * ```typescript\n * cn('px-2 py-1', 'px-4') // => 'py-1 px-4'\n * cn('text-muted-foreground', condition && 'text-foreground')\n * ```\n *\n * @experimental\n */\nexport function cn(...inputs: ClassValue[]): string {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,SAAgB,GAAG,GAAG,QAA8B;CAClD,OAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextlyhq/ui",
3
- "version": "0.0.2-alpha.68",
3
+ "version": "0.0.2-alpha.69",
4
4
  "description": "Nextly UI — Reusable React component library for Nextly plugins and custom admin UIs",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -79,7 +79,7 @@
79
79
  "!dist/metafile-*.json"
80
80
  ],
81
81
  "engines": {
82
- "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
82
+ "node": "^22.12.0 || >=24.0.0"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "lucide-react": ">=0.400.0",
@@ -87,33 +87,33 @@
87
87
  "react-dom": "^18.0.0 || ^19.0.0"
88
88
  },
89
89
  "devDependencies": {
90
- "@nextlyhq/admin-css": "0.0.2-alpha.68",
91
- "@nextlyhq/eslint-config": "0.0.2-alpha.68",
92
- "@nextlyhq/module-specifiers": "0.0.2-alpha.68",
93
- "@nextlyhq/tsconfig": "0.0.2-alpha.68",
90
+ "@nextlyhq/admin-css": "0.0.2-alpha.69",
91
+ "@nextlyhq/module-specifiers": "0.0.2-alpha.69",
92
+ "@nextlyhq/tsconfig": "0.0.2-alpha.69",
94
93
  "@tailwindcss/cli": "^4.3.2",
95
94
  "@testing-library/react": "^16.3.0",
96
95
  "@types/culori": "^4.0.1",
97
- "@types/node": "^20.19.17",
98
- "@types/react": "19.2.0",
99
- "@types/react-dom": "19.2.0",
96
+ "@types/node": "^22.20.5",
97
+ "@types/react": "19.3.0",
98
+ "@types/react-dom": "19.3.0",
100
99
  "@vitejs/plugin-react": "^5.1.0",
101
- "@vitest/coverage-v8": "^4.1.0",
102
- "@vitest/ui": "^4.1.0",
100
+ "@vitest/coverage-v8": "^5.0.5",
101
+ "@vitest/ui": "^5.0.5",
103
102
  "culori": "^4.0.2",
104
- "eslint": "^9.39.1",
105
103
  "jsdom": "^27.1.0",
106
104
  "lucide-react": "^0.544.0",
105
+ "oxc-parser": "^0.155.0",
106
+ "oxlint": "1.89.0",
107
107
  "postcss": "^8.5.6",
108
- "react": "19.2.0",
109
- "react-dom": "19.2.0",
108
+ "react": "19.3.1",
109
+ "react-dom": "19.3.1",
110
110
  "rimraf": "^6.1.3",
111
111
  "tailwindcss": "^4.3.2",
112
- "tsup": "^8.5.0",
112
+ "tsdown": "^0.23.1",
113
113
  "tsx": "^4.20.5",
114
- "typescript": "^5.9.3",
114
+ "typescript": "7.0.2",
115
115
  "vite-tsconfig-paths": "^5.1.4",
116
- "vitest": "^4.1.0"
116
+ "vitest": "^5.0.5"
117
117
  },
118
118
  "dependencies": {
119
119
  "@radix-ui/react-accordion": "^1.2.12",
@@ -159,13 +159,11 @@
159
159
  "author": "Nextly <contact@nextlyhq.com> (https://nextlyhq.com)",
160
160
  "scripts": {
161
161
  "build": "pnpm build:js && node scripts/build-css.mjs",
162
- "build:js": "rimraf dist && tsup && tsup --config tsup.server-safe.config.ts && tsx scripts/check-client-directive.ts && tsx scripts/check-server-safe-artifacts.ts",
162
+ "build:js": "rimraf dist && tsdown --config-loader tsx && tsdown --config-loader tsx --config tsdown.server-safe.config.ts && tsx scripts/check-client-directive.ts && tsx scripts/check-server-safe-artifacts.ts",
163
163
  "build:css": "node scripts/build-css.mjs",
164
164
  "build:surface-declarations": "tsx scripts/build-surface-declarations.ts",
165
165
  "dev": "node scripts/dev.mjs",
166
- "check-types": "tsc --noEmit && tsc --noEmit -p tsconfig.tests.json",
167
- "lint": "eslint . --max-warnings 0",
168
- "lint:fix": "eslint . --fix",
166
+ "check-types": "node ../../scripts/tsc.mjs --noEmit && node ../../scripts/tsc.mjs --noEmit -p tsconfig.tests.json",
169
167
  "test": "vitest run --passWithNoTests",
170
168
  "test:watch": "vitest",
171
169
  "test:ui": "vitest --ui",