@majoo-ui/react 1.57.18 → 1.57.20

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,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { Column, UseTableHooks, Row } from 'react-table';
3
3
  import { CSS } from '../../config/stitches.config';
4
+ import { EmptyDataProps } from '../table/Table';
4
5
  interface CustomRows {
5
6
  predicate: boolean;
6
7
  css?: CSS;
@@ -11,11 +12,11 @@ interface EditableMobileProps<Data extends object> {
11
12
  columns: ReadonlyArray<Column<Data>>;
12
13
  data: Data[];
13
14
  instance: UseTableHooks;
14
- emptyDataMessage?: string;
15
15
  showCheckbox?: boolean;
16
16
  customRows?: (row: Row<object>) => CustomRows[];
17
17
  onExpand?: (expanded: boolean) => void;
18
18
  hiddenColumns?: string[];
19
+ customEmptyDataProps?: EmptyDataProps;
19
20
  }
20
21
  export default function EditableTableMobile(props: EditableMobileProps<any>): JSX.Element;
21
22
  export {};
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Column, Row } from 'react-table';
3
3
  import { CSS } from '../../config/stitches.config';
4
+ import { EmptyDataProps } from '../table/Table';
4
5
  interface CustomRows {
5
6
  predicate: boolean;
6
7
  css?: CSS;
@@ -17,9 +18,17 @@ interface EditableTableProps<Data extends object> {
17
18
  */
18
19
  data: Data[];
19
20
  /**
20
- * Displayed message if data does not exist.
21
+ * Define custom empty data props.<br/>
22
+ * interface EmptyDataProps { <br/>
23
+ * &nbsp;&nbsp;&nbsp;&nbsp;(define the doodle image component)<br/>
24
+ * &nbsp;&nbsp;&nbsp;&nbsp;doodleImage?: React.ReactNode;<br/>
25
+ * &nbsp;&nbsp;&nbsp;&nbsp;(define the title)<br/>
26
+ * &nbsp;&nbsp;&nbsp;&nbsp;title?: string | React.ReactNode;<br/>
27
+ * &nbsp;&nbsp;&nbsp;&nbsp;(define the description)<br/>
28
+ * &nbsp;&nbsp;&nbsp;&nbsp;description?: string | React.ReactNode;<br/>
29
+ * }
21
30
  */
22
- emptyDataMessage?: string;
31
+ customEmptyDataProps?: EmptyDataProps;
23
32
  /**
24
33
  * Additional height of the rows.
25
34
  */
@@ -1082,6 +1082,7 @@ export declare const addOnCellStyle: (id: any) => {
1082
1082
  style?: undefined;
1083
1083
  };
1084
1084
  export declare const defaultFetchDataParams: FetchDataParams;
1085
+ export declare const defaultEmptyDataProps: (t: any, isMobile: any) => EmptyDataProps;
1085
1086
  interface FetchDataParams {
1086
1087
  pageIndex?: number;
1087
1088
  pageSize?: number;