gantri-components 2.73.1 → 2.73.2-beta.2

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,5 +1,9 @@
1
1
  import { DefaultTheme } from 'styled-components';
2
- export declare const getTableRowBackgroundColors: (theme: DefaultTheme) => {
2
+ export declare const getTableRowBackgroundColors: ({ theme, backgroundColor, clickableRowHoverBackgroundColor, }: {
3
+ backgroundColor: string | undefined;
4
+ clickableRowHoverBackgroundColor: string | undefined;
5
+ theme: DefaultTheme;
6
+ }) => {
3
7
  readonly statusErrorClickableHoverColor: string;
4
8
  readonly statusErrorColor: string;
5
9
  readonly statusNoneClickableHoverColor: string;
@@ -9,6 +13,8 @@ export declare const getTableRowBackgroundColors: (theme: DefaultTheme) => {
9
13
  };
10
14
  export declare const StyledTableContainer: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
11
15
  export declare const StyledTable: import("styled-components").StyledComponent<"table", DefaultTheme, {
16
+ backgroundColor: string | undefined;
17
+ clickableRowHoverBackgroundColor: string | undefined;
12
18
  isCustomColumnsEnabled: boolean;
13
19
  stickyFirstColumn: boolean | undefined;
14
20
  stickyFooter: boolean | undefined;
@@ -24,7 +24,10 @@ export type SyncState = {
24
24
  reordered?: boolean;
25
25
  };
26
26
  export interface TableProps<TData extends RowData> extends Partial<TableDefaultProps> {
27
+ backgroundColor?: string;
27
28
  className?: string;
29
+ /** Applies to clickable rows without a status that changes the default color. */
30
+ clickableRowHoverBackgroundColor?: string;
28
31
  columns: ColumnDef<TData, any>[];
29
32
  customAction?: CustomActionProps<TData>;
30
33
  /** Providing this will automatically make the last column sticky. */
@@ -37,6 +40,11 @@ export interface TableProps<TData extends RowData> extends Partial<TableDefaultP
37
40
  filters?: FiltersProps;
38
41
  /** Include `isClickable` in the returned object to apply appropriate cell styling. Text styling must be applied within the column. */
39
42
  getCellProps?: GetCellProps<TData>;
43
+ /**
44
+ * If getColumnsConfig and onColumnsConfigChange are provided,
45
+ * the table will be able to save and load column configurations.
46
+ * the table settings component will become visible.
47
+ */
40
48
  getColumnsConfig?: GetColumnsConfigFn;
41
49
  getHeaderCellProps?: GetHeaderCellProps<TData>;
42
50
  /** Include `status` in the returned object to set the row status color. */