@adriansteffan/reactive 0.1.19 → 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.
- package/dist/{mod-CHny3ll3.js → mod-C-Og4rU7.js} +1065 -1064
- package/dist/mod.d.ts +4 -2
- package/dist/reactive.es.js +1 -1
- package/dist/reactive.umd.js +27 -27
- package/dist/{web-Bj8F7OFt.js → web-BpGTOJKj.js} +1 -1
- package/dist/{web-BnuZtMKb.js → web-_052v_pG.js} +1 -1
- package/package.json +1 -1
- package/src/components/enterfullscreen.tsx +1 -1
- package/src/components/tutorial.tsx +4 -1
- package/src/components/upload.tsx +2 -2
package/package.json
CHANGED
|
@@ -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',
|
|
@@ -380,8 +380,8 @@ export default function Upload({
|
|
|
380
380
|
}, [uploadState]);
|
|
381
381
|
|
|
382
382
|
return (
|
|
383
|
-
<div className={
|
|
384
|
-
<div className={`flex flex-col items-center justify-center gap-4 p-6 text-xl mt-16 px-10 ${className ?? ''}`}>
|
|
383
|
+
<div className={containerClass ?? ''} style={{ position: 'fixed', inset: 0 }}>
|
|
384
|
+
<div className={`flex flex-col items-center justify-center gap-4 p-6 text-xl mt-16 px-10 h-full ${className ?? ''}`}>
|
|
385
385
|
{uploadState == 'initial' && !autoUpload && (
|
|
386
386
|
<>
|
|
387
387
|
{content ?? <p>Thank you for participating! Please click the button below to submit your data.</p>}
|