@progress/kendo-react-animation 7.2.4-develop.3 → 7.2.4-develop.4
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.
- package/Animation.js +8 -0
- package/Animation.mjs +79 -0
- package/AnimationChild.js +8 -0
- package/AnimationChild.mjs +152 -0
- package/Expand.js +8 -0
- package/Expand.mjs +52 -0
- package/Fade.js +8 -0
- package/Fade.mjs +46 -0
- package/Push.js +8 -0
- package/Push.mjs +62 -0
- package/Reveal.js +8 -0
- package/Reveal.mjs +117 -0
- package/Slide.js +8 -0
- package/Slide.mjs +54 -0
- package/Zoom.js +8 -0
- package/Zoom.mjs +60 -0
- package/dist/cdn/js/kendo-react-animation.js +8 -5
- package/hooks/useAnimation.js +8 -0
- package/hooks/useAnimation.mjs +36 -0
- package/index.d.mts +756 -5
- package/index.d.ts +756 -14
- package/index.js +8 -5
- package/index.mjs +25 -668
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +2 -2
- package/util.js +8 -0
- package/util.mjs +126 -0
- package/Animation.d.ts +0 -86
- package/AnimationChild.d.ts +0 -93
- package/AnimationInterface.d.ts +0 -92
- package/Expand.d.ts +0 -79
- package/Fade.d.ts +0 -65
- package/Push.d.ts +0 -87
- package/Reveal.d.ts +0 -99
- package/Slide.d.ts +0 -81
- package/Zoom.d.ts +0 -85
- package/hooks/useAnimation.d.ts +0 -16
- package/package-metadata.d.ts +0 -9
- package/util.d.ts +0 -15
package/index.d.ts
CHANGED
|
@@ -1,14 +1,756 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
9
|
+
import PropTypes from 'prop-types';
|
|
10
|
+
import * as React_2 from 'react';
|
|
11
|
+
|
|
12
|
+
declare class Animation_2 extends React_2.Component<AnimationProps, {}> {
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
static propTypes: {
|
|
17
|
+
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
18
|
+
childFactory: PropTypes.Requireable<any>;
|
|
19
|
+
className: PropTypes.Requireable<string>;
|
|
20
|
+
component: PropTypes.Requireable<string>;
|
|
21
|
+
id: PropTypes.Requireable<string>;
|
|
22
|
+
style: PropTypes.Requireable<any>;
|
|
23
|
+
transitionName: PropTypes.Validator<string>;
|
|
24
|
+
appear: PropTypes.Validator<boolean>;
|
|
25
|
+
enter: PropTypes.Validator<boolean>;
|
|
26
|
+
exit: PropTypes.Validator<boolean>;
|
|
27
|
+
transitionEnterDuration: PropTypes.Validator<number>;
|
|
28
|
+
transitionExitDuration: PropTypes.Validator<number>;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*/
|
|
33
|
+
static defaultProps: {
|
|
34
|
+
component: string;
|
|
35
|
+
};
|
|
36
|
+
constructor(props: AnimationProps);
|
|
37
|
+
/**
|
|
38
|
+
* @hidden
|
|
39
|
+
*/
|
|
40
|
+
render(): JSX_2.Element;
|
|
41
|
+
}
|
|
42
|
+
export { Animation_2 as Animation }
|
|
43
|
+
|
|
44
|
+
export declare class AnimationChild extends React_2.Component<AnimationChildProps, {}> {
|
|
45
|
+
/**
|
|
46
|
+
* @hidden
|
|
47
|
+
*/
|
|
48
|
+
static propTypes: {
|
|
49
|
+
in: PropTypes.Requireable<boolean>;
|
|
50
|
+
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
51
|
+
transitionName: PropTypes.Validator<string>;
|
|
52
|
+
className: PropTypes.Requireable<string>;
|
|
53
|
+
appear: PropTypes.Requireable<boolean>;
|
|
54
|
+
enter: PropTypes.Requireable<boolean>;
|
|
55
|
+
exit: PropTypes.Requireable<boolean>;
|
|
56
|
+
transitionEnterDuration: PropTypes.Validator<number>;
|
|
57
|
+
transitionExitDuration: PropTypes.Validator<number>;
|
|
58
|
+
mountOnEnter: PropTypes.Requireable<boolean>;
|
|
59
|
+
unmountOnExit: PropTypes.Requireable<boolean>;
|
|
60
|
+
animationEnteringStyle: PropTypes.Requireable<object>;
|
|
61
|
+
animationEnteredStyle: PropTypes.Requireable<object>;
|
|
62
|
+
animationExitingStyle: PropTypes.Requireable<object>;
|
|
63
|
+
animationExitedStyle: PropTypes.Requireable<object>;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* @hidden
|
|
67
|
+
*/
|
|
68
|
+
static defaultProps: {
|
|
69
|
+
mountOnEnter: boolean;
|
|
70
|
+
unmountOnExit: boolean;
|
|
71
|
+
onEnter: () => void;
|
|
72
|
+
onEntering: () => void;
|
|
73
|
+
onEntered: () => void;
|
|
74
|
+
onExit: () => void;
|
|
75
|
+
onExiting: () => void;
|
|
76
|
+
onExited: () => void;
|
|
77
|
+
onAfterExited: () => void;
|
|
78
|
+
animationEnteringStyle: {};
|
|
79
|
+
animationEnteredStyle: {};
|
|
80
|
+
animationExitingStyle: {};
|
|
81
|
+
animationExitedStyle: {};
|
|
82
|
+
};
|
|
83
|
+
private elementRef;
|
|
84
|
+
/**
|
|
85
|
+
* The element that is being animated.
|
|
86
|
+
*/
|
|
87
|
+
get element(): HTMLDivElement | null;
|
|
88
|
+
/**
|
|
89
|
+
* @hidden
|
|
90
|
+
*/
|
|
91
|
+
render(): JSX_2.Element;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Represents the props of the child Animation elements.
|
|
96
|
+
*/
|
|
97
|
+
export declare interface AnimationChildProps extends AnimationInterface {
|
|
98
|
+
/**
|
|
99
|
+
* Controlled by `TransitionGroup` if present. Otherwise, sets the state of the enter or exit Animations.
|
|
100
|
+
*/
|
|
101
|
+
in?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* @hidden
|
|
104
|
+
*/
|
|
105
|
+
style?: any;
|
|
106
|
+
/**
|
|
107
|
+
* @hidden
|
|
108
|
+
*/
|
|
109
|
+
className?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Specifies the transition class which will be applied on the appear, enter, and exit transition.
|
|
112
|
+
*/
|
|
113
|
+
transitionName: string;
|
|
114
|
+
/**
|
|
115
|
+
* Specifies the style which will be applied when the Animation reaches its entering state.
|
|
116
|
+
*/
|
|
117
|
+
animationEnteringStyle?: any;
|
|
118
|
+
/**
|
|
119
|
+
* Specifies the style which will be applied when the Animation reaches its entered state.
|
|
120
|
+
*/
|
|
121
|
+
animationEnteredStyle?: any;
|
|
122
|
+
/**
|
|
123
|
+
* Specifies the style which will be applied when the Animation reaches its exiting state.
|
|
124
|
+
*/
|
|
125
|
+
animationExitingStyle?: any;
|
|
126
|
+
/**
|
|
127
|
+
* Specifies the style which will be applied when the Animation reaches its exited state.
|
|
128
|
+
*/
|
|
129
|
+
animationExitedStyle?: any;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/** @hidden */
|
|
133
|
+
declare type AnimationConfig = {
|
|
134
|
+
initial?: React_2.CSSProperties;
|
|
135
|
+
duration?: number;
|
|
136
|
+
appear?: boolean;
|
|
137
|
+
onStart?: any;
|
|
138
|
+
onUpdate?: any;
|
|
139
|
+
onEnd?: any;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* The arguments that are passed to the life-cycle hooks.
|
|
144
|
+
*/
|
|
145
|
+
declare interface AnimationEventArguments {
|
|
146
|
+
/**
|
|
147
|
+
* The element that is currently being animated.
|
|
148
|
+
*/
|
|
149
|
+
animatedElement: HTMLElement;
|
|
150
|
+
/**
|
|
151
|
+
* The AnimationChild component which controls the animation.
|
|
152
|
+
*/
|
|
153
|
+
target: AnimationChild;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Inherited by all Animations. Represents the properties which can be set to an Animation.
|
|
158
|
+
*/
|
|
159
|
+
declare interface AnimationInterface {
|
|
160
|
+
/**
|
|
161
|
+
* @hidden
|
|
162
|
+
*/
|
|
163
|
+
children?: React.ReactNode;
|
|
164
|
+
/**
|
|
165
|
+
* Specifies the CSS class names which are set to each of the animated children elements.
|
|
166
|
+
*/
|
|
167
|
+
componentChildClassName?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Specifies the styles which are set to each of the animated children elements.
|
|
170
|
+
*/
|
|
171
|
+
componentChildStyle?: any;
|
|
172
|
+
/**
|
|
173
|
+
* Called when a component is added to an existing Animation component and the Animation has not started yet ([more information and example]({% slug lifecyclehooks_animation %}#toc-adding-child-elements)).
|
|
174
|
+
*/
|
|
175
|
+
onEnter?: (event: AnimationEventArguments) => void;
|
|
176
|
+
/**
|
|
177
|
+
* Called when a component is added to an existing Animation component and the Animation is now happening ([more information and example]({% slug lifecyclehooks_animation %}#toc-adding-child-elements)).
|
|
178
|
+
*/
|
|
179
|
+
onEntering?: (event: AnimationEventArguments) => void;
|
|
180
|
+
/**
|
|
181
|
+
* Called when a component is added to an existing Animation component and the Animation is now finished ([more information and example]({% slug lifecyclehooks_animation %}#toc-adding-child-elements)).
|
|
182
|
+
*/
|
|
183
|
+
onEntered?: (event: AnimationEventArguments) => void;
|
|
184
|
+
/**
|
|
185
|
+
* An event that is called after the Animation has reached its exit state ([more information and example]({% slug lifecyclehooks_animation %}#toc-removing-child-elements)).
|
|
186
|
+
*/
|
|
187
|
+
onExit?: (event: AnimationEventArguments) => void;
|
|
188
|
+
/**
|
|
189
|
+
* An event that is called after the Animation has reached its exiting state ([more information and example]({% slug lifecyclehooks_animation %}#toc-removing-child-elements)).
|
|
190
|
+
*/
|
|
191
|
+
onExiting?: (event: AnimationEventArguments) => void;
|
|
192
|
+
/**
|
|
193
|
+
* An event that is called after the Animation has reached its exited state ([more information and example]({% slug lifecyclehooks_animation %}#toc-removing-child-elements)).
|
|
194
|
+
*/
|
|
195
|
+
onExited?: (event: AnimationEventArguments) => void;
|
|
196
|
+
/**
|
|
197
|
+
* @hidden
|
|
198
|
+
* This event is always triggered in contrast to `onExited` which TransitionGroup prevents when target element is not removed from DOM.
|
|
199
|
+
*/
|
|
200
|
+
onAfterExited?: (event: AnimationEventArguments) => void;
|
|
201
|
+
/**
|
|
202
|
+
* Defines whether a transition should happen on the first mount. Defaults to `false`.
|
|
203
|
+
*/
|
|
204
|
+
appear?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Specifies whether to animate the entering (showing) element ([see example]({% slug disabledstate_animation %})). Defaults to `true`.
|
|
207
|
+
*/
|
|
208
|
+
enter?: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Specifies whether to animate a leaving (disappearing) element ([see example]({% slug disabledstate_animation %})). Defaults to `true`.
|
|
211
|
+
*/
|
|
212
|
+
exit?: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* Specifies the duration of the transition for the entering (`animation in`) Animation ([see example]({% slug duration_animation %})). After the time runs out, the Animation is terminated. Defaults to `300ms`.
|
|
215
|
+
*/
|
|
216
|
+
transitionEnterDuration?: number;
|
|
217
|
+
/**
|
|
218
|
+
* Specifies the duration of the transition for the exiting (`animation out`) Animation ([see example]({% slug duration_animation %})). After the time runs out, the Animation is terminated. Defaults to `300ms`.
|
|
219
|
+
*/
|
|
220
|
+
transitionExitDuration?: number;
|
|
221
|
+
/**
|
|
222
|
+
* Specifies if the Animation will use lazy-mounting on the first `in={true}`. Defaults to `false`.
|
|
223
|
+
*/
|
|
224
|
+
mountOnEnter?: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* Specifies if the Animation will unmount after it reaches its exited state. Defaults to `false`.
|
|
227
|
+
*/
|
|
228
|
+
unmountOnExit?: boolean;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Represents the props of the [KendoReact Animation component]({% slug overview_animation %}).
|
|
233
|
+
*/
|
|
234
|
+
export declare interface AnimationProps extends AnimationInterface {
|
|
235
|
+
/**
|
|
236
|
+
* When the element reaches its exit state, it is no longer available in the DOM ([see example]({% slug exitingchildcomponents_animation %})).
|
|
237
|
+
*/
|
|
238
|
+
childFactory?: any;
|
|
239
|
+
/**
|
|
240
|
+
* Specifies the name of the CSS class which is set to the Animation.
|
|
241
|
+
*/
|
|
242
|
+
className?: string;
|
|
243
|
+
/**
|
|
244
|
+
* Specifies the node type of the parent Animation. Defaults to `div`.
|
|
245
|
+
*/
|
|
246
|
+
component?: string;
|
|
247
|
+
/**
|
|
248
|
+
* Specifies the id of the Animation.
|
|
249
|
+
*/
|
|
250
|
+
id?: string;
|
|
251
|
+
/**
|
|
252
|
+
* Specifies the style of the parent Animation.
|
|
253
|
+
*/
|
|
254
|
+
style?: any;
|
|
255
|
+
/**
|
|
256
|
+
* Specifies whether the Animation children will stack on top of each other without interfering ([see example]({% slug stacked_animation %})).
|
|
257
|
+
*/
|
|
258
|
+
stackChildren?: boolean;
|
|
259
|
+
/**
|
|
260
|
+
* Specifies the `classNames` which will be applied during the transition ([see example]({% slug customizing_animation %})).
|
|
261
|
+
*/
|
|
262
|
+
transitionName: string;
|
|
263
|
+
/**
|
|
264
|
+
* Specifies the style which will be applied when the Animation reaches its entering state.
|
|
265
|
+
*/
|
|
266
|
+
animationEnteringStyle?: any;
|
|
267
|
+
/**
|
|
268
|
+
* Specifies the style which will be applied when the Animation reaches its entered state.
|
|
269
|
+
*/
|
|
270
|
+
animationEnteredStyle?: any;
|
|
271
|
+
/**
|
|
272
|
+
* Specifies the style which will be applied when the Animation reaches its exiting state.
|
|
273
|
+
*/
|
|
274
|
+
animationExitingStyle?: any;
|
|
275
|
+
/**
|
|
276
|
+
* Specifies the style which will be applied when the Animation reaches its exited state.
|
|
277
|
+
*/
|
|
278
|
+
animationExitedStyle?: any;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export declare class Expand extends React_2.Component<ExpandProps, {}> {
|
|
282
|
+
/**
|
|
283
|
+
* @hidden
|
|
284
|
+
*/
|
|
285
|
+
static propTypes: {
|
|
286
|
+
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
287
|
+
childFactory: PropTypes.Requireable<any>;
|
|
288
|
+
className: PropTypes.Requireable<string>;
|
|
289
|
+
direction: PropTypes.Requireable<string>;
|
|
290
|
+
component: PropTypes.Requireable<string>;
|
|
291
|
+
id: PropTypes.Requireable<string>;
|
|
292
|
+
style: PropTypes.Requireable<any>;
|
|
293
|
+
};
|
|
294
|
+
/**
|
|
295
|
+
* @hidden
|
|
296
|
+
*/
|
|
297
|
+
static defaultProps: {
|
|
298
|
+
appear: boolean;
|
|
299
|
+
enter: boolean;
|
|
300
|
+
exit: boolean;
|
|
301
|
+
transitionEnterDuration: number;
|
|
302
|
+
transitionExitDuration: number;
|
|
303
|
+
direction: string;
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* @hidden
|
|
307
|
+
*/
|
|
308
|
+
render(): JSX_2.Element;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Specifies the direction of the Expand Animation ([see example]({% slug direction_animation %}#toc-expand)).
|
|
313
|
+
*
|
|
314
|
+
* The supported directions are:
|
|
315
|
+
* * (Default) `vertical`—Expands the content from center to top and bottom, and vice-versa.
|
|
316
|
+
* * `horizontal`—Expands the content from center to left and right, and vice-versa.
|
|
317
|
+
*/
|
|
318
|
+
export declare type ExpandDirection = 'horizontal' | 'vertical';
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Represent the props of the [KendoReact Expand Animation component]({% slug animationtypes_animation %}#toc-expand).
|
|
322
|
+
*
|
|
323
|
+
* {% meta %}
|
|
324
|
+
* {% embed_file props/expand/func/main.tsx preview %}
|
|
325
|
+
* {% embed_file props/expand/func/styles.css %}
|
|
326
|
+
* {% endmeta %}
|
|
327
|
+
*
|
|
328
|
+
*/
|
|
329
|
+
export declare interface ExpandProps extends AnimationInterface {
|
|
330
|
+
/**
|
|
331
|
+
* After the element reached its exit state, it is no longer available in the DOM. If a DOM operation is required, access it trough the `childFactory` function.
|
|
332
|
+
*/
|
|
333
|
+
childFactory?: any;
|
|
334
|
+
/**
|
|
335
|
+
* Specifies the CSS class names which are set to the Animation.
|
|
336
|
+
*/
|
|
337
|
+
className?: string;
|
|
338
|
+
/**
|
|
339
|
+
* Specifies the direction of the Expand Animation. Defaults to `vertical`.
|
|
340
|
+
*/
|
|
341
|
+
direction?: ExpandDirection;
|
|
342
|
+
/**
|
|
343
|
+
* Specifies the node type of the parent Animation. Defaults to `div`.
|
|
344
|
+
*/
|
|
345
|
+
component?: string;
|
|
346
|
+
/**
|
|
347
|
+
* Specifies the id of the Animation.
|
|
348
|
+
*/
|
|
349
|
+
id?: string;
|
|
350
|
+
/**
|
|
351
|
+
* Specifies the style of the parent Animation.
|
|
352
|
+
*/
|
|
353
|
+
style?: any;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export declare class Fade extends React_2.Component<FadeProps, {}> {
|
|
357
|
+
/**
|
|
358
|
+
* @hidden
|
|
359
|
+
*/
|
|
360
|
+
static propTypes: {
|
|
361
|
+
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
362
|
+
childFactory: PropTypes.Requireable<any>;
|
|
363
|
+
className: PropTypes.Requireable<string>;
|
|
364
|
+
component: PropTypes.Requireable<string>;
|
|
365
|
+
id: PropTypes.Requireable<string>;
|
|
366
|
+
style: PropTypes.Requireable<any>;
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* @hidden
|
|
370
|
+
*/
|
|
371
|
+
static defaultProps: {
|
|
372
|
+
appear: boolean;
|
|
373
|
+
enter: boolean;
|
|
374
|
+
exit: boolean;
|
|
375
|
+
transitionEnterDuration: number;
|
|
376
|
+
transitionExitDuration: number;
|
|
377
|
+
};
|
|
378
|
+
/**
|
|
379
|
+
* @hidden
|
|
380
|
+
*/
|
|
381
|
+
render(): JSX_2.Element;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Represent the props of the [KendoReact Fade Animation component]({% slug animationtypes_animation %}#toc-fade).
|
|
386
|
+
*
|
|
387
|
+
* {% meta %}
|
|
388
|
+
* {% embed_file props/fade/func/main.tsx preview %}
|
|
389
|
+
* {% embed_file props/fade/func/styles.css %}
|
|
390
|
+
* {% endmeta %}
|
|
391
|
+
*
|
|
392
|
+
*/
|
|
393
|
+
export declare interface FadeProps extends AnimationInterface {
|
|
394
|
+
/**
|
|
395
|
+
* After the element reaches its exit state, it is no longer available in the DOM. If a DOM operation is required, access it trough the `childFactory` function.
|
|
396
|
+
*/
|
|
397
|
+
childFactory?: any;
|
|
398
|
+
/**
|
|
399
|
+
* Specifies CSS class names which are set to the Animation.
|
|
400
|
+
*/
|
|
401
|
+
className?: string;
|
|
402
|
+
/**
|
|
403
|
+
* Specifies the node type of the parent Animation. Defaults to `div`.
|
|
404
|
+
*/
|
|
405
|
+
component?: string;
|
|
406
|
+
/**
|
|
407
|
+
* Specifies the id of the Animation.
|
|
408
|
+
*/
|
|
409
|
+
id?: string;
|
|
410
|
+
/**
|
|
411
|
+
* Specifies the style of the parent Animation.
|
|
412
|
+
*/
|
|
413
|
+
style?: any;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export declare class Push extends React_2.Component<PushProps, {}> {
|
|
417
|
+
/**
|
|
418
|
+
* @hidden
|
|
419
|
+
*/
|
|
420
|
+
static propTypes: {
|
|
421
|
+
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
422
|
+
childFactory: PropTypes.Requireable<any>;
|
|
423
|
+
className: PropTypes.Requireable<string>;
|
|
424
|
+
direction: PropTypes.Requireable<string>;
|
|
425
|
+
component: PropTypes.Requireable<string>;
|
|
426
|
+
id: PropTypes.Requireable<string>;
|
|
427
|
+
style: PropTypes.Requireable<any>;
|
|
428
|
+
stackChildren: PropTypes.Requireable<boolean>;
|
|
429
|
+
};
|
|
430
|
+
/**
|
|
431
|
+
* @hidden
|
|
432
|
+
*/
|
|
433
|
+
static defaultProps: {
|
|
434
|
+
appear: boolean;
|
|
435
|
+
enter: boolean;
|
|
436
|
+
exit: boolean;
|
|
437
|
+
transitionEnterDuration: number;
|
|
438
|
+
transitionExitDuration: number;
|
|
439
|
+
direction: string;
|
|
440
|
+
stackChildren: boolean;
|
|
441
|
+
};
|
|
442
|
+
/**
|
|
443
|
+
* @hidden
|
|
444
|
+
*/
|
|
445
|
+
render(): JSX_2.Element;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Specifies the direction of the Push Animation ([see example]({% slug direction_animation %}#toc-push)).
|
|
450
|
+
*
|
|
451
|
+
* The supported directions are:
|
|
452
|
+
* * (Default) `right`—Pushes the content from left to right.
|
|
453
|
+
* * `up`—Pushes the content from bottom to top.
|
|
454
|
+
* * `down`—Pushes the content from top to bottom.
|
|
455
|
+
* * `left`—Pushes the content from right to left.
|
|
456
|
+
*/
|
|
457
|
+
export declare type PushDirection = 'up' | 'down' | 'left' | 'right';
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Represent the props of the [KendoReact Push Animation component]({% slug animationtypes_animation %}#toc-push).
|
|
461
|
+
*
|
|
462
|
+
* {% meta %}
|
|
463
|
+
* {% embed_file props/push/func/main.tsx preview %}
|
|
464
|
+
* {% embed_file props/push/func/styles.css %}
|
|
465
|
+
* {% endmeta %}
|
|
466
|
+
*
|
|
467
|
+
*/
|
|
468
|
+
export declare interface PushProps extends AnimationInterface {
|
|
469
|
+
/**
|
|
470
|
+
* After the element reaches its exit state, it is no longer available in the DOM. If a DOM operation is required, access it trough the `childFactory` function.
|
|
471
|
+
*/
|
|
472
|
+
childFactory?: any;
|
|
473
|
+
/**
|
|
474
|
+
* Specifies the CSS class names which are set to the Animation.
|
|
475
|
+
*/
|
|
476
|
+
className?: string;
|
|
477
|
+
/**
|
|
478
|
+
* Specifies the direction of the Push Animation. Defaults to `out`.
|
|
479
|
+
*/
|
|
480
|
+
direction?: PushDirection;
|
|
481
|
+
/**
|
|
482
|
+
* Specifies the node type of the parent Animation. Defaults to `div`.
|
|
483
|
+
*/
|
|
484
|
+
component?: string;
|
|
485
|
+
/**
|
|
486
|
+
* Specifies the id of the Animation.
|
|
487
|
+
*/
|
|
488
|
+
id?: string;
|
|
489
|
+
/**
|
|
490
|
+
* Specifies the style of the parent Animation.
|
|
491
|
+
*/
|
|
492
|
+
style?: any;
|
|
493
|
+
/**
|
|
494
|
+
* Specifies whether the child elements will stack on top of each other without interfering ([more information and examples]({% slug stacked_animation %})).
|
|
495
|
+
*/
|
|
496
|
+
stackChildren?: boolean;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
export declare class Reveal extends React_2.Component<RevealProps, RevealState> {
|
|
500
|
+
/**
|
|
501
|
+
* @hidden
|
|
502
|
+
*/
|
|
503
|
+
static propTypes: {
|
|
504
|
+
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
505
|
+
childFactory: PropTypes.Requireable<any>;
|
|
506
|
+
className: PropTypes.Requireable<string>;
|
|
507
|
+
direction: PropTypes.Requireable<string>;
|
|
508
|
+
component: PropTypes.Requireable<string>;
|
|
509
|
+
id: PropTypes.Requireable<string>;
|
|
510
|
+
style: PropTypes.Requireable<any>;
|
|
511
|
+
};
|
|
512
|
+
/**
|
|
513
|
+
* @hidden
|
|
514
|
+
*/
|
|
515
|
+
static defaultProps: {
|
|
516
|
+
appear: boolean;
|
|
517
|
+
enter: boolean;
|
|
518
|
+
exit: boolean;
|
|
519
|
+
transitionEnterDuration: number;
|
|
520
|
+
transitionExitDuration: number;
|
|
521
|
+
direction: string;
|
|
522
|
+
};
|
|
523
|
+
/**
|
|
524
|
+
* @hidden
|
|
525
|
+
*/
|
|
526
|
+
readonly state: RevealState;
|
|
527
|
+
/**
|
|
528
|
+
* @hidden
|
|
529
|
+
*/
|
|
530
|
+
render(): JSX_2.Element;
|
|
531
|
+
private componentWillEnter;
|
|
532
|
+
private componentIsEntering;
|
|
533
|
+
private componentWillExit;
|
|
534
|
+
private updateContainerDimensions;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Specifies the direction of the Reveal Animation ([see example]({% slug direction_animation %}#toc-reveal)).
|
|
539
|
+
*
|
|
540
|
+
* The supported directions are:
|
|
541
|
+
* * (Default) `vertical`—Reveals the height of the content.
|
|
542
|
+
* * `horizontal`—Reveals the width of the content.
|
|
543
|
+
*/
|
|
544
|
+
export declare type RevealDirection = 'horizontal' | 'vertical';
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* Represent the props of the [KendoReact Reveal Animation component]({% slug animationtypes_animation %}#toc-rveal).
|
|
548
|
+
*
|
|
549
|
+
* {% meta %}
|
|
550
|
+
* {% embed_file props/reveal/func/main.tsx preview %}
|
|
551
|
+
* {% embed_file props/reveal/func/styles.css %}
|
|
552
|
+
* {% endmeta %}
|
|
553
|
+
*
|
|
554
|
+
*/
|
|
555
|
+
export declare interface RevealProps extends AnimationInterface {
|
|
556
|
+
/**
|
|
557
|
+
* After the element reaches its exit state, it is no longer available in the DOM. If a DOM operation is required, access it trough the `childFactory` function.
|
|
558
|
+
*/
|
|
559
|
+
childFactory?: any;
|
|
560
|
+
/**
|
|
561
|
+
* Specifies the CSS class names which are set to the Animation.
|
|
562
|
+
*/
|
|
563
|
+
className?: string;
|
|
564
|
+
/**
|
|
565
|
+
* Specifies the direction of the Reveal Animation. Defaults to `vertical`.
|
|
566
|
+
*/
|
|
567
|
+
direction?: RevealDirection;
|
|
568
|
+
/**
|
|
569
|
+
* Specifies the node type of the parent Animation. Defaults to `div`.
|
|
570
|
+
*/
|
|
571
|
+
component?: string;
|
|
572
|
+
/**
|
|
573
|
+
* Specifies the id of the Animation.
|
|
574
|
+
*/
|
|
575
|
+
id?: string;
|
|
576
|
+
/**
|
|
577
|
+
* Specifies the style of the parent Animation.
|
|
578
|
+
*/
|
|
579
|
+
style?: any;
|
|
580
|
+
/**
|
|
581
|
+
* @hidden
|
|
582
|
+
* This is synchronious variant of `onEnter` event.
|
|
583
|
+
*/
|
|
584
|
+
onBeforeEnter?: (event: AnimationEventArguments) => void;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* @hidden
|
|
589
|
+
*/
|
|
590
|
+
declare interface RevealState {
|
|
591
|
+
maxHeight?: number;
|
|
592
|
+
maxWidth?: number;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
export declare class Slide extends React_2.Component<SlideProps, {}> {
|
|
596
|
+
/**
|
|
597
|
+
* @hidden
|
|
598
|
+
*/
|
|
599
|
+
static propTypes: {
|
|
600
|
+
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
601
|
+
childFactory: PropTypes.Requireable<any>;
|
|
602
|
+
className: PropTypes.Requireable<string>;
|
|
603
|
+
direction: PropTypes.Requireable<string>;
|
|
604
|
+
component: PropTypes.Requireable<string>;
|
|
605
|
+
id: PropTypes.Requireable<string>;
|
|
606
|
+
style: PropTypes.Requireable<any>;
|
|
607
|
+
};
|
|
608
|
+
/**
|
|
609
|
+
* @hidden
|
|
610
|
+
*/
|
|
611
|
+
static defaultProps: {
|
|
612
|
+
appear: boolean;
|
|
613
|
+
enter: boolean;
|
|
614
|
+
exit: boolean;
|
|
615
|
+
transitionEnterDuration: number;
|
|
616
|
+
transitionExitDuration: number;
|
|
617
|
+
direction: string;
|
|
618
|
+
};
|
|
619
|
+
/**
|
|
620
|
+
* @hidden
|
|
621
|
+
*/
|
|
622
|
+
render(): JSX_2.Element;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* Specifies the direction of the Slide Animation ([see example]({% slug direction_animation %}#toc-slide)).
|
|
627
|
+
*
|
|
628
|
+
* The supported directions are:
|
|
629
|
+
* * (Default) `down`—On showing, slides the content from top to bottom, and vice-versa.
|
|
630
|
+
* * `up`—On showing, slides the content from bottom to top, and vice-versa.
|
|
631
|
+
* * `left`—On showing, slides the content from right to left, and vice-versa.
|
|
632
|
+
* * `right`—On showing, slides the content from left to right, and vice-versa.
|
|
633
|
+
*/
|
|
634
|
+
export declare type SlideDirection = 'up' | 'down' | 'left' | 'right';
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* Represent the props of the [KendoReact Slide Animation component]({% slug animationtypes_animation %}#toc-slide).
|
|
638
|
+
*
|
|
639
|
+
* {% meta %}
|
|
640
|
+
* {% embed_file props/slide/func/main.tsx preview %}
|
|
641
|
+
* {% embed_file props/slide/func/styles.css %}
|
|
642
|
+
* {% endmeta %}
|
|
643
|
+
*
|
|
644
|
+
*/
|
|
645
|
+
export declare interface SlideProps extends AnimationInterface {
|
|
646
|
+
/**
|
|
647
|
+
* After the element reaches its exit state, it is no longer available in the DOM. If a DOM operation is required, access it trough the `childFactory` function.
|
|
648
|
+
*/
|
|
649
|
+
childFactory?: any;
|
|
650
|
+
/**
|
|
651
|
+
* Specifies the CSS class names which are set to the Animation.
|
|
652
|
+
*/
|
|
653
|
+
className?: string;
|
|
654
|
+
/**
|
|
655
|
+
* Specifies the direction of the Slide Animation. Defaults to `down`.
|
|
656
|
+
*/
|
|
657
|
+
direction?: SlideDirection;
|
|
658
|
+
/**
|
|
659
|
+
* Specifies the node type of the parent Animation. Defaults to `div`.
|
|
660
|
+
*/
|
|
661
|
+
component?: string;
|
|
662
|
+
/**
|
|
663
|
+
* Specifies the id of the Animation.
|
|
664
|
+
*/
|
|
665
|
+
id?: string;
|
|
666
|
+
/**
|
|
667
|
+
* Specifies the style of the parent Animation.
|
|
668
|
+
*/
|
|
669
|
+
style?: any;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/** @hidden */
|
|
673
|
+
export declare const useAnimation: (config: AnimationConfig, deps: any[]) => void;
|
|
674
|
+
|
|
675
|
+
export declare class Zoom extends React_2.Component<ZoomProps, {}> {
|
|
676
|
+
/**
|
|
677
|
+
* @hidden
|
|
678
|
+
*/
|
|
679
|
+
static propTypes: {
|
|
680
|
+
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
681
|
+
childFactory: PropTypes.Requireable<any>;
|
|
682
|
+
className: PropTypes.Requireable<string>;
|
|
683
|
+
direction: PropTypes.Requireable<string>;
|
|
684
|
+
component: PropTypes.Requireable<string>;
|
|
685
|
+
id: PropTypes.Requireable<string>;
|
|
686
|
+
style: PropTypes.Requireable<any>;
|
|
687
|
+
stackChildren: PropTypes.Requireable<boolean>;
|
|
688
|
+
};
|
|
689
|
+
/**
|
|
690
|
+
* @hidden
|
|
691
|
+
*/
|
|
692
|
+
static defaultProps: {
|
|
693
|
+
appear: boolean;
|
|
694
|
+
enter: boolean;
|
|
695
|
+
exit: boolean;
|
|
696
|
+
transitionEnterDuration: number;
|
|
697
|
+
transitionExitDuration: number;
|
|
698
|
+
direction: string;
|
|
699
|
+
stackChildren: boolean;
|
|
700
|
+
};
|
|
701
|
+
/**
|
|
702
|
+
* @hidden
|
|
703
|
+
*/
|
|
704
|
+
render(): JSX_2.Element;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Specifies the direction of the Zoom Animation ([see example]({% slug direction_animation %}#toc-zoom)).
|
|
709
|
+
*
|
|
710
|
+
* The supported directions are:
|
|
711
|
+
* * (Default) `out`—Zooms the content from the outside to the inside.
|
|
712
|
+
* * `in`—Zooms the content from the inside to the outside.
|
|
713
|
+
*/
|
|
714
|
+
export declare type ZoomDirection = 'in' | 'out';
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* Represent the props of the [KendoReact Zoom Animation component]({% slug animationtypes_animation %}#toc-zoom).
|
|
718
|
+
*
|
|
719
|
+
* {% meta %}
|
|
720
|
+
* {% embed_file props/zoom/func/main.tsx preview %}
|
|
721
|
+
* {% embed_file props/zoom/func/styles.css %}
|
|
722
|
+
* {% endmeta %}
|
|
723
|
+
*
|
|
724
|
+
*/
|
|
725
|
+
export declare interface ZoomProps extends AnimationInterface {
|
|
726
|
+
/**
|
|
727
|
+
* After the element reaches its exit state, it is no longer available in the DOM. If a DOM operation is required, access it trough the `childFactory` function.
|
|
728
|
+
*/
|
|
729
|
+
childFactory?: any;
|
|
730
|
+
/**
|
|
731
|
+
* Specifies the CSS class names which are set to the Animation.
|
|
732
|
+
*/
|
|
733
|
+
className?: string;
|
|
734
|
+
/**
|
|
735
|
+
* Specifies the direction of the Zoom Animation. Defaults to `down`.
|
|
736
|
+
*/
|
|
737
|
+
direction?: ZoomDirection;
|
|
738
|
+
/**
|
|
739
|
+
* Specifies the node type of the parent Asnimation. Defaults to `div`.
|
|
740
|
+
*/
|
|
741
|
+
component?: string;
|
|
742
|
+
/**
|
|
743
|
+
* Specifies the id of the Animation.
|
|
744
|
+
*/
|
|
745
|
+
id?: string;
|
|
746
|
+
/**
|
|
747
|
+
* Specifies the style of the parent Animation.
|
|
748
|
+
*/
|
|
749
|
+
style?: any;
|
|
750
|
+
/**
|
|
751
|
+
* Specifies whether the child elements will stack on top of each other without interfering ([more information and examples]({% slug stacked_animation %})).
|
|
752
|
+
*/
|
|
753
|
+
stackChildren?: boolean;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
export { }
|