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,5 @@
import { Default } from './constant';
/**
* Used to collapse toast after exit animation
*/
export declare function collapseToast(node: HTMLElement, done: () => void, duration?: Default): void;

18
node_modules/react-toastify/dist/utils/constant.d.ts generated vendored Normal file
View File

@@ -0,0 +1,18 @@
export declare const enum Type {
INFO = "info",
SUCCESS = "success",
WARNING = "warning",
ERROR = "error",
DEFAULT = "default"
}
export declare const enum Default {
COLLAPSE_DURATION = 300,
DEBOUNCE_DURATION = 50,
CSS_NAMESPACE = "Toastify",
DRAGGABLE_PERCENT = 80,
CONTAINER_ID = 1
}
export declare const enum Direction {
X = "x",
Y = "y"
}

View File

@@ -0,0 +1,43 @@
import React from 'react';
import { ToastTransitionProps } from '../types';
export interface CSSTransitionProps {
/**
* Css class to apply when toast enter
*/
enter: string;
/**
* Css class to apply when toast leave
*/
exit: string;
/**
* Append current toast position to the classname.
* If multiple classes are provided, only the last one will get the position
* For instance `myclass--top-center`...
* `Default: false`
*/
appendPosition?: boolean;
/**
* Collapse toast smoothly when exit animation end
* `Default: true`
*/
collapse?: boolean;
/**
* Collapse transition duration
* `Default: 300`
*/
collapseDuration?: number;
}
/**
* Css animation that just work.
* You could use animate.css for instance
*
*
* ```
* cssTransition({
* enter: "animate__animated animate__bounceIn",
* exit: "animate__animated animate__bounceOut"
* })
* ```
*
*/
export declare function cssTransition({ enter, exit, appendPosition, collapse, collapseDuration }: CSSTransitionProps): ({ children, position, preventExitTransition, done, nodeRef, isIn, playToast }: ToastTransitionProps) => React.JSX.Element;

5
node_modules/react-toastify/dist/utils/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,5 @@
export * from './propValidator';
export * from './constant';
export * from './cssTransition';
export * from './collapseToast';
export * from './mapper';

2
node_modules/react-toastify/dist/utils/mapper.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import { Toast, ToastItem, ToastItemStatus } from '../types';
export declare function toToastItem(toast: Toast, status: ToastItemStatus): ToastItem;

View File

@@ -0,0 +1,8 @@
import { Id } from '../types';
export declare const isNum: (v: any) => v is Number;
export declare const isStr: (v: any) => v is String;
export declare const isFn: (v: any) => v is Function;
export declare const isId: (v: unknown) => v is Id;
export declare const parseClassName: (v: any) => any;
export declare const getAutoCloseDelay: (toastAutoClose?: false | number, containerAutoClose?: false | number) => number | false | undefined;
export declare const canBeRendered: <T>(content: T) => boolean;