gov-ui-core 1.0.4 → 1.0.6
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/build/components/Chip/index.d.ts +2 -1
- package/build/components/EmptyBox/index.d.ts +3 -1
- package/build/components/Modal/index.d.ts +1 -1
- package/build/components/Table/TableLoading.d.ts +2 -2
- package/build/components/Table/components/Pagination.d.ts +1 -0
- package/build/components/Table/index.d.ts +4 -1
- package/build/components/Table/styled.d.ts +2 -0
- package/build/index.js +1 -1
- package/package.json +1 -1
|
@@ -3,9 +3,10 @@ interface IChipProps {
|
|
|
3
3
|
children?: ReactNode | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal;
|
|
4
4
|
ctype?: 'status' | 'input' | 'filter';
|
|
5
5
|
shape?: 'square' | 'round';
|
|
6
|
-
status?: 'success' | 'error' | 'warning' | 'primary';
|
|
6
|
+
status?: 'success' | 'error' | 'warning' | 'info' | 'primary' | undefined | null;
|
|
7
7
|
type?: 'on' | 'off';
|
|
8
8
|
disabled?: boolean;
|
|
9
|
+
className?: string;
|
|
9
10
|
}
|
|
10
11
|
declare const Chip: React.FC<IChipProps>;
|
|
11
12
|
export default Chip;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface IEmptyItemsProps {
|
|
3
3
|
search?: boolean;
|
|
4
|
-
|
|
4
|
+
emptyMessage?: React.ReactNode;
|
|
5
5
|
emptyLogo?: React.ReactNode;
|
|
6
|
+
emptyActions?: React.ReactNode;
|
|
7
|
+
customIcons?: string | React.ReactNode;
|
|
6
8
|
}
|
|
7
9
|
declare const EmptyBox: React.FC<IEmptyItemsProps>;
|
|
8
10
|
export default EmptyBox;
|
|
@@ -3,7 +3,7 @@ import { ModalProps } from 'antd';
|
|
|
3
3
|
interface IModalProps extends ModalProps {
|
|
4
4
|
titleIcon?: ReactNode;
|
|
5
5
|
titleIconConfirm?: 'default' | 'warning' | 'error';
|
|
6
|
-
titleDescription?: string;
|
|
6
|
+
titleDescription?: string | ReactNode;
|
|
7
7
|
buttonAlign?: 'left' | 'center' | 'right';
|
|
8
8
|
}
|
|
9
9
|
declare const Modal: React.FC<IModalProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface ITableLoadingProps {
|
|
3
3
|
isNormal?: boolean;
|
|
4
|
-
|
|
5
|
-
description?: string;
|
|
4
|
+
loadingMessage?: string | React.ReactNode;
|
|
6
5
|
isScroll?: boolean;
|
|
6
|
+
size?: string;
|
|
7
7
|
}
|
|
8
8
|
declare const TableLoading: React.FC<ITableLoadingProps>;
|
|
9
9
|
export default TableLoading;
|
|
@@ -22,7 +22,10 @@ export interface ITableProps<RecordType extends object = any> extends Omit<Table
|
|
|
22
22
|
useInfinite?: boolean;
|
|
23
23
|
onInfiniteCallback?: () => void;
|
|
24
24
|
border?: boolean;
|
|
25
|
-
loadingMessage?: string;
|
|
25
|
+
loadingMessage?: string | React.ReactNode;
|
|
26
|
+
emptyActions?: React.ReactNode;
|
|
27
|
+
customIcons?: string | React.ReactNode;
|
|
28
|
+
paginationDisabled?: boolean;
|
|
26
29
|
}
|
|
27
30
|
export interface TableRef {
|
|
28
31
|
reloadTable: () => void;
|
|
@@ -2,10 +2,12 @@ declare const TableBox: import("styled-components").StyledComponent<"div", impor
|
|
|
2
2
|
columnSpace?: number | undefined;
|
|
3
3
|
size?: string | undefined;
|
|
4
4
|
columns?: any;
|
|
5
|
+
totalSize?: number | undefined;
|
|
5
6
|
}, never>;
|
|
6
7
|
declare const TableLoadingBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
7
8
|
isNormal?: boolean | undefined;
|
|
8
9
|
isScroll?: boolean | undefined;
|
|
10
|
+
$size?: string | undefined;
|
|
9
11
|
}, never>;
|
|
10
12
|
declare const CustomPagination: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
11
13
|
border?: boolean | undefined;
|