@emoo-ai/ui-react 0.1.2 → 0.1.4
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/dist/index.js +1812 -1804
- package/dist/table/DataTable.d.ts +1 -0
- package/dist/table/use-row-selection.d.ts +5 -2
- package/package.json +2 -2
|
@@ -2,9 +2,11 @@ import { type MouseEvent as ReactMouseEvent, type PointerEvent as ReactPointerEv
|
|
|
2
2
|
import type { Row } from "@tanstack/react-table";
|
|
3
3
|
export interface DataTableSelection<TData> {
|
|
4
4
|
columnId: string;
|
|
5
|
-
isSelected: (row: TData) => boolean;
|
|
5
|
+
isSelected: (row: TData) => boolean | "indeterminate";
|
|
6
6
|
onChange: (rows: TData[], selected: boolean) => void;
|
|
7
7
|
isRowSelectable?: (row: TData) => boolean;
|
|
8
|
+
disabledTitle?: string;
|
|
9
|
+
rowAriaLabel?: (row: TData, index: number) => string;
|
|
8
10
|
context?: string;
|
|
9
11
|
}
|
|
10
12
|
interface SelectionOptions<TData> {
|
|
@@ -20,10 +22,11 @@ export declare function useRowSelection<TData>(options: SelectionOptions<TData>)
|
|
|
20
22
|
onCheckedChange: (checked: boolean | "indeterminate") => void;
|
|
21
23
|
};
|
|
22
24
|
checkboxProps: (row: Row<TData>) => {
|
|
23
|
-
checked: boolean;
|
|
25
|
+
checked: boolean | "indeterminate";
|
|
24
26
|
disabled: boolean;
|
|
25
27
|
onClick: (event: ReactMouseEvent<HTMLButtonElement>) => void;
|
|
26
28
|
onPointerDown: (event: ReactPointerEvent<HTMLButtonElement>) => void;
|
|
27
29
|
};
|
|
30
|
+
rowHint: (row: Row<TData>) => string | undefined;
|
|
28
31
|
};
|
|
29
32
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emoo-ai/ui-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"react-dom": "^19.2.8"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@emoo-ai/brand": "0.1.
|
|
32
|
+
"@emoo-ai/brand": "0.1.4",
|
|
33
33
|
"@phosphor-icons/react": "2.1.10",
|
|
34
34
|
"@shadcn/react": "0.3.0",
|
|
35
35
|
"@tanstack/react-table": "^8.21.3",
|