1 | import * as React from "react";
|
2 | import { TransitionProps } from "react-spring/renderprops";
|
3 | import { BoxProps } from "../Box";
|
4 |
|
5 | interface ISlideIn {
|
6 | in: boolean;
|
7 | offset?: string;
|
8 | duration?: number;
|
9 | children: (styles: Object) => React.ReactNode;
|
10 | }
|
11 |
|
12 | type SlideInProps = ISlideIn & TransitionProps<boolean>;
|
13 | export const SlideIn: React.FC<SlideInProps>;
|
14 |
|
15 | interface IScale {
|
16 | in: boolean;
|
17 | initialScale?: number;
|
18 | duration?: number;
|
19 | children: (styles: Object) => React.ReactNode;
|
20 | }
|
21 |
|
22 | type ScaleProps = IScale & TransitionProps<boolean>;
|
23 | export const Scale: React.FC<ScaleProps>;
|
24 |
|
25 | interface ISlide {
|
26 | in: boolean;
|
27 | finalHeight?: BoxProps["height"];
|
28 | finalWidth?: BoxProps["maxWidth"];
|
29 | duration?: number;
|
30 | from: "bottom" | "top" | "left" | "right";
|
31 | }
|
32 |
|
33 | type SlideProps = ISlide & TransitionProps<boolean>;
|
34 | export const Slide: React.FC<SlideProps>;
|