katoikia-app/web-ui/web-react/node_modules/primereact/messages/messages.d.ts

32 lines
902 B
TypeScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
import * as React from 'react';
import { CSSTransitionProps } from '../csstransition';
type MessagesSeverityType = 'success' | 'info' | 'warn' | 'error' | (string & {});
type MessagesMessageType = MessagesMessage | MessagesMessage[];
export interface MessagesMessage {
id?: string;
severity?: MessagesSeverityType;
summary?: React.ReactNode;
detail?: React.ReactNode;
closable?: boolean;
sticky?: boolean;
life?: number;
}
export interface MessagesProps {
id?: string;
className?: string;
style?: object;
transitionOptions?: CSSTransitionProps;
onRemove?(message: MessagesMessage): void;
onClick?(message: MessagesMessage): void;
}
export declare class Messages extends React.Component<MessagesProps, any> {
public show(message: MessagesMessageType): void;
public clear(): void;
public replace(message: MessagesMessageType): void;
}