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