@brizy/ui
Version:
React elements in Brizy style
22 lines (21 loc) • 662 B
TypeScript
import React, { PropsWithChildren } from "react";
type FunctionalException = (el: HTMLElement) => boolean;
export type Exception = string | FunctionalException;
export type Acc = {
functionExceptions: FunctionalException[];
stringExceptions: string[];
};
export interface Props {
exceptions: Exception[];
onClickOutside: (e: MouseEvent) => void;
}
export declare class ClickOutside extends React.Component<PropsWithChildren<Props>> {
static defaultProps: {
exceptions: never[];
};
componentDidMount(): void;
componentWillUnmount(): void;
handleAll: (e: MouseEvent) => void;
render(): React.ReactNode;
}
export {};