@activecollab/components
Version:
ActiveCollab Components
32 lines • 1.24 kB
TypeScript
import React, { PropsWithChildren } from "react";
import { DialogProps } from "../Dialog";
export interface SearchContext {
name: string;
class: string;
}
export interface CommandPaletteProps extends DialogProps {
onChangeSearch: (search: string) => void;
search: string;
mode: string | SearchContext;
setMode: (value: string) => void;
loading?: boolean;
idModeEnabled?: boolean;
}
export declare const _CommandPalette: React.ForwardRefExoticComponent<CommandPaletteProps & {
children?: React.ReactNode | undefined;
} & React.RefAttributes<HTMLDivElement>>;
export declare const CommandPalette: React.ForwardRefExoticComponent<CommandPaletteProps & {
children?: React.ReactNode | undefined;
} & React.RefAttributes<HTMLDivElement>> & {
List: {
({ children, heading, visible, }: PropsWithChildren<import("./CommandPaletteList").CommandPaletteListProps>): React.JSX.Element | null;
displayName: string;
};
Item: import("./CommandPaletteItem").CommandPaletteComponent & {
displayName?: string;
};
CommandItem: import("./CommandPaletteCommandItem").CommandPaletteComponent & {
displayName?: string;
};
};
//# sourceMappingURL=CommandPalette.d.ts.map