@juv/codego-react-ui 3.0.5 → 3.0.6

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
@@ -468,7 +468,7 @@ interface UseServerDataGridReturn<T> {
468
468
  columns: DataGridColumn<T>[];
469
469
  currentPage: number;
470
470
  pagination: ServerPagination | null;
471
- serverPagination: ServerDataGridProp | null;
471
+ serverPagination: ServerDataGridProp | null | undefined;
472
472
  loading: boolean;
473
473
  error: string | null;
474
474
  goToPage: (page: number) => void;
@@ -502,7 +502,7 @@ interface DataGridProps<T> {
502
502
  /** Appends View / Edit / Delete action buttons per row */
503
503
  defaultActions?: DefaultActionsConfig<T>;
504
504
  /** Pass the serverPagination object from useServerDataGrid to enable server-driven pagination */
505
- serverPagination?: ServerDataGridProp;
505
+ serverPagination?: ServerDataGridProp | null;
506
506
  }
507
507
  declare function DataGrid<T extends Record<string, unknown>>({ columns, data, rowKey, selectable, selected: controlledSelected, onSelectChange, pageSize, showPagination, showColumnToggle, loading, emptyMessage, className, onRowClick, defaultActions, serverPagination, }: DataGridProps<T>): react_jsx_runtime.JSX.Element;
508
508
 
package/dist/index.d.ts CHANGED
@@ -468,7 +468,7 @@ interface UseServerDataGridReturn<T> {
468
468
  columns: DataGridColumn<T>[];
469
469
  currentPage: number;
470
470
  pagination: ServerPagination | null;
471
- serverPagination: ServerDataGridProp | null;
471
+ serverPagination: ServerDataGridProp | null | undefined;
472
472
  loading: boolean;
473
473
  error: string | null;
474
474
  goToPage: (page: number) => void;
@@ -502,7 +502,7 @@ interface DataGridProps<T> {
502
502
  /** Appends View / Edit / Delete action buttons per row */
503
503
  defaultActions?: DefaultActionsConfig<T>;
504
504
  /** Pass the serverPagination object from useServerDataGrid to enable server-driven pagination */
505
- serverPagination?: ServerDataGridProp;
505
+ serverPagination?: ServerDataGridProp | null;
506
506
  }
507
507
  declare function DataGrid<T extends Record<string, unknown>>({ columns, data, rowKey, selectable, selected: controlledSelected, onSelectChange, pageSize, showPagination, showColumnToggle, loading, emptyMessage, className, onRowClick, defaultActions, serverPagination, }: DataGridProps<T>): react_jsx_runtime.JSX.Element;
508
508
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "registry": "https://registry.npmjs.org/",
5
5
  "access": "public"
6
6
  },
7
- "version": "3.0.5",
7
+ "version": "3.0.6",
8
8
  "description": "Reusable React UI components",
9
9
  "license": "MIT",
10
10
  "main": "dist/index.js",