@kwantis-id3/frontend-library 1.4.0 → 1.5.1-alpha.1-tableHeaderRerenders
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kwantis-id3/frontend-library",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1-alpha.1-tableHeaderRerenders",
|
|
4
4
|
"description": "Kwantis frontend components collection",
|
|
5
5
|
"scriptsComments": {
|
|
6
6
|
"storybook": "Starts storybook in development mode",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"rollup": "Bundles the library",
|
|
9
9
|
"test": "Runs tests",
|
|
10
10
|
"test:watch": "Runs tests in watch mode",
|
|
11
|
-
"test:coverage": "Runs tests
|
|
11
|
+
"test:coverage": "Runs tests once and generates coverage report",
|
|
12
12
|
"chromatic": "Runs chromatic tests and deploys to chromatic",
|
|
13
13
|
"build-cleanup": "Removes dist folder (if present)",
|
|
14
14
|
"build": "Removes dist folder and bundles the library",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"rollup": "rollup -c",
|
|
27
27
|
"test": "vitest run",
|
|
28
28
|
"test:watch": "vitest",
|
|
29
|
-
"test:coverage": "vitest --coverage",
|
|
29
|
+
"test:coverage": "vitest run --coverage",
|
|
30
30
|
"build": "pnpm rollup",
|
|
31
31
|
"bump:patch": "pnpm version patch",
|
|
32
32
|
"bump:minor": "pnpm version minor",
|