master-components-react-ts 2.3.2 → 2.3.4
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,6 @@
|
|
|
1
1
|
import { FilterWithTagsProps } from './FilterWithTags.types';
|
|
2
2
|
declare const FilterWithTags: {
|
|
3
|
-
({ filterOptions, customOpenPopup, onApply, onClearAll, mainButtonProps, popupProps }: FilterWithTagsProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
({ filterOptions, customOpenPopup, onApply, onClearAll, mainButtonProps, popupProps, cancelButtonProps, applyButtonProps, }: FilterWithTagsProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
propKeys: readonly ["filterOptions", "customOpenPopup", "onApply", "onClearAll", "mainButtonProps", "popupProps"];
|
|
5
5
|
displayName: string;
|
|
6
6
|
description: string;
|
|
@@ -19,6 +19,8 @@ export interface FilterWithTagsProps {
|
|
|
19
19
|
onClearAll?: () => void;
|
|
20
20
|
mainButtonProps?: MainButtonProps;
|
|
21
21
|
popupProps?: PopupProps;
|
|
22
|
+
cancelButtonProps?: MainButtonProps;
|
|
23
|
+
applyButtonProps?: MainButtonProps;
|
|
22
24
|
}
|
|
23
25
|
export interface FilterContentProps {
|
|
24
26
|
filterOptions: FilterOptionsTypes[];
|
|
@@ -5,6 +5,11 @@ export type ColumnType = {
|
|
|
5
5
|
render?: (row: any) => React.ReactNode;
|
|
6
6
|
[key: string]: any;
|
|
7
7
|
};
|
|
8
|
+
export type ActionButtonType = {
|
|
9
|
+
text?: string;
|
|
10
|
+
icon?: string | React.ReactNode;
|
|
11
|
+
onClick?: (row: any, rowIndex?: number) => void;
|
|
12
|
+
};
|
|
8
13
|
export type SortType = {
|
|
9
14
|
selector: string;
|
|
10
15
|
desc: boolean;
|
|
@@ -27,7 +32,7 @@ export interface TableProps {
|
|
|
27
32
|
actionButtonText?: string;
|
|
28
33
|
actionButtonIcon?: React.ReactNode;
|
|
29
34
|
onActionButtonClick?: (row: any) => void;
|
|
30
|
-
actionButtons?:
|
|
35
|
+
actionButtons?: ActionButtonType[];
|
|
31
36
|
withColumnConfiguration?: boolean;
|
|
32
37
|
headerSlot?: React.ReactNode;
|
|
33
38
|
onColumnOrderChange?: (newColumns: ColumnType[]) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,5 +23,5 @@ export type { TreeNodeDataType } from './components/TreeNode/TreeNode.types';
|
|
|
23
23
|
export { default as FilterWithTags } from './components/FilterWithTags/FilterWithTags';
|
|
24
24
|
export type { FilterOptionsTypes } from './components/FilterWithTags/FilterWithTags.types';
|
|
25
25
|
export { default as Table } from './components/Table/Table';
|
|
26
|
-
export type { ColumnType, SortType, RowActionType } from './components/Table/Table.types';
|
|
26
|
+
export type { ColumnType, SortType, RowActionType, ActionButtonType } from './components/Table/Table.types';
|
|
27
27
|
export { default as FileUploader } from './components/FileUploader/FileUploader';
|