@adriansteffan/reactive 0.1.20 → 0.1.21

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.
@@ -1,4 +1,4 @@
1
- import { W as e } from "./mod-BSkJXjbN.js";
1
+ import { W as e } from "./mod-C-Og4rU7.js";
2
2
  class s extends e {
3
3
  async enable() {
4
4
  console.log("Immersive mode is only available on Android");
@@ -1,4 +1,4 @@
1
- import { W as P, b as x, E } from "./mod-BSkJXjbN.js";
1
+ import { W as P, b as x, E } from "./mod-C-Og4rU7.js";
2
2
  function m(w) {
3
3
  const e = w.split("/").filter((t) => t !== "."), r = [];
4
4
  return e.forEach((t) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adriansteffan/reactive",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -69,6 +69,8 @@ export interface TutorialProps extends BaseComponentProps {
69
69
  nextKey?: string | false;
70
70
  /** Key to go back (default: 'ArrowLeft', set to false to disable) */
71
71
  backKey?: string | false;
72
+ /** Slide-down + fade-in entrance animation (default: false) */
73
+ animate?: boolean;
72
74
  /** Color mode for dot indicators (default: 'light') */
73
75
  theme?: 'light' | 'dark';
74
76
  }
@@ -86,6 +88,7 @@ export const Tutorial = ({
86
88
  fadeDuration = 0.3,
87
89
  finishText = 'Start',
88
90
  containerClass,
91
+ animate = false,
89
92
  nextKey = 'ArrowRight',
90
93
  backKey = 'ArrowLeft',
91
94
  theme = 'light',
@@ -159,7 +162,7 @@ export const Tutorial = ({
159
162
  return (
160
163
  <LayoutGroup>
161
164
  <div
162
- className={containerClass}
165
+ className={`${containerClass ?? ''} ${animate ? 'animate-slide-down opacity-0' : ''}`}
163
166
  style={{
164
167
  width: '100vw',
165
168
  height: '100vh',