reykit 1.0.264 → 1.0.265
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,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, SetStateAction } from 'react';
|
|
2
2
|
export { type TableFieldOption, type DefaultTableFieldOption, type TableSearchOption, type TableButtonOption, type TableRowOptionItemLink, type TableRowOptionItem, type TableRowOption, type TableSelectRowsOptionItem, type TableSelectRowsOption, Table };
|
|
3
3
|
type TableFieldOption<Row extends Record<string, any>> = {
|
|
4
4
|
key: string;
|
|
@@ -85,7 +85,7 @@ type TableSelectRowsOption<Row extends Record<string, any>> = {
|
|
|
85
85
|
*/
|
|
86
86
|
declare function Table<Row extends Record<string, any>>({ data, setData, fieldOption, defaultFieldOption, searchOption, buttonOption, rowOption, selectRowsOption, pageSize, mobilePageSize, language }: {
|
|
87
87
|
data: Row[];
|
|
88
|
-
setData: (value: Row[]
|
|
88
|
+
setData: (value: SetStateAction<Row[]>) => void;
|
|
89
89
|
fieldOption?: TableFieldOption<Row>;
|
|
90
90
|
defaultFieldOption?: DefaultTableFieldOption;
|
|
91
91
|
searchOption?: TableSearchOption<Row>;
|