@innovaccer/design-system 4.9.0 → 4.10.0

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.
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { BaseProps } from "../../../utils/types";
3
3
  import { MessageAppearance } from "../../../common.type";
4
4
  export interface StatusHintProps extends BaseProps {
5
- children: React.ReactText;
5
+ children: React.ReactText | React.ReactNode;
6
6
  appearance: MessageAppearance;
7
7
  truncateLabel?: boolean;
8
8
  onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
@@ -64,6 +64,7 @@ export declare type ColumnSchema = {
64
64
  align?: Alignment;
65
65
  verticalAlign?: 'top' | 'center' | 'bottom';
66
66
  tooltip?: boolean;
67
+ highlightCell?: boolean;
67
68
  };
68
69
  export declare type RowData = Record<string, any> & {
69
70
  _selected?: boolean;
@@ -134,6 +135,8 @@ export interface GridProps extends BaseProps {
134
135
  page: number;
135
136
  rowsCount: number;
136
137
  }) => Promise<Data>;
138
+ searchTerm?: string;
139
+ highlightRegex?: (searchTerm: string) => RegExp;
137
140
  }
138
141
  export interface GridState {
139
142
  init: boolean;
@@ -9,6 +9,7 @@ export interface CellData {
9
9
  firstName?: string;
10
10
  lastName?: string;
11
11
  statusAppearance?: StatusHintProps['appearance'];
12
+ highlightCell?: boolean;
12
13
  }
13
14
  export interface PartialCellProps {
14
15
  data: RowData;
@@ -20,6 +21,7 @@ export interface GridCellProps extends PartialCellProps {
20
21
  size?: GridSize;
21
22
  rowIndex?: number;
22
23
  colIndex?: number;
24
+ searchTerm?: string;
23
25
  }
24
26
  export declare const GridCell: {
25
27
  (props: GridCellProps): React.JSX.Element | null;
@@ -54,6 +54,7 @@ interface SharedTableProps extends BaseProps {
54
54
  enableInfiniteScroll?: GridProps['enableInfiniteScroll'];
55
55
  infiniteScrollOptions?: GridProps['infiniteScrollOptions'];
56
56
  onScroll?: GridProps['onScroll'];
57
+ highlightRegex?: (searchTerm: string) => RegExp;
57
58
  }
58
59
  export declare type SyncTableProps = SharedTableProps & TableSyncProps;
59
60
  export declare type AsyncTableProps = SharedTableProps & AsyncProps;