@khaos-systems/helm 0.1.12 → 0.1.13

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/matter.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as l from "react";
2
- import q, { forwardRef as er, createElement as kn, useState as se, useLayoutEffect as vo, useRef as Me, useCallback as Qe, useMemo as Pe, useEffect as tr, createContext as go, useContext as xo, Children as wo, isValidElement as yo, cloneElement as Va } from "react";
2
+ import q, { forwardRef as er, createElement as kn, useState as se, useLayoutEffect as vo, useRef as je, useCallback as Qe, useMemo as _e, useEffect as tr, createContext as go, useContext as xo, Children as wo, isValidElement as yo, cloneElement as Va } from "react";
3
3
  import * as qt from "react-dom";
4
4
  import Ha from "react-dom";
5
5
  var Mt = { exports: {} }, ut = {};
@@ -263,34 +263,35 @@ function Ga() {
263
263
  }
264
264
  var i = Ga();
265
265
  const Co = q.forwardRef(
266
- ({ children: e, type: t = "button", size: n = "medium", variant: r = "default", kind: o = "default", className: s, ...a }, c) => {
267
- const u = {
266
+ ({ children: e, type: t = "button", size: n = "medium", variant: r = "default", kind: o = "default", selected: s = !1, className: a, ...c }, u) => {
267
+ const p = {
268
268
  medium: "mt-layout-input-medium w-fit",
269
269
  large: "mt-layout-input-large w-fit"
270
- }, p = {
270
+ }, f = {
271
271
  medium: "w-[24px] h-[24px] p-1 flex items-center justify-center",
272
272
  // 24x24
273
273
  large: "w-[32px] h-[32px] p-1 flex items-center justify-center"
274
274
  // 32x32
275
- }, f = {
275
+ }, d = {
276
276
  default: "mt-surface-input-default",
277
277
  accent: "mt-surface-input-accent",
278
278
  ghost: "mt-surface-input-ghost"
279
- }, d = "flex items-center gap-2 rounded transition-all duration-150", m = o === "icon" ? p[n] : u[n];
279
+ }, m = "flex items-center gap-2 rounded transition-all duration-150", v = o === "icon" ? f[n] : p[n];
280
280
  return /* @__PURE__ */ i.jsx(
281
281
  "button",
282
282
  {
283
- ref: c,
283
+ ref: u,
284
284
  type: t,
285
- className: `${d} ${m} ${f[r]} ${s || ""}`,
286
- ...a,
285
+ "data-selected": s ? "true" : void 0,
286
+ className: `${m} ${v} ${d[r]} ${a || ""}`,
287
+ ...c,
287
288
  children: e
288
289
  }
289
290
  );
290
291
  }
291
292
  );
292
293
  Co.displayName = "MtButton";
293
- const Te = Co;
294
+ const Ee = Co;
294
295
  const bo = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
295
296
  const za = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
296
297
  const Ya = (e) => e.replace(
@@ -984,15 +985,15 @@ var bn = "focusScope.autoFocusOnMount", En = "focusScope.autoFocusOnUnmount", Vr
984
985
  let h = function(b) {
985
986
  if (v.paused || !c) return;
986
987
  const C = b.target;
987
- c.contains(C) ? d.current = C : Ne(d.current, { select: !0 });
988
+ c.contains(C) ? d.current = C : Pe(d.current, { select: !0 });
988
989
  }, g = function(b) {
989
990
  if (v.paused || !c) return;
990
991
  const C = b.relatedTarget;
991
- C !== null && (c.contains(C) || Ne(d.current, { select: !0 }));
992
+ C !== null && (c.contains(C) || Pe(d.current, { select: !0 }));
992
993
  }, w = function(b) {
993
994
  if (document.activeElement === document.body)
994
995
  for (const N of b)
995
- N.removedNodes.length > 0 && Ne(c);
996
+ N.removedNodes.length > 0 && Pe(c);
996
997
  };
997
998
  document.addEventListener("focusin", h), document.addEventListener("focusout", g);
998
999
  const y = new MutationObserver(w);
@@ -1006,12 +1007,12 @@ var bn = "focusScope.autoFocusOnMount", En = "focusScope.autoFocusOnUnmount", Vr
1006
1007
  const h = document.activeElement;
1007
1008
  if (!c.contains(h)) {
1008
1009
  const w = new CustomEvent(bn, Vr);
1009
- c.addEventListener(bn, p), c.dispatchEvent(w), w.defaultPrevented || (Qc(ol(Ao(c)), { select: !0 }), document.activeElement === h && Ne(c));
1010
+ c.addEventListener(bn, p), c.dispatchEvent(w), w.defaultPrevented || (Qc(ol(Ao(c)), { select: !0 }), document.activeElement === h && Pe(c));
1010
1011
  }
1011
1012
  return () => {
1012
1013
  c.removeEventListener(bn, p), setTimeout(() => {
1013
1014
  const w = new CustomEvent(En, Vr);
1014
- c.addEventListener(En, f), c.dispatchEvent(w), w.defaultPrevented || Ne(h ?? document.body, { select: !0 }), c.removeEventListener(En, f), Ur.remove(v);
1015
+ c.addEventListener(En, f), c.dispatchEvent(w), w.defaultPrevented || Pe(h ?? document.body, { select: !0 }), c.removeEventListener(En, f), Ur.remove(v);
1015
1016
  }, 0);
1016
1017
  };
1017
1018
  }
@@ -1022,7 +1023,7 @@ var bn = "focusScope.autoFocusOnMount", En = "focusScope.autoFocusOnUnmount", Vr
1022
1023
  const g = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, w = document.activeElement;
1023
1024
  if (g && w) {
1024
1025
  const y = h.currentTarget, [b, C] = el(y);
1025
- b && C ? !h.shiftKey && w === C ? (h.preventDefault(), n && Ne(b, { select: !0 })) : h.shiftKey && w === b && (h.preventDefault(), n && Ne(C, { select: !0 })) : w === y && h.preventDefault();
1026
+ b && C ? !h.shiftKey && w === C ? (h.preventDefault(), n && Pe(b, { select: !0 })) : h.shiftKey && w === b && (h.preventDefault(), n && Pe(C, { select: !0 })) : w === y && h.preventDefault();
1026
1027
  }
1027
1028
  },
1028
1029
  [n, r, v.paused]
@@ -1033,7 +1034,7 @@ xt.displayName = Jc;
1033
1034
  function Qc(e, { select: t = !1 } = {}) {
1034
1035
  const n = document.activeElement;
1035
1036
  for (const r of e)
1036
- if (Ne(r, { select: t }), document.activeElement !== n) return;
1037
+ if (Pe(r, { select: t }), document.activeElement !== n) return;
1037
1038
  }
