UNPKG

smart-react-components

Version:

React UI library, wide variety of editable ready to use Styled and React components.

43 lines (42 loc) 1.06 kB
import React from "react"; import { Value } from "../props"; export interface Props { children: JSX.Element; status?: boolean; display?: boolean; value?: Value; beforeShow?: () => Promise<void>; beforeHide?: () => Promise<void>; show?: (el: HTMLElement) => Promise<void>; hide?: (el: HTMLElement) => Promise<void>; afterShow?: () => void; afterHide?: () => void; } interface State { display: boolean; } export default class Transition extends React.Component<Props, State> { private static defaultProps; private status; private processing; constructor(props: any); componentDidMount(): void; componentDidUpdate(op: any, os: any): void; /** * Sets display state. * * @param props * @param state */ setDisplay: (props: Props, state: State) => void; /** * Shows the element. */ show: () => void; /** * Hides the element. */ hide: () => void; render(): JSX.Element; } export {};