@majoo-ui/react 1.54.13-rc.1 → 1.54.14-rc.1
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/components/table/MobileTable.d.ts +2 -2
- package/components/table/Table.d.ts +19 -2
- package/index.esm.js +382 -364
- package/index.umd.js +412 -394
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CSS } from '../../config/stitches.config';
|
|
3
|
-
import { RowGroup } from './Table';
|
|
3
|
+
import { EmptyDataProps, RowGroup } from './Table';
|
|
4
4
|
import { TableInstance } from 'react-table';
|
|
5
5
|
interface CustomRowsStyle {
|
|
6
6
|
predicate: boolean;
|
|
@@ -13,7 +13,7 @@ interface MobileTableProps {
|
|
|
13
13
|
footer: JSX.Element;
|
|
14
14
|
infiniteScrollWrapper: (children: JSX.Element) => JSX.Element;
|
|
15
15
|
isLoading: boolean;
|
|
16
|
-
|
|
16
|
+
customEmptyDataProps: EmptyDataProps;
|
|
17
17
|
rowGroup?: RowGroup;
|
|
18
18
|
hiddenColumns?: string[];
|
|
19
19
|
css?: CSS;
|
|
@@ -1093,6 +1093,11 @@ interface CustomRowsStyle {
|
|
|
1093
1093
|
predicate: boolean;
|
|
1094
1094
|
css: CSS;
|
|
1095
1095
|
}
|
|
1096
|
+
export interface EmptyDataProps {
|
|
1097
|
+
doodleImage: React.ReactNode;
|
|
1098
|
+
title: string | React.ReactNode;
|
|
1099
|
+
description?: string | React.ReactNode;
|
|
1100
|
+
}
|
|
1096
1101
|
export interface TableProps {
|
|
1097
1102
|
/**
|
|
1098
1103
|
* The data array that you want to display on the table.
|
|
@@ -1149,9 +1154,21 @@ export interface TableProps {
|
|
|
1149
1154
|
*/
|
|
1150
1155
|
rowsPerPageOptions?: number[];
|
|
1151
1156
|
/**
|
|
1152
|
-
*
|
|
1157
|
+
* DEPRECATED (USELESS PROP).
|
|
1153
1158
|
*/
|
|
1154
1159
|
emptyDataMessage?: string;
|
|
1160
|
+
/**
|
|
1161
|
+
* Define custom empty data props.<br/>
|
|
1162
|
+
* interface EmptyDataProps { <br/>
|
|
1163
|
+
* (define the doodle image component)<br/>
|
|
1164
|
+
* doodleImage?: React.ReactNode;<br/>
|
|
1165
|
+
* (define the title)<br/>
|
|
1166
|
+
* title?: string | React.ReactNode;<br/>
|
|
1167
|
+
* (define the description)<br/>
|
|
1168
|
+
* description?: string | React.ReactNode;<br/>
|
|
1169
|
+
* }
|
|
1170
|
+
*/
|
|
1171
|
+
customEmptyDataProps?: EmptyDataProps;
|
|
1155
1172
|
/**
|
|
1156
1173
|
* If true, the table pagination will become an infinite scroll.
|
|
1157
1174
|
*/
|
|
@@ -1214,7 +1231,7 @@ export interface TableProps {
|
|
|
1214
1231
|
showDuplicatedData?: boolean;
|
|
1215
1232
|
onRowClick?: (record: Row, index: number) => void;
|
|
1216
1233
|
}
|
|
1217
|
-
export declare function Table({ columns, data, keyId, pageIndex: controlledPageIndex, totalData, fetchData, hideDataInfo, rowsPerPageOptions, emptyDataMessage, isLoading, css, headerCss, onSelectedChange, isInfiniteScroll, hasMoreItems, rowLimit, cellAlign, selectedIds, rowGroup, hiddenColumns, columnOrder, customRowsStyle, isMobileLayout, showDuplicatedData, onRowClick, }: TableProps): JSX.Element;
|
|
1234
|
+
export declare function Table({ columns, data, keyId, pageIndex: controlledPageIndex, totalData, fetchData, hideDataInfo, rowsPerPageOptions, emptyDataMessage, customEmptyDataProps, isLoading, css, headerCss, onSelectedChange, isInfiniteScroll, hasMoreItems, rowLimit, cellAlign, selectedIds, rowGroup, hiddenColumns, columnOrder, customRowsStyle, isMobileLayout, showDuplicatedData, onRowClick, }: TableProps): JSX.Element;
|
|
1218
1235
|
export interface TableColumnProps {
|
|
1219
1236
|
/**
|
|
1220
1237
|
* Required if accessor is a function<br/>
|