@limrun/ui 0.17.0-rc.2 → 0.17.0-rc.3

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,7 +1,7 @@
1
1
  import { jsxs as wr, jsx as Jn } from "react/jsx-runtime";
2
2
  import { useRef as en, useState as cs, useEffect as Ea } from "react";
3
- import { o as Tu, p as Au, i as wu, k as Cr, q as Cu, l as Ru, r as Pu } from "./remote-control-DiddxS8l.mjs";
4
- import { u as Iu, D as Du, a as Lu } from "./duo-view-D9Ae00rj.mjs";
3
+ import { D as Tu, h as Au, i as Cr, k as wu, p as Cu } from "./remote-control-BAmNHDdv.mjs";
4
+ import { h as Ru, u as Pu, D as Iu, a as Du, f as Lu } from "./duo-view-BsdKpp8d.mjs";
5
5
  const To = "183", Nu = 0, ec = 1, Uu = 2, ls = 1, Fu = 2, ir = 3, Xn = 0, Oe = 1, hn = 2, Pn = 0, Li = 1, nc = 2, ic = 3, rc = 4, Ou = 5, ri = 100, Bu = 101, zu = 102, Vu = 103, ku = 104, Gu = 200, Hu = 201, Wu = 202, Xu = 203, Ta = 204, Aa = 205, qu = 206, Yu = 207, Zu = 208, Ju = 209, $u = 210, Ku = 211, ju = 212, Qu = 213, th = 214, wa = 0, Ca = 1, Ra = 2, Ui = 3, Pa = 4, Ia = 5, Da = 6, La = 7, Pl = 0, eh = 1, nh = 2, dn = 0, Il = 1, Dl = 2, Ll = 3, Ao = 4, Nl = 5, Ul = 6, Fl = 7, sc = "attached", ih = "detached", Ol = 300, li = 301, Fi = 302, us = 303, Us = 304, As = 306, Na = 1e3, An = 1001, Ua = 1002, Ce = 1003, rh = 1004, Rr = 1005, ve = 1006, Fs = 1007, oi = 1008, He = 1009, Bl = 1010, zl = 1011, fr = 1012, wo = 1013, mn = 1014, We = 1015, Dn = 1016, Co = 1017, Ro = 1018, dr = 1020, Vl = 35902, kl = 35899, Gl = 1021, Hl = 1022, Xe = 1023, Ln = 1026, ci = 1027, Po = 1028, Io = 1029, Oi = 1030, Do = 1031, Lo = 1033, hs = 33776, fs = 33777, ds = 33778, ps = 33779, Fa = 35840, Oa = 35841, Ba = 35842, za = 35843, Va = 36196, ka = 37492, Ga = 37496, Ha = 37488, Wa = 37489, Xa = 37490, qa = 37491, Ya = 37808, Za = 37809, Ja = 37810, $a = 37811, Ka = 37812, ja = 37813, Qa = 37814, to = 37815, eo = 37816, no = 37817, io = 37818, ro = 37819, so = 37820, ao = 37821, oo = 36492, co = 36494, lo = 36495, uo = 36283, ho = 36284, fo = 36285, po = 36286, gs = 2300, mo = 2301, Os = 2302, ac = 2303, oc = 2400, cc = 2401, lc = 2402, sh = 2500, ah = 0, oh = 1, uc = 2, ch = 3200, Wl = 0, lh = 1, Hn = "", Fe = "srgb", Bi = "srgb-linear", _s = "linear", re = "srgb", mi = 7680, hc = 519, uh = 512, hh = 513, fh = 514, No = 515, dh = 516, ph = 517, Uo = 518, mh = 519, go = 35044, fc = 35048, dc = "300 es", fn = 2e3, pr = 2001;
