Version 1.0.2 mit node_modules Verzeichnis

This commit is contained in:
ISA
2024-10-02 07:58:24 +02:00
parent f353a06b1b
commit 62b6e55a0a
68228 changed files with 4548477 additions and 651 deletions

View 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;

26
node_modules/react-toastify/dist/components/Icons.d.ts generated vendored Normal file
View File

@@ -0,0 +1,26 @@
import React from 'react';
import { Theme, ToastProps, TypeOptions } from '../types';
/**
* Used when providing custom icon
*/
export interface IconProps {
theme: Theme;
type: TypeOptions;
isLoading?: boolean;
}
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 type IconParams = Pick<ToastProps, 'theme' | 'icon' | 'type' | 'isLoading'>;
export declare function getIcon({ theme, type, isLoading, icon }: IconParams): React.ReactNode;
export {};

View 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;
/**
* Optional className
*/
className?: ToastClassName;
/**
* Optional 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;

View File

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

View File

@@ -0,0 +1,4 @@
import React from 'react';
import { ToastContainerProps } from '../types';
export declare const defaultProps: ToastContainerProps;
export declare function ToastContainer(props: ToastContainerProps): React.JSX.Element;

View File

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

View File

@@ -0,0 +1,6 @@
export * from './CloseButton';
export * from './ProgressBar';
export { ToastContainer } from './ToastContainer';
export * from './Transitions';
export * from './Toast';
export * from './Icons';