@nextlyhq/ui 0.0.2-alpha.67 → 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/color.cjs +417 -138
- package/dist/color.cjs.map +1 -1
- package/dist/color.d.cts +49 -46
- package/dist/color.d.ts +49 -46
- package/dist/color.mjs +415 -136
- package/dist/color.mjs.map +1 -1
- package/dist/format.cjs +65 -39
- package/dist/format.cjs.map +1 -1
- package/dist/format.d.cts +21 -21
- package/dist/format.d.ts +21 -21
- package/dist/format.mjs +64 -37
- package/dist/format.mjs.map +1 -1
- package/dist/index.cjs +5808 -4437
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1086 -1246
- package/dist/index.d.ts +1090 -1250
- package/dist/index.mjs +5561 -4226
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.scoped.css +1 -1
- package/dist/tailwind-preset.cjs +167 -149
- package/dist/tailwind-preset.cjs.map +1 -1
- package/dist/tailwind-preset.d.cts +118 -116
- package/dist/tailwind-preset.d.ts +118 -116
- package/dist/tailwind-preset.mjs +162 -144
- package/dist/tailwind-preset.mjs.map +1 -1
- package/dist/theme.css +7 -3
- package/dist/utils.cjs +19 -8
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +3 -5
- package/dist/utils.d.ts +3 -5
- package/dist/utils.mjs +18 -6
- package/dist/utils.mjs.map +1 -1
- package/package.json +19 -21
package/dist/utils.cjs
CHANGED
|
@@ -1,13 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
20
|
+
return (0, tailwind_merge.twMerge)((0, clsx.clsx)(inputs));
|
|
9
21
|
}
|
|
10
|
-
|
|
11
22
|
exports.cn = cn;
|
|
12
|
-
|
|
23
|
+
|
|
13
24
|
//# sourceMappingURL=utils.cjs.map
|
package/dist/utils.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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
|
|
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
|
|
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
|
|
2
|
-
import { twMerge } from
|
|
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
|
-
|
|
19
|
+
return twMerge(clsx(inputs));
|
|
7
20
|
}
|
|
8
|
-
|
|
9
21
|
export { cn };
|
|
10
|
-
|
|
22
|
+
|
|
11
23
|
//# sourceMappingURL=utils.mjs.map
|
package/dist/utils.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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.
|
|
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": "^
|
|
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.
|
|
91
|
-
"@nextlyhq/
|
|
92
|
-
"@nextlyhq/
|
|
93
|
-
"@nextlyhq/tsconfig": "0.0.2-alpha.67",
|
|
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.
|
|
98
|
-
"@types/react": "19.
|
|
99
|
-
"@types/react-dom": "19.
|
|
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": "^
|
|
102
|
-
"@vitest/ui": "^
|
|
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.
|
|
109
|
-
"react-dom": "19.
|
|
108
|
+
"react": "19.3.1",
|
|
109
|
+
"react-dom": "19.3.1",
|
|
110
110
|
"rimraf": "^6.1.3",
|
|
111
111
|
"tailwindcss": "^4.3.2",
|
|
112
|
-
"
|
|
112
|
+
"tsdown": "^0.23.1",
|
|
113
113
|
"tsx": "^4.20.5",
|
|
114
|
-
"typescript": "
|
|
114
|
+
"typescript": "7.0.2",
|
|
115
115
|
"vite-tsconfig-paths": "^5.1.4",
|
|
116
|
-
"vitest": "^
|
|
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 &&
|
|
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",
|