6
6
  function gh(i) {
7
7
  for (let t = i.length - 1; t >= 0; --t)
@@ -26256,7 +26256,7 @@ function T0(i, t, e) {
26256
26256
  },
26257
26257
  // Imported appearances replace the rigid body while live screens and the hinge remain under our control.
26258
26258
  loadAppearance: async (mt) => {
26259
- const { GLTFLoader: st } = await import("./GLTFLoader-Cami_vza.mjs"), { scene: F } = await new st().loadAsync(mt), $ = /* @__PURE__ */ new Set();
26259
+ const { GLTFLoader: st } = await import("./GLTFLoader-B4nnixLv.mjs"), { scene: F } = await new st().loadAsync(mt), $ = /* @__PURE__ */ new Set();
26260
26260
  if (F.traverse((J) => {
26261
26261
  if (J instanceof Ee) {
26262
26262
  $.add(J.geometry);
@@ -26375,10 +26375,10 @@ function A0(i, t, e, n, r) {
26375
26375
  l[0][c] = u - 24, l[1][c] = u + 24;
26376
26376
  }
26377
26377
  }
26378
- return { guides: o, rect: a, iconSize: Au(a) };
26378
+ return { guides: o, rect: a, iconSize: Ru(a) };
26379
26379
  }
26380
26380
  function w0(i, t, e) {
26381
- const n = en(void 0), r = en(0), [s, a] = cs(), o = Iu(i, t, (f) => {
26381
+ const n = en(void 0), r = en(0), [s, a] = cs(), o = Pu(i, t, (f) => {
26382
26382
  f !== void 0 && c(), e(f);
26383
26383
  }), l = en(o);
26384
26384
  l.current = o;
@@ -26471,7 +26471,7 @@ function C0(i) {
26471
26471
  X.colorSpace = Fe, X.minFilter = ve, X.magFilter = ve;
26472
26472
  const lt = T0(Mt, yt, V.texture), { device: kt } = lt;
26473
26473
  i.modelUrl && lt.loadAppearance(i.modelUrl).then(() => J()).catch((X) => s(String(X)));
26474
- const Wt = new wu(
26474
+ const Wt = new Au(
26475
26475
  (X, ot) => n.current.button(X, ot),
26476
26476
  (X) => s(String(X))
26477
26477
  );
@@ -26504,11 +26504,11 @@ function C0(i) {
26504
26504
  ($e) => $e.id === Xt.object.userData.display
26505
26505
  );
26506
26506
  if (Ae)
26507
- return { screenId: Ae.screenId, ...Pu(Xt.uv.x, Xt.uv.y) };
26507
+ return { screenId: Ae.screenId, ...Cu(Xt.uv.x, Xt.uv.y) };
26508
26508
  }, nt = (X) => {
26509
26509
  if (J(), rt || X.button !== 0) return;
26510
26510
  _(X.target) || w.focus({ preventScroll: !0 });
26511
- const ot = Y(X), It = ot && "button" in ot ? ot.button : void 0, Xt = Cu(b.current, !!ot && !It, X.altKey);
26511
+ const ot = Y(X), It = ot && "button" in ot ? ot.button : void 0, Xt = wu(b.current, !!ot && !It, X.altKey);
26512
26512
  if (Xt === "ignore" && !It) return;
26513
26513
  const ie = Xt === "touch" && ot && "screenId" in ot ? ot : void 0;
26514
26514
  rt = {
@@ -26524,7 +26524,7 @@ function C0(i) {
26524
26524
  if (J(), !rt) {
26525
26525
  const ot = Y(X), It = ot && "button" in ot ? ot.button : void 0, Xt = w.getBoundingClientRect();
26526
26526
  I(
26527
- It ? Z?.guides.find((ie) => ie.button === It)?.edge : Z && Ru(X.clientX - Xt.left, X.clientY - Xt.top, Z.rect)
26527
+ It ? Z?.guides.find((ie) => ie.button === It)?.edge : Z && Lu(X.clientX - Xt.left, X.clientY - Xt.top, Z.rect)
26528
26528
  ), P.domElement.style.cursor = It ? "pointer" : "", P.domElement.title = It ? Cr[It] : "", lt.highlightButton(It);
26529
26529
  return;
26530
26530
  }
@@ -26631,14 +26631,14 @@ function C0(i) {
26631
26631
  "data-visible": "false",
26632
26632
  "aria-label": Cr[w],
26633
26633
  title: Cr[w],
26634
- children: /* @__PURE__ */ Jn(Du, { button: w })
26634
+ children: /* @__PURE__ */ Jn(Iu, { button: w })
26635
26635
  },
26636
26636
  w
26637
26637
  ))
26638
26638
  }
26639
26639
  ),
26640
26640
  /* @__PURE__ */ wr(
26641
- Lu,
26641
+ Du,
26642
26642
  {
26643
26643
  angle: a,
26644
26644
  onFold: f,