kentutai 1.7.0 → 1.7.1
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/cli/package.json
CHANGED
package/package.json
CHANGED
|
@@ -456,29 +456,23 @@ function PackageRow({ pkg, onEdit, onDelete, formatNumber, formatRupiah, tierCon
|
|
|
456
456
|
|
|
457
457
|
return (
|
|
458
458
|
<Card padding="md" className="group">
|
|
459
|
-
<div className="flex
|
|
460
|
-
<div className="flex items-
|
|
461
|
-
<div className="flex
|
|
462
|
-
|
|
463
|
-
<
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
</Badge>
|
|
477
|
-
</div>
|
|
478
|
-
{pkg.description && (
|
|
479
|
-
<p className="text-xs text-text-muted mt-1">{pkg.description}</p>
|
|
480
|
-
)}
|
|
481
|
-
</div>
|
|
459
|
+
<div className="flex flex-col gap-3">
|
|
460
|
+
<div className="flex items-center justify-between gap-4">
|
|
461
|
+
<div className="flex items-center gap-3">
|
|
462
|
+
{tier ? (
|
|
463
|
+
<Badge variant={tier.variant} size="lg">
|
|
464
|
+
<span className="material-symbols-outlined text-[16px] mr-0.5">{tier.icon}</span>
|
|
465
|
+
{tier.label}
|
|
466
|
+
</Badge>
|
|
467
|
+
) : (
|
|
468
|
+
<span className="font-semibold text-text-main capitalize">{pkg.name}</span>
|
|
469
|
+
)}
|
|
470
|
+
<Badge variant={statusVariant} size="sm" dot>
|
|
471
|
+
{statusLabel}
|
|
472
|
+
</Badge>
|
|
473
|
+
{pkg.price > 0 && (
|
|
474
|
+
<span className="text-sm text-text-muted">{formatRupiah(pkg.price)}</span>
|
|
475
|
+
)}
|
|
482
476
|
</div>
|
|
483
477
|
<div className="flex items-center gap-1.5 shrink-0">
|
|
484
478
|
<Button size="sm" variant="ghost" icon="edit" onClick={onEdit}>Edit</Button>
|
|
@@ -486,24 +480,21 @@ function PackageRow({ pkg, onEdit, onDelete, formatNumber, formatRupiah, tierCon
|
|
|
486
480
|
</div>
|
|
487
481
|
</div>
|
|
488
482
|
|
|
483
|
+
{pkg.description && (
|
|
484
|
+
<p className="text-xs text-text-muted">{pkg.description}</p>
|
|
485
|
+
)}
|
|
486
|
+
|
|
489
487
|
<div className="grid grid-cols-2 sm:grid-cols-4 gap-3 p-3 rounded-lg bg-surface-2/50">
|
|
490
488
|
{stats.map((stat, i) => (
|
|
491
489
|
<div key={i} className="flex items-center gap-2">
|
|
492
490
|
<span className="material-symbols-outlined text-[16px] text-primary/60">{stat.icon}</span>
|
|
493
|
-
<div
|
|
491
|
+
<div>
|
|
494
492
|
<span className="text-sm font-semibold text-text-main">{stat.value}</span>
|
|
495
493
|
<span className="text-xs text-text-muted ml-1">{stat.label}</span>
|
|
496
494
|
</div>
|
|
497
495
|
</div>
|
|
498
496
|
))}
|
|
499
497
|
</div>
|
|
500
|
-
|
|
501
|
-
{pkg.price > 0 && (
|
|
502
|
-
<div className="flex items-center gap-2 text-sm">
|
|
503
|
-
<span className="material-symbols-outlined text-[16px] text-primary/60">payments</span>
|
|
504
|
-
<span className="font-medium text-text-main">{formatRupiah(pkg.price)}</span>
|
|
505
|
-
</div>
|
|
506
|
-
)}
|
|
507
498
|
</div>
|
|
508
499
|
</Card>
|
|
509
500
|
);
|