purvex-ui 1.0.1 → 1.0.2
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/package.json +1 -1
- package/src/index.js +7 -7
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -12,8 +12,8 @@ const VERSION = packageJson.version;
|
|
|
12
12
|
|
|
13
13
|
// Banner
|
|
14
14
|
const banner = boxen(
|
|
15
|
-
chalk.green.bold(
|
|
16
|
-
chalk.white(' - React Component Generator
|
|
15
|
+
chalk.green.bold(`✨ Purvex UI v${VERSION}`) +
|
|
16
|
+
chalk.white(' - React Component Generator\n') +
|
|
17
17
|
chalk.gray('Fast, customizable UI components for React + Tailwind'),
|
|
18
18
|
{
|
|
19
19
|
padding: 1,
|
|
@@ -78,7 +78,7 @@ program
|
|
|
78
78
|
|
|
79
79
|
if (!registryPath) {
|
|
80
80
|
console.log(chalk.red('❌ Registry tidak ditemukan'));
|
|
81
|
-
console.log(chalk.yellow('
|
|
81
|
+
console.log(chalk.yellow('\nKomponen yang tersedia:'));
|
|
82
82
|
console.log(chalk.cyan(' • button'));
|
|
83
83
|
console.log(chalk.cyan(' • card'));
|
|
84
84
|
console.log(chalk.cyan(' • avatar'));
|
|
@@ -88,16 +88,16 @@ program
|
|
|
88
88
|
const registryContent = fs.readFileSync(registryPath, 'utf-8');
|
|
89
89
|
const registry = JSON.parse(registryContent);
|
|
90
90
|
|
|
91
|
-
console.log(chalk.blue.bold('
|
|
91
|
+
console.log(chalk.blue.bold('\n📦 Komponen yang tersedia:\n'));
|
|
92
92
|
registry.components.forEach(comp => {
|
|
93
|
-
console.log(chalk.cyan(
|
|
93
|
+
console.log(chalk.cyan(` • ${comp.name}`));
|
|
94
94
|
});
|
|
95
|
-
console.log(chalk.gray(
|
|
95
|
+
console.log(chalk.gray(`\nTotal: ${registry.components.length} komponen`));
|
|
96
96
|
|
|
97
97
|
} catch (error) {
|
|
98
98
|
console.error(chalk.red('❌ Error:'), error.message);
|
|
99
99
|
// Fallback
|
|
100
|
-
console.log(chalk.blue.bold('
|
|
100
|
+
console.log(chalk.blue.bold('\n📦 Komponen (fallback):\n'));
|
|
101
101
|
console.log(chalk.cyan(' • button'));
|
|
102
102
|
console.log(chalk.cyan(' • card'));
|
|
103
103
|
console.log(chalk.cyan(' • avatar'));
|