@kingsimba/nc-ui 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/index.js CHANGED
@@ -5,7 +5,7 @@ import { jsx as s, jsxs as N, Fragment as pt } from "react/jsx-runtime";
5
5
  import { d as $e, E as ft, R as ht, T as mt, g as gt, V as bt, b as vt, a as wt, c as yt } from "./GeneratedIcons-HFZmBTBT.js";
6
6
  import Me, { useState as E, useRef as H, useMemo as we, useEffect as z, createContext as ce, useContext as ne, Children as xt, isValidElement as kt, forwardRef as Nt, useImperativeHandle as At, useCallback as V, Suspense as St } from "react";
7
7
  import { createPortal as pe } from "react-dom";
8
- import { useTranslation as J } from "react-i18next";
8
+ import { useTranslation as Z } from "react-i18next";
9
9
  import Ct from "i18next";
10
10
  import { c as $t } from "./clsx-OuTLNxxd.js";
11
11
  function _e({
@@ -37,7 +37,7 @@ function _e({
37
37
  );
38
38
  return n ? /* @__PURE__ */ s("div", { className: "nc-activity-indicator-overlay", children: o }) : o;
39
39
  }
40
- function q({ variant: e = "default", block: t, size: n = "default", appearance: r = "default", className: o, disabled: i, textSelectable: a, loading: c, onClick: l, children: u, ...f }) {
40
+ function X({ variant: e = "default", block: t, size: n = "default", appearance: r = "default", className: o, disabled: i, textSelectable: a, loading: c, onClick: l, children: u, ...f }) {
41
41
  const v = [
42
42
  "nc-button",
43
43
  e !== "default" ? `nc-${e}` : "",
@@ -117,7 +117,7 @@ function Gn({
117
117
  )
118
118
  ] }),
119
119
  r && /* @__PURE__ */ s("span", { className: "nc-alert-action", children: /* @__PURE__ */ s(
120
- q,
120
+ X,
121
121
  {
122
122
  size: "small",
123
123
  variant: r.variant ?? Mt[n],
@@ -266,7 +266,7 @@ function _n({ checked: e, onChange: t, disabled: n, label: r, size: o = "default
266
266
  );
267
267
  }
268
268
  function Rt({ option: e, onChange: t, selected: n, highlighted: r, small: o }) {
269
- const i = H(null), { t: a } = J();
269
+ const i = H(null), { t: a } = Z();
270
270
  return z(() => {
271
271
  r && i.current && i.current.scrollIntoView({ block: "nearest" });
272
272
  }, [r]), /* @__PURE__ */ N(
@@ -302,7 +302,7 @@ function Et({
302
302
  small: a,
303
303
  highlightedIndex: c = -1
304
304
  }) {
305
- const [l, u] = E({ top: 0, left: 0, width: 0 }), [f, v] = E(o), { t: d } = J();
305
+ const [l, u] = E({ top: 0, left: 0, width: 0 }), [f, v] = E(o), { t: d } = Z();
306
306
  if (z(() => {
307
307
  if (e && i.current) {
308
308
  const y = i.current.getBoundingClientRect();
@@ -382,7 +382,7 @@ function Un({
382
382
  style: d,
383
383
  className: m
384
384
  }) {
385
- const [y, b] = E(!1), [w, k] = E(""), [g, p] = E(-1), h = H(null), A = H(null), C = u === "small", { t: T } = J(), P = we(() => {
385
+ const [y, b] = E(!1), [w, k] = E(""), [g, p] = E(-1), h = H(null), A = H(null), C = u === "small", { t: T } = Z(), P = we(() => {
386
386
  const R = w.toLowerCase();
387
387
  return c ? r.filter((B) => B.label.toLowerCase().includes(R)) : r;
388
388
  }, [r, w, c]);
@@ -666,8 +666,8 @@ function Lt() {
666
666
  return e;
667
667
  }
668
668
  function oe({ children: e, onClick: t, ...n }) {
669
- const { close: r } = Lt(), { t: o } = J();
670
- return /* @__PURE__ */ s(q, { onClick: (a) => {
669
+ const { close: r } = Lt(), { t: o } = Z();
670
+ return /* @__PURE__ */ s(X, { onClick: (a) => {
671
671
  t == null || t(a), r();
672
672
  }, ...n, children: e ?? o("common.close") });
673
673
  }
@@ -691,7 +691,7 @@ function er({
691
691
  className: w = "",
692
692
  onContentHeightChange: k
693
693
  }) {
694
- const g = H(null), p = H(null), { t: h } = J(), A = { close: t }, C = (x) => {
694
+ const g = H(null), p = H(null), { t: h } = Z(), A = { close: t }, C = (x) => {
695
695
  d && x.target === x.currentTarget && t();
696
696
  };
697
697
  if (z(() => {
@@ -711,26 +711,26 @@ function er({
711
711
  const T = () => {
712
712
  switch (i) {
713
713
  case "ok":
714
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(q, { variant: "primary", onClick: c ?? t, disabled: m, children: h("common.ok") }) });
714
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(X, { variant: "primary", onClick: c ?? t, disabled: m, children: h("common.ok") }) });
715
715
  case "ok-cancel":
716
716
  return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
717
717
  /* @__PURE__ */ s(oe, { onClick: f, children: h("common.cancel") }),
718
- /* @__PURE__ */ s(q, { variant: "primary", onClick: c ?? t, disabled: m, children: h("common.ok") })
718
+ /* @__PURE__ */ s(X, { variant: "primary", onClick: c ?? t, disabled: m, children: h("common.ok") })
719
719
  ] });
720
720
  case "save-cancel":
721
721
  return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
722
722
  /* @__PURE__ */ s(oe, { onClick: f, children: h("common.cancel") }),
723
- /* @__PURE__ */ s(q, { variant: "primary", onClick: l, disabled: m, children: h("common.save") })
723
+ /* @__PURE__ */ s(X, { variant: "primary", onClick: l, disabled: m, children: h("common.save") })
724
724
  ] });
725
725
  case "delete-cancel":
726
726
  return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
727
727
  /* @__PURE__ */ s(oe, { onClick: f, children: h("common.cancel") }),
728
- /* @__PURE__ */ s(q, { variant: "danger", onClick: u, disabled: m, children: h("common.delete") })
728
+ /* @__PURE__ */ s(X, { variant: "danger", onClick: u, disabled: m, children: h("common.delete") })
729
729
  ] });
730
730
  case "connect":
731
731
  return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
732
732
  /* @__PURE__ */ s(oe, { onClick: f, children: h("common.cancel") }),
733
- /* @__PURE__ */ s(q, { variant: "primary", onClick: v, disabled: m, children: h("common.connect") })
733
+ /* @__PURE__ */ s(X, { variant: "primary", onClick: v, disabled: m, children: h("common.connect") })
734
734
  ] });
735
735
  case "close":
736
736
  return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(oe, { variant: "primary" }) });
@@ -860,28 +860,28 @@ function tr({
860
860
  }, at = () => {
861
861
  R(F);
862
862
  }, lt = () => {
863
- var K, Z, He;
863
+ var K, U, He;
864
864
  if (G) {
865
865
  R(""), i == null || i(), (K = A.current) == null || K.focus();
866
866
  return;
867
867
  }
868
- $ || O(""), n == null || n(""), i == null || i(), k ? (Z = C.current) == null || Z.focus() : (He = A.current) == null || He.focus();
868
+ $ || O(""), n == null || n(""), i == null || i(), k ? (U = C.current) == null || U.focus() : (He = A.current) == null || He.focus();
869
869
  }, Le = (K) => {
870
870
  if (G && K.key === "Escape") {
871
871
  K.preventDefault(), T.current = !0, at(), K.currentTarget.blur();
872
872
  return;
873
873
  }
874
874
  if (K.key === "Enter" && !k) {
875
- const Z = G ? Pe() : F;
876
- G && (K.preventDefault(), T.current = !0, K.currentTarget.blur()), o == null || o(Z);
875
+ const U = G ? Pe() : F;
876
+ G && (K.preventDefault(), T.current = !0, K.currentTarget.blur()), o == null || o(U);
877
877
  }
878
878
  }, ze = (K) => {
879
- const Z = K.target.value;
879
+ const U = K.target.value;
880
880
  if (G) {
881
- R(Z);
881
+ R(U), n == null || n(U);
882
882
  return;
883
883
  }
884
- $ || O(Z), n == null || n(Z);
884
+ $ || O(U), n == null || n(U);
885
885
  }, Be = () => {
886
886
  S(!0), G && R(F);
887
887
  }, De = () => {
@@ -1169,7 +1169,7 @@ function sr({
1169
1169
  x && !A && !C && /* @__PURE__ */ s("div", { className: "nc-month-range-error", children: "End month must be after or equal to start month" }),
1170
1170
  /* @__PURE__ */ N("div", { className: "nc-month-range-picker-footer", children: [
1171
1171
  /* @__PURE__ */ s(
1172
- q,
1172
+ X,
1173
1173
  {
1174
1174
  variant: "primary",
1175
1175
  onClick: p,
@@ -1177,7 +1177,7 @@ function sr({
1177
1177
  children: "Apply"
1178
1178
  }
1179
1179
  ),
1180
- /* @__PURE__ */ s(q, { variant: "ghost", onClick: g, children: "Cancel" })
1180
+ /* @__PURE__ */ s(X, { variant: "ghost", onClick: g, children: "Cancel" })
1181
1181
  ] })
1182
1182
  ] })
1183
1183
  }
@@ -1679,7 +1679,7 @@ function Gt({ type: e }) {
1679
1679
  }
1680
1680
  }
1681
1681
  function Yt({ notification: e }) {
1682
- const { t } = J(), n = e.type || "info", r = () => {
1682
+ const { t } = Z(), n = e.type || "info", r = () => {
1683
1683
  if (e.title) return e.title;
1684
1684
  switch (n) {
1685
1685
  case "success":
@@ -1897,7 +1897,7 @@ class Ut {
1897
1897
  (r = this.listeners.get(t)) == null || r.forEach((o) => o(n));
1898
1898
  }
1899
1899
  }
1900
- const X = new Ut();
1900
+ const J = new Ut();
1901
1901
  class qt {
1902
1902
  constructor() {
1903
1903
  Q(this, "apps", []);
@@ -1919,12 +1919,12 @@ class qt {
1919
1919
  return console.error(`Cannot launch app "${t}": not registered`), null;
1920
1920
  const o = this.apps.find((a) => a.appId === t);
1921
1921
  if (o)
1922
- return r || (this.setActiveApp(t), X._setActiveAppId(t)), o.ref ? o : this.waitForRef(t);
1922
+ return r || (this.setActiveApp(t), J._setActiveAppId(t)), o.ref ? o : this.waitForRef(t);
1923
1923
  const i = {
1924
1924
  appId: t,
1925
1925
  launchedAt: Date.now()
1926
1926
  };
1927
- return this.apps.push(i), r || (this.activeAppId = t, X._setActiveAppId(t)), this.notify(), this.waitForRef(t);
1927
+ return this.apps.push(i), r || (this.activeAppId = t, J._setActiveAppId(t)), this.notify(), this.waitForRef(t);
1928
1928
  }
1929
1929
  waitForRef(t) {
1930
1930
  return new Promise((n) => {
@@ -1961,7 +1961,7 @@ class qt {
1961
1961
  const r = this.apps[n];
1962
1962
  if (r.ref && (r.ref = void 0), this.apps.splice(n, 1), this.activeAppId === t) {
1963
1963
  const o = window.innerWidth >= 768;
1964
- this.activeAppId = o && this.apps.length > 0 ? this.apps[this.apps.length - 1].appId : null, X._setActiveAppId(this.activeAppId);
1964
+ this.activeAppId = o && this.apps.length > 0 ? this.apps[this.apps.length - 1].appId : null, J._setActiveAppId(this.activeAppId);
1965
1965
  }
1966
1966
  this.notify();
1967
1967
  }
@@ -1973,7 +1973,7 @@ class qt {
1973
1973
  console.warn(`Cannot activate app "${t}": not running`);
1974
1974
  return;
1975
1975
  }
1976
- this.activeAppId !== t && (this.activeAppId = t, this.notify(), X._setActiveAppId(t));
1976
+ this.activeAppId !== t && (this.activeAppId = t, this.notify(), J._setActiveAppId(t));
1977
1977
  }
1978
1978
  /**
1979
1979
  * Toggle an app: if active, deactivate; if inactive, activate.
@@ -2098,7 +2098,7 @@ class Qt extends Me.Component {
2098
2098
  }
2099
2099
  }
2100
2100
  function Ze({ appId: e, isActive: t, onClose: n }) {
2101
- const { t: r } = J(), o = ie.get(e), [i, a] = E(""), [c, l] = E(null), [u, f] = E(null), [v, d] = E(!1), [m, y] = E(!1);
2101
+ const { t: r } = Z(), o = ie.get(e), [i, a] = E(""), [c, l] = E(null), [u, f] = E(null), [v, d] = E(!1), [m, y] = E(!1);
2102
2102
  Me.useEffect(() => {
2103
2103
  o != null && o.titleKey && a(r(o.titleKey));
2104
2104
  }, [o, r]);
@@ -2442,7 +2442,7 @@ function fn(e, ...t) {
2442
2442
  const D = (e) => {
2443
2443
  const t = (n) => n[e] || [];
2444
2444
  return t.isThemeGetter = !0, t;
2445
- }, st = /^\[(?:([a-z-]+):)?(.+)\]$/i, hn = /^\d+\/\d+$/, mn = /* @__PURE__ */ new Set(["px", "full", "screen"]), gn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, bn = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, vn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, wn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, yn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, U = (e) => se(e) || mn.has(e) || hn.test(e), ee = (e) => ae(e, "length", Mn), se = (e) => !!e && !Number.isNaN(Number(e)), Ne = (e) => ae(e, "number", se), le = (e) => !!e && Number.isInteger(Number(e)), xn = (e) => e.endsWith("%") && se(e.slice(0, -1)), M = (e) => st.test(e), te = (e) => gn.test(e), kn = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Nn = (e) => ae(e, kn, it), An = (e) => ae(e, "position", it), Sn = /* @__PURE__ */ new Set(["image", "url"]), Cn = (e) => ae(e, Sn, Rn), $n = (e) => ae(e, "", In), de = () => !0, ae = (e, t, n) => {
2445
+ }, st = /^\[(?:([a-z-]+):)?(.+)\]$/i, hn = /^\d+\/\d+$/, mn = /* @__PURE__ */ new Set(["px", "full", "screen"]), gn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, bn = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, vn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, wn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, yn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, q = (e) => se(e) || mn.has(e) || hn.test(e), ee = (e) => ae(e, "length", Mn), se = (e) => !!e && !Number.isNaN(Number(e)), Ne = (e) => ae(e, "number", se), le = (e) => !!e && Number.isInteger(Number(e)), xn = (e) => e.endsWith("%") && se(e.slice(0, -1)), M = (e) => st.test(e), te = (e) => gn.test(e), kn = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Nn = (e) => ae(e, kn, it), An = (e) => ae(e, "position", it), Sn = /* @__PURE__ */ new Set(["image", "url"]), Cn = (e) => ae(e, Sn, Rn), $n = (e) => ae(e, "", In), de = () => !0, ae = (e, t, n) => {
2446
2446
  const r = st.exec(e);
2447
2447
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
2448
2448
  }, Mn = (e) => (
@@ -2451,13 +2451,13 @@ const D = (e) => {
2451
2451
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2452
2452
  bn.test(e) && !vn.test(e)
2453
2453
  ), it = () => !1, In = (e) => wn.test(e), Rn = (e) => yn.test(e), En = () => {
2454
- const e = D("colors"), t = D("spacing"), n = D("blur"), r = D("brightness"), o = D("borderColor"), i = D("borderRadius"), a = D("borderSpacing"), c = D("borderWidth"), l = D("contrast"), u = D("grayscale"), f = D("hueRotate"), v = D("invert"), d = D("gap"), m = D("gradientColorStops"), y = D("gradientColorStopPositions"), b = D("inset"), w = D("margin"), k = D("opacity"), g = D("padding"), p = D("saturate"), h = D("scale"), A = D("sepia"), C = D("skew"), T = D("space"), P = D("translate"), x = () => ["auto", "contain", "none"], I = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", M, t], $ = () => [M, t], L = () => ["", U, ee], O = () => ["auto", se, M], F = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], j = () => ["solid", "dashed", "dotted", "double", "none"], R = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], B = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], W = () => ["", "0", M], G = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Y = () => [se, M];
2454
+ const e = D("colors"), t = D("spacing"), n = D("blur"), r = D("brightness"), o = D("borderColor"), i = D("borderRadius"), a = D("borderSpacing"), c = D("borderWidth"), l = D("contrast"), u = D("grayscale"), f = D("hueRotate"), v = D("invert"), d = D("gap"), m = D("gradientColorStops"), y = D("gradientColorStopPositions"), b = D("inset"), w = D("margin"), k = D("opacity"), g = D("padding"), p = D("saturate"), h = D("scale"), A = D("sepia"), C = D("skew"), T = D("space"), P = D("translate"), x = () => ["auto", "contain", "none"], I = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", M, t], $ = () => [M, t], L = () => ["", q, ee], O = () => ["auto", se, M], F = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], j = () => ["solid", "dashed", "dotted", "double", "none"], R = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], B = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], W = () => ["", "0", M], G = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Y = () => [se, M];
2455
2455
  return {
2456
2456
  cacheSize: 500,
2457
2457
  separator: ":",
2458
2458
  theme: {
2459
2459
  colors: [de],
2460
- spacing: [U, ee],
2460
+ spacing: [q, ee],
2461
2461
  blur: ["none", "", te, M],
2462
2462
  brightness: Y(),
2463
2463
  borderColor: [e],
@@ -3197,7 +3197,7 @@ const D = (e) => {
3197
3197
  * @see https://tailwindcss.com/docs/line-height
3198
3198
  */
3199
3199
  leading: [{
3200
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", U, M]
3200
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", q, M]
3201
3201
  }],
3202
3202
  /**
3203
3203
  * List Style Image
@@ -3273,14 +3273,14 @@ const D = (e) => {
3273
3273
  * @see https://tailwindcss.com/docs/text-decoration-thickness
3274
3274
  */
3275
3275
  "text-decoration-thickness": [{
3276
- decoration: ["auto", "from-font", U, ee]
3276
+ decoration: ["auto", "from-font", q, ee]
3277
3277
  }],
3278
3278
  /**
3279
3279
  * Text Underline Offset
3280
3280
  * @see https://tailwindcss.com/docs/text-underline-offset
3281
3281
  */
3282
3282
  "underline-offset": [{
3283
- "underline-offset": ["auto", U, M]
3283
+ "underline-offset": ["auto", q, M]
3284
3284
  }],
3285
3285
  /**
3286
3286
  * Text Decoration Color
@@ -3762,14 +3762,14 @@ const D = (e) => {
3762
3762
  * @see https://tailwindcss.com/docs/outline-offset
3763
3763
  */
3764
3764
  "outline-offset": [{
3765
- "outline-offset": [U, M]
3765
+ "outline-offset": [q, M]
3766
3766
  }],
3767
3767
  /**
3768
3768
  * Outline Width
3769
3769
  * @see https://tailwindcss.com/docs/outline-width
3770
3770
  */
3771
3771
  "outline-w": [{
3772
- outline: [U, ee]
3772
+ outline: [q, ee]
3773
3773
  }],
3774
3774
  /**
3775
3775
  * Outline Color
@@ -3809,7 +3809,7 @@ const D = (e) => {
3809
3809
  * @see https://tailwindcss.com/docs/ring-offset-width
3810
3810
  */
3811
3811
  "ring-offset-w": [{
3812
- "ring-offset": [U, ee]
3812
+ "ring-offset": [q, ee]
3813
3813
  }],
3814
3814
  /**
3815
3815
  * Ring Offset Color
@@ -4404,7 +4404,7 @@ const D = (e) => {
4404
4404
  * @see https://tailwindcss.com/docs/stroke-width
4405
4405
  */
4406
4406
  "stroke-w": [{
4407
- stroke: [U, ee, Ne]
4407
+ stroke: [q, ee, Ne]
4408
4408
  }],
4409
4409
  /**
4410
4410
  * Stroke
@@ -4484,9 +4484,9 @@ function Pn(...e) {
4484
4484
  return Tn($t(e));
4485
4485
  }
4486
4486
  function gr({ autoWidth: e = !0, className: t, style: n }) {
4487
- const [r, o] = E(() => X.getActiveAppId()), [i, a] = E(() => _.getRunningApps()), { isMobile: c } = tt();
4487
+ const [r, o] = E(() => J.getActiveAppId()), [i, a] = E(() => _.getRunningApps()), { isMobile: c } = tt();
4488
4488
  z(() => {
4489
- const w = X.subscribe("activeAppId", (k) => {
4489
+ const w = J.subscribe("activeAppId", (k) => {
4490
4490
  o(k);
4491
4491
  });
4492
4492
  return () => {
@@ -4496,7 +4496,7 @@ function gr({ autoWidth: e = !0, className: t, style: n }) {
4496
4496
  a(_.getRunningApps());
4497
4497
  }), []), z(() => {
4498
4498
  if (!new URLSearchParams(window.location.search).has("app")) {
4499
- const g = X.getActiveAppId();
4499
+ const g = J.getActiveAppId();
4500
4500
  g && !_.isRunning(g) && _.launchApp(g);
4501
4501
  }
4502
4502
  }, []);
@@ -4527,9 +4527,9 @@ function br({
4527
4527
  side: r = "left",
4528
4528
  getBadge: o
4529
4529
  }) {
4530
- const { t: i } = J(), { isMobile: a } = tt(), [c, l] = E(() => X.getActiveAppId()), [u, f] = E(() => _.getRunningApps());
4530
+ const { t: i } = Z(), { isMobile: a } = tt(), [c, l] = E(() => J.getActiveAppId()), [u, f] = E(() => _.getRunningApps());
4531
4531
  z(() => {
4532
- const p = X.subscribe("activeAppId", (h) => {
4532
+ const p = J.subscribe("activeAppId", (h) => {
4533
4533
  l(h);
4534
4534
  });
4535
4535
  return () => {
@@ -4641,7 +4641,7 @@ function yr() {
4641
4641
  }
4642
4642
  const Ee = ce(null);
4643
4643
  function xr({ rootView: e, children: t }) {
4644
- const { t: n } = J(), r = Xt(), [o, i] = E([e]), [a, c] = E([null]), l = V((h, A) => {
4644
+ const { t: n } = Z(), r = Xt(), [o, i] = E([e]), [a, c] = E([null]), l = V((h, A) => {
4645
4645
  c((C) => {
4646
4646
  const T = [...C];
4647
4647
  return T[h] = A, T;
@@ -4722,7 +4722,7 @@ export {
4722
4722
  br as AppTaskbar,
4723
4723
  Zt as AppTitleBar,
4724
4724
  Yn as Battery,
4725
- q as Button,
4725
+ X as Button,
4726
4726
  Kn as ButtonGroup,
4727
4727
  _n as Checkbox,
4728
4728
  Ue as CloseButton,
@@ -4752,7 +4752,7 @@ export {
4752
4752
  Jn as TrashButton,
4753
4753
  mr as ViewportProvider,
4754
4754
  ie as appRegistry,
4755
- X as appStateStore,
4755
+ J as appStateStore,
4756
4756
  Pn as cn,
4757
4757
  hr as createAppI18nFactory,
4758
4758
  fr as notificationManager,