@illuma-ai/codeviz 1.0.7 → 1.0.9

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.js CHANGED
@@ -24583,13 +24583,17 @@ const Xm = `
24583
24583
  /* ── Banking Theme: CSS Custom Properties ── */
24584
24584
  .theme-light {
24585
24585
  --surface-primary: #ffffff;
24586
+ --surface-primary-alt: #efefef;
24586
24587
  --surface-secondary: #f7f7f8;
24587
- --surface-tertiary: #ececf1;
24588
+ --surface-tertiary: #ececec;
24589
+ --surface-left-nav: #ededee;
24590
+ --surface-active: #e3e3e3;
24591
+ --surface-hover: #e3e3e3;
24588
24592
  --text-primary: #212121;
24589
- --text-secondary: #666666;
24590
- --text-tertiary: #999999;
24591
- --border-light: #e5e5e5;
24592
- --border-medium: #d1d1d1;
24593
+ --text-secondary: #424242;
24594
+ --text-tertiary: #595959;
24595
+ --border-light: #e3e3e3;
24596
+ --border-medium: #cdcdcd;
24593
24597
  --accent-cyan: #00C1D5;
24594
24598
  --accent-navy: #000033;
24595
24599
  --status-positive: #16a34a;
@@ -24598,13 +24602,17 @@ const Xm = `
24598
24602
  }
