UNPKG

@cmk/fe_utils

Version:
32 lines (30 loc) 1.12 kB
import { TreeItemProps } from '@mui/x-tree-view'; import { ReactNode, Ref } from 'react'; export type StyledTreeItemProps = Omit<TreeItemProps, 'nodeId' | 'children'> & { bgColor?: string; bgColorForDarkMode?: string; color?: string; colorForDarkMode?: string; labelIcon?: ReactNode; icon?: ReactNode; labelInfo?: string; labelText: ReactNode; nodeId: number | string; disableBorderLeft?: boolean; disableAddAction?: boolean; disableDeleteAction?: boolean; onDelete?: (id: string) => void; onAddChild?: (id: string) => void; idFieldName?: string; children?: StyledTreeItemProps[]; actions?: any[] | ((item: any) => any[]); additionalActions?: any[] | ((item: any) => any[]); useDraggable?: boolean; toggleExpand?: (id: string, e: any) => void; _parentId: string | null; isNotDroppable?: boolean; onChangeDraggingActive?: (active: boolean) => void; disableExpandMargin?: boolean; ref?: Ref<HTMLUListElement>; }; export declare const StyledTreeItem: (props: StyledTreeItemProps) => import("react/jsx-runtime").JSX.Element;