@camstack/ui-library 0.1.35 → 0.1.37

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
@@ -409,9 +409,11 @@ interface DataTableProps<T> {
409
409
  compact?: boolean;
410
410
  stickyHeader?: boolean;
411
411
  className?: string;
412
+ /** How to render on mobile. 'scroll' keeps table with horizontal scroll. 'cards' renders each row as a card. Default: 'scroll' */
413
+ mobileMode?: 'scroll' | 'cards';
412
414
  }
413
415
 
414
- declare function DataTable<T>({ data, columns: userColumns, sorting, onSortingChange, filtering, onFilteringChange, pagination, onPaginationChange, loading, emptyState, rowActions, onRowClick, selectable, compact, stickyHeader, className, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
416
+ declare function DataTable<T>({ data, columns: userColumns, sorting, onSortingChange, filtering, onFilteringChange, pagination, onPaginationChange, loading, emptyState, rowActions, onRowClick, selectable, compact, stickyHeader, className, mobileMode, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
415
417
 
416
418
  interface DeviceCardBadge {
417
419
  /** Badge label text */
package/dist/index.d.ts CHANGED
@@ -409,9 +409,11 @@ interface DataTableProps<T> {
409
409
  compact?: boolean;
410
410
  stickyHeader?: boolean;
411
411
  className?: string;
412
+ /** How to render on mobile. 'scroll' keeps table with horizontal scroll. 'cards' renders each row as a card. Default: 'scroll' */
413
+ mobileMode?: 'scroll' | 'cards';
412
414
  }
413
415
 
414
- declare function DataTable<T>({ data, columns: userColumns, sorting, onSortingChange, filtering, onFilteringChange, pagination, onPaginationChange, loading, emptyState, rowActions, onRowClick, selectable, compact, stickyHeader, className, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
416
+ declare function DataTable<T>({ data, columns: userColumns, sorting, onSortingChange, filtering, onFilteringChange, pagination, onPaginationChange, loading, emptyState, rowActions, onRowClick, selectable, compact, stickyHeader, className, mobileMode, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
415
417
 
416
418
  interface DeviceCardBadge {
417
419
  /** Badge label text */