nexoreui 0.1.2 → 0.1.6
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/index.d.mts +2293 -1475
- package/dist/index.d.ts +2293 -1475
- package/dist/index.js +8890 -6406
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8766 -6206
- package/dist/index.mjs.map +1 -1
- package/package.json +67 -66
- package/postinstall.js +50 -50
package/package.json
CHANGED
|
@@ -1,66 +1,67 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "nexoreui",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Modern, animated, production-ready React components",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"module": "./dist/index.mjs",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist",
|
|
10
|
-
"postinstall.js"
|
|
11
|
-
],
|
|
12
|
-
"keywords": [
|
|
13
|
-
"react",
|
|
14
|
-
"ui",
|
|
15
|
-
"components",
|
|
16
|
-
"tailwind",
|
|
17
|
-
"framer-motion",
|
|
18
|
-
"typescript"
|
|
19
|
-
],
|
|
20
|
-
"license": "MIT",
|
|
21
|
-
"exports": {
|
|
22
|
-
".": {
|
|
23
|
-
"types": "./dist/index.d.ts",
|
|
24
|
-
"require": "./dist/index.js",
|
|
25
|
-
"import": "./dist/index.mjs"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"scripts": {
|
|
29
|
-
"build": "tsup",
|
|
30
|
-
"dev": "tsup --watch",
|
|
31
|
-
"postinstall": "node postinstall.js"
|
|
32
|
-
},
|
|
33
|
-
"peerDependencies": {
|
|
34
|
-
"react": ">=19.0.0",
|
|
35
|
-
"react-dom": ">=19.0.0"
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"react": "^19.0.0",
|
|
39
|
-
"react-dom": "^19.0.0",
|
|
40
|
-
"tsup": "^8.0.2",
|
|
41
|
-
"typescript": "^5.4.5",
|
|
42
|
-
"@types/react": "^19.0.0",
|
|
43
|
-
"@types/react-dom": "^19.0.0"
|
|
44
|
-
},
|
|
45
|
-
"dependencies": {
|
|
46
|
-
"class-variance-authority": "^0.7.0",
|
|
47
|
-
"clsx": "^2.1.1",
|
|
48
|
-
"tailwind-merge": "^2.3.0",
|
|
49
|
-
"framer-motion": "^11.1.7",
|
|
50
|
-
"lucide-react": "^0.378.0",
|
|
51
|
-
"@radix-ui/react-tabs": "^1.0.4",
|
|
52
|
-
"@radix-ui/react-accordion": "^1.1.2",
|
|
53
|
-
"@radix-ui/react-dialog": "^1.0.5",
|
|
54
|
-
"@radix-ui/react-tooltip": "^1.0.7",
|
|
55
|
-
"@radix-ui/react-checkbox": "^1.0.4",
|
|
56
|
-
"@radix-ui/react-switch": "^1.0.3",
|
|
57
|
-
"@radix-ui/react-select": "^2.0.0",
|
|
58
|
-
"@radix-ui/react-progress": "^1.0.3",
|
|
59
|
-
"@radix-ui/react-slider": "^1.1.2",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "nexoreui",
|
|
3
|
+
"version": "0.1.6",
|
|
4
|
+
"description": "Modern, animated, production-ready React components",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"postinstall.js"
|
|
11
|
+
],
|
|
12
|
+
"keywords": [
|
|
13
|
+
"react",
|
|
14
|
+
"ui",
|
|
15
|
+
"components",
|
|
16
|
+
"tailwind",
|
|
17
|
+
"framer-motion",
|
|
18
|
+
"typescript"
|
|
19
|
+
],
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"require": "./dist/index.js",
|
|
25
|
+
"import": "./dist/index.mjs"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "tsup",
|
|
30
|
+
"dev": "tsup --watch",
|
|
31
|
+
"postinstall": "node postinstall.js"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"react": ">=19.0.0",
|
|
35
|
+
"react-dom": ">=19.0.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"react": "^19.0.0",
|
|
39
|
+
"react-dom": "^19.0.0",
|
|
40
|
+
"tsup": "^8.0.2",
|
|
41
|
+
"typescript": "^5.4.5",
|
|
42
|
+
"@types/react": "^19.0.0",
|
|
43
|
+
"@types/react-dom": "^19.0.0"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"class-variance-authority": "^0.7.0",
|
|
47
|
+
"clsx": "^2.1.1",
|
|
48
|
+
"tailwind-merge": "^2.3.0",
|
|
49
|
+
"framer-motion": "^11.1.7",
|
|
50
|
+
"lucide-react": "^0.378.0",
|
|
51
|
+
"@radix-ui/react-tabs": "^1.0.4",
|
|
52
|
+
"@radix-ui/react-accordion": "^1.1.2",
|
|
53
|
+
"@radix-ui/react-dialog": "^1.0.5",
|
|
54
|
+
"@radix-ui/react-tooltip": "^1.0.7",
|
|
55
|
+
"@radix-ui/react-checkbox": "^1.0.4",
|
|
56
|
+
"@radix-ui/react-switch": "^1.0.3",
|
|
57
|
+
"@radix-ui/react-select": "^2.0.0",
|
|
58
|
+
"@radix-ui/react-progress": "^1.0.3",
|
|
59
|
+
"@radix-ui/react-slider": "^1.1.2",
|
|
60
|
+
"@radix-ui/react-scroll-area": "^1.0.4",
|
|
61
|
+
"sonner": "^1.4.3",
|
|
62
|
+
"next-themes": "^0.4.3"
|
|
63
|
+
},
|
|
64
|
+
"publishConfig": {
|
|
65
|
+
"access": "public"
|
|
66
|
+
}
|
|
67
|
+
}
|
package/postinstall.js
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
|
|
4
|
-
try {
|
|
5
|
-
// Resolve the root of the project that is installing nexoreui.
|
|
6
|
-
// npm, pnpm, and yarn set INIT_CWD to the directory where the install command was run.
|
|
7
|
-
let projectRoot = process.env.INIT_CWD;
|
|
8
|
-
|
|
9
|
-
if (!projectRoot) {
|
|
10
|
-
// Fallback: traverse upwards from node_modules/nexoreui
|
|
11
|
-
let currentDir = __dirname;
|
|
12
|
-
while (currentDir !== path.parse(currentDir).root) {
|
|
13
|
-
if (fs.existsSync(path.join(currentDir, 'package.json')) && !currentDir.includes('node_modules')) {
|
|
14
|
-
projectRoot = currentDir;
|
|
15
|
-
break;
|
|
16
|
-
}
|
|
17
|
-
currentDir = path.dirname(currentDir);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
if (projectRoot) {
|
|
22
|
-
const parentPackageJsonPath = path.join(projectRoot, 'package.json');
|
|
23
|
-
if (fs.existsSync(parentPackageJsonPath)) {
|
|
24
|
-
const pkg = JSON.parse(fs.readFileSync(parentPackageJsonPath, 'utf8'));
|
|
25
|
-
|
|
26
|
-
const hasTailwind =
|
|
27
|
-
(pkg.dependencies && pkg.dependencies.tailwindcss) ||
|
|
28
|
-
(pkg.devDependencies && pkg.devDependencies.tailwindcss) ||
|
|
29
|
-
(pkg.dependencies && pkg.dependencies['@tailwindcss/vite']) ||
|
|
30
|
-
(pkg.devDependencies && pkg.devDependencies['@tailwindcss/vite']) ||
|
|
31
|
-
(pkg.dependencies && pkg.dependencies['@tailwindcss/postcss']) ||
|
|
32
|
-
(pkg.devDependencies && pkg.devDependencies['@tailwindcss/postcss']);
|
|
33
|
-
|
|
34
|
-
if (!hasTailwind) {
|
|
35
|
-
console.log('\n\x1b[33m%s\x1b[0m', '⚠️ [NexoreUI] Warning: Tailwind CSS was not found in your project dependencies.');
|
|
36
|
-
console.log('\x1b[36m%s\x1b[0m', ' NexoreUI components require Tailwind CSS for styling to work properly.');
|
|
37
|
-
console.log(' Please install Tailwind CSS in your project:');
|
|
38
|
-
console.log('\x1b[1m npm install tailwindcss @tailwindcss/vite\x1b[22m\n');
|
|
39
|
-
} else {
|
|
40
|
-
console.log('\n\x1b[32m%s\x1b[0m', '✅ [NexoreUI] Tailwind CSS detected.');
|
|
41
|
-
console.log('\x1b[36m%s\x1b[0m', ' Make sure to configure Tailwind to scan NexoreUI components by adding:');
|
|
42
|
-
console.log('\x1b[35m%s\x1b[0m', ' @import "tailwindcss";');
|
|
43
|
-
console.log('\x1b[35m%s\x1b[0m', ' @source "../node_modules/nexoreui/dist/**/*.{js,mjs}";');
|
|
44
|
-
console.log(' to your global CSS file.\n');
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
} catch (e) {
|
|
49
|
-
// Fail silently to prevent blocking package installation in case of permission issues
|
|
50
|
-
}
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
try {
|
|
5
|
+
// Resolve the root of the project that is installing nexoreui.
|
|
6
|
+
// npm, pnpm, and yarn set INIT_CWD to the directory where the install command was run.
|
|
7
|
+
let projectRoot = process.env.INIT_CWD;
|
|
8
|
+
|
|
9
|
+
if (!projectRoot) {
|
|
10
|
+
// Fallback: traverse upwards from node_modules/nexoreui
|
|
11
|
+
let currentDir = __dirname;
|
|
12
|
+
while (currentDir !== path.parse(currentDir).root) {
|
|
13
|
+
if (fs.existsSync(path.join(currentDir, 'package.json')) && !currentDir.includes('node_modules')) {
|
|
14
|
+
projectRoot = currentDir;
|
|
15
|
+
break;
|
|
16
|
+
}
|
|
17
|
+
currentDir = path.dirname(currentDir);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (projectRoot) {
|
|
22
|
+
const parentPackageJsonPath = path.join(projectRoot, 'package.json');
|
|
23
|
+
if (fs.existsSync(parentPackageJsonPath)) {
|
|
24
|
+
const pkg = JSON.parse(fs.readFileSync(parentPackageJsonPath, 'utf8'));
|
|
25
|
+
|
|
26
|
+
const hasTailwind =
|
|
27
|
+
(pkg.dependencies && pkg.dependencies.tailwindcss) ||
|
|
28
|
+
(pkg.devDependencies && pkg.devDependencies.tailwindcss) ||
|
|
29
|
+
(pkg.dependencies && pkg.dependencies['@tailwindcss/vite']) ||
|
|
30
|
+
(pkg.devDependencies && pkg.devDependencies['@tailwindcss/vite']) ||
|
|
31
|
+
(pkg.dependencies && pkg.dependencies['@tailwindcss/postcss']) ||
|
|
32
|
+
(pkg.devDependencies && pkg.devDependencies['@tailwindcss/postcss']);
|
|
33
|
+
|
|
34
|
+
if (!hasTailwind) {
|
|
35
|
+
console.log('\n\x1b[33m%s\x1b[0m', '⚠️ [NexoreUI] Warning: Tailwind CSS was not found in your project dependencies.');
|
|
36
|
+
console.log('\x1b[36m%s\x1b[0m', ' NexoreUI components require Tailwind CSS for styling to work properly.');
|
|
37
|
+
console.log(' Please install Tailwind CSS in your project:');
|
|
38
|
+
console.log('\x1b[1m npm install tailwindcss @tailwindcss/vite\x1b[22m\n');
|
|
39
|
+
} else {
|
|
40
|
+
console.log('\n\x1b[32m%s\x1b[0m', '✅ [NexoreUI] Tailwind CSS detected.');
|
|
41
|
+
console.log('\x1b[36m%s\x1b[0m', ' Make sure to configure Tailwind to scan NexoreUI components by adding:');
|
|
42
|
+
console.log('\x1b[35m%s\x1b[0m', ' @import "tailwindcss";');
|
|
43
|
+
console.log('\x1b[35m%s\x1b[0m', ' @source "../node_modules/nexoreui/dist/**/*.{js,mjs}";');
|
|
44
|
+
console.log(' to your global CSS file.\n');
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
} catch (e) {
|
|
49
|
+
// Fail silently to prevent blocking package installation in case of permission issues
|
|
50
|
+
}
|