reykit 1.0.192 → 1.0.194

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.
@@ -16,28 +16,28 @@ export type TableButtonOption = {
16
16
  name: ReactNode;
17
17
  method: () => void;
18
18
  }[];
19
- export type TableOptionName = ReactNode;
20
- export type RowOptionItem<Row extends Record<string, any>> = {
19
+ export type TableRowOptionItemLink = string;
20
+ export type TableRowOptionItem<Row extends Record<string, any>> = {
21
21
  name: ReactNode;
22
- fn: ((row: Row) => void) | null;
22
+ exe: ((row: Row) => void) | TableRowOptionItemLink | null;
23
23
  };
24
24
  export type TableRowOption<Row extends Record<string, any>> = {
25
- options?: RowOptionItem<Row>[];
26
- destructiveOptions?: RowOptionItem<Row>[];
25
+ options?: TableRowOptionItem<Row>[];
26
+ destructiveOptions?: TableRowOptionItem<Row>[];
27
27
  } | ((row: Row) => {
28
- options?: RowOptionItem<Row>[];
29
- destructiveOptions?: RowOptionItem<Row>[];
28
+ options?: TableRowOptionItem<Row>[];
29
+ destructiveOptions?: TableRowOptionItem<Row>[];
30
30
  });
31
- export type SelectRowsOptionItem<Row extends Record<string, any>> = {
31
+ export type TableSelectRowsOptionItem<Row extends Record<string, any>> = {
32
32
  name: ReactNode;
33
- fn: ((selectRows: Row[]) => void) | null;
33
+ exe: ((selectRows: Row[]) => void) | null;
34
34
  };
35
35
  export type TableSelectRowsOption<Row extends Record<string, any>> = {
36
- options?: SelectRowsOptionItem<Row>[];
37
- destructiveOptions?: SelectRowsOptionItem<Row>[];
36
+ options?: TableSelectRowsOptionItem<Row>[];
37
+ destructiveOptions?: TableSelectRowsOptionItem<Row>[];
38
38
  } | ((selectRows: Row[]) => {
39
- options?: SelectRowsOptionItem<Row>[];
40
- destructiveOptions?: SelectRowsOptionItem<Row>[];
39
+ options?: TableSelectRowsOptionItem<Row>[];
40
+ destructiveOptions?: TableSelectRowsOptionItem<Row>[];
41
41
  });
42
42
  /**
43
43
  * Table component.
@@ -12,6 +12,6 @@ export { CycleButton } from './Button';
12
12
  export { Form } from './Form';
13
13
  export { Loading, useLoading } from './Loading';
14
14
  export { Notice, notice } from './Notice';
15
- export { type TableFieldOption, type TableSearchOption, type TableButtonOption, type TableOptionName, type TableRowOption, type TableSelectRowsOption, Table } from './Table';
15
+ export { type TableFieldOption, type TableSearchOption, type TableButtonOption, type TableRowOption, type TableSelectRowsOption, Table } from './Table';
16
16
  export { IconText } from './Text';
17
17
  export { IconToggle } from './Toggle';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reykit",
3
- "version": "1.0.192",
3
+ "version": "1.0.194",
4
4
  "description": "Kit method set.",
5
5
  "author": "reyxbo",
6
6
  "keywords": [