@adriansteffan/reactive 0.0.34 → 0.0.36
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-DTHSZEKb.js → mod-B9pn3CIt.js} +30 -29
- package/dist/mod.d.ts +2 -1
- package/dist/reactive.es.js +1 -1
- package/dist/reactive.umd.js +14 -14
- package/dist/style.css +1 -1
- package/dist/{web-GQ9-WV5_.js → web-B5ojRUs4.js} +1 -1
- package/dist/{web-Db12RAAA.js → web-wJPoJ8Wb.js} +1 -1
- package/package.json +1 -1
- package/src/components/text.tsx +5 -1
|
@@ -1124,61 +1124,62 @@ function rp({
|
|
|
1124
1124
|
content: d,
|
|
1125
1125
|
buttonText: h = "Click me",
|
|
1126
1126
|
className: p = "",
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1127
|
+
containerClass: f = "",
|
|
1128
|
+
next: g,
|
|
1129
|
+
animate: C = !1,
|
|
1130
|
+
allowedKeys: x = !1
|
|
1130
1131
|
}) {
|
|
1131
|
-
const
|
|
1132
|
+
const w = dt(0);
|
|
1132
1133
|
tr(() => {
|
|
1133
|
-
|
|
1134
|
-
const
|
|
1135
|
-
const
|
|
1136
|
-
if (
|
|
1137
|
-
const
|
|
1138
|
-
|
|
1139
|
-
key:
|
|
1140
|
-
time:
|
|
1141
|
-
reactionTime:
|
|
1134
|
+
w.current = br();
|
|
1135
|
+
const b = (S) => {
|
|
1136
|
+
const D = br();
|
|
1137
|
+
if (x === !0 || Array.isArray(x) && x.includes(S.key)) {
|
|
1138
|
+
const W = D - w.current;
|
|
1139
|
+
g({
|
|
1140
|
+
key: S.key,
|
|
1141
|
+
time: D,
|
|
1142
|
+
reactionTime: W
|
|
1142
1143
|
});
|
|
1143
1144
|
}
|
|
1144
1145
|
};
|
|
1145
|
-
return
|
|
1146
|
-
|
|
1146
|
+
return x && window.addEventListener("keydown", b), () => {
|
|
1147
|
+
x && window.removeEventListener("keydown", b);
|
|
1147
1148
|
};
|
|
1148
|
-
}, [
|
|
1149
|
-
const
|
|
1150
|
-
const
|
|
1151
|
-
|
|
1149
|
+
}, [g, x]);
|
|
1150
|
+
const V = () => {
|
|
1151
|
+
const b = br(), S = b - w.current;
|
|
1152
|
+
g({
|
|
1152
1153
|
key: "button",
|
|
1153
|
-
time:
|
|
1154
|
-
reactionTime:
|
|
1154
|
+
time: b,
|
|
1155
|
+
reactionTime: S
|
|
1155
1156
|
});
|
|
1156
1157
|
};
|
|
1157
|
-
return /* @__PURE__ */ z.jsxs("div", { className: `max-w-prose mx-auto ${p}
|
|
1158
|
+
return /* @__PURE__ */ z.jsx("div", { className: `min-h-screen ${f}`, children: /* @__PURE__ */ z.jsxs("div", { className: `max-w-prose mx-auto ${p} pt-20 pb-20 px-4 `, children: [
|
|
1158
1159
|
/* @__PURE__ */ z.jsx(
|
|
1159
1160
|
"article",
|
|
1160
1161
|
{
|
|
1161
1162
|
className: `prose prose-2xl prose-slate text-xl prose-a:text-blue-600 prose-a:underline prose-h1:text-4xl prose-h1:mb-10 prose-h1:font-bold prose-p:mb-4 prose-strong:font-bold text-black leading-relaxed
|
|
1162
|
-
${
|
|
1163
|
+
${C ? "animate-slide-down opacity-0" : ""}`,
|
|
1163
1164
|
children: d
|
|
1164
1165
|
}
|
|
1165
1166
|
),
|
|
1166
1167
|
h && /* @__PURE__ */ z.jsx(
|
|
1167
1168
|
"div",
|
|
1168
1169
|
{
|
|
1169
|
-
className: `mt-16 flex justify-center ${
|
|
1170
|
-
style:
|
|
1170
|
+
className: `mt-16 flex justify-center ${C ? "animate-fade-in opacity-0" : ""}`,
|
|
1171
|
+
style: C ? { animationDelay: "1s" } : {},
|
|
1171
1172
|
children: /* @__PURE__ */ z.jsx(
|
|
1172
1173
|
"button",
|
|
1173
1174
|
{
|
|
1174
|
-
onClick:
|
|
1175
|
+
onClick: V,
|
|
1175
1176
|
className: "bg-white cursor-pointer px-8 py-3 border-2 border-black font-bold text-black text-lg rounded-xl shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none",
|
|
1176
1177
|
children: h
|
|
1177
1178
|
}
|
|
1178
1179
|
)
|
|
1179
1180
|
}
|
|
1180
1181
|
)
|
|
1181
|
-
] });
|
|
1182
|
+
] }) });
|
|
1182
1183
|
}
|
|
1183
1184
|
function u1({
|
|
1184
1185
|
content: d,
|
|
@@ -70879,7 +70880,7 @@ var Yc;
|
|
|
70879
70880
|
d.UTF8 = "utf8", d.ASCII = "ascii", d.UTF16 = "utf16";
|
|
70880
70881
|
})(Yc || (Yc = {}));
|
|
70881
70882
|
const Yi = na("Filesystem", {
|
|
70882
|
-
web: () => import("./web-
|
|
70883
|
+
web: () => import("./web-B5ojRUs4.js").then((d) => new d.FilesystemWeb())
|
|
70883
70884
|
});
|
|
70884
70885
|
ug("Upload", [
|
|
70885
70886
|
{
|
|
@@ -71188,7 +71189,7 @@ var Wh;
|
|
|
71188
71189
|
d.None = "NONE", d.Slide = "SLIDE", d.Fade = "FADE";
|
|
71189
71190
|
})(Wh || (Wh = {}));
|
|
71190
71191
|
const vm = na("StatusBar"), bm = na("ImmersiveMode", {
|
|
71191
|
-
web: () => import("./web-
|
|
71192
|
+
web: () => import("./web-wJPoJ8Wb.js").then((d) => new d.ImmersiveModeWeb())
|
|
71192
71193
|
});
|
|
71193
71194
|
function $x({
|
|
71194
71195
|
content: d,
|
package/dist/mod.d.ts
CHANGED
|
@@ -243,11 +243,12 @@ declare type StoreUpdateFunction = (data?: RefinedTrialData[], store?: Store_2)
|
|
|
243
243
|
|
|
244
244
|
export declare function subsetExperimentByParam(experiment: any[]): any[];
|
|
245
245
|
|
|
246
|
-
declare function Text_2({ content, buttonText, className, next, animate, allowedKeys, }: {
|
|
246
|
+
declare function Text_2({ content, buttonText, className, containerClass, next, animate, allowedKeys, }: {
|
|
247
247
|
content: default_2.ReactNode;
|
|
248
248
|
buttonText?: string;
|
|
249
249
|
onButtonClick?: () => void;
|
|
250
250
|
className?: string;
|
|
251
|
+
containerClass?: string;
|
|
251
252
|
animate?: boolean;
|
|
252
253
|
allowedKeys?: string[] | boolean;
|
|
253
254
|
} & BaseComponentProps): JSX_2.Element;
|
package/dist/reactive.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as e, C as n, v as r, o as t, q as i, t as o, u as l, Y as c, z as m, M as p, P as u, l as P, m as x, Q as C, R as E, F as g, T, w as d, U as f, X as k, k as F, c as h, x as v, y as B, g as w, e as y, d as R, i as q, n as D, p as I, r as M, h as Q, f as U, s as b, a as j, j as z, B as A, N as H, L } from "./mod-
|
|
1
|
+
import { H as e, C as n, v as r, o as t, q as i, t as o, u as l, Y as c, z as m, M as p, P as u, l as P, m as x, Q as C, R as E, F as g, T, w as d, U as f, X as k, k as F, c as h, x as v, y as B, g as w, e as y, d as R, i as q, n as D, p as I, r as M, h as Q, f as U, s as b, a as j, j as z, B as A, N as H, L } from "./mod-B9pn3CIt.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Bounce,
|
|
4
4
|
n as CanvasBlock,
|