indicator-ui 0.0.157 → 0.0.158
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
2
|
export type SlideTransitionAnimationType = 'enter-down' | 'enter-up' | 'exit-down' | 'exit-up' | 'hide' | 'show';
|
|
3
3
|
export type SlideTransitionPropsType = {
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
animation?: SlideTransitionAnimationType;
|
|
6
6
|
additionStyles?: string | string[];
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
7
9
|
};
|
|
@@ -16,8 +16,9 @@ import { SlideTransitionPropsType } from '../types';
|
|
|
16
16
|
*
|
|
17
17
|
* ```'show'``` - изначально показывает элемент.
|
|
18
18
|
*
|
|
19
|
+
*
|
|
19
20
|
* ---
|
|
20
21
|
* Учтите, что анимации сужают компонент, поэтому он будет деформироваться.
|
|
21
22
|
* При высокой (автор проводил тесты на 300ms) скорости анимации ощущается нормально (если вы не Флеш).
|
|
22
23
|
* */
|
|
23
|
-
export declare function SlideTransition({ children, animation, additionStyles, }: SlideTransitionPropsType): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function SlideTransition({ children, animation, className, additionStyles, style, }: SlideTransitionPropsType): import("react/jsx-runtime").JSX.Element;
|