react-crud-mui 0.2.31 → 0.2.33
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
|
import { FieldValues } from 'react-hook-form';
|
|
3
3
|
import { NeedDataReason } from '../detail-page/pages/DetailPageContent';
|
|
4
4
|
import { TableMoreMenuProps } from '../table/components/TableMoreMenu';
|
|
5
|
+
import { default as TableMoreMenuItem } from '../table/components/TableMoreMenuItem';
|
|
5
6
|
export interface ActionCommandsProps<TModel extends FieldValues> extends Omit<TableMoreMenuProps, 'children' | 'open' | 'handleClose' | 'handleOpen'> {
|
|
6
7
|
onEdit?: () => void;
|
|
7
8
|
onView?: () => void;
|
|
@@ -23,4 +24,7 @@ export interface ActionCommandsProps<TModel extends FieldValues> extends Omit<Ta
|
|
|
23
24
|
index: number;
|
|
24
25
|
}
|
|
25
26
|
declare function ActionCommands<TModel extends FieldValues>({ onDelete, onEdit, onCopy, onView, canView, canDelete, canEdit, canCopy, showCopy, showView, showEdit, showDelete, disabled, children, titles, ...tableMoreProps }: ActionCommandsProps<TModel>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare namespace ActionCommands {
|
|
28
|
+
var Item: typeof TableMoreMenuItem;
|
|
29
|
+
}
|
|
26
30
|
export default ActionCommands;
|