This commit is contained in:
9
node_modules/react-toastify/dist/components/CloseButton.d.ts
generated
vendored
Normal file
9
node_modules/react-toastify/dist/components/CloseButton.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import React from 'react';
|
||||
import { Theme, TypeOptions } from '../types';
|
||||
export interface CloseButtonProps {
|
||||
closeToast: (e: React.MouseEvent<HTMLElement>) => void;
|
||||
type: TypeOptions;
|
||||
ariaLabel?: string;
|
||||
theme: Theme;
|
||||
}
|
||||
export declare function CloseButton({ closeToast, theme, ariaLabel }: CloseButtonProps): React.JSX.Element;
|
||||
24
node_modules/react-toastify/dist/components/Icons.d.ts
generated
vendored
Normal file
24
node_modules/react-toastify/dist/components/Icons.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import React from 'react';
|
||||
import { Theme, ToastProps, TypeOptions } from '../types';
|
||||
/**
|
||||
* Used when providing custom icon
|
||||
*/
|
||||
export interface IconProps {
|
||||
theme: Theme;
|
||||
type: TypeOptions;
|
||||
}
|
||||
export type BuiltInIconProps = React.SVGProps<SVGSVGElement> & IconProps;
|
||||
declare function Warning(props: BuiltInIconProps): React.JSX.Element;
|
||||
declare function Info(props: BuiltInIconProps): React.JSX.Element;
|
||||
declare function Success(props: BuiltInIconProps): React.JSX.Element;
|
||||
declare function Error(props: BuiltInIconProps): React.JSX.Element;
|
||||
declare function Spinner(): React.JSX.Element;
|
||||
export declare const Icons: {
|
||||
info: typeof Info;
|
||||
warning: typeof Warning;
|
||||
success: typeof Success;
|
||||
error: typeof Error;
|
||||
spinner: typeof Spinner;
|
||||
};
|
||||
export declare function getIcon({ theme, type, isLoading, icon }: ToastProps): React.ReactNode;
|
||||
export {};
|
||||
53
node_modules/react-toastify/dist/components/ProgressBar.d.ts
generated
vendored
Normal file
53
node_modules/react-toastify/dist/components/ProgressBar.d.ts
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
import React from 'react';
|
||||
import { TypeOptions, ToastClassName, Theme } 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;
|
||||
/**
|
||||
* The theme that is currently used
|
||||
*/
|
||||
theme: Theme;
|
||||
/**
|
||||
* 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, theme }: ProgressBarProps): React.JSX.Element;
|
||||
3
node_modules/react-toastify/dist/components/Toast.d.ts
generated
vendored
Normal file
3
node_modules/react-toastify/dist/components/Toast.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import React from 'react';
|
||||
import { ToastProps } from '../types';
|
||||
export declare const Toast: React.FC<ToastProps>;
|
||||
3
node_modules/react-toastify/dist/components/ToastContainer.d.ts
generated
vendored
Normal file
3
node_modules/react-toastify/dist/components/ToastContainer.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import React from 'react';
|
||||
import { ToastContainerProps } from '../types';
|
||||
export declare const ToastContainer: React.ForwardRefExoticComponent<ToastContainerProps & React.RefAttributes<HTMLDivElement>>;
|
||||
6
node_modules/react-toastify/dist/components/Transitions.d.ts
generated
vendored
Normal file
6
node_modules/react-toastify/dist/components/Transitions.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/// <reference types="react" />
|
||||
declare const Bounce: ({ children, position, preventExitTransition, done, nodeRef, isIn }: import("..").ToastTransitionProps) => import("react").JSX.Element;
|
||||
declare const Slide: ({ children, position, preventExitTransition, done, nodeRef, isIn }: import("..").ToastTransitionProps) => import("react").JSX.Element;
|
||||
declare const Zoom: ({ children, position, preventExitTransition, done, nodeRef, isIn }: import("..").ToastTransitionProps) => import("react").JSX.Element;
|
||||
declare const Flip: ({ children, position, preventExitTransition, done, nodeRef, isIn }: import("..").ToastTransitionProps) => import("react").JSX.Element;
|
||||
export { Bounce, Slide, Zoom, Flip };
|
||||
6
node_modules/react-toastify/dist/components/index.d.ts
generated
vendored
Normal file
6
node_modules/react-toastify/dist/components/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
export * from './CloseButton';
|
||||
export * from './ProgressBar';
|
||||
export * from './ToastContainer';
|
||||
export * from './Transitions';
|
||||
export * from './Toast';
|
||||
export * from './Icons';
|
||||
Reference in New Issue
Block a user