@adriansteffan/reactive 0.1.21 → 0.1.23

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.
@@ -17923,6 +17923,7 @@ function wv({
17923
17923
  const u = (h) => {
17924
17924
  const c = Qs();
17925
17925
  if (a === !0 || Array.isArray(a) && a.includes(h.key)) {
17926
+ h.preventDefault();
17926
17927
  const f = c - o.current;
17927
17928
  r({
17928
17929
  key: h.key,
@@ -17961,6 +17962,10 @@ function wv({
17961
17962
  "button",
17962
17963
  {
17963
17964
  onClick: l,
17965
+ tabIndex: -1,
17966
+ onKeyDown: (u) => {
17967
+ (u.key === " " || u.key === "Enter") && u.preventDefault();
17968
+ },
17964
17969
  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",
17965
17970
  children: e
17966
17971
  }
@@ -70438,25 +70443,27 @@ const Bce = (i, e) => {
70438
70443
  function $ce({
70439
70444
  next: i,
70440
70445
  surveyJson: e,
70441
- customQuestions: t = {}
70446
+ customQuestions: t = {},
70447
+ theme: s,
70448
+ containerClass: r
70442
70449
  }) {
70443
- Object.keys(t).forEach((n) => {
70444
- Bce(n, t[n]);
70450
+ Object.keys(t).forEach((o) => {
70451
+ Bce(o, t[o]);
70445
70452
  });
70446
- const s = new ze({
70453
+ const n = new ze({
70447
70454
  ...e,
70448
70455
  css: { ...Rc, root: "sd-root-modern custom-root" }
70449
70456
  });
70450
- s.applyTheme(qce);
70451
- const r = Xe(
70452
- (n) => {
70453
- i({ ...n.data });
70457
+ n.applyTheme(s ?? qce);
70458
+ const a = Xe(
70459
+ (o) => {
70460
+ i({ ...o.data });
70454
70461
  },
70455
70462
  [i]
70456
70463
  );
70457
- return s.onComplete.add(r), /* @__PURE__ */ R.jsxs("div", { className: "max-w-4xl mx-auto px-4", children: [
70458
- /* @__PURE__ */ R.jsx("div", { className: "absolute inset-0 -z-10 h-full w-full bg-white bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:16px_16px]" }),
70459
- /* @__PURE__ */ R.jsx(_S, { model: s })
70464
+ return n.onComplete.add(a), /* @__PURE__ */ R.jsxs("div", { className: `max-w-4xl mx-auto px-4 ${r ?? ""}`, children: [
70465
+ !r && /* @__PURE__ */ R.jsx("div", { className: "absolute inset-0 -z-10 h-full w-full bg-white bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:16px_16px]" }),
70466
+ /* @__PURE__ */ R.jsx(_S, { model: n })
70460
70467
  ] });
70461
70468
  }
70462
70469
  var Du = class {
@@ -78640,7 +78647,7 @@ var Ym;
78640
78647
  i.UTF8 = "utf8", i.ASCII = "ascii", i.UTF16 = "utf16";
78641
78648
  })(Ym || (Ym = {}));
78642
78649
  const Ea = wu("Filesystem", {
78643
- web: () => import("./web-_052v_pG.js").then((i) => new i.FilesystemWeb())
78650
+ web: () => import("./web-DWLF4kLx.js").then((i) => new i.FilesystemWeb())
78644
78651
  });
78645
78652
  vi("Upload", async (i, e, t, s) => {
78646
78653
  const r = i.sessionID || `sim_${Date.now()}_${Math.floor(Lt(0, 2176782336)).toString(36)}`, n = VV({
@@ -78903,7 +78910,7 @@ var iw;
78903
78910
  i.None = "NONE", i.Slide = "SLIDE", i.Fade = "FADE";
78904
78911
  })(iw || (iw = {}));
78905
78912
  const t7 = wu("StatusBar"), s7 = wu("ImmersiveMode", {
78906
- web: () => import("./web-BpGTOJKj.js").then((i) => new i.ImmersiveModeWeb())
78913
+ web: () => import("./web-jM3PxDy0.js").then((i) => new i.ImmersiveModeWeb())
78907
78914
  });
78908
78915
  Ai("EnterFullscreen", "session");
78909
78916
  vi("EnterFullscreen", xu, {});
package/dist/mod.d.ts CHANGED
@@ -290,10 +290,12 @@ export declare function ProlificEnding({ prolificCode, className, containerClass
290
290
  animate?: boolean;
291
291
  } & BaseComponentProps): JSX_2.Element;
292
292
 
293
- export declare function Quest({ next, surveyJson, customQuestions, }: {
293
+ export declare function Quest({ next, surveyJson, customQuestions, theme, containerClass, }: {
294
294
  next: (data: object) => void;
295
295
  surveyJson: object;
296
296
  customQuestions?: ComponentsMap;
297
+ theme?: any;
298
+ containerClass?: string;
297
299
  }): JSX_2.Element;
298
300
 
299
301
  export declare const RandomDotKinematogram: (rawProps: RDKProps) => JSX_2.Element;
@@ -1,4 +1,4 @@
1
- import { H as e, C as t, a as i, c as r, d as n, e as o, f as l, Y as m, z as u, M as c, P as p, g as P, h as g, Q as d, R as C, i as D, j as T, F as x, T as h, k, l as E, U as F, X as S, m as f, n as v, o as B, p as R, q as b, r as y, s as I, t as M, u as U, v as w, w as K, x as q, y as A, A as Q, B as Z, D as j, G as z, I as G, J as H, K as J, L, N, O, S as V, V as X, Z as Y, _, $, a0 as W, a1 as aa, a2 as sa, a3 as ea, a4 as ta, a5 as ia, a6 as ra, a7 as na, a8 as oa, a9 as la, aa as ma, ab as ua } from "./mod-C-Og4rU7.js";
1
+ import { H as e, C as t, a as i, c as r, d as n, e as o, f as l, Y as m, z as u, M as c, P as p, g as P, h as g, Q as d, R as C, i as D, j as T, F as x, T as h, k, l as E, U as F, X as S, m as f, n as v, o as B, p as R, q as b, r as y, s as I, t as M, u as U, v as w, w as K, x as q, y as A, A as Q, B as Z, D as j, G as z, I as G, J as H, K as J, L, N, O, S as V, V as X, Z as Y, _, $, a0 as W, a1 as aa, a2 as sa, a3 as ea, a4 as ta, a5 as ia, a6 as ra, a7 as na, a8 as oa, a9 as la, aa as ma, ab as ua } from "./mod-CPp-Paa0.js";
2
2
  export {
3
3
  e as Bounce,
4
4
  t as CanvasBlock,