@progress/kendo-react-animation 9.0.0-develop.2 → 9.0.0-develop.3
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 +1 -1
- package/Animation.mjs +41 -63
- package/AnimationChild.js +1 -1
- package/AnimationChild.mjs +116 -96
- package/Expand.js +1 -1
- package/Expand.mjs +39 -34
- package/Fade.js +1 -1
- package/Fade.mjs +36 -28
- package/Push.js +1 -1
- package/Push.mjs +41 -43
- package/README.md +27 -26
- package/Reveal.js +1 -1
- package/Reveal.mjs +78 -97
- package/Slide.js +1 -1
- package/Slide.mjs +39 -36
- package/Zoom.js +1 -1
- package/Zoom.mjs +41 -41
- package/dist/cdn/js/kendo-react-animation.js +1 -1
- package/hooks/useAnimation.js +1 -1
- package/hooks/useAnimation.mjs +12 -17
- package/index.d.mts +49 -206
- package/index.d.ts +49 -206
- package/package-metadata.mjs +1 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -5,15 +5,14 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
+
import { AnimationsClassStructure } from '@progress/kendo-react-common';
|
|
8
9
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
9
10
|
import PropTypes from 'prop-types';
|
|
10
11
|
import * as React_2 from 'react';
|
|
11
12
|
|
|
12
|
-
declare
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*/
|
|
16
|
-
static propTypes: {
|
|
13
|
+
declare const Animation_2: {
|
|
14
|
+
(props: AnimationProps): JSX_2.Element;
|
|
15
|
+
propTypes: {
|
|
17
16
|
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
18
17
|
childFactory: PropTypes.Requireable<any>;
|
|
19
18
|
className: PropTypes.Requireable<string>;
|
|
@@ -27,68 +26,23 @@ declare class Animation_2 extends React_2.Component<AnimationProps, {}> {
|
|
|
27
26
|
transitionEnterDuration: PropTypes.Validator<number>;
|
|
28
27
|
transitionExitDuration: PropTypes.Validator<number>;
|
|
29
28
|
};
|
|
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
|
-
}
|
|
29
|
+
};
|
|
42
30
|
export { Animation_2 as Animation }
|
|
43
31
|
|
|
44
|
-
export declare
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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;
|
|
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 {
|
|
84
38
|
/**
|
|
85
|
-
*
|
|
39
|
+
* Gets the element.
|
|
86
40
|
*/
|
|
87
|
-
|
|
41
|
+
element: HTMLDivElement | null;
|
|
88
42
|
/**
|
|
89
|
-
*
|
|
43
|
+
* Gets the props.
|
|
90
44
|
*/
|
|
91
|
-
|
|
45
|
+
props: AnimationChildProps;
|
|
92
46
|
}
|
|
93
47
|
|
|
94
48
|
/**
|
|
@@ -127,6 +81,10 @@ export declare interface AnimationChildProps extends AnimationInterface {
|
|
|
127
81
|
* Specifies the style which will be applied when the Animation reaches its exited state.
|
|
128
82
|
*/
|
|
129
83
|
animationExitedStyle?: any;
|
|
84
|
+
/**
|
|
85
|
+
* The unstyled option classes.
|
|
86
|
+
*/
|
|
87
|
+
unstyled?: AnimationsClassStructure;
|
|
130
88
|
}
|
|
131
89
|
|
|
132
90
|
/** @hidden */
|
|
@@ -150,7 +108,7 @@ declare interface AnimationEventArguments {
|
|
|
150
108
|
/**
|
|
151
109
|
* The AnimationChild component which controls the animation.
|
|
152
110
|
*/
|
|
153
|
-
target:
|
|
111
|
+
target: AnimationChildHandle;
|
|
154
112
|
}
|
|
155
113
|
|
|
156
114
|
/**
|
|
@@ -276,13 +234,15 @@ export declare interface AnimationProps extends AnimationInterface {
|
|
|
276
234
|
* Specifies the style which will be applied when the Animation reaches its exited state.
|
|
277
235
|
*/
|
|
278
236
|
animationExitedStyle?: any;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
export declare class Expand extends React_2.Component<ExpandProps, {}> {
|
|
282
237
|
/**
|
|
283
|
-
*
|
|
238
|
+
* The unstyled option classes.
|
|
284
239
|
*/
|
|
285
|
-
|
|
240
|
+
unstyled?: AnimationsClassStructure;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export declare const Expand: {
|
|
244
|
+
(props: ExpandProps): JSX_2.Element;
|
|
245
|
+
propTypes: {
|
|
286
246
|
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
287
247
|
childFactory: PropTypes.Requireable<any>;
|
|
288
248
|
className: PropTypes.Requireable<string>;
|
|
@@ -291,22 +251,7 @@ export declare class Expand extends React_2.Component<ExpandProps, {}> {
|
|
|
291
251
|
id: PropTypes.Requireable<string>;
|
|
292
252
|
style: PropTypes.Requireable<any>;
|
|
293
253
|
};
|
|
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
|
-
}
|
|
254
|
+
};
|
|
310
255
|
|
|
311
256
|
/**
|
|
312
257
|
* Specifies the direction of the Expand Animation ([see example]({% slug direction_animation %}#toc-expand)).
|
|
@@ -354,11 +299,9 @@ export declare interface ExpandProps extends AnimationInterface {
|
|
|
354
299
|
style?: any;
|
|
355
300
|
}
|
|
356
301
|
|
|
357
|
-
export declare
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
*/
|
|
361
|
-
static propTypes: {
|
|
302
|
+
export declare const Fade: {
|
|
303
|
+
(props: FadeProps): JSX_2.Element;
|
|
304
|
+
propTypes: {
|
|
362
305
|
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
363
306
|
childFactory: PropTypes.Requireable<any>;
|
|
364
307
|
className: PropTypes.Requireable<string>;
|
|
@@ -366,21 +309,7 @@ export declare class Fade extends React_2.Component<FadeProps, {}> {
|
|
|
366
309
|
id: PropTypes.Requireable<string>;
|
|
367
310
|
style: PropTypes.Requireable<any>;
|
|
368
311
|
};
|
|
369
|
-
|
|
370
|
-
* @hidden
|
|
371
|
-
*/
|
|
372
|
-
static defaultProps: {
|
|
373
|
-
appear: boolean;
|
|
374
|
-
enter: boolean;
|
|
375
|
-
exit: boolean;
|
|
376
|
-
transitionEnterDuration: number;
|
|
377
|
-
transitionExitDuration: number;
|
|
378
|
-
};
|
|
379
|
-
/**
|
|
380
|
-
* @hidden
|
|
381
|
-
*/
|
|
382
|
-
render(): JSX_2.Element;
|
|
383
|
-
}
|
|
312
|
+
};
|
|
384
313
|
|
|
385
314
|
/**
|
|
386
315
|
* Represent the props of the [KendoReact Fade Animation component]({% slug animationtypes_animation %}#toc-fade).
|
|
@@ -415,11 +344,9 @@ export declare interface FadeProps extends AnimationInterface {
|
|
|
415
344
|
style?: any;
|
|
416
345
|
}
|
|
417
346
|
|
|
418
|
-
export declare
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
*/
|
|
422
|
-
static propTypes: {
|
|
347
|
+
export declare const Push: {
|
|
348
|
+
(props: PushProps): JSX_2.Element;
|
|
349
|
+
propTypes: {
|
|
423
350
|
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
424
351
|
childFactory: PropTypes.Requireable<any>;
|
|
425
352
|
className: PropTypes.Requireable<string>;
|
|
@@ -429,23 +356,7 @@ export declare class Push extends React_2.Component<PushProps, {}> {
|
|
|
429
356
|
style: PropTypes.Requireable<any>;
|
|
430
357
|
stackChildren: PropTypes.Requireable<boolean>;
|
|
431
358
|
};
|
|
432
|
-
|
|
433
|
-
* @hidden
|
|
434
|
-
*/
|
|
435
|
-
static defaultProps: {
|
|
436
|
-
appear: boolean;
|
|
437
|
-
enter: boolean;
|
|
438
|
-
exit: boolean;
|
|
439
|
-
transitionEnterDuration: number;
|
|
440
|
-
transitionExitDuration: number;
|
|
441
|
-
direction: string;
|
|
442
|
-
stackChildren: boolean;
|
|
443
|
-
};
|
|
444
|
-
/**
|
|
445
|
-
* @hidden
|
|
446
|
-
*/
|
|
447
|
-
render(): JSX_2.Element;
|
|
448
|
-
}
|
|
359
|
+
};
|
|
449
360
|
|
|
450
361
|
/**
|
|
451
362
|
* Specifies the direction of the Push Animation ([see example]({% slug direction_animation %}#toc-push)).
|
|
@@ -499,11 +410,9 @@ export declare interface PushProps extends AnimationInterface {
|
|
|
499
410
|
stackChildren?: boolean;
|
|
500
411
|
}
|
|
501
412
|
|
|
502
|
-
export declare
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
*/
|
|
506
|
-
static propTypes: {
|
|
413
|
+
export declare const Reveal: {
|
|
414
|
+
(props: RevealProps): JSX_2.Element;
|
|
415
|
+
propTypes: {
|
|
507
416
|
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
508
417
|
childFactory: PropTypes.Requireable<any>;
|
|
509
418
|
className: PropTypes.Requireable<string>;
|
|
@@ -512,30 +421,7 @@ export declare class Reveal extends React_2.Component<RevealProps, RevealState>
|
|
|
512
421
|
id: PropTypes.Requireable<string>;
|
|
513
422
|
style: PropTypes.Requireable<any>;
|
|
514
423
|
};
|
|
515
|
-
|
|
516
|
-
* @hidden
|
|
517
|
-
*/
|
|
518
|
-
static defaultProps: {
|
|
519
|
-
appear: boolean;
|
|
520
|
-
enter: boolean;
|
|
521
|
-
exit: boolean;
|
|
522
|
-
transitionEnterDuration: number;
|
|
523
|
-
transitionExitDuration: number;
|
|
524
|
-
direction: string;
|
|
525
|
-
};
|
|
526
|
-
/**
|
|
527
|
-
* @hidden
|
|
528
|
-
*/
|
|
529
|
-
readonly state: RevealState;
|
|
530
|
-
/**
|
|
531
|
-
* @hidden
|
|
532
|
-
*/
|
|
533
|
-
render(): JSX_2.Element;
|
|
534
|
-
private componentWillEnter;
|
|
535
|
-
private componentIsEntering;
|
|
536
|
-
private componentWillExit;
|
|
537
|
-
private updateContainerDimensions;
|
|
538
|
-
}
|
|
424
|
+
};
|
|
539
425
|
|
|
540
426
|
/**
|
|
541
427
|
* Specifies the direction of the Reveal Animation ([see example]({% slug direction_animation %}#toc-reveal)).
|
|
@@ -588,19 +474,9 @@ export declare interface RevealProps extends AnimationInterface {
|
|
|
588
474
|
onBeforeEnter?: (event: AnimationEventArguments) => void;
|
|
589
475
|
}
|
|
590
476
|
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
declare interface RevealState {
|
|
595
|
-
maxHeight?: number;
|
|
596
|
-
maxWidth?: number;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
export declare class Slide extends React_2.Component<SlideProps, {}> {
|
|
600
|
-
/**
|
|
601
|
-
* @hidden
|
|
602
|
-
*/
|
|
603
|
-
static propTypes: {
|
|
477
|
+
export declare const Slide: {
|
|
478
|
+
(props: SlideProps): JSX_2.Element;
|
|
479
|
+
propTypes: {
|
|
604
480
|
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
605
481
|
childFactory: PropTypes.Requireable<any>;
|
|
606
482
|
className: PropTypes.Requireable<string>;
|
|
@@ -609,22 +485,7 @@ export declare class Slide extends React_2.Component<SlideProps, {}> {
|
|
|
609
485
|
id: PropTypes.Requireable<string>;
|
|
610
486
|
style: PropTypes.Requireable<any>;
|
|
611
487
|
};
|
|
612
|
-
|
|
613
|
-
* @hidden
|
|
614
|
-
*/
|
|
615
|
-
static defaultProps: {
|
|
616
|
-
appear: boolean;
|
|
617
|
-
enter: boolean;
|
|
618
|
-
exit: boolean;
|
|
619
|
-
transitionEnterDuration: number;
|
|
620
|
-
transitionExitDuration: number;
|
|
621
|
-
direction: string;
|
|
622
|
-
};
|
|
623
|
-
/**
|
|
624
|
-
* @hidden
|
|
625
|
-
*/
|
|
626
|
-
render(): JSX_2.Element;
|
|
627
|
-
}
|
|
488
|
+
};
|
|
628
489
|
|
|
629
490
|
/**
|
|
630
491
|
* Specifies the direction of the Slide Animation ([see example]({% slug direction_animation %}#toc-slide)).
|
|
@@ -677,11 +538,9 @@ export declare interface SlideProps extends AnimationInterface {
|
|
|
677
538
|
/** @hidden */
|
|
678
539
|
export declare const useAnimation: (config: AnimationConfig, deps: any[]) => void;
|
|
679
540
|
|
|
680
|
-
export declare
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
*/
|
|
684
|
-
static propTypes: {
|
|
541
|
+
export declare const Zoom: {
|
|
542
|
+
(props: ZoomProps): JSX_2.Element;
|
|
543
|
+
propTypes: {
|
|
685
544
|
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
686
545
|
childFactory: PropTypes.Requireable<any>;
|
|
687
546
|
className: PropTypes.Requireable<string>;
|
|
@@ -691,23 +550,7 @@ export declare class Zoom extends React_2.Component<ZoomProps, {}> {
|
|
|
691
550
|
style: PropTypes.Requireable<any>;
|
|
692
551
|
stackChildren: PropTypes.Requireable<boolean>;
|
|
693
552
|
};
|
|
694
|
-
|
|
695
|
-
* @hidden
|
|
696
|
-
*/
|
|
697
|
-
static defaultProps: {
|
|
698
|
-
appear: boolean;
|
|
699
|
-
enter: boolean;
|
|
700
|
-
exit: boolean;
|
|
701
|
-
transitionEnterDuration: number;
|
|
702
|
-
transitionExitDuration: number;
|
|
703
|
-
direction: string;
|
|
704
|
-
stackChildren: boolean;
|
|
705
|
-
};
|
|
706
|
-
/**
|
|
707
|
-
* @hidden
|
|
708
|
-
*/
|
|
709
|
-
render(): JSX_2.Element;
|
|
710
|
-
}
|
|
553
|
+
};
|
|
711
554
|
|
|
712
555
|
/**
|
|
713
556
|
* Specifies the direction of the Zoom Animation ([see example]({% slug direction_animation %}#toc-zoom)).
|
|
@@ -742,7 +585,7 @@ export declare interface ZoomProps extends AnimationInterface {
|
|
|
742
585
|
*/
|
|
743
586
|
direction?: ZoomDirection;
|
|
744
587
|
/**
|
|
745
|
-
* Specifies the node type of the parent
|
|
588
|
+
* Specifies the node type of the parent Animation. Defaults to `div`.
|
|
746
589
|
*/
|
|
747
590
|
component?: string;
|
|
748
591
|
/**
|
package/package-metadata.mjs
CHANGED
|
@@ -10,7 +10,7 @@ const e = {
|
|
|
10
10
|
name: "@progress/kendo-react-animation",
|
|
11
11
|
productName: "KendoReact",
|
|
12
12
|
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
13
|
-
publishDate:
|
|
13
|
+
publishDate: 1729494476,
|
|
14
14
|
version: "",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-animation",
|
|
3
|
-
"version": "9.0.0-develop.
|
|
3
|
+
"version": "9.0.0-develop.3",
|
|
4
4
|
"description": "React Animation component assists with animating HTML elements. KendoReact Animation package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@progress/kendo-licensing": "^1.3.4",
|
|
26
|
-
"@progress/kendo-react-common": "9.0.0-develop.
|
|
26
|
+
"@progress/kendo-react-common": "9.0.0-develop.3",
|
|
27
27
|
"@progress/kendo-svg-icons": "^3.0.0",
|
|
28
28
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
29
29
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0",
|