@adriansteffan/reactive 0.1.32 → 0.1.33

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.d.ts CHANGED
@@ -104,6 +104,8 @@ declare type ControlFlowItem = MarkerItem | IfGotoItem | UpdateStoreItem | IfBlo
104
104
 
105
105
  export declare const DARK_BG_CLASS = "reactive-dark-bg";
106
106
 
107
+ export declare const DARK_BG_PLAIN_CLASS = "reactive-dark-bg-plain";
108
+
107
109
  export declare interface DDMTrialParams {
108
110
  driftRate: ParameterDef;
109
111
  boundaries: BoundaryDef;
@@ -538,7 +540,30 @@ export declare function t(theme: Theme): {
538
540
  readonly dotInactive: "rgba(0,0,0,0.2)";
539
541
  readonly toastTheme: "light";
540
542
  } | {
543
+ readonly text: "text-[#f5f5f5]";
544
+ readonly prose: "prose-invert";
545
+ readonly proseLink: "prose-a:text-blue-400";
546
+ readonly buttonBg: "bg-white";
547
+ readonly buttonText: "text-black";
548
+ readonly buttonBorder: "border-black";
549
+ readonly buttonShadow: "shadow-[2px_2px_0px_rgba(0,0,0,1)]";
550
+ readonly buttonDisabledBg: "bg-gray-700";
551
+ readonly buttonDisabledText: "text-gray-500";
552
+ readonly buttonDisabledBorder: "border-gray-600";
553
+ readonly buttonDisabledShadow: "shadow-[2px_2px_0px_rgba(75,85,99,1)]";
554
+ readonly error: "text-red-400";
555
+ readonly focusRing: "focus:ring-blue-400";
556
+ readonly inputBg: "bg-gray-700";
557
+ readonly inputBorder: "border-gray-500";
558
+ readonly inputText: "text-[#f5f5f5]";
559
+ readonly progressBg: "bg-gray-700";
560
+ readonly progressStripe1: "#374151";
561
+ readonly progressStripe2: "#4B5563";
562
+ readonly dotActive: "#fff";
563
+ readonly dotInactive: "rgba(255,255,255,0.3)";
564
+ readonly toastTheme: "dark";
541
565
  readonly containerBg: "reactive-dark-bg";
566
+ } | {
542
567
  readonly text: "text-[#f5f5f5]";
543
568
  readonly prose: "prose-invert";
544
569
  readonly proseLink: "prose-a:text-blue-400";
@@ -561,9 +586,10 @@ export declare function t(theme: Theme): {
561
586
  readonly dotActive: "#fff";
562
587
  readonly dotInactive: "rgba(255,255,255,0.3)";
563
588
  readonly toastTheme: "dark";
589
+ readonly containerBg: "reactive-dark-bg-plain";
564
590
  };
565
591
 
566
- declare function Text_2({ content, buttonText, className, containerClass, centered, next, animate, allowedKeys, }: {
592
+ declare function Text_2({ content, buttonText, className, containerClass, centered, next, animate, allowedKeys, duration, }: {
567
593
  content: default_2.ReactNode;
568
594
  buttonText?: string;
569
595
  onButtonClick?: () => void;
@@ -572,6 +598,8 @@ declare function Text_2({ content, buttonText, className, containerClass, center
572
598
  centered?: boolean;
573
599
  animate?: boolean;
574
600
  allowedKeys?: string[] | boolean;
601
+ /** Auto-advance after N ms. When set, no button is shown and key presses are ignored. */
602
+ duration?: number;
575
603
  } & BaseComponentProps): JSX_2.Element;
576
604
  export { Text_2 as Text }
577
605
 
@@ -602,7 +630,31 @@ export declare const THEME: {
602
630
  readonly toastTheme: "light";
603
631
  };
604
632
  readonly dark: {
633
+ readonly text: "text-[#f5f5f5]";
634
+ readonly prose: "prose-invert";
635
+ readonly proseLink: "prose-a:text-blue-400";
636
+ readonly buttonBg: "bg-white";
637
+ readonly buttonText: "text-black";
638
+ readonly buttonBorder: "border-black";
639
+ readonly buttonShadow: "shadow-[2px_2px_0px_rgba(0,0,0,1)]";
640
+ readonly buttonDisabledBg: "bg-gray-700";
641
+ readonly buttonDisabledText: "text-gray-500";
642
+ readonly buttonDisabledBorder: "border-gray-600";
643
+ readonly buttonDisabledShadow: "shadow-[2px_2px_0px_rgba(75,85,99,1)]";
644
+ readonly error: "text-red-400";
645
+ readonly focusRing: "focus:ring-blue-400";
646
+ readonly inputBg: "bg-gray-700";
647
+ readonly inputBorder: "border-gray-500";
648
+ readonly inputText: "text-[#f5f5f5]";
649
+ readonly progressBg: "bg-gray-700";
650
+ readonly progressStripe1: "#374151";
651
+ readonly progressStripe2: "#4B5563";
652
+ readonly dotActive: "#fff";
653
+ readonly dotInactive: "rgba(255,255,255,0.3)";
654
+ readonly toastTheme: "dark";
605
655
  readonly containerBg: "reactive-dark-bg";
656
+ };
657
+ readonly 'dark-plain': {
606
658
  readonly text: "text-[#f5f5f5]";
607
659
  readonly prose: "prose-invert";
608
660
  readonly proseLink: "prose-a:text-blue-400";
@@ -625,10 +677,11 @@ export declare const THEME: {
625
677
  readonly dotActive: "#fff";
626
678
  readonly dotInactive: "rgba(255,255,255,0.3)";
627
679
  readonly toastTheme: "dark";
680
+ readonly containerBg: "reactive-dark-bg-plain";
628
681
  };
629
682
  };
630
683
 
631
- export declare type Theme = 'light' | 'dark';
684
+ export declare type Theme = 'light' | 'dark' | 'dark-plain';
632
685
 
633
686
  export declare const ThemeContext: Context<Theme>;
634
687
 
@@ -1,71 +1,72 @@
1
- import { H as e, C as t, a as i, D as n, c as r, d as o, e as l, f as m, Y as u, z as c, M as p, P as g, g as P, h as T, Q as d, R as C, i as D, j as h, F as x, T as E, k as S, l as f, m as k, n as F, U as v, X as B, o as R, p as M, q as b, r as y, s as A, t as I, u as K, v as U, w, x as _, y as q, A as G, B as H, G as L, I as Q, J as Z, K as j, L as z, N as J, O as N, S as O, V, Z as X, _ as Y, $, a0 as W, a1 as aa, a2 as sa, a3 as ea, a4 as ta, a5 as ia, a6 as na, a7 as ra, a8 as oa, a9 as la, aa as ma, ab as ua, ac as ca, ad as pa, ae as ga, af as Pa, ag as Ta } from "./mod-BstzgRJu.js";
1
+ import { H as e, C as t, a as i, D as n, c as r, d as o, e as l, f as m, g as u, Y as c, z as p, M as P, P as g, h as C, i as T, Q as d, R as D, j as S, k as h, F as x, T as E, l as f, m as k, n as B, o as F, U as v, X as A, p as R, q as _, r as I, s as K, t as M, u as b, v as y, w as L, x as U, y as w, A as G, B as q, G as H, I as N, J as Q, K as Z, L as j, N as z, O as J, S as O, V, Z as X, _ as Y, $, a0 as W, a1 as aa, a2 as sa, a3 as ea, a4 as ta, a5 as ia, a6 as na, a7 as ra, a8 as oa, a9 as la, aa as ma, ab as ua, ac as ca, ad as pa, ae as Pa, af as ga, ag as Ca, ah as Ta } from "./mod-BI0gtRcG.js";
2
2
  export {
3
3
  e as Bounce,
4
4
  t as CanvasBlock,
5
5
  i as CheckDevice,
6
6
  n as DARK_BG_CLASS,
7
- r as EnterFullscreen,
8
- o as ExitFullscreen,
9
- l as ExperimentProvider,
10
- m as ExperimentRunner,
11
- u as Flip,
12
- c as Icons,
13
- p as MicCheck,
7
+ r as DARK_BG_PLAIN_CLASS,
8
+ o as EnterFullscreen,
9
+ l as ExitFullscreen,
10
+ m as ExperimentProvider,
11
+ u as ExperimentRunner,
12
+ c as Flip,
13
+ p as Icons,
14
+ P as MicCheck,
14
15
  g as Param,
15
- P as PlainInput,
16
+ C as PlainInput,
16
17
  T as ProlificEnding,
17
18
  d as Quest,
18
- C as RDKCanvas,
19
- D as RandomDotKinematogram,
19
+ D as RDKCanvas,
20
+ S as RandomDotKinematogram,
20
21
  h as RequestFilePermission,
21
22
  x as Slide,
22
23
  E as THEME,
23
- S as Text,
24
- f as ThemeContext,
25
- k as ToastContainer,
24
+ f as Text,
25
+ k as ThemeContext,
26
+ B as ToastContainer,
26
27
  F as Tutorial,
27
28
  v as Upload,
28
- B as Zoom,
29
+ A as Zoom,
29
30
  R as arrayFlattener,
30
- M as canvasCountdown,
31
- b as chunk,
32
- y as collapseToast,
33
- A as cssTransition,
34
- I as getBackendUrl,
35
- K as getInitialParticipant,
36
- U as getParam,
37
- w as getPlatform,
38
- _ as getSimulation,
39
- q as halton,
40
- G as isDesktop,
31
+ _ as canvasCountdown,
32
+ I as chunk,
33
+ K as collapseToast,
34
+ M as cssTransition,
35
+ b as getBackendUrl,
36
+ y as getInitialParticipant,
37
+ L as getParam,
38
+ U as getPlatform,
39
+ w as getSimulation,
40
+ G as halton,
41
+ q as isDesktop,
41
42
  H as isFullscreen,
42
- L as mapDDMChoice,
43
+ N as mapDDMChoice,
43
44
  Q as noopSimulate,
44
45
  Z as normal,
45
46
  j as now,
46
47
  z as orchestrateSimulation,
47
48
  J as pipe,
48
- N as poisson,
49
- O as registerArrayExtensions,
50
- V as registerComponentParams,
51
- X as registerExperimentParams,
52
- Y as registerFlattener,
53
- $ as registerSimulation,
54
- W as resolveSimulation,
55
- aa as sample,
56
- sa as sampleParticipants,
57
- ea as seedDistributions,
58
- ta as setBackendUrl,
59
- ia as shuffle,
60
- na as simulateDDMTrial,
61
- ra as simulateParticipant,
62
- oa as sobol,
63
- la as subsetExperimentByParam,
64
- ma as t,
65
- ua as toast,
66
- ca as uniform,
67
- pa as useTheme,
49
+ O as poisson,
50
+ V as registerArrayExtensions,
51
+ X as registerComponentParams,
52
+ Y as registerExperimentParams,
53
+ $ as registerFlattener,
54
+ W as registerSimulation,
55
+ aa as resolveSimulation,
56
+ sa as sample,
57
+ ea as sampleParticipants,
58
+ ta as seedDistributions,
59
+ ia as setBackendUrl,
60
+ na as shuffle,
61
+ ra as simulateDDMTrial,
62
+ oa as simulateParticipant,
63
+ la as sobol,
64
+ ma as subsetExperimentByParam,
65
+ ua as t,
66
+ ca as toast,
67
+ pa as uniform,
68
+ Pa as useTheme,
68
69
  ga as useToast,
69
- Pa as useToastContainer,
70
+ Ca as useToastContainer,
70
71
  Ta as useTutorialSlide
71
72
  };