@kwantis-id3/frontend-library 1.4.0 → 1.5.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.
|
@@ -3,6 +3,7 @@ import { TCellValues } from "../Table";
|
|
|
3
3
|
export type TDataGridProps<Cell extends TCellValues, Row extends TDataGridRow<Cell>> = {
|
|
4
4
|
columns: ColumnDef<TDataGridRow<Cell>, Cell>[];
|
|
5
5
|
data: Row[] | undefined;
|
|
6
|
+
onFilteredRowsChange?: (rows: Row[]) => void;
|
|
6
7
|
};
|
|
7
8
|
export type TDataGridRow<Cell extends TCellValues> = {
|
|
8
9
|
[key: string]: Cell;
|
|
@@ -3,6 +3,7 @@ export type TCellValues = string | number | boolean | null;
|
|
|
3
3
|
export type TTableProps<Cell extends TCellValues, Row extends TTableRow<Cell>> = {
|
|
4
4
|
columns: ColumnDef<Row, Cell>[];
|
|
5
5
|
data: Row[] | undefined;
|
|
6
|
+
onFilteredRowsChange?: (rows: Row[]) => void;
|
|
6
7
|
};
|
|
7
8
|
export type TTableCell<T extends TCellValues> = {
|
|
8
9
|
value: T;
|
package/dist/index.d.ts
CHANGED
|
@@ -461,6 +461,7 @@ type TCellValues = string | number | boolean | null;
|
|
|
461
461
|
type TTableProps<Cell extends TCellValues, Row extends TTableRow<Cell>> = {
|
|
462
462
|
columns: ColumnDef<Row, Cell>[];
|
|
463
463
|
data: Row[] | undefined;
|
|
464
|
+
onFilteredRowsChange?: (rows: Row[]) => void;
|
|
464
465
|
};
|
|
465
466
|
type TTableCell<T extends TCellValues> = {
|
|
466
467
|
value: T;
|
|
@@ -484,6 +485,7 @@ declare const renderCell: (value: string | number | boolean | null) => _emotion_
|
|
|
484
485
|
type TDataGridProps<Cell extends TCellValues, Row extends TDataGridRow<Cell>> = {
|
|
485
486
|
columns: ColumnDef<TDataGridRow<Cell>, Cell>[];
|
|
486
487
|
data: Row[] | undefined;
|
|
488
|
+
onFilteredRowsChange?: (rows: Row[]) => void;
|
|
487
489
|
};
|
|
488
490
|
type TDataGridRow<Cell extends TCellValues> = {
|
|
489
491
|
[key: string]: Cell;
|