reykit 1.0.241 → 1.0.243

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.
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
2
2
  export type TableFieldOption<Row extends Record<string, any>> = {
3
3
  key: string;
4
4
  name: string;
5
+ isBadge?: boolean;
5
6
  isHide?: boolean;
6
7
  isSort?: boolean;
7
8
  isGroup?: boolean;
@@ -10,6 +11,7 @@ export type TableFieldOption<Row extends Record<string, any>> = {
10
11
  defaultValue?: any;
11
12
  }[];
12
13
  export type DefaultTableFieldOption = {
14
+ isBadge?: boolean;
13
15
  isHide?: boolean;
14
16
  isSort?: boolean;
15
17
  isGroup?: boolean;
@@ -53,9 +55,10 @@ export type TableSelectRowsOption<Row extends Record<string, any>> = {
53
55
  * @param data - Table data state value.
54
56
  * - `Array` : Convert elements to `Badge` component.
55
57
  * @param setData - Function of set table data state value.
56
- * @param fieldOption - Header option.
58
+ * @param fieldOption - Field option.
57
59
  * - `Attribute key` : Field key.
58
60
  * - `Attribute name` : Field show name.
61
+ * - `Attribute isBadge` : Whether show to badge element.
59
62
  * - `Attribute isHide` : Whether hide field.
60
63
  * - `Attribute isSort` : Whether show sort button.
61
64
  * - `Attribute isGroup` : Whether show group button.
@@ -77,6 +80,7 @@ export type TableSelectRowsOption<Row extends Record<string, any>> = {
77
80
  * @param pageSize - Page rows size.
78
81
  * @param mobilePageSize - Page rows size on mobile devices.
79
82
  * @param language - Language type.
83
+ * @param defaultFieldOption - Default field option.
80
84
  */
81
85
  export declare function Table<Row extends Record<string, any>>({ data, setData, fieldOption, searchOption, buttonOption, rowOption, selectRowsOption, pageSize, mobilePageSize, language, defaultFieldOption, }: {
82
86
  data: Row[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reykit",
3
- "version": "1.0.241",
3
+ "version": "1.0.243",
4
4
  "description": "Kit method set.",
5
5
  "author": "reyxbo",
6
6
  "keywords": [