gantri-components 2.34.0-beta.8 → 2.34.0-beta.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.
@@ -31,9 +31,9 @@ export interface TableProps<DataType extends BaseTableDataType> extends Partial<
31
31
  export interface TableDefaultProps {
32
32
  stickyFirstColumn: boolean;
33
33
  }
34
- export type GetHeaderCellProps<DataType extends BaseTableDataType> = (cell: Header<DataType, unknown>) => CustomCellProps;
35
- export type GetRowProps<DataType extends BaseTableDataType> = (row: Row<DataType>, rows: Row<DataType>[]) => CustomRowProps;
36
- export type GetCellProps<DataType extends BaseTableDataType> = (cell: Cell<DataType, unknown>) => CustomCellProps;
34
+ export type GetHeaderCellProps<DataType extends BaseTableDataType> = (cell?: Header<DataType, unknown>) => CustomCellProps;
35
+ export type GetRowProps<DataType extends BaseTableDataType> = (row?: Row<DataType>, rows?: Row<DataType>[]) => CustomRowProps;
36
+ export type GetCellProps<DataType extends BaseTableDataType> = (cell?: Cell<DataType, unknown>) => CustomCellProps;
37
37
  export type OnRowClick<DataType extends BaseTableDataType> = (data: Row<DataType>, event: MouseEvent<HTMLTableRowElement>) => void;
38
38
  export interface CustomRowProps extends Record<string, unknown>, HTMLAttributes<HTMLTableRowElement> {
39
39
  status?: RowStatusValue | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantri-components",
3
- "version": "2.34.0-beta.8",
3
+ "version": "2.34.0-beta.9",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "umd": "dist/index.umd.js",