24599
24603
  .theme-dark {
24600
24604
  --surface-primary: #0d0d0d;
24605
+ --surface-primary-alt: #171717;
24601
24606
  --surface-secondary: #212121;
24602
24607
  --surface-tertiary: #2f2f2f;
24608
+ --surface-left-nav: #1a1a1b;
24609
+ --surface-active: #595959;
24610
+ --surface-hover: #424242;
24603
24611
  --text-primary: #ececec;
24604
- --text-secondary: #a0a0a0;
24605
- --text-tertiary: #737373;
24612
+ --text-secondary: #cdcdcd;
24613
+ --text-tertiary: #595959;
24606
24614
  --border-light: #3a3a3b;
24607
- --border-medium: #4a4a4b;
24615
+ --border-medium: #424242;
24608
24616
  --accent-cyan: #00C1D5;
24609
24617
  --accent-navy: #000033;
24610
24618
  --status-positive: #22c55e;
@@ -24625,6 +24633,10 @@ const Xm = `
24625
24633
  .text-accent-navy { color: var(--accent-navy); }
24626
24634
  .bg-accent-cyan { background-color: var(--accent-cyan); }
24627
24635
  .bg-accent-navy { background-color: var(--accent-navy); }
24636
+ .bg-surface-primary-alt { background-color: var(--surface-primary-alt); }
24637
+ .bg-surface-left-nav { background-color: var(--surface-left-nav); }
24638
+ .bg-surface-active { background-color: var(--surface-active); }
24639
+ .bg-surface-hover { background-color: var(--surface-hover); }
24628
24640
  .text-status-positive { color: var(--status-positive); }
24629
24641
  .text-status-negative { color: var(--status-negative); }
24630
24642
  .text-status-warning { color: var(--status-warning); }
@@ -24684,7 +24696,7 @@ function DataTable({ columns = [], data = [], searchable = true, pageSize = 10,
24684
24696
  };
24685
24697
 
24686
24698
  return (
24687
- <div className="bg-surface-secondary border border-border-light rounded-lg overflow-hidden">
24699
+ <div className="bg-surface-secondary border border-border-light rounded-xl overflow-hidden">
24688
24700
  {searchable && (
24689
24701
  <div className="px-4 py-3 border-b border-border-light">
24690
24702
  <input
@@ -24699,13 +24711,13 @@ function DataTable({ columns = [], data = [], searchable = true, pageSize = 10,
24699
24711
  <div className="overflow-x-auto">
24700
24712
  <table className="w-full">
24701
24713
  <thead>
24702
- <tr className="bg-surface-tertiary">
24714
+ <tr className="bg-surface-primary-alt border-b border-border-medium">
24703
24715
  {columns.map(col => (
24704
24716
  <th
24705
24717
  key={col.key}
24706
24718
  onClick={() => col.sortable !== false && handleSort(col.key)}
24707
24719
  className={cn(
24708
- 'px-4 py-2.5 text-xs font-semibold text-text-secondary whitespace-nowrap',
24720
+ 'px-4 py-3 text-xs font-semibold uppercase tracking-wider text-text-secondary whitespace-nowrap',
24709
24721
  col.align === 'right' ? 'text-right' : 'text-left',
24710
24722
  col.sortable !== false && 'cursor-pointer hover:text-text-primary select-none'
24711
24723
  )}
@@ -24725,13 +24737,13 @@ function DataTable({ columns = [], data = [], searchable = true, pageSize = 10,
24725
24737
  <tr
24726
24738
  key={idx}
24727
24739
  onClick={() => onRowClick && onRowClick(row, idx)}
24728
- className={cn('transition-colors', onRowClick && 'cursor-pointer', 'hover:bg-surface-tertiary')}
24740
+ className={cn('border-b border-border-light last:border-b-0 transition-colors', onRowClick && 'cursor-pointer hover:bg-surface-hover')}
24729
24741
  >
24730
24742
  {columns.map(col => (
24731
24743
  <td
24732
24744
  key={col.key}
24733
24745
  className={cn(
24734
- 'px-4 py-2.5 text-sm',
24746
+ 'px-4 py-3 text-sm',
24735
24747
  col.align === 'right' ? 'text-right tabular-nums' : 'text-left',
24736
24748
  'text-text-primary'
24737
24749
  )}
@@ -24794,15 +24806,19 @@ function MetricCard({ label, value, trend, trendLabel, icon, iconColor = '#00C1D
24794
24806
  const IconComp = icon;
24795
24807
 
24796
24808
  return (
24797
- <div className="bg-surface-secondary border border-border-light rounded-lg p-3">
24798
- <div className="flex items-center justify-between mb-1.5">
24799
- <p className="text-text-secondary text-xs font-medium uppercase tracking-wide">{label}</p>
24800
- {IconComp && <IconComp className="w-4 h-4" style={{ color: iconColor }} />}
24809
+ <div className="bg-surface-secondary border border-border-light rounded-xl p-4 transition-all">
24810
+ <div className="flex items-center justify-between mb-1">
24811
+ <p className="text-text-secondary text-xs font-medium">{label}</p>
24812
+ {IconComp && (
24813
+ <div className="flex items-center justify-center w-8 h-8 rounded-lg bg-surface-tertiary">
24814
+ <IconComp className="w-4 h-4" style={{ color: iconColor }} />
24815
+ </div>
24816
+ )}
24801
24817
  </div>
24802
24818
  <p className="text-xl font-bold text-text-primary tabular-nums">{value}</p>
24803
24819
  {trend && (
24804
- <div className="flex items-center gap-1.5 mt-2">
24805
- <span className={cn('text-xs font-semibold', isPositive && 'text-status-positive', isNegative && 'text-status-negative')}>
24820
+ <div className="flex items-center gap-1.5 mt-1.5">
24821
+ <span className={cn('text-xs font-medium', isPositive && 'text-status-positive', isNegative && 'text-status-negative')}>
24806
24822
  {isPositive && '▲'}{isNegative && '▼'} {trend}
24807
24823
  </span>
24808
24824
  {trendLabel && <span className="text-text-tertiary text-xs">{trendLabel}</span>}
@@ -24849,11 +24865,11 @@ function DetailCard({ title, subtitle, status, fields = [], tabs, children }) {
24849
24865
  const [activeTab, setActiveTab] = useState(tabs?.[0]?.id || '');
24850
24866
 
24851
24867
  return (
24852
- <div className="bg-surface-secondary border border-border-light rounded-lg overflow-hidden">
24853
- <div className="p-3 border-b border-border-light">
24868
+ <div className="bg-surface-secondary border border-border-light rounded-xl overflow-hidden">
24869
+ <div className="p-4 border-b border-border-light">
24854
24870
  <div className="flex items-start justify-between mb-2">
24855
24871
  <div>
24856
- <h2 className="text-base font-bold text-text-primary">{title}</h2>
24872
+ <h2 className="text-base font-semibold text-text-primary">{title}</h2>
24857
24873
  {subtitle && <p className="text-text-secondary text-sm mt-0.5">{subtitle}</p>}
24858
24874
  </div>
24859
24875
  {status && <StatusBadge status={status.status} label={status.label} />}
@@ -24917,8 +24933,8 @@ function StepWizard({ steps = [], onComplete }) {
24917
24933
  const prev = () => setCurrent(c => Math.max(0, c - 1));
24918
24934
 
24919
24935
  return (
24920
- <div className="bg-surface-secondary border border-border-light rounded-lg overflow-hidden">
24921
- <div className="flex items-center px-3 py-2.5 border-b border-border-light gap-2">
24936
+ <div className="bg-surface-secondary border border-border-light rounded-xl overflow-hidden">
24937
+ <div className="flex items-center px-4 py-3 border-b border-border-light gap-2">
24922
24938
  {steps.map((step, i) => (
24923
24939
  <div key={step.id} className="flex items-center gap-2">
24924
24940
  <div className={cn(