asma-core-ui 2.16.0 → 2.16.2
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.
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import { type TableOptions, type Table } from '@tanstack/react-table';
|
|
1
|
+
import { type TableOptions, type Table, type Row } from '@tanstack/react-table';
|
|
2
2
|
import { type ReactElement } from 'react';
|
|
3
|
-
interface StyledTableProps<TData, TCustomData> extends Omit<TableOptions<TData>, 'getCoreRowModel'> {
|
|
3
|
+
interface StyledTableProps<TData, TCustomData> extends Omit<TableOptions<TData>, 'getCoreRowModel' | 'getExpandedRowModel' | 'getFilteredRowModel' | 'getSortedRowModel'> {
|
|
4
4
|
actions?: {
|
|
5
5
|
label: string;
|
|
6
|
-
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
onClick?: (row: Row<TData>) => void;
|
|
7
8
|
}[];
|
|
8
9
|
customSubRowData?: Map<string, TCustomData[]>;
|
|
9
10
|
disableHeaderPin?: boolean;
|
|
10
11
|
tableInstanceRef?: React.MutableRefObject<Table<TData> | null>;
|
|
12
|
+
tdClassName?: string;
|
|
13
|
+
thClassName?: string;
|
|
11
14
|
renderSubRows?: (props: {
|
|
12
15
|
rows: TCustomData[];
|
|
13
16
|
}) => ReactElement;
|
|
14
17
|
}
|
|
15
|
-
export declare const StyledTable: <TData extends
|
|
18
|
+
export declare const StyledTable: <TData extends {
|
|
19
|
+
id: string;
|
|
20
|
+
}, TCustomData = Record<string, unknown>>({ actions, columns, data, customSubRowData, initialState, enableRowSelection, disableHeaderPin, tableInstanceRef, tdClassName, thClassName, renderSubRows, ...rest }: StyledTableProps<TData, TCustomData>) => JSX.Element;
|
|
16
21
|
export {};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "2.16.
|
|
6
|
+
"version": "2.16.2",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist/**/*",
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
"@rollup/plugin-terser": "^0.4.3",
|
|
39
39
|
"@storybook/addon-a11y": "^7.4.0",
|
|
40
40
|
"@storybook/addon-essentials": "^7.4.0",
|
|
41
|
-
"@storybook/addon-highlight": "^7.4.0",
|
|
42
41
|
"@storybook/addon-interactions": "^7.4.0",
|
|
43
42
|
"@storybook/addon-links": "^7.4.0",
|
|
44
43
|
"@storybook/addon-mdx-gfm": "^7.4.0",
|