@illuma-ai/codeviz 1.0.9 → 1.0.11
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.cjs +29 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/ui/components.d.ts +1 -1
- package/dist/ui/components.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24696,9 +24696,9 @@ function DataTable({ columns = [], data = [], searchable = true, pageSize = 10,
|
|
|
24696
24696
|
};
|
|
24697
24697
|
|
|
24698
24698
|
return (
|
|
24699
|
-
<div className="bg-surface-secondary border border-border-light
|
|
24699
|
+
<div className="bg-surface-secondary rounded-lg overflow-hidden border border-border-light">
|
|
24700
24700
|
{searchable && (
|
|
24701
|
-
<div className="px-
|
|
24701
|
+
<div className="px-3 py-2.5">
|
|
24702
24702
|
<input
|
|
24703
24703
|
type="text"
|
|
24704
24704
|
placeholder="Search..."
|
|
@@ -24711,13 +24711,13 @@ function DataTable({ columns = [], data = [], searchable = true, pageSize = 10,
|
|
|
24711
24711
|
<div className="overflow-x-auto">
|
|
24712
24712
|
<table className="w-full">
|
|
24713
24713
|
<thead>
|
|
24714
|
-
<tr className="bg-surface-primary-alt
|
|
24714
|
+
<tr className="bg-surface-primary-alt">
|
|
24715
24715
|
{columns.map(col => (
|
|
24716
24716
|
<th
|
|
24717
24717
|
key={col.key}
|
|
24718
24718
|
onClick={() => col.sortable !== false && handleSort(col.key)}
|
|
24719
24719
|
className={cn(
|
|
24720
|
-
'px-4 py-
|
|
24720
|
+
'px-4 py-2.5 text-[11px] font-semibold uppercase tracking-wider text-text-secondary whitespace-nowrap border-b border-border-light',
|
|
24721
24721
|
col.align === 'right' ? 'text-right' : 'text-left',
|
|
24722
24722
|
col.sortable !== false && 'cursor-pointer hover:text-text-primary select-none'
|
|
24723
24723
|
)}
|
|
@@ -24732,12 +24732,12 @@ function DataTable({ columns = [], data = [], searchable = true, pageSize = 10,
|
|
|
24732
24732
|
))}
|
|
24733
24733
|
</tr>
|
|
24734
24734
|
</thead>
|
|
24735
|
-
<tbody
|
|
24735
|
+
<tbody>
|
|
24736
24736
|
{pageData.map((row, idx) => (
|
|
24737
24737
|
<tr
|
|
24738
24738
|
key={idx}
|
|
24739
24739
|
onClick={() => onRowClick && onRowClick(row, idx)}
|
|
24740
|
-
className={cn('border-b border-border-light last:border-b-0 transition-colors', onRowClick && 'cursor-pointer
|
|
24740
|
+
className={cn('border-b border-border-light last:border-b-0 transition-colors hover:bg-surface-hover', onRowClick && 'cursor-pointer')}
|
|
24741
24741
|
>
|
|
24742
24742
|
{columns.map(col => (
|
|
24743
24743
|
<td
|
|
@@ -24764,7 +24764,7 @@ function DataTable({ columns = [], data = [], searchable = true, pageSize = 10,
|
|
|
24764
24764
|
</table>
|
|
24765
24765
|
</div>
|
|
24766
24766
|
{totalPages > 1 && (
|
|
24767
|
-
<div className="flex items-center justify-between px-4 py-2
|
|
24767
|
+
<div className="flex items-center justify-between px-4 py-2 text-xs text-text-secondary">
|
|
24768
24768
|
<span>{sorted.length} row{sorted.length !== 1 ? 's' : ''}</span>
|
|
24769
24769
|
<div className="flex items-center gap-2">
|
|
24770
24770
|
<button
|
|
@@ -24806,18 +24806,18 @@ function MetricCard({ label, value, trend, trendLabel, icon, iconColor = '#00C1D
|
|
|
24806
24806
|
const IconComp = icon;
|
|
24807
24807
|
|
|
24808
24808
|
return (
|
|
24809
|
-
<div className="bg-surface-secondary border border-border-light rounded-
|
|
24809
|
+
<div className="bg-surface-secondary border border-border-light rounded-lg p-3">
|
|
24810
24810
|
<div className="flex items-center justify-between mb-1">
|
|
24811
24811
|
<p className="text-text-secondary text-xs font-medium">{label}</p>
|
|
24812
24812
|
{IconComp && (
|
|
24813
|
-
<div className="flex items-center justify-center w-
|
|
24814
|
-
<IconComp className="w-
|
|
24813
|
+
<div className="flex items-center justify-center w-7 h-7 rounded-lg bg-surface-tertiary">
|
|
24814
|
+
<IconComp className="w-3.5 h-3.5" style={{ color: iconColor }} />
|
|
24815
24815
|
</div>
|
|
24816
24816
|
)}
|
|
24817
24817
|
</div>
|
|
24818
24818
|
<p className="text-xl font-bold text-text-primary tabular-nums">{value}</p>
|
|
24819
24819
|
{trend && (
|
|
24820
|
-
<div className="flex items-center gap-1.5 mt-1
|
|
24820
|
+
<div className="flex items-center gap-1.5 mt-1">
|
|
24821
24821
|
<span className={cn('text-xs font-medium', isPositive && 'text-status-positive', isNegative && 'text-status-negative')}>
|
|
24822
24822
|
{isPositive && '▲'}{isNegative && '▼'} {trend}
|
|
24823
24823
|
</span>
|