braid-ui 1.0.183 → 1.0.184

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.d.cts CHANGED
@@ -1672,6 +1672,8 @@ interface AuditEvent {
1672
1672
  details: string;
1673
1673
  ipAddress: string;
1674
1674
  changes?: AuditFieldChange[];
1675
+ before?: Record<string, any>;
1676
+ after?: Record<string, any>;
1675
1677
  }
1676
1678
 
1677
1679
  interface ApiKey {
@@ -2529,6 +2531,7 @@ interface DataTableProps<T = any> {
2529
2531
  sortDirection?: "asc" | "desc";
2530
2532
  onSort?: (key: string) => void;
2531
2533
  onRowClick?: (row: T) => void;
2534
+ rowClickable?: (row: T) => boolean;
2532
2535
  loading?: boolean;
2533
2536
  emptyMessage?: string;
2534
2537
  className?: string;
@@ -2539,7 +2542,7 @@ interface DataTableProps<T = any> {
2539
2542
  onPageChange: (page: number) => void;
2540
2543
  };
2541
2544
  }
2542
- declare function DataTable<T extends Record<string, any>>({ columns, data, sortBy, sortDirection, onSort, onRowClick, loading, emptyMessage, className, pagination }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
2545
+ declare function DataTable<T extends Record<string, any>>({ columns, data, sortBy, sortDirection, onSort, onRowClick, rowClickable, loading, emptyMessage, className, pagination }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
2543
2546
 
2544
2547
  interface DetailPageCard {
2545
2548
  key: string;
package/dist/index.d.ts CHANGED
@@ -1672,6 +1672,8 @@ interface AuditEvent {
1672
1672
  details: string;
1673
1673
  ipAddress: string;
1674
1674
  changes?: AuditFieldChange[];
1675
+ before?: Record<string, any>;
1676
+ after?: Record<string, any>;
1675
1677
  }
1676
1678
 
1677
1679
  interface ApiKey {
@@ -2529,6 +2531,7 @@ interface DataTableProps<T = any> {
2529
2531
  sortDirection?: "asc" | "desc";
2530
2532
  onSort?: (key: string) => void;
2531
2533
  onRowClick?: (row: T) => void;
2534
+ rowClickable?: (row: T) => boolean;
2532
2535
  loading?: boolean;
2533
2536
  emptyMessage?: string;
2534
2537
  className?: string;
@@ -2539,7 +2542,7 @@ interface DataTableProps<T = any> {
2539
2542
  onPageChange: (page: number) => void;
2540
2543
  };
2541
2544
  }
2542
- declare function DataTable<T extends Record<string, any>>({ columns, data, sortBy, sortDirection, onSort, onRowClick, loading, emptyMessage, className, pagination }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
2545
+ declare function DataTable<T extends Record<string, any>>({ columns, data, sortBy, sortDirection, onSort, onRowClick, rowClickable, loading, emptyMessage, className, pagination }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
2543
2546
 
2544
2547
  interface DetailPageCard {
2545
2548
  key: string;