@illuma-ai/codeviz 1.0.10 → 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.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 rounded-lg overflow-hidden">
24699
+ <div className="bg-surface-secondary rounded-lg overflow-hidden border border-border-light">
24700
24700
  {searchable && (
24701
- <div className="px-4 py-3 border-b border-border-light">
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 border-b border-border-medium">
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-3 text-xs font-semibold uppercase tracking-wider text-text-secondary whitespace-nowrap',
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 className="divide-y divide-border-light">
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 hover:bg-surface-hover')}
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.5 border-t border-border-light text-xs text-text-secondary">
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