1038
1039
  function el(e) {
1039
1040
  const t = Ao(e), n = Hr(t, e), r = Hr(t.reverse(), e);
@@ -1065,7 +1066,7 @@ function tl(e, { upTo: t }) {
1065
1066
  function nl(e) {
1066
1067
  return e instanceof HTMLInputElement && "select" in e;
1067
1068
  }
1068
- function Ne(e, { select: t = !1 } = {}) {
1069
+ function Pe(e, { select: t = !1 } = {}) {
1069
1070
  if (e && e.focus) {
1070
1071
  const n = document.activeElement;
1071
1072
  e.focus({ preventScroll: !0 }), e !== n && nl(e) && t && e.select();
@@ -1894,10 +1895,10 @@ const uu = ["top", "right", "bottom", "left"], Oe = Math.min, ie = Math.max, Vt
1894
1895
  function Wn(e, t, n) {
1895
1896
  return ie(e, Oe(t, n));
1896
1897
  }
1897
- function Ee(e, t) {
1898
+ function Se(e, t) {
1898
1899
  return typeof e == "function" ? e(t) : e;
1899
1900
  }
1900
- function Se(e) {
1901
+ function Re(e) {
1901
1902
  return e.split("-")[0];
1902
1903
  }
1903
1904
  function at(e) {
@@ -1944,11 +1945,11 @@ function vu(e, t, n) {
1944
1945
  }
1945
1946
  function gu(e, t, n, r) {
1946
1947
  const o = at(e);
1947
- let s = vu(Se(e), n === "start", r);
1948
+ let s = vu(Re(e), n === "start", r);
1948
1949
  return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(Vn)))), s;
1949
1950
  }
1950
1951
  function Ht(e) {
1951
- const t = Se(e);
1952
+ const t = Re(e);
1952
1953
  return du[t] + e.slice(t.length);
1953
1954
  }
1954
1955
  function xu(e) {
@@ -1991,7 +1992,7 @@ function eo(e, t, n) {
1991
1992
  reference: r,
1992
1993
  floating: o
1993
1994
  } = e;
1994
- const s = xe(t), a = lr(t), c = cr(a), u = Se(t), p = s === "y", f = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, m = r[c] / 2 - o[c] / 2;
1995
+ const s = xe(t), a = lr(t), c = cr(a), u = Re(t), p = s === "y", f = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, m = r[c] / 2 - o[c] / 2;
1995
1996
  let v;
1996
1997
  switch (u) {
1997
1998
  case "top":
@@ -2050,7 +2051,7 @@ async function wu(e, t) {
2050
2051
  elementContext: d = "floating",
2051
2052
  altBoundary: m = !1,
2052
2053
  padding: v = 0
2053
- } = Ee(t, e), x = ns(v), g = c[m ? d === "floating" ? "reference" : "floating" : d], w = Ut(await s.getClippingRect({
2054
+ } = Se(t, e), x = ns(v), g = c[m ? d === "floating" ? "reference" : "floating" : d], w = Ut(await s.getClippingRect({
2054
2055
  element: (n = await (s.isElement == null ? void 0 : s.isElement(g))) == null || n ? g : g.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
2055
2056
  boundary: p,
2056
2057
  rootBoundary: f,
@@ -2158,7 +2159,7 @@ const yu = 50, Cu = async (e, t, n) => {
2158
2159
  } = t, {
2159
2160
  element: p,
2160
2161
  padding: f = 0
2161
- } = Ee(e, t) || {};
2162
+ } = Se(e, t) || {};
2162
2163
  if (p == null)
2163
2164
  return {};
2164
2165
  const d = ns(f), m = {
@@ -2201,10 +2202,10 @@ const yu = 50, Cu = async (e, t, n) => {
2201
2202
  fallbackAxisSideDirection: x = "none",
2202
2203
  flipAlignment: h = !0,
2203
2204
  ...g
2204
- } = Ee(e, t);
2205
+ } = Se(e, t);
2205
2206
  if ((n = s.arrow) != null && n.alignmentOffset)
2206
2207
  return {};
2207
- const w = Se(o), y = xe(c), b = Se(c) === c, C = await (u.isRTL == null ? void 0 : u.isRTL(p.floating)), N = m || (b || !h ? [Ht(c)] : pu(c)), _ = x !== "none";
2208
+ const w = Re(o), y = xe(c), b = Re(c) === c, C = await (u.isRTL == null ? void 0 : u.isRTL(p.floating)), N = m || (b || !h ? [Ht(c)] : pu(c)), _ = x !== "none";
2208
2209
  !m && _ && N.push(...gu(c, h, x, C));
2209
2210
  const R = [c, ...N], S = await u.detectOverflow(t, g), j = [];
2210
2211
  let L = ((r = s.flip) == null ? void 0 : r.overflows) || [];
@@ -2284,7 +2285,7 @@ const Su = function(e) {
2284
2285
  } = t, {
2285
2286
  strategy: o = "referenceHidden",
2286
2287
  ...s
2287
- } = Ee(e, t);
2288
+ } = Se(e, t);
2288
2289
  switch (o) {
2289
2290
  case "referenceHidden": {
2290
2291
  const a = await r.detectOverflow(t, {
@@ -2321,7 +2322,7 @@ async function Ru(e, t) {
2321
2322
  placement: n,
2322
2323
  platform: r,
2323
2324
  elements: o
2324
- } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = Se(n), c = at(n), u = xe(n) === "y", p = rs.has(a) ? -1 : 1, f = s && u ? -1 : 1, d = Ee(t, e);
2325
+ } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = Re(n), c = at(n), u = xe(n) === "y", p = rs.has(a) ? -1 : 1, f = s && u ? -1 : 1, d = Se(t, e);
2325
2326
  let {
2326
2327
  mainAxis: m,
2327
2328
  crossAxis: v,
@@ -2391,10 +2392,10 @@ const Nu = function(e) {
2391
2392
  }
2392
2393
  },
2393
2394
  ...p
2394
- } = Ee(e, t), f = {
2395
+ } = Se(e, t), f = {
2395
2396
  x: n,
2396
2397
  y: r
2397
- }, d = await s.detectOverflow(t, p), m = xe(Se(o)), v = ar(m);
2398
+ }, d = await s.detectOverflow(t, p), m = xe(Re(o)), v = ar(m);
2398
2399
  let x = f[v], h = f[m];
2399
2400
  if (a) {
2400
2401
  const w = v === "y" ? "top" : "left", y = v === "y" ? "bottom" : "right", b = x + d[w], C = x - d[y];
@@ -2436,12 +2437,12 @@ const Nu = function(e) {
2436
2437
  offset: c = 0,
2437
2438
  mainAxis: u = !0,
2438
2439
  crossAxis: p = !0
2439
- } = Ee(e, t), f = {
2440
+ } = Se(e, t), f = {
2440
2441
  x: n,
2441
2442
  y: r
2442
2443
  }, d = xe(o), m = ar(d);
2443
2444
  let v = f[m], x = f[d];
2444
- const h = Ee(c, t), g = typeof h == "number" ? {
2445
+ const h = Se(c, t), g = typeof h == "number" ? {
2445
2446
  mainAxis: h,
2446
2447
  crossAxis: 0
2447
2448
  } : {
@@ -2455,7 +2456,7 @@ const Nu = function(e) {
2455
2456
  }
2456
2457
  if (p) {
2457
2458
  var w, y;
2458
- const b = m === "y" ? "width" : "height", C = rs.has(Se(o)), N = s.reference[d] - s.floating[b] + (C && ((w = a.offset) == null ? void 0 : w[d]) || 0) + (C ? 0 : g.crossAxis), _ = s.reference[d] + s.reference[b] + (C ? 0 : ((y = a.offset) == null ? void 0 : y[d]) || 0) - (C ? g.crossAxis : 0);
2459
+ const b = m === "y" ? "width" : "height", C = rs.has(Re(o)), N = s.reference[d] - s.floating[b] + (C && ((w = a.offset) == null ? void 0 : w[d]) || 0) + (C ? 0 : g.crossAxis), _ = s.reference[d] + s.reference[b] + (C ? 0 : ((y = a.offset) == null ? void 0 : y[d]) || 0) - (C ? g.crossAxis : 0);
2459
2460
  x < N ? x = N : x > _ && (x = _);
2460
2461
  }
2461
2462
  return {
@@ -2479,7 +2480,7 @@ const Nu = function(e) {
2479
2480
  apply: u = () => {
2480
2481
  },
2481
2482
  ...p
2482
- } = Ee(e, t), f = await a.detectOverflow(t, p), d = Se(o), m = at(o), v = xe(o) === "y", {
2483
+ } = Se(e, t), f = await a.detectOverflow(t, p), d = Re(o), m = at(o), v = xe(o) === "y", {
2483
2484
  width: x,
2484
2485
  height: h
2485
2486
  } = s.floating;
@@ -2525,7 +2526,7 @@ function os(e) {
2525
2526
  function he(e) {
2526
2527
  return rn() ? e instanceof Element || e instanceof ce(e).Element : !1;
2527
2528
  }
2528
- function Re(e) {
2529
+ function Ne(e) {
2529
2530
  return rn() ? e instanceof HTMLElement || e instanceof ce(e).HTMLElement : !1;
2530
2531
  }
2531
2532
  function ro(e) {
@@ -2563,7 +2564,7 @@ function ur(e) {
2563
2564
  }
2564
2565
  function Ou(e) {
2565
2566
  let t = Ie(e);
2566
- for (; Re(t) && !nt(t); ) {
2567
+ for (; Ne(t) && !nt(t); ) {
2567
2568
  if (ur(t))
2568
2569
  return t;
2569
2570
  if (on(t))
@@ -2604,7 +2605,7 @@ function Ie(e) {
2604
2605
  }
2605
2606
  function ss(e) {
2606
2607
  const t = Ie(e);
2607
- return nt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Re(t) && yt(t) ? t : ss(t);
2608
+ return nt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ne(t) && yt(t) ? t : ss(t);
2608
2609
  }
2609
2610
  function ht(e, t, n) {
2610
2611
  var r;
@@ -2622,7 +2623,7 @@ function Hn(e) {
2622
2623
  function is(e) {
2623
2624
  const t = me(e);
2624
2625
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
2625
- const o = Re(e), s = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, c = Vt(n) !== s || Vt(r) !== a;
2626
+ const o = Ne(e), s = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, c = Vt(n) !== s || Vt(r) !== a;
2626
2627
  return c && (n = s, r = a), {
2627
2628
  width: n,
2628
2629
  height: r,
@@ -2634,7 +2635,7 @@ function fr(e) {
2634
2635
  }
2635
2636
  function tt(e) {
2636
2637
  const t = fr(e);
2637
- if (!Re(t))
2638
+ if (!Ne(t))
2638
2639
  return we(1);
2639
2640
  const n = t.getBoundingClientRect(), {
2640
2641
  width: r,
@@ -2705,7 +2706,7 @@ function ku(e) {
2705
2706
  scrollLeft: 0,
2706
2707
  scrollTop: 0
2707
2708
  }, p = we(1);
2708
- const f = we(0), d = Re(r);
2709
+ const f = we(0), d = Ne(r);
2709
2710
  if ((d || !d && !s) && ((ct(r) !== "body" || yt(a)) && (u = sn(r)), d)) {
2710
2711
  const v = Ge(r);
2711
2712
  p = tt(r), f.x = v.x + r.clientLeft, f.y = v.y + r.clientTop;
@@ -2754,7 +2755,7 @@ function Fu(e, t) {
2754
2755
  };
2755
2756
  }
2756
2757
  function Bu(e, t) {
2757
- const n = Ge(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = Re(e) ? tt(e) : we(1), a = e.clientWidth * s.x, c = e.clientHeight * s.y, u = o * s.x, p = r * s.y;
2758
+ const n = Ge(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = Ne(e) ? tt(e) : we(1), a = e.clientWidth * s.x, c = e.clientHeight * s.y, u = o * s.x, p = r * s.y;
2758
2759
  return {
2759
2760
  width: a,
2760
2761
  height: c,
@@ -2829,7 +2830,7 @@ function Hu(e) {
2829
2830
  };
2830
2831
  }
2831
2832
  function Uu(e, t, n) {
2832
- const r = Re(t), o = Ce(t), s = n === "fixed", a = Ge(e, !0, s, t);
2833
+ const r = Ne(t), o = Ce(t), s = n === "fixed", a = Ge(e, !0, s, t);
2833
2834
  let c = {
2834
2835
  scrollLeft: 0,
2835
2836
  scrollTop: 0
@@ -2856,7 +2857,7 @@ function jn(e) {
2856
2857
  return me(e).position === "static";
2857
2858
  }
2858
2859
  function io(e, t) {
2859
- if (!Re(e) || me(e).position === "fixed")
2860
+ if (!Ne(e) || me(e).position === "fixed")
2860
2861
  return null;
2861
2862
  if (t)
2862
2863
  return t(e);
@@ -2867,7 +2868,7 @@ function us(e, t) {
2867
2868
  const n = ce(e);
2868
2869
  if (on(e))
2869
2870
  return n;
2870
- if (!Re(e)) {
2871
+ if (!Ne(e)) {
2871
2872
  let o = Ie(e);
2872
2873
  for (; o && !nt(o); ) {
2873
2874
  if (he(o) && !jn(o))
@@ -5862,12 +5863,12 @@ function vh(e) {
5862
5863
  }
5863
5864
  var gh = ba, xh = Ea, wh = Sa, yh = Ra, Ch = Na, bh = Ma;
5864
5865
  function ja(e) {
5865
- return e.map((t, n) => t.separator ? /* @__PURE__ */ i.jsx(_i, { className: "my-1 h-px bg-neutral-700/60" }, `separator-${n}`) : t.items?.length ? /* @__PURE__ */ i.jsxs(If, { children: [
5866
+ return e.map((t, n) => t.separator ? /* @__PURE__ */ i.jsx(_i, { className: "my-1 h-px bg-border-default" }, `separator-${n}`) : t.items?.length ? /* @__PURE__ */ i.jsxs(If, { children: [
5866
5867
  /* @__PURE__ */ i.jsxs(
5867
5868
  Df,
5868
5869
  {
5869
5870
  disabled: t.disabled,
5870
- className: "flex min-w-44 cursor-pointer items-center justify-between rounded-md px-2.5 py-1.5 text-sm text-neutral-100 outline-none transition-colors data-disabled:cursor-not-allowed data-disabled:opacity-40 data-highlighted:bg-neutral-700/60",
5871
+ className: "flex min-w-44 cursor-pointer items-center justify-between rounded-md px-2.5 py-1.5 text-sm text-text-default outline-none transition-colors data-disabled:cursor-not-allowed data-disabled:opacity-40 data-highlighted:bg-surface-hover",
5871
5872
  children: [
5872
5873
  /* @__PURE__ */ i.jsx("span", { children: t.label }),
5873
5874
  /* @__PURE__ */ i.jsx(Ro, { className: "h-3.5 w-3.5 opacity-70" })
@@ -5879,7 +5880,7 @@ function ja(e) {
5879
5880
  {
5880
5881
  sideOffset: 6,
5881
5882
  alignOffset: -4,
5882
- className: "z-50 min-w-44 rounded-lg border border-neutral-700/60 bg-neutral-900/95 p-1.5 shadow-2xl",
5883
+ className: "z-50 min-w-44 rounded-lg border border-border-default bg-surface-base p-1.5 shadow-2xl",
5883
5884
  children: ja(t.items)
5884
5885
  }
5885
5886
  ) })
@@ -5888,10 +5889,10 @@ function ja(e) {
5888
5889
  {
5889
5890
  disabled: t.disabled,
5890
5891
  onSelect: t.onSelect,
5891
- className: "flex min-w-44 cursor-pointer items-center justify-between rounded-md px-2.5 py-1.5 text-sm text-neutral-100 outline-none transition-colors data-disabled:cursor-not-allowed data-disabled:opacity-40 data-highlighted:bg-neutral-700/60",
5892
+ className: "flex min-w-44 cursor-pointer items-center justify-between rounded-md px-2.5 py-1.5 text-sm text-text-default outline-none transition-colors data-disabled:cursor-not-allowed data-disabled:opacity-40 data-highlighted:bg-surface-hover",
5892
5893
  children: [
5893
5894
  /* @__PURE__ */ i.jsx("span", { children: t.label }),
5894
- t.shortcut ? /* @__PURE__ */ i.jsx("span", { className: "ml-6 text-xs text-neutral-500", children: t.shortcut }) : null
5895
+ t.shortcut ? /* @__PURE__ */ i.jsx("span", { className: "ml-6 text-xs text-text-muted", children: t.shortcut }) : null
5895
5896
  ]
5896
5897
  },
5897
5898
  `item-${n}`
@@ -5908,12 +5909,12 @@ function Eh({
5908
5909
  renderHeader: c,
5909
5910
  className: u
5910
5911
  }) {
5911
- const p = Me(null), f = Me(!1), d = Qe(
5912
+ const p = je(null), f = je(!1), d = Qe(
5912
5913
  (v) => {
5913
5914
  o?.(v), v || s?.();
5914
5915
  },
5915
5916
  [s, o]
5916
- ), m = Pe(() => a ? a() : ja(r ?? []), [r, a]);
5917
+ ), m = _e(() => a ? a() : ja(r ?? []), [r, a]);
5917
5918
  return tr(() => {
5918
5919
  if (!e) {
5919
5920
  f.current = !1;
@@ -5934,10 +5935,10 @@ function Eh({
5934
5935
  Af,
5935
5936
  {
5936
5937
  onCloseAutoFocus: (v) => v.preventDefault(),
5937
- className: `z-50 min-w-48 rounded-lg border border-neutral-700/60 bg-neutral-900/95 p-1.5 shadow-2xl ${u ?? ""}`,
5938
+ className: `z-50 min-w-48 rounded-lg border border-border-default bg-surface-base p-1.5 shadow-2xl ${u ?? ""}`,
5938
5939
  children: [
5939
- c ? /* @__PURE__ */ i.jsx("div", { className: "px-2.5 py-1.5 text-xs text-neutral-400", children: c() }) : null,
5940
- c ? /* @__PURE__ */ i.jsx(_i, { className: "my-1 h-px bg-neutral-700/60" }) : null,
5940
+ c ? /* @__PURE__ */ i.jsx("div", { className: "px-2.5 py-1.5 text-xs text-text-muted", children: c() }) : null,
5941
+ c ? /* @__PURE__ */ i.jsx(_i, { className: "my-1 h-px bg-border-default" }) : null,
5941
5942
  m
5942
5943
  ]
5943
5944
  }
@@ -6001,7 +6002,7 @@ function lm({
6001
6002
  r && /* @__PURE__ */ i.jsx(iu, { className: "mt-2 text-sm", children: r })
6002
6003
  ] }),
6003
6004
  a && /* @__PURE__ */ i.jsx(au, { asChild: !0, children: /* @__PURE__ */ i.jsx(
6004
- Te,
6005
+ Ee,
6005
6006
  {
6006
6007
  kind: "icon",
6007
6008
  size: "large",
@@ -6062,7 +6063,7 @@ const Rh = ({
6062
6063
  f.push(d);
6063
6064
  }), /* @__PURE__ */ i.jsxs(ap, { children: [
6064
6065
  /* @__PURE__ */ i.jsx(cp, { asChild: !0, children: p || /* @__PURE__ */ i.jsxs(
6065
- Te,
6066
+ Ee,
6066
6067
  {
6067
6068
  kind: r,
6068
6069
  size: o,
@@ -6120,7 +6121,7 @@ const fo = er(({ size: e, variant: t, className: n, ...r }, o) => {
6120
6121
  ControlLeft: "ctrl",
6121
6122
  ControlRight: "ctrl"
6122
6123
  };
6123
- function je(e) {
6124
+ function Te(e) {
6124
6125
  return (Nh[e.trim()] || e.trim()).toLowerCase().replace(/key|digit|numpad/, "");
6125
6126
  }
6126
6127
  function Oa(e) {
@@ -6131,7 +6132,7 @@ function On(e, t = ",") {
6131
6132
  }
6132
6133
  function In(e, t = "+", n = ">", r = !1, o, s) {
6133
6134
  let a = [], c = !1;
6134
- e = e.trim(), e.includes(n) ? (c = !0, a = e.toLocaleLowerCase().split(n).map((f) => je(f))) : a = e.toLocaleLowerCase().split(t).map((f) => je(f));
6135
+ e = e.trim(), e.includes(n) ? (c = !0, a = e.toLocaleLowerCase().split(n).map((f) => Te(f))) : a = e.toLocaleLowerCase().split(t).map((f) => Te(f));
6135
6136
  const u = {
6136
6137
  alt: a.includes("alt"),
6137
6138
  ctrl: a.includes("ctrl") || a.includes("control"),
@@ -6150,9 +6151,9 @@ function In(e, t = "+", n = ">", r = !1, o, s) {
6150
6151
  };
6151
6152
  }
6152
6153
  typeof document < "u" && (document.addEventListener("keydown", (e) => {
6153
- e.code !== void 0 && Ia([je(e.code)]);
6154
+ e.code !== void 0 && Ia([Te(e.code)]);
6154
6155
  }), document.addEventListener("keyup", (e) => {
6155
- e.code !== void 0 && Da([je(e.code)]);
6156
+ e.code !== void 0 && Da([Te(e.code)]);
6156
6157
  })), typeof window < "u" && (window.addEventListener("blur", () => {
6157
6158
  be.clear();
6158
6159
  }), window.addEventListener("contextmenu", () => {
@@ -6216,7 +6217,7 @@ function Oh(e, t) {
6216
6217
  return e.length === 0 && t ? !1 : t ? e.some((n) => t.includes(n)) || e.includes("*") : !0;
6217
6218
  }
6218
6219
  const Ih = (e, t, n = !1) => {
6219
- const { alt: r, meta: o, mod: s, shift: a, ctrl: c, keys: u, useKey: p } = t, { code: f, key: d, ctrlKey: m, metaKey: v, shiftKey: x, altKey: h } = e, g = je(f);
6220
+ const { alt: r, meta: o, mod: s, shift: a, ctrl: c, keys: u, useKey: p } = t, { code: f, key: d, ctrlKey: m, metaKey: v, shiftKey: x, altKey: h } = e, g = Te(f);
6220
6221
  if (p && u?.length === 1 && u.includes(d.toLowerCase()))
6221
6222
  return !0;
6222
6223
  if (!u?.includes(g) && !["ctrl", "control", "unknown", "meta", "alt", "shift", "os"].includes(g))
@@ -6248,14 +6249,14 @@ const Lh = go({
6248
6249
  }
6249
6250
  }), $h = () => xo(Lh);
6250
6251
  function Fh(e) {
6251
- const t = Me(void 0);
6252
+ const t = je(void 0);
6252
6253
  return La(t.current, e) || (t.current = e), t.current;
6253
6254
  }
6254
6255
  const po = (e) => {
6255
6256
  e.stopPropagation(), e.preventDefault(), e.stopImmediatePropagation();
6256
6257
  }, Bh = typeof window < "u" ? vo : tr;
6257
6258
  function Wh(e, t, n, r) {
6258
- const o = Me(null), s = Me(!1), a = Array.isArray(n) ? Array.isArray(r) ? void 0 : r : n, c = Or(e) ? e.join(a?.delimiter) : e, u = Array.isArray(n) ? n : Array.isArray(r) ? r : void 0, p = Qe(t, u ?? []), f = Me(p);
6259
+ const o = je(null), s = je(!1), a = Array.isArray(n) ? Array.isArray(r) ? void 0 : r : n, c = Or(e) ? e.join(a?.delimiter) : e, u = Array.isArray(n) ? n : Array.isArray(r) ? r : void 0, p = Qe(t, u ?? []), f = je(p);
6259
6260
  u ? f.current = p : f.current = t;
6260
6261
  const d = Fh(a), { activeScopes: m } = $h(), v = kh();
6261
6262
  return Bh(() => {
@@ -6290,7 +6291,7 @@ function Wh(e, t, n, r) {
6290
6291
  h = setTimeout(() => {
6291
6292
  x = [];
6292
6293
  }, d?.sequenceTimeoutMs ?? 1e3);
6293
- const S = R.useKey ? C.key : je(C.code);
6294
+ const S = R.useKey ? C.key : Te(C.code);
6294
6295
  if (Oa(S.toLowerCase()))
6295
6296
  return;
6296
6297
  x.push(S);
@@ -6312,9 +6313,9 @@ function Wh(e, t, n, r) {
6312
6313
  });
6313
6314
  }
6314
6315
  }, w = (C) => {
6315
- C.code !== void 0 && (Ia(je(C.code)), (d?.keydown === void 0 && d?.keyup !== !0 || d?.keydown) && g(C));
6316
+ C.code !== void 0 && (Ia(Te(C.code)), (d?.keydown === void 0 && d?.keyup !== !0 || d?.keydown) && g(C));
6316
6317
  }, y = (C) => {
6317
- C.code !== void 0 && (Da(je(C.code)), s.current = !1, d?.keyup && g(C, !0));
6318
+ C.code !== void 0 && (Da(Te(C.code)), s.current = !1, d?.keyup && g(C, !0));
6318
6319
  }, b = o.current || a?.document || document;
6319
6320
  return b.addEventListener("keyup", y, a?.eventListenerOptions), b.addEventListener("keydown", w, a?.eventListenerOptions), v && On(c, d?.delimiter).forEach((C) => {
6320
6321
  v.addHotkey(
@@ -6361,7 +6362,7 @@ function Fa(e, t) {
6361
6362
  }
6362
6363
  });
6363
6364
  }
6364
- const _e = q.forwardRef(({ children: e, className: t, icon: n, shortcut: r = "", ...o }, s) => /* @__PURE__ */ i.jsxs(
6365
+ const Me = q.forwardRef(({ children: e, className: t, icon: n, shortcut: r = "", ...o }, s) => /* @__PURE__ */ i.jsxs(
6365
6366
  Zp,
6366
6367
  {
6367
6368
  className: `mt-surface-input-ghost focus:ring-0 focus:ring-offset-0 data-highlighted:bg-surface-popover data-[state=checked]:bg-surface-popover flex min-w-44 cursor-pointer items-center justify-between rounded-md px-2.5 py-1.5 text-sm outline-none transition-colors data-disabled:cursor-not-allowed data-disabled:opacity-40 ${t || ""}`,
@@ -6393,7 +6394,7 @@ const _e = q.forwardRef(({ children: e, className: t, icon: n, shortcut: r = "",
6393
6394
  }) => {
6394
6395
  const d = c !== void 0 && u !== void 0, [m, v] = se(c ?? ""), x = d ? c : m, [h, g] = se(!1), [w, y] = se(!1), b = o === "large" ? "[&_svg]:h-5 [&_svg]:w-5" : "[&_svg]:h-4 [&_svg]:w-4", C = o === "large" ? "h-4 w-4" : "h-3.5 w-3.5", { triggerOverride: N, selectItems: _ } = q.useMemo(() => {
6395
6396
  const S = { triggerOverride: null, selectItems: [] };
6396
- return e && Fa(e, S), !e && s && (S.selectItems = s.map((j) => /* @__PURE__ */ i.jsx(_e, { value: j.value, icon: j.icon, disabled: j.disabled, children: j.label }, j.value))), S;
6397
+ return e && Fa(e, S), !e && s && (S.selectItems = s.map((j) => /* @__PURE__ */ i.jsx(Me, { value: j.value, icon: j.icon, disabled: j.disabled, children: j.label }, j.value))), S;
6397
6398
  }, [e, s]), R = _.find(
6398
6399
  (S) => q.isValidElement(S) && S.props.value === x
6399
6400
  );
@@ -6422,7 +6423,7 @@ const _e = q.forwardRef(({ children: e, className: t, icon: n, shortcut: r = "",
6422
6423
  ...f,
6423
6424
  children: [
6424
6425
  /* @__PURE__ */ i.jsx(Kp, { asChild: !0, onMouseEnter: () => y(!0), onMouseLeave: () => y(!1), children: N || /* @__PURE__ */ i.jsxs(
6425
- Te,
6426
+ Ee,
6426
6427
  {
6427
6428
  kind: r,
6428
6429
  size: o,
@@ -6514,10 +6515,10 @@ function fm({
6514
6515
  variant: p = "default",
6515
6516
  showCaret: f = !0
6516
6517
  }) {
6517
- const [d, m] = se(!1), v = s ?? d, x = a ?? m, h = Pe(() => {
6518
+ const [d, m] = se(!1), v = s ?? d, x = a ?? m, h = _e(() => {
6518
6519
  const S = /* @__PURE__ */ new Map();
6519
6520
  return o.forEach((j) => S.set(j.value, j)), S;
6520
- }, [o]), g = Pe(() => {
6521
+ }, [o]), g = _e(() => {
6521
6522
  const S = /* @__PURE__ */ new Map();
6522
6523
  return r.forEach((j) => S.set(j.value, j)), S;
6523
6524
  }, [r]), w = (S) => n(Uh(S, r, o)), y = () => {
@@ -6525,8 +6526,8 @@ function fm({
6525
6526
  return S && S.type === "rule" ? S : Xt(r, o);
6526
6527
  }, b = () => {
6527
6528
  const S = y(), L = h.get(S.operator)?.requiresValue ?? !0, O = g.get(S.field)?.icon;
6528
- return /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2 rounded-md border border-neutral-800/70 bg-neutral-950/40 px-2 py-1.5", children: [
6529
- /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-neutral-400", children: O || /* @__PURE__ */ i.jsx(jt, { className: "h-4 w-4" }) }),
6529
+ return /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2 rounded-md border border-border-default bg-surface-subtle px-2 py-1.5", children: [
6530
+ /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center", children: O || /* @__PURE__ */ i.jsx(jt, { className: "h-4 w-4" }) }),
6530
6531
  /* @__PURE__ */ i.jsx(
6531
6532
  He,
6532
6533
  {
@@ -6543,7 +6544,7 @@ function fm({
6543
6544
  size: "medium",
6544
6545
  showCaret: !1,
6545
6546
  className: "text-xs",
6546
- children: r.map((P) => /* @__PURE__ */ i.jsx(_e, { value: P.value, icon: P.icon, children: P.label }, P.value))
6547
+ children: r.map((P) => /* @__PURE__ */ i.jsx(Me, { value: P.value, icon: P.icon, children: P.label }, P.value))
6547
6548
  }
6548
6549
  ),
6549
6550
  /* @__PURE__ */ i.jsx(
@@ -6566,7 +6567,7 @@ function fm({
6566
6567
  size: "medium",
6567
6568
  showCaret: !1,
6568
6569
  className: "text-xs",
6569
- children: o.map((P) => /* @__PURE__ */ i.jsx(_e, { value: P.value, children: P.label }, P.value))
6570
+ children: o.map((P) => /* @__PURE__ */ i.jsx(Me, { value: P.value, children: P.label }, P.value))
6570
6571
  }
6571
6572
  ),
6572
6573
  L ? /* @__PURE__ */ i.jsx(
@@ -6585,11 +6586,11 @@ function fm({
6585
6586
  },
6586
6587
  variant: "ghost"
6587
6588
  }
6588
- ) : /* @__PURE__ */ i.jsx("span", { className: "text-xs text-neutral-500", children: "No value" })
6589
+ ) : /* @__PURE__ */ i.jsx("span", { className: "text-xs", children: "No value" })
6589
6590
  ] });
6590
6591
  }, C = (S, j) => {
6591
6592
  const O = h.get(S.operator)?.requiresValue ?? !0;
6592
- return /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2 rounded-md border border-neutral-800/70 bg-neutral-950/40 px-2 py-1.5", children: [
6593
+ return /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2 rounded-md border border-border-default bg-surface-subtle px-2 py-1.5", children: [
6593
6594
  /* @__PURE__ */ i.jsx(
6594
6595
  He,
6595
6596
  {
@@ -6606,7 +6607,7 @@ function fm({
6606
6607
  size: "medium",
6607
6608
  showCaret: !1,
6608
6609
  className: "text-xs",
6609
- children: r.map((P) => /* @__PURE__ */ i.jsx(_e, { value: P.value, icon: P.icon, children: P.label }, P.value))
6610
+ children: r.map((P) => /* @__PURE__ */ i.jsx(Me, { value: P.value, icon: P.icon, children: P.label }, P.value))
6610
6611
  }
6611
6612
  ),
6612
6613
  /* @__PURE__ */ i.jsx(
@@ -6626,7 +6627,7 @@ function fm({
6626
6627
  size: "medium",
6627
6628
  showCaret: !1,
6628
6629
  className: "text-xs",
6629
- children: o.map((P) => /* @__PURE__ */ i.jsx(_e, { value: P.value, children: P.label }, P.value))
6630
+ children: o.map((P) => /* @__PURE__ */ i.jsx(Me, { value: P.value, children: P.label }, P.value))
6630
6631
  }
6631
6632
  ),
6632
6633
  O ? /* @__PURE__ */ i.jsx(
@@ -6645,26 +6646,26 @@ function fm({
6645
6646
  },
6646
6647
  variant: "ghost"
6647
6648
  }
6648
- ) : /* @__PURE__ */ i.jsx("span", { className: "text-xs text-neutral-500", children: "No value" }),
6649
+ ) : /* @__PURE__ */ i.jsx("span", { className: "text-xs text-text-muted", children: "No value" }),
6649
6650
  /* @__PURE__ */ i.jsx(
6650
6651
  "button",
6651
6652
  {
6652
6653
  type: "button",
6653
- className: "text-neutral-400 hover:text-neutral-200",
6654
+ className: "text-text-muted hover:text-text-default",
6654
6655
  onClick: () => w(Qn(t, j)),
6655
6656
  "aria-label": "Delete rule",
6656
6657
  children: /* @__PURE__ */ i.jsx($n, { className: "h-4 w-4" })
6657
6658
  }
6658
6659
  )
6659
6660
  ] });
6660
- }, N = (S, j, L = !1) => /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-2 rounded-lg border border-neutral-800/70 bg-neutral-900/40 p-2", children: [
6661
- /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2 text-xs text-neutral-400", children: [
6661
+ }, N = (S, j, L = !1) => /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-2 rounded-lg border border-border-default bg-surface-subtle p-2", children: [
6662
+ /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2 text-xs text-text-muted", children: [
6662
6663
  /* @__PURE__ */ i.jsx("span", { className: "uppercase tracking-wide", children: L ? "Where" : "Group" }),
6663
6664
  /* @__PURE__ */ i.jsx(
6664
6665
  "button",
6665
6666
  {
6666
6667
  type: "button",
6667
- className: "rounded-md border border-neutral-800/70 bg-neutral-950/40 px-2 py-1 text-xs text-neutral-200",
6668
+ className: "rounded-md border border-border-default bg-surface-subtle px-2 py-1 text-xs text-text-primary",
6668
6669
  onClick: () => {
6669
6670
  w(
6670
6671
  Ve(t, j, (O) => ({
@@ -6680,7 +6681,7 @@ function fm({
6680
6681
  "button",
6681
6682
  {
6682
6683
  type: "button",
6683
- className: "ml-auto text-neutral-400 hover:text-neutral-200",
6684
+ className: "ml-auto text-text-muted hover:text-text-default",
6684
6685
  onClick: () => w(Qn(t, j)),
6685
6686
  "aria-label": "Delete group",
6686
6687
  children: /* @__PURE__ */ i.jsx($n, { className: "h-4 w-4" })
@@ -6693,11 +6694,11 @@ function fm({
6693
6694
  }) }),
6694
6695
  /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2 text-xs", children: [
6695
6696
  /* @__PURE__ */ i.jsx(
6696
- Te,
6697
+ Ee,
6697
6698
  {
6698
6699
  kind: "icon",
6699
6700
  variant: "ghost",
6700
- className: "text-neutral-400",
6701
+ className: "text-text-muted",
6701
6702
  onClick: () => {
6702
6703
  w(
6703
6704
  Ve(t, j, (O) => ({
@@ -6709,13 +6710,13 @@ function fm({
6709
6710
  children: /* @__PURE__ */ i.jsx(Ln, { className: "h-4 w-4" })
6710
6711
  }
6711
6712
  ),
6712
- /* @__PURE__ */ i.jsx("span", { className: "text-neutral-500", children: "Add rule" }),
6713
+ /* @__PURE__ */ i.jsx("span", { className: "text-text-primary", children: "Add rule" }),
6713
6714
  /* @__PURE__ */ i.jsx(
6714
- Te,
6715
+ Ee,
6715
6716
  {
6716
6717
  kind: "icon",
6717
6718
  variant: "ghost",
6718
- className: "text-neutral-400",
6719
+ className: "text-text-muted",
6719
6720
  onClick: () => {
6720
6721
  w(
6721
6722
  Ve(t, j, (O) => ({
@@ -6727,23 +6728,23 @@ function fm({
6727
6728
  children: /* @__PURE__ */ i.jsx(Ln, { className: "h-4 w-4" })
6728
6729
  }
6729
6730
  ),
6730
- /* @__PURE__ */ i.jsx("span", { className: "text-neutral-500", children: "Add group" })
6731
+ /* @__PURE__ */ i.jsx("span", { className: "text-text-primary", children: "Add group" })
6731
6732
  ] })
6732
6733
  ] }), _ = g.get(y().field)?.icon, R = v ? /* @__PURE__ */ i.jsx(jt, { className: "h-4 w-4" }) : _ || /* @__PURE__ */ i.jsx(jt, { className: "h-4 w-4" });
6733
6734
  return /* @__PURE__ */ i.jsx(
6734
6735
  Ar,
6735
6736
  {
6736
- title: c === "icon" ? /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-neutral-300", children: R }) : /* @__PURE__ */ i.jsxs("span", { className: "inline-flex items-center gap-2", children: [
6737
- /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-neutral-400", children: R }),
6737
+ title: c === "icon" ? /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-text-primary", children: R }) : /* @__PURE__ */ i.jsxs("span", { className: "inline-flex items-center gap-2", children: [
6738
+ /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-text-primary", children: R }),
6738
6739
  /* @__PURE__ */ i.jsx("span", { children: e })
6739
6740
  ] }),
6740
6741
  kind: c,
6741
6742
  size: u,
6742
6743
  variant: p,
6743
6744
  showCaret: f,
6744
- children: /* @__PURE__ */ i.jsxs("div", { className: "w-130 max-w-[80vw] p-2 text-neutral-200", children: [
6745
+ children: /* @__PURE__ */ i.jsxs("div", { className: "w-130 max-w-[80vw] p-2 text-text-primary", children: [
6745
6746
  /* @__PURE__ */ i.jsxs("div", { className: "mb-2 flex items-center justify-between", children: [
6746
- /* @__PURE__ */ i.jsxs("span", { className: "flex items-center gap-2 text-xs uppercase tracking-wide text-neutral-500", children: [
6747
+ /* @__PURE__ */ i.jsxs("span", { className: "flex items-center gap-2 text-xs uppercase tracking-wide text-text-muted", children: [
6747
6748
  v && /* @__PURE__ */ i.jsx(jt, { className: "h-3.5 w-3.5" }),
6748
6749
  v ? "Advanced" : "Simple",
6749
6750
  " filter"
@@ -6752,7 +6753,7 @@ function fm({
6752
6753
  "button",
6753
6754
  {
6754
6755
  type: "button",
6755
- className: "text-neutral-400 hover:text-neutral-200",
6756
+ className: "text-text-muted hover:text-text-default",
6756
6757
  onClick: () => x(!v),
6757
6758
  "aria-label": "Toggle filter type",
6758
6759
  children: /* @__PURE__ */ i.jsx(hc, { className: "h-4 w-4" })
@@ -6925,7 +6926,7 @@ function ym({
6925
6926
  align: o = "center",
6926
6927
  disabled: s = !1
6927
6928
  }) {
6928
- const [a, c] = se(!1), u = Me(null), p = Qe(() => {
6929
+ const [a, c] = se(!1), u = je(null), p = Qe(() => {
6929
6930
  u.current && (clearTimeout(u.current), u.current = null);
6930
6931
  }, []), f = Qe(() => {
6931
6932
  p(), c(!0), u.current = setTimeout(() => {
@@ -6957,10 +6958,10 @@ function ym({
6957
6958
  sideOffset: 8,
6958
6959
  role: "status",
6959
6960
  "aria-live": "polite",
6960
- className: "pointer-events-none rounded-md border border-neutral-600/70 bg-neutral-900/90 px-2 py-1 text-xs text-neutral-100 shadow-[0_10px_24px_rgba(0,0,0,0.45)] backdrop-blur-sm transition-all duration-150 data-[state=open]:opacity-100 data-[state=open]:translate-y-0 data-[state=closed]:opacity-0 data-[state=closed]:translate-y-1",
6961
+ className: "pointer-events-none rounded-md border border-border-default bg-surface-subtle px-2 py-1 text-xs text-text-primary shadow-[0_10px_24px_rgba(0,0,0,0.45)] backdrop-blur-sm transition-all duration-150 data-[state=open]:opacity-100 data-[state=open]:translate-y-0 data-[state=closed]:opacity-0 data-[state=closed]:translate-y-1",
6961
6962
  children: [
6962
6963
  t,
6963
- /* @__PURE__ */ i.jsx(Yi, { className: "fill-neutral-800" })
6964
+ /* @__PURE__ */ i.jsx(Yi, { className: "fill-surface-subtle" })
6964
6965
  ]
6965
6966
  }
6966
6967
  ) })
@@ -6997,7 +6998,7 @@ const Kh = ({
6997
6998
  side: o,
6998
6999
  align: s,
6999
7000
  sideOffset: a,
7000
- className: `bg-neutral-950/90 border border-neutral-700/50 rounded-lg p-2 shadow-2xl backdrop-blur-md z-50 ${c || ""}`,
7001
+ className: `bg-surface-subtle border border-border-default rounded-lg p-2 shadow-2xl backdrop-blur-md z-50 ${c || ""}`,
7001
7002
  children: t
7002
7003
  }
7003
7004
  ) })
@@ -7009,7 +7010,7 @@ function Cm({ value: e, max: t = 100, className: n, barClassName: r }) {
7009
7010
  return /* @__PURE__ */ i.jsx(
7010
7011
  "div",
7011
7012
  {
7012
- className: `h-2 w-full overflow-hidden rounded-full bg-neutral-700/50 ${n || ""}`,
7013
+ className: `h-2 w-full overflow-hidden rounded-full bg-surface-subtle ${n || ""}`,
7013
7014
  role: "progressbar",
7014
7015
  "aria-valuemin": 0,
7015
7016
  "aria-valuemax": t,
@@ -7033,7 +7034,7 @@ function bm({
7033
7034
  placeholder: s = "Search",
7034
7035
  ...a
7035
7036
  }) {
7036
- const c = Me(null), [u, p] = se(""), f = r !== void 0, d = f ? String(r ?? "") : u, m = {
7037
+ const c = je(null), [u, p] = se(""), f = r !== void 0, d = f ? String(r ?? "") : u, m = {
7037
7038
  medium: "mt-layout-input-medium",
7038
7039
  large: "mt-layout-input-large"
7039
7040
  }, v = {
@@ -7063,7 +7064,7 @@ function bm({
7063
7064
  }
7064
7065
  ),
7065
7066
  d.length > 0 && /* @__PURE__ */ i.jsx(
7066
- Te,
7067
+ Ee,
7067
7068
  {
7068
7069
  kind: "icon",
7069
7070
  size: e,
@@ -7102,21 +7103,21 @@ function Em({
7102
7103
  return /* @__PURE__ */ i.jsx(
7103
7104
  Ar,
7104
7105
  {
7105
- title: o === "icon" ? /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-neutral-300", children: d() }) : /* @__PURE__ */ i.jsxs("span", { className: "inline-flex items-center gap-2", children: [
7106
- /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-neutral-400", children: d() }),
7106
+ title: o === "icon" ? /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-text-muted", children: d() }) : /* @__PURE__ */ i.jsxs("span", { className: "inline-flex items-center gap-2", children: [
7107
+ /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-text-muted", children: d() }),
7107
7108
  /* @__PURE__ */ i.jsx("span", { children: e })
7108
7109
  ] }),
7109
7110
  kind: o,
7110
7111
  size: s,
7111
7112
  variant: a,
7112
7113
  showCaret: c,
7113
- children: /* @__PURE__ */ i.jsxs("div", { className: "w-105 max-w-[80vw] p-2 text-neutral-200", children: [
7114
+ children: /* @__PURE__ */ i.jsxs("div", { className: "w-105 max-w-[80vw] p-2 text-text-muted", children: [
7114
7115
  /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-2", children: [
7115
- t.length === 0 && /* @__PURE__ */ i.jsx("div", { className: "text-xs text-neutral-500", children: "No sorting rules." }),
7116
+ t.length === 0 && /* @__PURE__ */ i.jsx("div", { className: "text-xs text-text-muted", children: "No sorting rules." }),
7116
7117
  t.map((m, v) => /* @__PURE__ */ i.jsxs(
7117
7118
  "div",
7118
7119
  {
7119
- className: "flex items-center gap-2 rounded-md border border-neutral-800/70 bg-neutral-950/40 px-2 py-1.5",
7120
+ className: "flex items-center gap-2 rounded-md border border-border-default bg-surface-subtle px-2 py-1.5",
7120
7121
  children: [
7121
7122
  /* @__PURE__ */ i.jsx(
7122
7123
  He,
@@ -7127,7 +7128,7 @@ function Em({
7127
7128
  size: "medium",
7128
7129
  showCaret: !1,
7129
7130
  className: "text-xs",
7130
- children: r.map((x) => /* @__PURE__ */ i.jsx(_e, { value: x.value, children: x.label }, x.value))
7131
+ children: r.map((x) => /* @__PURE__ */ i.jsx(Me, { value: x.value, children: x.label }, x.value))
7131
7132
  }
7132
7133
  ),
7133
7134
  /* @__PURE__ */ i.jsxs(
@@ -7142,8 +7143,8 @@ function Em({
7142
7143
  showCaret: !1,
7143
7144
  className: "text-xs",
7144
7145
  children: [
7145
- /* @__PURE__ */ i.jsx(_e, { value: "asc", children: "Ascending" }),
7146
- /* @__PURE__ */ i.jsx(_e, { value: "desc", children: "Descending" })
7146
+ /* @__PURE__ */ i.jsx(Me, { value: "asc", children: "Ascending" }),
7147
+ /* @__PURE__ */ i.jsx(Me, { value: "desc", children: "Descending" })
7147
7148
  ]
7148
7149
  }
7149
7150
  ),
@@ -7151,7 +7152,7 @@ function Em({
7151
7152
  "button",
7152
7153
  {
7153
7154
  type: "button",
7154
- className: "ml-auto text-neutral-400 hover:text-neutral-200",
7155
+ className: "ml-auto text-text-muted hover:text-text-default",
7155
7156
  onClick: () => p(v),
7156
7157
  "aria-label": "Delete sort rule",
7157
7158
  children: /* @__PURE__ */ i.jsx($n, { className: "h-4 w-4" })
@@ -7163,8 +7164,8 @@ function Em({
7163
7164
  ))
7164
7165
  ] }),
7165
7166
  /* @__PURE__ */ i.jsxs("div", { className: "mt-3 flex items-center gap-2 text-xs", children: [
7166
- /* @__PURE__ */ i.jsx(Te, { kind: "icon", variant: "ghost", className: "text-neutral-400", onClick: f, children: /* @__PURE__ */ i.jsx(Ln, { className: "h-4 w-4" }) }),
7167
- /* @__PURE__ */ i.jsx("span", { className: "text-neutral-500", children: "Add sort" })
7167
+ /* @__PURE__ */ i.jsx(Ee, { kind: "icon", variant: "ghost", className: "text-text-muted", onClick: f, children: /* @__PURE__ */ i.jsx(Ln, { className: "h-4 w-4" }) }),
7168
+ /* @__PURE__ */ i.jsx("span", { className: "text-text-muted", children: "Add sort" })
7168
7169
  ] })
7169
7170
  ] })
7170
7171
  }
@@ -7229,7 +7230,7 @@ function Nm({
7229
7230
  side: s,
7230
7231
  align: a,
7231
7232
  sideOffset: 8,
7232
- className: "z-50 w-[320px] rounded-xl border border-neutral-700/70 bg-neutral-900/95 p-3 text-neutral-100 shadow-[0_20px_60px_rgba(0,0,0,0.55)]",
7233
+ className: "z-50 w-[320px] rounded-xl border border-border-default bg-surface-subtle p-3 text-text-default shadow-[0_20px_60px_rgba(0,0,0,0.55)]",
7233
7234
  children: [
7234
7235
  /* @__PURE__ */ i.jsxs("div", { className: "flex items-start justify-between gap-3", children: [
7235
7236
  t ? /* @__PURE__ */ i.jsx("div", { className: "text-sm font-semibold leading-5", children: t }) : /* @__PURE__ */ i.jsx("div", {}),
@@ -7239,14 +7240,14 @@ function Nm({
7239
7240
  type: "button",
7240
7241
  "aria-label": "Close toggletip",
7241
7242
  onClick: () => u(!1),
7242
- className: "inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full border border-neutral-700/60 bg-neutral-800/70 text-neutral-300 transition-colors hover:bg-neutral-700/80 hover:text-neutral-100",
7243
+ className: "inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full border border-border-default bg-surface-subtle text-text-muted transition-colors hover:bg-surface-default hover:text-text-default",
7243
7244
  children: /* @__PURE__ */ i.jsx(Zt, { className: "h-4 w-4" })
7244
7245
  }
7245
7246
  )
7246
7247
  ] }),
7247
- /* @__PURE__ */ i.jsx("div", { className: "mt-2 text-sm text-neutral-200", children: n }),
7248
- r && /* @__PURE__ */ i.jsx("div", { className: "mt-3 border-t border-neutral-700/50 pt-2", children: r }),
7249
- /* @__PURE__ */ i.jsx(Yi, { className: "fill-neutral-800" })
7248
+ /* @__PURE__ */ i.jsx("div", { className: "mt-2 text-sm text-text-muted", children: n }),
7249
+ r && /* @__PURE__ */ i.jsx("div", { className: "mt-3 border-t border-border-default pt-2", children: r }),
7250
+ /* @__PURE__ */ i.jsx(Yi, { className: "fill-border-default" })
7250
7251
  ]
7251
7252
  }
7252
7253
  ) })
@@ -7320,10 +7321,10 @@ const Zh = ({
7320
7321
  indentPx: d = 14,
7321
7322
  toggleOnItemClick: m = !0
7322
7323
  }) => {
7323
- const v = r !== void 0, x = a !== void 0, [h, g] = se(o ?? ""), [w, y] = se(new Set(c)), b = v ? r : h, C = Pe(
7324
+ const v = r !== void 0, x = a !== void 0, [h, g] = se(o ?? ""), [w, y] = se(new Set(c)), b = v ? r : h, C = _e(
7324
7325
  () => x ? new Set(a) : w,
7325
7326
  [a, w, x]
7326
- ), N = Pe(() => Wa(t), [t]), _ = Pe(() => e?.length && N.length ? [...e, ...N] : e?.length ? e : N, [e, N]), R = Pe(() => new Map(Xh(_).map((P) => [P.id, P])), [_]), S = (P) => {
7327
+ ), N = _e(() => Wa(t), [t]), _ = _e(() => e?.length && N.length ? [...e, ...N] : e?.length ? e : N, [e, N]), R = _e(() => new Map(Xh(_).map((P) => [P.id, P])), [_]), S = (P) => {
7327
7328
  const I = R.get(P) ?? null;
7328
7329
  v || g(P), s?.(P, I);
7329
7330
  }, j = (P) => {
@@ -7338,10 +7339,11 @@ const Zh = ({
7338
7339
  depth: I
7339
7340
  };
7340
7341
  return /* @__PURE__ */ i.jsxs("li", { role: "none", className: "flex flex-col", children: [
7341
- /* @__PURE__ */ i.jsx("div", { className: "flex items-stretch", children: /* @__PURE__ */ i.jsx(
7342
- "button",
7342
+ /* @__PURE__ */ i.jsx(
7343
+ Ee,
7343
7344
  {
7344
- type: "button",
7345
+ variant: "ghost",
7346
+ selected: B,
7345
7347
  role: "treeitem",
7346
7348
  "aria-expanded": W ? $ : void 0,
7347
7349
  "aria-selected": B,
@@ -7350,10 +7352,10 @@ const Zh = ({
7350
7352
  onClick: () => {
7351
7353
  p?.(D), S(D.id), W && m && L(D.id);
7352
7354
  },
7353
- className: `flex w-full items-center gap-1 rounded-md border border-transparent py-1 pr-2 text-left transition-colors ${B ? "bg-neutral-700/50 text-neutral-100" : "text-neutral-200 hover:bg-neutral-700/50"} ${D.disabled ? "cursor-not-allowed opacity-50" : ""}`,
7355
+ className: "h-auto min-h-0 w-full items-center justify-start gap-1 py-1 pr-2 text-left",
7354
7356
  style: { paddingLeft: `${I * d + 6}px` },
7355
7357
  children: f ? f(D, k) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
7356
- /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-neutral-500", children: W ? /* @__PURE__ */ i.jsx(
7358
+ /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-text-muted", children: W ? /* @__PURE__ */ i.jsx(
7357
7359
  Ro,
7358
7360
  {
7359
7361
  onClick: (A) => {
@@ -7362,12 +7364,12 @@ const Zh = ({
7362
7364
  className: `h-3.5 w-3.5 transition-transform ${$ ? "rotate-90" : ""}`
7363
7365
  }
7364
7366
  ) : null }),
7365
- D.icon && /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-neutral-400", children: D.icon }),
7367
+ D.icon && /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-text-primary", children: D.icon }),
7366
7368
  /* @__PURE__ */ i.jsx("span", { className: "truncate text-sm", children: D.label }),
7367
- D.trailing && /* @__PURE__ */ i.jsx("span", { className: "ml-auto text-xs text-neutral-500", children: D.trailing })
7369
+ D.trailing && /* @__PURE__ */ i.jsx("span", { className: "ml-auto text-xs text-text-primary", children: D.trailing })
7368
7370
  ] })
7369
7371
  }
7370
- ) }),
7372
+ ),
7371
7373
  W && $ && D.children ? O(D.children, I + 1) : null
7372
7374
  ] }, D.id);
7373
7375
  }) });
@@ -7418,7 +7420,7 @@ function _m({
7418
7420
  r && /* @__PURE__ */ i.jsx("div", { className: "mt-3", children: r })
7419
7421
  ] }),
7420
7422
  o && /* @__PURE__ */ i.jsx(
7421
- Te,
7423
+ Ee,
7422
7424
  {
7423
7425
  kind: "icon",
7424
7426
  size: "medium",
@@ -7447,7 +7449,7 @@ function tm(e) {
7447
7449
  return n.length === 1 ? n[0].slice(0, 2).toUpperCase() : `${n[0][0] ?? ""}${n[n.length - 1][0] ?? ""}`.toUpperCase();
7448
7450
  }
7449
7451
  function ho({ src: e, alt: t, name: n, initials: r, size: o = "sm", className: s, ...a }) {
7450
- const [c, u] = se(null), p = Pe(() => tm(r ?? n ?? t), [t, r, n]), f = [
7452
+ const [c, u] = se(null), p = _e(() => tm(r ?? n ?? t), [t, r, n]), f = [
7451
7453
  "inline-flex rounded-full shrink-0 select-none items-center justify-center overflow-hidden bg-surface-popover text-white",
7452
7454
  em[o],
7453
7455
  s
@@ -7512,7 +7514,7 @@ export {
7512
7514
  ho as MtAvatar,
7513
7515
  Mm as MtAvatarGroup,
7514
7516
  vm as MtBacklogIcon,
7515
- Te as MtButton,
7517
+ Ee as MtButton,
7516
7518
  wm as MtCheckIcon,
7517
7519
  im as MtCheckbox,
7518
7520
  Eh as MtContextMenu,
@@ -7532,7 +7534,7 @@ export {
7532
7534
  Cm as MtProgress,
7533
7535
  bm as MtSearch,
7534
7536
  He as MtSelect,
7535
- _e as MtSelectItem,
7537
+ Me as MtSelectItem,
7536
7538
  Em as MtSortDropdown,
7537
7539
  Sm as MtStack,
7538
7540
  Rm as MtTextarea,