react-awesome-reveal 3.7.2 → 4.0.0-beta.1

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.
Files changed (128) hide show
  1. package/README.md +3 -3
  2. package/dist/main.js +2141 -0
  3. package/dist/main.js.map +1 -0
  4. package/dist/module.js +2133 -0
  5. package/dist/module.js.map +1 -0
  6. package/dist/types.d.ts +185 -0
  7. package/dist/types.d.ts.map +1 -0
  8. package/package.json +42 -61
  9. package/dist/Reveal.d.ts +0 -70
  10. package/dist/animations/attention_seekers/bounce.d.ts +0 -5
  11. package/dist/animations/attention_seekers/flash.d.ts +0 -5
  12. package/dist/animations/attention_seekers/headShake.d.ts +0 -5
  13. package/dist/animations/attention_seekers/heartBeat.d.ts +0 -5
  14. package/dist/animations/attention_seekers/index.d.ts +0 -13
  15. package/dist/animations/attention_seekers/jello.d.ts +0 -5
  16. package/dist/animations/attention_seekers/pulse.d.ts +0 -5
  17. package/dist/animations/attention_seekers/rubberBand.d.ts +0 -5
  18. package/dist/animations/attention_seekers/shake.d.ts +0 -5
  19. package/dist/animations/attention_seekers/shakeX.d.ts +0 -5
  20. package/dist/animations/attention_seekers/shakeY.d.ts +0 -5
  21. package/dist/animations/attention_seekers/swing.d.ts +0 -5
  22. package/dist/animations/attention_seekers/tada.d.ts +0 -5
  23. package/dist/animations/attention_seekers/wobble.d.ts +0 -5
  24. package/dist/animations/bouncing_entrances/bounceIn.d.ts +0 -5
  25. package/dist/animations/bouncing_entrances/bounceInDown.d.ts +0 -5
  26. package/dist/animations/bouncing_entrances/bounceInLeft.d.ts +0 -5
  27. package/dist/animations/bouncing_entrances/bounceInRight.d.ts +0 -5
  28. package/dist/animations/bouncing_entrances/bounceInUp.d.ts +0 -5
  29. package/dist/animations/bouncing_entrances/index.d.ts +0 -5
  30. package/dist/animations/bouncing_exits/bounceOut.d.ts +0 -5
  31. package/dist/animations/bouncing_exits/bounceOutDown.d.ts +0 -5
  32. package/dist/animations/bouncing_exits/bounceOutLeft.d.ts +0 -5
  33. package/dist/animations/bouncing_exits/bounceOutRight.d.ts +0 -5
  34. package/dist/animations/bouncing_exits/bounceOutUp.d.ts +0 -5
  35. package/dist/animations/bouncing_exits/index.d.ts +0 -5
  36. package/dist/animations/fading_entrances/fadeIn.d.ts +0 -5
  37. package/dist/animations/fading_entrances/fadeInBottomLeft.d.ts +0 -5
  38. package/dist/animations/fading_entrances/fadeInBottomRight.d.ts +0 -5
  39. package/dist/animations/fading_entrances/fadeInDown.d.ts +0 -5
  40. package/dist/animations/fading_entrances/fadeInDownBig.d.ts +0 -5
  41. package/dist/animations/fading_entrances/fadeInLeft.d.ts +0 -5
  42. package/dist/animations/fading_entrances/fadeInLeftBig.d.ts +0 -5
  43. package/dist/animations/fading_entrances/fadeInRight.d.ts +0 -5
  44. package/dist/animations/fading_entrances/fadeInRightBig.d.ts +0 -5
  45. package/dist/animations/fading_entrances/fadeInTopLeft.d.ts +0 -5
  46. package/dist/animations/fading_entrances/fadeInTopRight.d.ts +0 -5
  47. package/dist/animations/fading_entrances/fadeInUp.d.ts +0 -5
  48. package/dist/animations/fading_entrances/fadeInUpBig.d.ts +0 -5
  49. package/dist/animations/fading_entrances/index.d.ts +0 -13
  50. package/dist/animations/fading_exits/fadeOut.d.ts +0 -5
  51. package/dist/animations/fading_exits/fadeOutBottomLeft.d.ts +0 -5
  52. package/dist/animations/fading_exits/fadeOutBottomRight.d.ts +0 -5
  53. package/dist/animations/fading_exits/fadeOutDown.d.ts +0 -5
  54. package/dist/animations/fading_exits/fadeOutDownBig.d.ts +0 -5
  55. package/dist/animations/fading_exits/fadeOutLeft.d.ts +0 -5
  56. package/dist/animations/fading_exits/fadeOutLeftBig.d.ts +0 -5
  57. package/dist/animations/fading_exits/fadeOutRight.d.ts +0 -5
  58. package/dist/animations/fading_exits/fadeOutRightBig.d.ts +0 -5
  59. package/dist/animations/fading_exits/fadeOutTopLeft.d.ts +0 -5
  60. package/dist/animations/fading_exits/fadeOutTopRight.d.ts +0 -5
  61. package/dist/animations/fading_exits/fadeOutUp.d.ts +0 -5
  62. package/dist/animations/fading_exits/fadeOutUpBig.d.ts +0 -5
  63. package/dist/animations/fading_exits/index.d.ts +0 -13
  64. package/dist/animations/flippers/flip.d.ts +0 -5
  65. package/dist/animations/flippers/flipInX.d.ts +0 -5
  66. package/dist/animations/flippers/flipInY.d.ts +0 -5
  67. package/dist/animations/flippers/flipOutX.d.ts +0 -5
  68. package/dist/animations/flippers/flipOutY.d.ts +0 -5
  69. package/dist/animations/flippers/index.d.ts +0 -5
  70. package/dist/animations/rotating_entrances/index.d.ts +0 -5
  71. package/dist/animations/rotating_entrances/rotateIn.d.ts +0 -5
  72. package/dist/animations/rotating_entrances/rotateInDownLeft.d.ts +0 -5
  73. package/dist/animations/rotating_entrances/rotateInDownRight.d.ts +0 -5
  74. package/dist/animations/rotating_entrances/rotateInUpLeft.d.ts +0 -5
  75. package/dist/animations/rotating_entrances/rotateInUpRight.d.ts +0 -5
  76. package/dist/animations/rotating_exits/index.d.ts +0 -5
  77. package/dist/animations/rotating_exits/rotateOut.d.ts +0 -5
  78. package/dist/animations/rotating_exits/rotateOutDownLeft.d.ts +0 -5
  79. package/dist/animations/rotating_exits/rotateOutDownRight.d.ts +0 -5
  80. package/dist/animations/rotating_exits/rotateOutUpLeft.d.ts +0 -5
  81. package/dist/animations/rotating_exits/rotateOutUpRight.d.ts +0 -5
  82. package/dist/animations/sliding_entrances/index.d.ts +0 -4
  83. package/dist/animations/sliding_entrances/slideInDown.d.ts +0 -5
  84. package/dist/animations/sliding_entrances/slideInLeft.d.ts +0 -5
  85. package/dist/animations/sliding_entrances/slideInRight.d.ts +0 -5
  86. package/dist/animations/sliding_entrances/slideInUp.d.ts +0 -5
  87. package/dist/animations/sliding_exits/index.d.ts +0 -4
  88. package/dist/animations/sliding_exits/slideOutDown.d.ts +0 -5
  89. package/dist/animations/sliding_exits/slideOutLeft.d.ts +0 -5
  90. package/dist/animations/sliding_exits/slideOutRight.d.ts +0 -5
  91. package/dist/animations/sliding_exits/slideOutUp.d.ts +0 -5
  92. package/dist/animations/specials/hinge.d.ts +0 -5
  93. package/dist/animations/specials/index.d.ts +0 -4
  94. package/dist/animations/specials/jackInTheBox.d.ts +0 -5
  95. package/dist/animations/specials/rollIn.d.ts +0 -5
  96. package/dist/animations/specials/rollOut.d.ts +0 -5
  97. package/dist/animations/zooming_entrances/index.d.ts +0 -5
  98. package/dist/animations/zooming_entrances/zoomIn.d.ts +0 -5
  99. package/dist/animations/zooming_entrances/zoomInDown.d.ts +0 -5
  100. package/dist/animations/zooming_entrances/zoomInLeft.d.ts +0 -5
  101. package/dist/animations/zooming_entrances/zoomInRight.d.ts +0 -5
  102. package/dist/animations/zooming_entrances/zoomInUp.d.ts +0 -5
  103. package/dist/animations/zooming_exits/index.d.ts +0 -5
  104. package/dist/animations/zooming_exits/zoomOut.d.ts +0 -5
  105. package/dist/animations/zooming_exits/zoomOutDown.d.ts +0 -5
  106. package/dist/animations/zooming_exits/zoomOutLeft.d.ts +0 -5
  107. package/dist/animations/zooming_exits/zoomOutRight.d.ts +0 -5
  108. package/dist/animations/zooming_exits/zoomOutUp.d.ts +0 -5
  109. package/dist/components/AttentionSeeker.d.ts +0 -12
  110. package/dist/components/Bounce.d.ts +0 -17
  111. package/dist/components/Fade.d.ts +0 -22
  112. package/dist/components/Flip.d.ts +0 -17
  113. package/dist/components/Hinge.d.ts +0 -5
  114. package/dist/components/JackInTheBox.d.ts +0 -5
  115. package/dist/components/Roll.d.ts +0 -11
  116. package/dist/components/Rotate.d.ts +0 -17
  117. package/dist/components/Slide.d.ts +0 -17
  118. package/dist/components/Zoom.d.ts +0 -17
  119. package/dist/index.d.ts +0 -12
  120. package/dist/index.js +0 -8
  121. package/dist/react-awesome-reveal.cjs.development.js +0 -1202
  122. package/dist/react-awesome-reveal.cjs.development.js.map +0 -1
  123. package/dist/react-awesome-reveal.cjs.production.min.js +0 -2
  124. package/dist/react-awesome-reveal.cjs.production.min.js.map +0 -1
  125. package/dist/react-awesome-reveal.esm.js +0 -1189
  126. package/dist/react-awesome-reveal.esm.js.map +0 -1
  127. package/dist/utils/animations.d.ts +0 -7
  128. package/dist/utils/js-types.d.ts +0 -2
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/sliding_entrances/slideInDown.css}
3
- */
4
- declare const slideInDown: import("@emotion/serialize").Keyframes;
5
- export default slideInDown;
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/sliding_entrances/slideInLeft.css}
3
- */
4
- declare const slideInLeft: import("@emotion/serialize").Keyframes;
5
- export default slideInLeft;
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/sliding_entrances/slideInRight.css}
3
- */
4
- declare const slideInRight: import("@emotion/serialize").Keyframes;
5
- export default slideInRight;
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/sliding_entrances/slideInUp.css}
3
- */
4
- declare const slideInUp: import("@emotion/serialize").Keyframes;
5
- export default slideInUp;
@@ -1,4 +0,0 @@
1
- export { default as slideOutDown } from "./slideOutDown";
2
- export { default as slideOutLeft } from "./slideOutLeft";
3
- export { default as slideOutRight } from "./slideOutRight";
4
- export { default as slideOutUp } from "./slideOutUp";
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/sliding_exits/slideOutDown.css}
3
- */
4
- declare const slideOutDown: import("@emotion/serialize").Keyframes;
5
- export default slideOutDown;
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/sliding_exits/slideOutLeft.css}
3
- */
4
- declare const slideOutLeft: import("@emotion/serialize").Keyframes;
5
- export default slideOutLeft;
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/sliding_exits/slideOutRight.css}
3
- */
4
- declare const slideOutRight: import("@emotion/serialize").Keyframes;
5
- export default slideOutRight;
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/sliding_exits/slideOutUp.css}
3
- */
4
- declare const slideOutUp: import("@emotion/serialize").Keyframes;
5
- export default slideOutUp;
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/specials/hinge.css}
3
- */
4
- declare const hinge: import("@emotion/serialize").Keyframes;
5
- export default hinge;
@@ -1,4 +0,0 @@
1
- export { default as hinge } from "./hinge";
2
- export { default as jackInTheBox } from "./jackInTheBox";
3
- export { default as rollIn } from "./rollIn";
4
- export { default as rollOut } from "./rollOut";
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/specials/jackInTheBox.css}
3
- */
4
- declare const jackInTheBox: import("@emotion/serialize").Keyframes;
5
- export default jackInTheBox;
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/specials/rollIn.css}
3
- */
4
- declare const rollIn: import("@emotion/serialize").Keyframes;
5
- export default rollIn;
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/specials/rollOut.css}
3
- */
4
- declare const rollOut: import("@emotion/serialize").Keyframes;
5
- export default rollOut;
@@ -1,5 +0,0 @@
1
- export { default as zoomIn } from "./zoomIn";
2
- export { default as zoomInDown } from "./zoomInDown";
3
- export { default as zoomInLeft } from "./zoomInLeft";
4
- export { default as zoomInRight } from "./zoomInRight";
5
- export { default as zoomInUp } from "./zoomInUp";
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/zooming_entrances/zoomIn.css}
3
- */
4
- declare const zoomIn: import("@emotion/serialize").Keyframes;
5
- export default zoomIn;
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/zooming_entrances/zoomInDown.css}
3
- */
4
- declare const zoomInDown: import("@emotion/serialize").Keyframes;
5
- export default zoomInDown;
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/zooming_entrances/zoomInLeft.css}
3
- */
4
- declare const zoomInLeft: import("@emotion/serialize").Keyframes;
5
- export default zoomInLeft;
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/zooming_entrances/zoomInRight.css}
3
- */
4
- declare const zoomInRight: import("@emotion/serialize").Keyframes;
5
- export default zoomInRight;
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/zooming_entrances/zoomInUp.css}
3
- */
4
- declare const zoomInUp: import("@emotion/serialize").Keyframes;
5
- export default zoomInUp;
@@ -1,5 +0,0 @@
1
- export { default as zoomOut } from "./zoomOut";
2
- export { default as zoomOutDown } from "./zoomOutDown";
3
- export { default as zoomOutLeft } from "./zoomOutLeft";
4
- export { default as zoomOutRight } from "./zoomOutRight";
5
- export { default as zoomOutUp } from "./zoomOutUp";
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/zooming_exits/zoomOut.css}
3
- */
4
- declare const zoomOut: import("@emotion/serialize").Keyframes;
5
- export default zoomOut;
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/zooming_exits/zoomOutDown.css}
3
- */
4
- declare const zoomOutDown: import("@emotion/serialize").Keyframes;
5
- export default zoomOutDown;
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/zooming_exits/zoomOutLeft.css}
3
- */
4
- declare const zoomOutLeft: import("@emotion/serialize").Keyframes;
5
- export default zoomOutLeft;
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/zooming_exits/zoomOutRight.css}
3
- */
4
- declare const zoomOutRight: import("@emotion/serialize").Keyframes;
5
- export default zoomOutRight;
@@ -1,5 +0,0 @@
1
- /**
2
- * @see {@link https://github.com/animate-css/animate.css/blob/master/source/zooming_exits/zoomOutUp.css}
3
- */
4
- declare const zoomOutUp: import("@emotion/serialize").Keyframes;
5
- export default zoomOutUp;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { RevealProps } from "../Reveal";
3
- declare type AttentionSeekerEffect = "bounce" | "flash" | "headShake" | "heartBeat" | "jello" | "pulse" | "rubberBand" | "shake" | "shakeX" | "shakeY" | "swing" | "tada" | "wobble";
4
- interface AttentionSeekerProps extends Omit<RevealProps, "keyframes" | "css"> {
5
- /**
6
- * The animation effect to use for this attention seeker.
7
- * @default "bounce"
8
- */
9
- effect?: AttentionSeekerEffect;
10
- }
11
- declare const AttentionSeeker: React.FC<AttentionSeekerProps>;
12
- export default AttentionSeeker;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import { RevealProps } from "../Reveal";
3
- declare type BounceDirection = "down" | "left" | "right" | "up";
4
- interface BounceProps extends Omit<RevealProps, "keyframes" | "css"> {
5
- /**
6
- * Origin of the animation.
7
- * @default undefined
8
- */
9
- direction?: BounceDirection;
10
- /**
11
- * Specifies if the animation should make element(s) disappear.
12
- * @default false
13
- */
14
- reverse?: boolean;
15
- }
16
- declare const Bounce: React.FC<BounceProps>;
17
- export default Bounce;
@@ -1,22 +0,0 @@
1
- /// <reference types="react" />
2
- import { RevealProps } from "../Reveal";
3
- declare type FadeDirection = "bottom-left" | "bottom-right" | "down" | "left" | "right" | "top-left" | "top-right" | "up";
4
- interface FadeProps extends Omit<RevealProps, "keyframes" | "css"> {
5
- /**
6
- * Causes the animation to start farther. Only works with "down", "left", "right" and "up" directions.
7
- * @default false
8
- */
9
- big?: boolean;
10
- /**
11
- * Origin of the animation.
12
- * @default undefined
13
- */
14
- direction?: FadeDirection;
15
- /**
16
- * Specifies if the animation should make element(s) disappear.
17
- * @default false
18
- */
19
- reverse?: boolean;
20
- }
21
- declare const Fade: React.FC<FadeProps>;
22
- export default Fade;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import { RevealProps } from "../Reveal";
3
- declare type FlipDirection = "horizontal" | "vertical";
4
- interface FlipProps extends Omit<RevealProps, "keyframes" | "css"> {
5
- /**
6
- * Axis direction of the animation.
7
- * @default undefined
8
- */
9
- direction?: FlipDirection;
10
- /**
11
- * Specifies if the animation should make element(s) disappear. It only has effect if a direction is specified.
12
- * @default false
13
- */
14
- reverse?: boolean;
15
- }
16
- declare const Flip: React.FC<FlipProps>;
17
- export default Flip;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { RevealProps } from "../Reveal";
3
- declare type HingeProps = Omit<RevealProps, "keyframes" | "css">;
4
- declare const Hinge: React.FC<HingeProps>;
5
- export default Hinge;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { RevealProps } from "../Reveal";
3
- declare type JackInTheBoxProps = Omit<RevealProps, "keyframes" | "css">;
4
- declare const JackInTheBox: React.FC<JackInTheBoxProps>;
5
- export default JackInTheBox;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { RevealProps } from "../Reveal";
3
- interface RollProps extends Omit<RevealProps, "keyframes" | "css"> {
4
- /**
5
- * Specifies if the animation should make element(s) disappear.
6
- * @default false
7
- */
8
- reverse?: boolean;
9
- }
10
- declare const Roll: React.FC<RollProps>;
11
- export default Roll;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import { RevealProps } from "../Reveal";
3
- declare type RotateDirection = "bottom-left" | "bottom-right" | "top-left" | "top-right";
4
- interface RotateProps extends Omit<RevealProps, "keyframes" | "css"> {
5
- /**
6
- * Origin of the animation.
7
- * @default undefined
8
- */
9
- direction?: RotateDirection;
10
- /**
11
- * Specifies if the animation should make element(s) disappear.
12
- * @default false
13
- */
14
- reverse?: boolean;
15
- }
16
- declare const Rotate: React.FC<RotateProps>;
17
- export default Rotate;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import { RevealProps } from "../Reveal";
3
- declare type SlideDirection = "down" | "left" | "right" | "up";
4
- interface SlideProps extends Omit<RevealProps, "keyframes" | "css"> {
5
- /**
6
- * Origin of the animation.
7
- * @default undefined
8
- */
9
- direction?: SlideDirection;
10
- /**
11
- * Specifies if the animation should make element(s) disappear.
12
- * @default false
13
- */
14
- reverse?: boolean;
15
- }
16
- declare const Slide: React.FC<SlideProps>;
17
- export default Slide;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import { RevealProps } from "../Reveal";
3
- declare type ZoomDirection = "down" | "left" | "right" | "up";
4
- interface ZoomProps extends Omit<RevealProps, "keyframes" | "css"> {
5
- /**
6
- * Origin of the animation.
7
- * @default undefined
8
- */
9
- direction?: ZoomDirection;
10
- /**
11
- * Specifies if the animation should make element(s) disappear.
12
- * @default false
13
- */
14
- reverse?: boolean;
15
- }
16
- declare const Zoom: React.FC<ZoomProps>;
17
- export default Zoom;
package/dist/index.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import Reveal from "./Reveal";
2
- export { default as AttentionSeeker } from "./components/AttentionSeeker";
3
- export { default as Bounce } from "./components/Bounce";
4
- export { default as Fade } from "./components/Fade";
5
- export { default as Flip } from "./components/Flip";
6
- export { default as Hinge } from "./components/Hinge";
7
- export { default as JackInTheBox } from "./components/JackInTheBox";
8
- export { default as Roll } from "./components/Roll";
9
- export { default as Rotate } from "./components/Rotate";
10
- export { default as Slide } from "./components/Slide";
11
- export { default as Zoom } from "./components/Zoom";
12
- export default Reveal;
package/dist/index.js DELETED
@@ -1,8 +0,0 @@
1
-
2
- 'use strict'
3
-
4
- if (process.env.NODE_ENV === 'production') {
5
- module.exports = require('./react-awesome-reveal.cjs.production.min.js')
6
- } else {
7
- module.exports = require('./react-awesome-reveal.cjs.development.js')
8
- }