@chumsinc/sortable-tables 2.0.11 → 2.0.12
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.
- package/CHANGELOG.md +12 -1
- package/dist/types.d.ts +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
9
9
|
|
|
10
|
-
#### [v2.0.
|
|
10
|
+
#### [v2.0.12](https://github.com/ChumsInc/sortable-tables/compare/v2.0.11...v2.0.12)
|
|
11
|
+
|
|
12
|
+
> 2025-07-08
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Commits
|
|
18
|
+
|
|
19
|
+
- [`23062bc`](https://github.com/ChumsInc/sortable-tables/commit/23062bc7b9bb8764c1a83f96f3c1e75db292fbf4) fix: types.d.ts did not seem to get updated on last build
|
|
20
|
+
|
|
21
|
+
#### [v2.0.11](https://github.com/ChumsInc/sortable-tables/compare/v2.0.10...v2.0.11) - 2025-07-08
|
|
11
22
|
|
|
12
23
|
> 2025-07-08
|
|
13
24
|
|
package/dist/types.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export interface DataTableProps<T = unknown> extends TableHTMLAttributes<HTMLTab
|
|
|
32
32
|
responsive?: boolean | "sm" | "md" | "lg" | "xl" | 'xxl';
|
|
33
33
|
rowClassName?: DataTableClassNames<T>;
|
|
34
34
|
renderRow?: (row: T) => React.ReactNode;
|
|
35
|
-
onSelectRow?: (row: T, ev?: MouseEvent) => T | void;
|
|
35
|
+
onSelectRow?: (row: T, ev?: MouseEvent<HTMLTableRowElement>) => T | void;
|
|
36
36
|
selected?: string | number | ((row: T) => boolean);
|
|
37
37
|
tfoot?: React.ReactElement<HTMLTableSectionElement>;
|
|
38
38
|
tableHeadProps?: DataTableHeadProps<T>;
|
|
@@ -57,7 +57,7 @@ export interface DataTableTBodyProps<T = unknown> extends TableHTMLAttributes<HT
|
|
|
57
57
|
keyField: keyof T | ((row: T) => string | number);
|
|
58
58
|
rowClassName?: DataTableClassNames<T>;
|
|
59
59
|
renderRow?: (row: T) => React.ReactNode;
|
|
60
|
-
onSelectRow?: (row: T, ev?: MouseEvent) => T | void;
|
|
60
|
+
onSelectRow?: (row: T, ev?: MouseEvent<HTMLTableRowElement>) => T | void;
|
|
61
61
|
selected?: string | number | ((row: T) => boolean);
|
|
62
62
|
children?: ReactNode;
|
|
63
63
|
}
|
|
@@ -67,7 +67,7 @@ export interface DataTableRowProps<T = unknown> extends Omit<TableHTMLAttributes
|
|
|
67
67
|
fields: DataTableField<T>[];
|
|
68
68
|
row: T;
|
|
69
69
|
trRef?: React.Ref<HTMLTableRowElement>;
|
|
70
|
-
onClick?: (ev?: MouseEvent) => void;
|
|
70
|
+
onClick?: (ev?: MouseEvent<HTMLTableRowElement>) => void;
|
|
71
71
|
}
|
|
72
72
|
export interface SortableTableProps<T = unknown> extends DataTableProps<T> {
|
|
73
73
|
fields: SortableTableField<T>[];
|