This commit is contained in:
5
node_modules/react-toastify/dist/utils/collapseToast.d.ts
generated
vendored
Normal file
5
node_modules/react-toastify/dist/utils/collapseToast.d.ts
generated
vendored
Normal 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;
|
||||
36
node_modules/react-toastify/dist/utils/constant.d.ts
generated
vendored
Normal file
36
node_modules/react-toastify/dist/utils/constant.d.ts
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
import { ToastPosition, TypeOptions } from '../types';
|
||||
type KeyOfPosition = 'TOP_LEFT' | 'TOP_RIGHT' | 'TOP_CENTER' | 'BOTTOM_LEFT' | 'BOTTOM_RIGHT' | 'BOTTOM_CENTER';
|
||||
type KeyOfType = 'INFO' | 'SUCCESS' | 'WARNING' | 'ERROR' | 'DEFAULT';
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
export declare const POSITION: {
|
||||
[key in KeyOfPosition]: ToastPosition;
|
||||
};
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
export declare const TYPE: {
|
||||
[key in KeyOfType]: TypeOptions;
|
||||
};
|
||||
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
|
||||
}
|
||||
export declare const enum Direction {
|
||||
X = "x",
|
||||
Y = "y"
|
||||
}
|
||||
export declare const enum SyntheticEvent {
|
||||
ENTRANCE_ANIMATION_END = "d"
|
||||
}
|
||||
export {};
|
||||
43
node_modules/react-toastify/dist/utils/cssTransition.d.ts
generated
vendored
Normal file
43
node_modules/react-toastify/dist/utils/cssTransition.d.ts
generated
vendored
Normal 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 }: ToastTransitionProps) => React.JSX.Element;
|
||||
5
node_modules/react-toastify/dist/utils/index.d.ts
generated
vendored
Normal file
5
node_modules/react-toastify/dist/utils/index.d.ts
generated
vendored
Normal 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
2
node_modules/react-toastify/dist/utils/mapper.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { Toast, ToastItem, ToastItemStatus } from '../types';
|
||||
export declare function toToastItem(toast: Toast, status: ToastItemStatus): ToastItem;
|
||||
6
node_modules/react-toastify/dist/utils/propValidator.d.ts
generated
vendored
Normal file
6
node_modules/react-toastify/dist/utils/propValidator.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
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 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;
|
||||
Reference in New Issue
Block a user