0.2.0 - Mid migration

This commit is contained in:
Daniel Mason 2022-04-25 14:47:15 +12:00
parent 139e6a915e
commit 7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions

View file

@ -0,0 +1,8 @@
import * as React from 'react';
import { TypeOptions } from '../types';
export interface CloseButtonProps {
closeToast: (e: React.MouseEvent<HTMLElement>) => void;
type: TypeOptions;
ariaLabel?: string;
}
export declare function CloseButton({ closeToast, type, ariaLabel }: CloseButtonProps): JSX.Element;

View file

@ -0,0 +1,55 @@
import * as React from 'react';
import { TypeOptions, ToastClassName } from '../types';
export interface ProgressBarProps {
/**
* The animation delay which determine when to close the toast
*/
delay: number;
/**
* Whether or not the animation is running or paused
*/
isRunning: boolean;
/**
* Func to close the current toast
*/
closeToast: () => void;
/**
* Optional type : info, success ...
*/
type: TypeOptions;
/**
* Hide or not the progress bar
*/
hide?: boolean;
/**
* Optionnal className
*/
className?: ToastClassName;
/**
* Optionnal inline style
*/
style?: React.CSSProperties;
/**
* Tell wether or not controlled progress bar is used
*/
controlledProgress?: boolean;
/**
* Controlled progress value
*/
progress?: number | string;
/**
* Support rtl content
*/
rtl?: boolean;
/**
* Tell if the component is visible on screen or not
*/
isIn?: boolean;
}
export declare function ProgressBar({ delay, isRunning, closeToast, type, hide, className, style: userStyle, controlledProgress, progress, rtl, isIn }: ProgressBarProps): JSX.Element;
export declare namespace ProgressBar {
var defaultProps: {
type: TypeOptions;
hide: boolean;
};
}

View file

@ -0,0 +1,3 @@
import * as React from 'react';
import { ToastProps } from '../types';
export declare const Toast: React.FC<ToastProps>;

View file

@ -0,0 +1,3 @@
import * as React from 'react';
import { ToastContainerProps } from '../types';
export declare const ToastContainer: React.FC<ToastContainerProps>;

View file

@ -0,0 +1,5 @@
declare const Bounce: ({ children, position, preventExitTransition, done, nodeRef, isIn }: import("..").ToastTransitionProps) => JSX.Element;
declare const Slide: ({ children, position, preventExitTransition, done, nodeRef, isIn }: import("..").ToastTransitionProps) => JSX.Element;
declare const Zoom: ({ children, position, preventExitTransition, done, nodeRef, isIn }: import("..").ToastTransitionProps) => JSX.Element;
declare const Flip: ({ children, position, preventExitTransition, done, nodeRef, isIn }: import("..").ToastTransitionProps) => JSX.Element;
export { Bounce, Slide, Zoom, Flip };

View file

@ -0,0 +1,5 @@
export * from './CloseButton';
export * from './ProgressBar';
export * from './ToastContainer';
export * from './Transitions';
export * from './Toast';