gantri-components 2.34.0-beta.7 → 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.
@@ -1,3 +1,4 @@
1
+ export declare const StyledTableContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
1
2
  export declare const StyledTable: import("styled-components").StyledComponent<"table", import("styled-components").DefaultTheme, {
2
3
  stickyFirstColumn: boolean | undefined;
3
4
  }, never>;
@@ -22,6 +22,7 @@ export interface TableProps<DataType extends BaseTableDataType> extends Partial<
22
22
  getRowProps?: GetRowProps<DataType>;
23
23
  onReorder?: (data: DataType[]) => Promise<void>;
24
24
  onRowClick?: OnRowClick<DataType>;
25
+ /** Any options provided are passed to `useReactTable` and may override default values. */
25
26
  options?: Partial<TableOptions<DataType>>;
26
27
  paging?: PagingProps;
27
28
  search?: SearchProps;
@@ -30,9 +31,9 @@ export interface TableProps<DataType extends BaseTableDataType> extends Partial<
30
31
  export interface TableDefaultProps {
31
32
  stickyFirstColumn: boolean;
32
33
  }
33
- export type GetHeaderCellProps<DataType extends BaseTableDataType> = (cell: Header<DataType, unknown>) => CustomCellProps;
34
- export type GetRowProps<DataType extends BaseTableDataType> = (row: Row<DataType>, rows: Row<DataType>[]) => CustomRowProps;
35
- 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;
36
37
  export type OnRowClick<DataType extends BaseTableDataType> = (data: Row<DataType>, event: MouseEvent<HTMLTableRowElement>) => void;
37
38
  export interface CustomRowProps extends Record<string, unknown>, HTMLAttributes<HTMLTableRowElement> {
38
39
  status?: RowStatusValue | undefined;