@koide-labs/ui 0.1.1 → 0.1.2

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.
Files changed (93) hide show
  1. package/dist/accordion.css +1 -1
  2. package/dist/alert-dialog.css +1 -1
  3. package/dist/anchor.css +1 -1
  4. package/dist/avatar.css +1 -1
  5. package/dist/badge.css +1 -1
  6. package/dist/button.css +1 -1
  7. package/dist/checkbox.css +1 -1
  8. package/dist/code.css +1 -1
  9. package/dist/collapse.css +1 -1
  10. package/dist/command.css +1 -1
  11. package/dist/components/accordion/accordion.js +40 -40
  12. package/dist/components/alert-dialog/alert-dialog.js +9 -9
  13. package/dist/components/anchor/anchor.js +5 -5
  14. package/dist/components/avatar/avatar.js +26 -26
  15. package/dist/components/badge/badge.js +13 -13
  16. package/dist/components/button/button.js +13 -13
  17. package/dist/components/checkbox/checkbox.js +1 -1
  18. package/dist/components/code/code.js +48 -48
  19. package/dist/components/collapse/collapse.js +14 -14
  20. package/dist/components/command/command.js +121 -121
  21. package/dist/components/context-menu/context-menu.js +6 -6
  22. package/dist/components/dialog/dialog.js +1 -1
  23. package/dist/components/heading/heading.js +6 -6
  24. package/dist/components/icon/icon.js +12 -12
  25. package/dist/components/icon-button/icon-button.js +26 -26
  26. package/dist/components/inline-code/inline-code.js +2 -2
  27. package/dist/components/input/input.js +1 -1
  28. package/dist/components/meter/meter.js +40 -40
  29. package/dist/components/multiline-input/multiline-input.js +1 -1
  30. package/dist/components/number-input/number-input.js +7 -7
  31. package/dist/components/password-input/password-input.js +2 -2
  32. package/dist/components/pill/pill.js +11 -11
  33. package/dist/components/popover/popover.js +21 -21
  34. package/dist/components/preview-card/preview-card.js +2 -2
  35. package/dist/components/radio-group/radio-group.js +54 -54
  36. package/dist/components/search-bar/search-bar.js +8 -8
  37. package/dist/components/select/select.js +75 -75
  38. package/dist/components/separator/index.js +1 -1
  39. package/dist/components/separator/separator.js +1 -1
  40. package/dist/components/slider/slider.js +128 -128
  41. package/dist/components/spinner/spinner.js +4 -4
  42. package/dist/components/stacked-avatars/stacked-avatars.js +35 -35
  43. package/dist/components/status-banner/status-banner.js +22 -22
  44. package/dist/components/surface/surface.js +14 -14
  45. package/dist/components/switch/switch.js +28 -28
  46. package/dist/components/tabs/tabs.js +132 -132
  47. package/dist/components/text/text.js +15 -15
  48. package/dist/components/timestamp/timestamp.js +73 -73
  49. package/dist/components/toaster/toaster.js +165 -165
  50. package/dist/components/tooltip/index.js +1 -1
  51. package/dist/components/tooltip/tooltip.js +1 -1
  52. package/dist/components/view/view.js +40 -40
  53. package/dist/context-menu.css +1 -1
  54. package/dist/dialog.css +1 -1
  55. package/dist/{dialog.module-DsbQRp-d.js → dialog.module-Pi1eHwli.js} +13 -13
  56. package/dist/heading.css +1 -1
  57. package/dist/icon-button.css +1 -1
  58. package/dist/icon.css +1 -1
  59. package/dist/index.js +2 -2
  60. package/dist/inline-code.css +1 -1
  61. package/dist/input.css +1 -1
  62. package/dist/input.module-zw1dlr1_.js +8 -0
  63. package/dist/integrations/react-markdown/index.js +1 -1
  64. package/dist/meter.css +1 -1
  65. package/dist/number-input.css +1 -1
  66. package/dist/password-input.css +1 -1
  67. package/dist/pill.css +1 -1
  68. package/dist/popover.css +1 -1
  69. package/dist/preview-card.css +1 -1
  70. package/dist/radio-group.css +1 -1
  71. package/dist/search-bar.css +1 -1
  72. package/dist/select.css +1 -1
  73. package/dist/{separator-fh_wDZNf.js → separator-wNYojB9q.js} +8 -8
  74. package/dist/separator.css +1 -1
  75. package/dist/slider.css +1 -1
  76. package/dist/spinner.css +1 -1
  77. package/dist/stacked-avatars.css +1 -1
  78. package/dist/status-banner.css +1 -1
  79. package/dist/styles/core.css +1 -1
  80. package/dist/surface.css +1 -1
  81. package/dist/switch.css +1 -1
  82. package/dist/tabs.css +1 -1
  83. package/dist/text.css +1 -1
  84. package/dist/timestamp.css +1 -1
  85. package/dist/toaster.css +1 -1
  86. package/dist/{tooltip-oCp-elli.js → tooltip-DZkByWDR.js} +63 -63
  87. package/dist/tooltip.css +1 -1
  88. package/dist/view.css +1 -1
  89. package/dist/view.module-DlwuNdUj.js +6 -0
  90. package/dist/view2.css +1 -1
  91. package/package.json +1 -1
  92. package/dist/input.module-CtE19OH8.js +0 -8
  93. package/dist/view.module-Dj7wj0kk.js +0 -6
@@ -1,4 +1,4 @@
1
- import { jsx as b, jsxs as oe, Fragment as Qe } from "react/jsx-runtime";
1
+ import { jsx as E, jsxs as oe, Fragment as Qe } from "react/jsx-runtime";
2
2
  import * as a from "react";
3
3
  import { useState as Qt } from "react";
4
4
  import { c as ie, u as q, P as G } from "../../index-CeuccO-T.js";
@@ -10,7 +10,7 @@ import { Dialog as nn } from "../dialog/dialog.js";
10
10
  import { View as ye } from "../view/view.js";
11
11
  import { Icon as vt } from "../icon/icon.js";
12
12
  import { Text as pt } from "../text/text.js";
13
- import { S as rn } from "../../separator-fh_wDZNf.js";
13
+ import { S as rn } from "../../separator-wNYojB9q.js";
14
14
  import '../../command.css';var Je = 1, on = 0.9, an = 0.8, cn = 0.17, Ne = 0.1, Oe = 0.999, un = 0.9999, sn = 0.99, ln = /[\\\/_+.#"@\[\(\{&]/, dn = /[\\\/_+.#"@\[\(\{&]/g, fn = /[\s-]/, ht = /[\s-]/g;
15
15
  function Be(e, t, n, r, o, i, u) {
16
16
  if (i === t.length) return o === e.length ? Je : sn;
@@ -34,7 +34,7 @@ function K(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
34
34
  function vn(e, t) {
35
35
  const n = a.createContext(t), r = (i) => {
36
36
  const { children: u, ...c } = i, m = a.useMemo(() => c, Object.values(c));
37
- return /* @__PURE__ */ b(n.Provider, { value: m, children: u });
37
+ return /* @__PURE__ */ E(n.Provider, { value: m, children: u });
38
38
  };
39
39
  r.displayName = e + "Provider";
40
40
  function o(i) {
@@ -52,7 +52,7 @@ function pn(e, t = []) {
52
52
  n = [...n, u];
53
53
  const s = (f) => {
54
54
  const { scope: p, children: h, ..._ } = f, v = p?.[e]?.[m] || c, y = a.useMemo(() => _, Object.values(_));
55
- return /* @__PURE__ */ b(v.Provider, { value: y, children: h });
55
+ return /* @__PURE__ */ E(v.Provider, { value: y, children: h });
56
56
  };
57
57
  s.displayName = i + "Provider";
58
58
  function d(f, p) {
@@ -102,8 +102,8 @@ function $(e) {
102
102
  n((r) => r ?? String(yn++));
103
103
  }, [e]), t ? `radix-${t}` : "";
104
104
  }
105
- var bn = a[" useInsertionEffect ".trim().toString()] || se;
106
- function En({
105
+ var En = a[" useInsertionEffect ".trim().toString()] || se;
106
+ function bn({
107
107
  prop: e,
108
108
  defaultProp: t,
109
109
  onChange: n = () => {
@@ -140,7 +140,7 @@ function wn({
140
140
  onChange: t
141
141
  }) {
142
142
  const [n, r] = a.useState(e), o = a.useRef(n), i = a.useRef(t);
143
- return bn(() => {
143
+ return En(() => {
144
144
  i.current = t;
145
145
  }, [t]), a.useEffect(() => {
146
146
  o.current !== n && (i.current?.(n), o.current = n);
@@ -155,9 +155,9 @@ function gt(e) {
155
155
  const { children: i, ...u } = r, c = a.Children.toArray(i), m = c.find(_n);
156
156
  if (m) {
157
157
  const s = m.props.children, d = c.map((f) => f === m ? a.Children.count(s) > 1 ? a.Children.only(null) : a.isValidElement(s) ? s.props.children : null : f);
158
- return /* @__PURE__ */ b(t, { ...u, ref: o, children: a.isValidElement(s) ? a.cloneElement(s, void 0, d) : null });
158
+ return /* @__PURE__ */ E(t, { ...u, ref: o, children: a.isValidElement(s) ? a.cloneElement(s, void 0, d) : null });
159
159
  }
160
- return /* @__PURE__ */ b(t, { ...u, ref: o, children: i });
160
+ return /* @__PURE__ */ E(t, { ...u, ref: o, children: i });
161
161
  });
162
162
  return n.displayName = `${e}.Slot`, n;
163
163
  }
@@ -213,7 +213,7 @@ var Nn = [
213
213
  ], U = Nn.reduce((e, t) => {
214
214
  const n = /* @__PURE__ */ gt(`Primitive.${t}`), r = a.forwardRef((o, i) => {
215
215
  const { asChild: u, ...c } = o, m = u ? n : t;
216
- return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ b(m, { ...c, ref: i });
216
+ return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ E(m, { ...c, ref: i });
217
217
  });
218
218
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
219
219
  }, {});
@@ -239,7 +239,7 @@ var An = "DismissableLayer", $e = "dismissableLayer.update", xn = "dismissableLa
239
239
  layers: /* @__PURE__ */ new Set(),
240
240
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
241
241
  branches: /* @__PURE__ */ new Set()
242
- }), bt = a.forwardRef(
242
+ }), Et = a.forwardRef(
243
243
  (e, t) => {
244
244
  const {
245
245
  disableOutsidePointerEvents: n = !1,
@@ -249,15 +249,15 @@ var An = "DismissableLayer", $e = "dismissableLayer.update", xn = "dismissableLa
249
249
  onInteractOutside: u,
250
250
  onDismiss: c,
251
251
  ...m
252
- } = e, s = a.useContext(yt), [d, f] = a.useState(null), p = d?.ownerDocument ?? globalThis?.document, [, h] = a.useState({}), _ = q(t, (E) => f(E)), v = Array.from(s.layers), [y] = [...s.layersWithOutsidePointerEventsDisabled].slice(-1), C = v.indexOf(y), P = d ? v.indexOf(d) : -1, I = s.layersWithOutsidePointerEventsDisabled.size > 0, D = P >= C, N = Ln((E) => {
253
- const T = E.target, F = [...s.branches].some((W) => W.contains(T));
254
- !D || F || (o?.(E), u?.(E), E.defaultPrevented || c?.());
255
- }, p), S = Fn((E) => {
256
- const T = E.target;
257
- [...s.branches].some((W) => W.contains(T)) || (i?.(E), u?.(E), E.defaultPrevented || c?.());
252
+ } = e, s = a.useContext(yt), [d, f] = a.useState(null), p = d?.ownerDocument ?? globalThis?.document, [, h] = a.useState({}), _ = q(t, (b) => f(b)), v = Array.from(s.layers), [y] = [...s.layersWithOutsidePointerEventsDisabled].slice(-1), C = v.indexOf(y), P = d ? v.indexOf(d) : -1, I = s.layersWithOutsidePointerEventsDisabled.size > 0, D = P >= C, N = Ln((b) => {
253
+ const T = b.target, F = [...s.branches].some((W) => W.contains(T));
254
+ !D || F || (o?.(b), u?.(b), b.defaultPrevented || c?.());
255
+ }, p), S = Fn((b) => {
256
+ const T = b.target;
257
+ [...s.branches].some((W) => W.contains(T)) || (i?.(b), u?.(b), b.defaultPrevented || c?.());
258
258
  }, p);
259
- return In((E) => {
260
- P === s.layers.size - 1 && (r?.(E), !E.defaultPrevented && c && (E.preventDefault(), c()));
259
+ return In((b) => {
260
+ P === s.layers.size - 1 && (r?.(b), !b.defaultPrevented && c && (b.preventDefault(), c()));
261
261
  }, p), a.useEffect(() => {
262
262
  if (d)
263
263
  return n && (s.layersWithOutsidePointerEventsDisabled.size === 0 && (tt = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), s.layersWithOutsidePointerEventsDisabled.add(d)), s.layers.add(d), nt(), () => {
@@ -266,9 +266,9 @@ var An = "DismissableLayer", $e = "dismissableLayer.update", xn = "dismissableLa
266
266
  }, [d, p, n, s]), a.useEffect(() => () => {
267
267
  d && (s.layers.delete(d), s.layersWithOutsidePointerEventsDisabled.delete(d), nt());
268
268
  }, [d, s]), a.useEffect(() => {
269
- const E = () => h({});
270
- return document.addEventListener($e, E), () => document.removeEventListener($e, E);
271
- }, []), /* @__PURE__ */ b(
269
+ const b = () => h({});
270
+ return document.addEventListener($e, b), () => document.removeEventListener($e, b);
271
+ }, []), /* @__PURE__ */ E(
272
272
  U.div,
273
273
  {
274
274
  ...m,
@@ -287,7 +287,7 @@ var An = "DismissableLayer", $e = "dismissableLayer.update", xn = "dismissableLa
287
287
  );
288
288
  }
289
289
  );
290
- bt.displayName = An;
290
+ Et.displayName = An;
291
291
  var Tn = "DismissableLayerBranch", kn = a.forwardRef((e, t) => {
292
292
  const n = a.useContext(yt), r = a.useRef(null), o = q(t, r);
293
293
  return a.useEffect(() => {
@@ -296,7 +296,7 @@ var Tn = "DismissableLayerBranch", kn = a.forwardRef((e, t) => {
296
296
  return n.branches.add(i), () => {
297
297
  n.branches.delete(i);
298
298
  };
299
- }, [n.branches]), /* @__PURE__ */ b(U.div, { ...e, ref: o });
299
+ }, [n.branches]), /* @__PURE__ */ E(U.div, { ...e, ref: o });
300
300
  });
301
301
  kn.displayName = Tn;
302
302
  function Ln(e, t = globalThis?.document) {
@@ -306,7 +306,7 @@ function Ln(e, t = globalThis?.document) {
306
306
  const i = (c) => {
307
307
  if (c.target && !r.current) {
308
308
  let m = function() {
309
- Et(
309
+ bt(
310
310
  xn,
311
311
  n,
312
312
  s,
@@ -333,7 +333,7 @@ function Fn(e, t = globalThis?.document) {
333
333
  const n = le(e), r = a.useRef(!1);
334
334
  return a.useEffect(() => {
335
335
  const o = (i) => {
336
- i.target && !r.current && Et(Mn, n, { originalEvent: i }, {
336
+ i.target && !r.current && bt(Mn, n, { originalEvent: i }, {
337
337
  discrete: !1
338
338
  });
339
339
  };
@@ -347,7 +347,7 @@ function nt() {
347
347
  const e = new CustomEvent($e);
348
348
  document.dispatchEvent(e);
349
349
  }
350
- function Et(e, t, n, { discrete: r }) {
350
+ function bt(e, t, n, { discrete: r }) {
351
351
  const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
352
352
  t && o.addEventListener(e, t, { once: !0 }), r ? On(o, i) : o.dispatchEvent(i);
353
353
  }
@@ -372,15 +372,15 @@ var Ie = "focusScope.autoFocusOnMount", Ae = "focusScope.autoFocusOnUnmount", rt
372
372
  let v = function(I) {
373
373
  if (h.paused || !c) return;
374
374
  const D = I.target;
375
- c.contains(D) ? f.current = D : V(f.current, { select: !0 });
375
+ c.contains(D) ? f.current = D : j(f.current, { select: !0 });
376
376
  }, y = function(I) {
377
377
  if (h.paused || !c) return;
378
378
  const D = I.relatedTarget;
379
- D !== null && (c.contains(D) || V(f.current, { select: !0 }));
379
+ D !== null && (c.contains(D) || j(f.current, { select: !0 }));
380
380
  }, C = function(I) {
381
381
  if (document.activeElement === document.body)
382
382
  for (const N of I)
383
- N.removedNodes.length > 0 && V(c);
383
+ N.removedNodes.length > 0 && j(c);
384
384
  };
385
385
  document.addEventListener("focusin", v), document.addEventListener("focusout", y);
386
386
  const P = new MutationObserver(C);
@@ -394,12 +394,12 @@ var Ie = "focusScope.autoFocusOnMount", Ae = "focusScope.autoFocusOnUnmount", rt
394
394
  const v = document.activeElement;
395
395
  if (!c.contains(v)) {
396
396
  const C = new CustomEvent(Ie, rt);
397
- c.addEventListener(Ie, s), c.dispatchEvent(C), C.defaultPrevented || (Bn(Kn(Ct(c)), { select: !0 }), document.activeElement === v && V(c));
397
+ c.addEventListener(Ie, s), c.dispatchEvent(C), C.defaultPrevented || (Bn(Kn(Ct(c)), { select: !0 }), document.activeElement === v && j(c));
398
398
  }
399
399
  return () => {
400
400
  c.removeEventListener(Ie, s), setTimeout(() => {
401
401
  const C = new CustomEvent(Ae, rt);
402
- c.addEventListener(Ae, d), c.dispatchEvent(C), C.defaultPrevented || V(v ?? document.body, { select: !0 }), c.removeEventListener(Ae, d), at.remove(h);
402
+ c.addEventListener(Ae, d), c.dispatchEvent(C), C.defaultPrevented || j(v ?? document.body, { select: !0 }), c.removeEventListener(Ae, d), at.remove(h);
403
403
  }, 0);
404
404
  };
405
405
  }
@@ -410,18 +410,18 @@ var Ie = "focusScope.autoFocusOnMount", Ae = "focusScope.autoFocusOnUnmount", rt
410
410
  const y = v.key === "Tab" && !v.altKey && !v.ctrlKey && !v.metaKey, C = document.activeElement;
411
411
  if (y && C) {
412
412
  const P = v.currentTarget, [I, D] = $n(P);
413
- I && D ? !v.shiftKey && C === D ? (v.preventDefault(), n && V(I, { select: !0 })) : v.shiftKey && C === I && (v.preventDefault(), n && V(D, { select: !0 })) : C === P && v.preventDefault();
413
+ I && D ? !v.shiftKey && C === D ? (v.preventDefault(), n && j(I, { select: !0 })) : v.shiftKey && C === I && (v.preventDefault(), n && j(D, { select: !0 })) : C === P && v.preventDefault();
414
414
  }
415
415
  },
416
416
  [n, r, h.paused]
417
417
  );
418
- return /* @__PURE__ */ b(U.div, { tabIndex: -1, ...u, ref: p, onKeyDown: _ });
418
+ return /* @__PURE__ */ E(U.div, { tabIndex: -1, ...u, ref: p, onKeyDown: _ });
419
419
  });
420
420
  wt.displayName = Wn;
421
421
  function Bn(e, { select: t = !1 } = {}) {
422
422
  const n = document.activeElement;
423
423
  for (const r of e)
424
- if (V(r, { select: t }), document.activeElement !== n) return;
424
+ if (j(r, { select: t }), document.activeElement !== n) return;
425
425
  }
426
426
  function $n(e) {
427
427
  const t = Ct(e), n = ot(t, e), r = ot(t.reverse(), e);
@@ -450,17 +450,17 @@ function Un(e, { upTo: t }) {
450
450
  }
451
451
  return !1;
452
452
  }
453
- function jn(e) {
453
+ function Vn(e) {
454
454
  return e instanceof HTMLInputElement && "select" in e;
455
455
  }
456
- function V(e, { select: t = !1 } = {}) {
456
+ function j(e, { select: t = !1 } = {}) {
457
457
  if (e && e.focus) {
458
458
  const n = document.activeElement;
459
- e.focus({ preventScroll: !0 }), e !== n && jn(e) && t && e.select();
459
+ e.focus({ preventScroll: !0 }), e !== n && Vn(e) && t && e.select();
460
460
  }
461
461
  }
462
- var at = Vn();
463
- function Vn() {
462
+ var at = jn();
463
+ function jn() {
464
464
  let e = [];
465
465
  return {
466
466
  add(t) {
@@ -483,7 +483,7 @@ var Hn = "Portal", St = a.forwardRef((e, t) => {
483
483
  const { container: n, ...r } = e, [o, i] = a.useState(!1);
484
484
  se(() => i(!0), []);
485
485
  const u = n || o && globalThis?.document?.body;
486
- return u ? en.createPortal(/* @__PURE__ */ b(U.div, { ...r, ref: t }), u) : null;
486
+ return u ? en.createPortal(/* @__PURE__ */ E(U.div, { ...r, ref: t }), u) : null;
487
487
  });
488
488
  St.displayName = Hn;
489
489
  function Gn(e, t) {
@@ -585,7 +585,7 @@ function qn(e, t, n) {
585
585
  (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
586
586
  return e.concat(i || Array.prototype.slice.call(t));
587
587
  }
588
- var be = "right-scroll-bar-position", Ee = "width-before-scroll-bar", Zn = "with-scroll-bars-hidden", Qn = "--removed-body-scroll-bar-size";
588
+ var Ee = "right-scroll-bar-position", be = "width-before-scroll-bar", Zn = "with-scroll-bars-hidden", Qn = "--removed-body-scroll-bar-size";
589
589
  function Me(e, t) {
590
590
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
591
591
  }
@@ -712,12 +712,12 @@ var Pt = or(), Te = function() {
712
712
  onScrollCapture: Te,
713
713
  onWheelCapture: Te,
714
714
  onTouchMoveCapture: Te
715
- }), o = r[0], i = r[1], u = e.forwardProps, c = e.children, m = e.className, s = e.removeScrollBar, d = e.enabled, f = e.shards, p = e.sideCar, h = e.noRelative, _ = e.noIsolation, v = e.inert, y = e.allowPinchZoom, C = e.as, P = C === void 0 ? "div" : C, I = e.gapMode, D = Rt(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = p, S = tr([n, t]), E = L(L({}, D), o);
715
+ }), o = r[0], i = r[1], u = e.forwardProps, c = e.children, m = e.className, s = e.removeScrollBar, d = e.enabled, f = e.shards, p = e.sideCar, h = e.noRelative, _ = e.noIsolation, v = e.inert, y = e.allowPinchZoom, C = e.as, P = C === void 0 ? "div" : C, I = e.gapMode, D = Rt(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = p, S = tr([n, t]), b = L(L({}, D), o);
716
716
  return a.createElement(
717
717
  a.Fragment,
718
718
  null,
719
719
  d && a.createElement(N, { sideCar: Pt, removeScrollBar: s, shards: f, noRelative: h, noIsolation: _, inert: v, setCallbacks: i, allowPinchZoom: !!y, lockRef: n, gapMode: I }),
720
- u ? a.cloneElement(a.Children.only(c), L(L({}, E), { ref: S })) : a.createElement(P, L({}, E, { className: m, ref: S }), c)
720
+ u ? a.cloneElement(a.Children.only(c), L(L({}, b), { ref: S })) : a.createElement(P, L({}, b, { className: m, ref: S }), c)
721
721
  );
722
722
  });
723
723
  Se.defaultProps = {
@@ -726,8 +726,8 @@ Se.defaultProps = {
726
726
  inert: !1
727
727
  };
728
728
  Se.classNames = {
729
- fullWidth: Ee,
730
- zeroRight: be
729
+ fullWidth: be,
730
+ zeroRight: Ee
731
731
  };
732
732
  var ir = function() {
733
733
  if (typeof __webpack_nonce__ < "u")
@@ -817,19 +817,19 @@ var lr = function() {
817
817
  ].filter(Boolean).join(""), `
818
818
  }
819
819
 
820
- .`).concat(be, ` {
820
+ .`).concat(Ee, ` {
821
821
  right: `).concat(c, "px ").concat(r, `;
822
822
  }
823
823
 
824
- .`).concat(Ee, ` {
824
+ .`).concat(be, ` {
825
825
  margin-right: `).concat(c, "px ").concat(r, `;
826
826
  }
827
827
 
828
- .`).concat(be, " .").concat(be, ` {
828
+ .`).concat(Ee, " .").concat(Ee, ` {
829
829
  right: 0 `).concat(r, `;
830
830
  }
831
831
 
832
- .`).concat(Ee, " .").concat(Ee, ` {
832
+ .`).concat(be, " .").concat(be, ` {
833
833
  margin-right: 0 `).concat(r, `;
834
834
  }
835
835
 
@@ -866,7 +866,7 @@ if (typeof window < "u")
866
866
  } catch {
867
867
  Ue = !1;
868
868
  }
869
- var J = Ue ? { passive: !1 } : !1, br = function(e) {
869
+ var J = Ue ? { passive: !1 } : !1, Er = function(e) {
870
870
  return e.tagName === "TEXTAREA";
871
871
  }, Nt = function(e, t) {
872
872
  if (!(e instanceof Element))
@@ -875,9 +875,9 @@ var J = Ue ? { passive: !1 } : !1, br = function(e) {
875
875
  return (
876
876
  // not-not-scrollable
877
877
  n[t] !== "hidden" && // contains scroll inside self
878
- !(n.overflowY === n.overflowX && !br(e) && n[t] === "visible")
878
+ !(n.overflowY === n.overflowX && !Er(e) && n[t] === "visible")
879
879
  );
880
- }, Er = function(e) {
880
+ }, br = function(e) {
881
881
  return Nt(e, "overflowY");
882
882
  }, wr = function(e) {
883
883
  return Nt(e, "overflowX");
@@ -909,7 +909,7 @@ var J = Ue ? { passive: !1 } : !1, br = function(e) {
909
909
  r
910
910
  ];
911
911
  }, Ot = function(e, t) {
912
- return e === "v" ? Er(t) : wr(t);
912
+ return e === "v" ? br(t) : wr(t);
913
913
  }, It = function(e, t) {
914
914
  return e === "v" ? Cr(t) : Sr(t);
915
915
  }, Rr = function(e, t) {
@@ -963,16 +963,16 @@ function Or(e) {
963
963
  var c = a.useCallback(function(v, y) {
964
964
  if ("touches" in v && v.touches.length === 2 || v.type === "wheel" && v.ctrlKey)
965
965
  return !u.current.allowPinchZoom;
966
- var C = pe(v), P = n.current, I = "deltaX" in v ? v.deltaX : P[0] - C[0], D = "deltaY" in v ? v.deltaY : P[1] - C[1], N, S = v.target, E = Math.abs(I) > Math.abs(D) ? "h" : "v";
967
- if ("touches" in v && E === "h" && S.type === "range")
966
+ var C = pe(v), P = n.current, I = "deltaX" in v ? v.deltaX : P[0] - C[0], D = "deltaY" in v ? v.deltaY : P[1] - C[1], N, S = v.target, b = Math.abs(I) > Math.abs(D) ? "h" : "v";
967
+ if ("touches" in v && b === "h" && S.type === "range")
968
968
  return !1;
969
969
  var T = window.getSelection(), F = T && T.anchorNode, W = F ? F === S || F.contains(S) : !1;
970
970
  if (W)
971
971
  return !1;
972
- var j = lt(E, S);
973
- if (!j)
972
+ var V = lt(b, S);
973
+ if (!V)
974
974
  return !0;
975
- if (j ? N = E : (N = E === "v" ? "h" : "v", j = lt(E, S)), !j)
975
+ if (V ? N = b : (N = b === "v" ? "h" : "v", V = lt(b, S)), !V)
976
976
  return !1;
977
977
  if (!r.current && "changedTouches" in v && (I || D) && (r.current = N), !N)
978
978
  return !0;
@@ -1094,13 +1094,13 @@ var xr = function(e) {
1094
1094
  defaultOpen: o,
1095
1095
  onOpenChange: i,
1096
1096
  modal: u = !0
1097
- } = e, c = a.useRef(null), m = a.useRef(null), [s, d] = En({
1097
+ } = e, c = a.useRef(null), m = a.useRef(null), [s, d] = bn({
1098
1098
  prop: r,
1099
1099
  defaultProp: o ?? !1,
1100
1100
  onChange: i,
1101
1101
  caller: Re
1102
1102
  });
1103
- return /* @__PURE__ */ b(
1103
+ return /* @__PURE__ */ E(
1104
1104
  Lr,
1105
1105
  {
1106
1106
  scope: t,
@@ -1121,7 +1121,7 @@ Tt.displayName = Re;
1121
1121
  var kt = "DialogTrigger", Fr = a.forwardRef(
1122
1122
  (e, t) => {
1123
1123
  const { __scopeDialog: n, ...r } = e, o = k(kt, n), i = q(t, o.triggerRef);
1124
- return /* @__PURE__ */ b(
1124
+ return /* @__PURE__ */ E(
1125
1125
  U.button,
1126
1126
  {
1127
1127
  type: "button",
@@ -1137,17 +1137,17 @@ var kt = "DialogTrigger", Fr = a.forwardRef(
1137
1137
  }
1138
1138
  );
1139
1139
  Fr.displayName = kt;
1140
- var Ve = "DialogPortal", [Wr, Lt] = Mt(Ve, {
1140
+ var je = "DialogPortal", [Wr, Lt] = Mt(je, {
1141
1141
  forceMount: void 0
1142
1142
  }), Ft = (e) => {
1143
- const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, i = k(Ve, t);
1144
- return /* @__PURE__ */ b(Wr, { scope: t, forceMount: n, children: a.Children.map(r, (u) => /* @__PURE__ */ b(Ce, { present: n || i.open, children: /* @__PURE__ */ b(St, { asChild: !0, container: o, children: u }) })) });
1143
+ const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, i = k(je, t);
1144
+ return /* @__PURE__ */ E(Wr, { scope: t, forceMount: n, children: a.Children.map(r, (u) => /* @__PURE__ */ E(Ce, { present: n || i.open, children: /* @__PURE__ */ E(St, { asChild: !0, container: o, children: u }) })) });
1145
1145
  };
1146
- Ft.displayName = Ve;
1146
+ Ft.displayName = je;
1147
1147
  var we = "DialogOverlay", Wt = a.forwardRef(
1148
1148
  (e, t) => {
1149
1149
  const n = Lt(we, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = k(we, e.__scopeDialog);
1150
- return i.modal ? /* @__PURE__ */ b(Ce, { present: r || i.open, children: /* @__PURE__ */ b($r, { ...o, ref: t }) }) : null;
1150
+ return i.modal ? /* @__PURE__ */ E(Ce, { present: r || i.open, children: /* @__PURE__ */ E($r, { ...o, ref: t }) }) : null;
1151
1151
  }
1152
1152
  );
1153
1153
  Wt.displayName = we;
@@ -1157,7 +1157,7 @@ var Br = /* @__PURE__ */ gt("DialogOverlay.RemoveScroll"), $r = a.forwardRef(
1157
1157
  return (
1158
1158
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
1159
1159
  // ie. when `Overlay` and `Content` are siblings
1160
- /* @__PURE__ */ b(At, { as: Br, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ b(
1160
+ /* @__PURE__ */ E(At, { as: Br, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ E(
1161
1161
  U.div,
1162
1162
  {
1163
1163
  "data-state": He(o.open),
@@ -1171,7 +1171,7 @@ var Br = /* @__PURE__ */ gt("DialogOverlay.RemoveScroll"), $r = a.forwardRef(
1171
1171
  ), Y = "DialogContent", Bt = a.forwardRef(
1172
1172
  (e, t) => {
1173
1173
  const n = Lt(Y, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = k(Y, e.__scopeDialog);
1174
- return /* @__PURE__ */ b(Ce, { present: r || i.open, children: i.modal ? /* @__PURE__ */ b(Ur, { ...o, ref: t }) : /* @__PURE__ */ b(jr, { ...o, ref: t }) });
1174
+ return /* @__PURE__ */ E(Ce, { present: r || i.open, children: i.modal ? /* @__PURE__ */ E(Ur, { ...o, ref: t }) : /* @__PURE__ */ E(Vr, { ...o, ref: t }) });
1175
1175
  }
1176
1176
  );
1177
1177
  Bt.displayName = Y;
@@ -1181,7 +1181,7 @@ var Ur = a.forwardRef(
1181
1181
  return a.useEffect(() => {
1182
1182
  const i = r.current;
1183
1183
  if (i) return kr(i);
1184
- }, []), /* @__PURE__ */ b(
1184
+ }, []), /* @__PURE__ */ E(
1185
1185
  $t,
1186
1186
  {
1187
1187
  ...e,
@@ -1202,10 +1202,10 @@ var Ur = a.forwardRef(
1202
1202
  }
1203
1203
  );
1204
1204
  }
1205
- ), jr = a.forwardRef(
1205
+ ), Vr = a.forwardRef(
1206
1206
  (e, t) => {
1207
1207
  const n = k(Y, e.__scopeDialog), r = a.useRef(!1), o = a.useRef(!1);
1208
- return /* @__PURE__ */ b(
1208
+ return /* @__PURE__ */ E(
1209
1209
  $t,
1210
1210
  {
1211
1211
  ...e,
@@ -1227,7 +1227,7 @@ var Ur = a.forwardRef(
1227
1227
  (e, t) => {
1228
1228
  const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...u } = e, c = k(Y, n), m = a.useRef(null), s = q(t, m);
1229
1229
  return Xn(), /* @__PURE__ */ oe(Qe, { children: [
1230
- /* @__PURE__ */ b(
1230
+ /* @__PURE__ */ E(
1231
1231
  wt,
1232
1232
  {
1233
1233
  asChild: !0,
@@ -1235,8 +1235,8 @@ var Ur = a.forwardRef(
1235
1235
  trapped: r,
1236
1236
  onMountAutoFocus: o,
1237
1237
  onUnmountAutoFocus: i,
1238
- children: /* @__PURE__ */ b(
1239
- bt,
1238
+ children: /* @__PURE__ */ E(
1239
+ Et,
1240
1240
  {
1241
1241
  role: "dialog",
1242
1242
  id: c.contentId,
@@ -1251,29 +1251,29 @@ var Ur = a.forwardRef(
1251
1251
  }
1252
1252
  ),
1253
1253
  /* @__PURE__ */ oe(Qe, { children: [
1254
- /* @__PURE__ */ b(Gr, { titleId: c.titleId }),
1255
- /* @__PURE__ */ b(Yr, { contentRef: m, descriptionId: c.descriptionId })
1254
+ /* @__PURE__ */ E(Gr, { titleId: c.titleId }),
1255
+ /* @__PURE__ */ E(Yr, { contentRef: m, descriptionId: c.descriptionId })
1256
1256
  ] })
1257
1257
  ] });
1258
1258
  }
1259
- ), Ke = "DialogTitle", Vr = a.forwardRef(
1259
+ ), Ke = "DialogTitle", jr = a.forwardRef(
1260
1260
  (e, t) => {
1261
1261
  const { __scopeDialog: n, ...r } = e, o = k(Ke, n);
1262
- return /* @__PURE__ */ b(U.h2, { id: o.titleId, ...r, ref: t });
1262
+ return /* @__PURE__ */ E(U.h2, { id: o.titleId, ...r, ref: t });
1263
1263
  }
1264
1264
  );
1265
- Vr.displayName = Ke;
1265
+ jr.displayName = Ke;
1266
1266
  var Ut = "DialogDescription", Kr = a.forwardRef(
1267
1267
  (e, t) => {
1268
1268
  const { __scopeDialog: n, ...r } = e, o = k(Ut, n);
1269
- return /* @__PURE__ */ b(U.p, { id: o.descriptionId, ...r, ref: t });
1269
+ return /* @__PURE__ */ E(U.p, { id: o.descriptionId, ...r, ref: t });
1270
1270
  }
1271
1271
  );
1272
1272
  Kr.displayName = Ut;
1273
- var jt = "DialogClose", Hr = a.forwardRef(
1273
+ var Vt = "DialogClose", Hr = a.forwardRef(
1274
1274
  (e, t) => {
1275
- const { __scopeDialog: n, ...r } = e, o = k(jt, n);
1276
- return /* @__PURE__ */ b(
1275
+ const { __scopeDialog: n, ...r } = e, o = k(Vt, n);
1276
+ return /* @__PURE__ */ E(
1277
1277
  U.button,
1278
1278
  {
1279
1279
  type: "button",
@@ -1284,16 +1284,16 @@ var jt = "DialogClose", Hr = a.forwardRef(
1284
1284
  );
1285
1285
  }
1286
1286
  );
1287
- Hr.displayName = jt;
1287
+ Hr.displayName = Vt;
1288
1288
  function He(e) {
1289
1289
  return e ? "open" : "closed";
1290
1290
  }
1291
- var Vt = "DialogTitleWarning", [Fo, Kt] = vn(Vt, {
1291
+ var jt = "DialogTitleWarning", [Fo, Kt] = vn(jt, {
1292
1292
  contentName: Y,
1293
1293
  titleName: Ke,
1294
1294
  docsSlug: "dialog"
1295
1295
  }), Gr = ({ titleId: e }) => {
1296
- const t = Kt(Vt), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
1296
+ const t = Kt(jt), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
1297
1297
 
1298
1298
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
1299
1299
 
@@ -1307,7 +1307,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
1307
1307
  const o = e.current?.getAttribute("aria-describedby");
1308
1308
  t && o && (document.getElementById(t) || console.warn(r));
1309
1309
  }, [r, e, t]), null;
1310
- }, Xr = Tt, qr = Ft, Zr = Wt, Qr = Bt, ue = '[cmdk-group=""]', Fe = '[cmdk-group-items=""]', Jr = '[cmdk-group-heading=""]', Ht = '[cmdk-item=""]', mt = `${Ht}:not([aria-disabled="true"])`, je = "cmdk-item-select", ne = "data-value", eo = (e, t, n) => mn(e, t, n), Gt = a.createContext(void 0), de = () => a.useContext(Gt), zt = a.createContext(void 0), Ge = () => a.useContext(zt), Yt = a.createContext(void 0), Xt = a.forwardRef((e, t) => {
1310
+ }, Xr = Tt, qr = Ft, Zr = Wt, Qr = Bt, ue = '[cmdk-group=""]', Fe = '[cmdk-group-items=""]', Jr = '[cmdk-group-heading=""]', Ht = '[cmdk-item=""]', mt = `${Ht}:not([aria-disabled="true"])`, Ve = "cmdk-item-select", ne = "data-value", eo = (e, t, n) => mn(e, t, n), Gt = a.createContext(void 0), de = () => a.useContext(Gt), zt = a.createContext(void 0), Ge = () => a.useContext(zt), Yt = a.createContext(void 0), Xt = a.forwardRef((e, t) => {
1311
1311
  let n = re(() => {
1312
1312
  var l, w;
1313
1313
  return { search: "", value: (w = (l = e.value) != null ? l : e.defaultValue) != null ? w : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
@@ -1315,15 +1315,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
1315
1315
  X(() => {
1316
1316
  if (d !== void 0) {
1317
1317
  let l = d.trim();
1318
- n.current.value = l, E.emit();
1318
+ n.current.value = l, b.emit();
1319
1319
  }
1320
1320
  }, [d]), X(() => {
1321
1321
  S(6, ze);
1322
1322
  }, []);
1323
- let E = a.useMemo(() => ({ subscribe: (l) => (u.current.add(l), () => u.current.delete(l)), snapshot: () => n.current, setState: (l, w, R) => {
1323
+ let b = a.useMemo(() => ({ subscribe: (l) => (u.current.add(l), () => u.current.delete(l)), snapshot: () => n.current, setState: (l, w, R) => {
1324
1324
  var g, O, A, M;
1325
1325
  if (!Object.is(n.current[l], w)) {
1326
- if (n.current[l] = w, l === "search") Z(), W(), S(1, j);
1326
+ if (n.current[l] = w, l === "search") Z(), W(), S(1, V);
1327
1327
  else if (l === "value") {
1328
1328
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
1329
1329
  let x = document.getElementById(D);
@@ -1331,29 +1331,29 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
1331
1331
  }
1332
1332
  if (S(7, () => {
1333
1333
  var x;
1334
- n.current.selectedItemId = (x = Q()) == null ? void 0 : x.id, E.emit();
1334
+ n.current.selectedItemId = (x = Q()) == null ? void 0 : x.id, b.emit();
1335
1335
  }), R || S(5, ze), ((O = c.current) == null ? void 0 : O.value) !== void 0) {
1336
1336
  let x = w ?? "";
1337
1337
  (M = (A = c.current).onValueChange) == null || M.call(A, x);
1338
1338
  return;
1339
1339
  }
1340
1340
  }
1341
- E.emit();
1341
+ b.emit();
1342
1342
  }
1343
1343
  }, emit: () => {
1344
1344
  u.current.forEach((l) => l());
1345
1345
  } }), []), T = a.useMemo(() => ({ value: (l, w, R) => {
1346
1346
  var g;
1347
1347
  w !== ((g = i.current.get(l)) == null ? void 0 : g.value) && (i.current.set(l, { value: w, keywords: R }), n.current.filtered.items.set(l, F(w, R)), S(2, () => {
1348
- W(), E.emit();
1348
+ W(), b.emit();
1349
1349
  }));
1350
1350
  }, item: (l, w) => (r.current.add(l), w && (o.current.has(w) ? o.current.get(w).add(l) : o.current.set(w, /* @__PURE__ */ new Set([l]))), S(3, () => {
1351
- Z(), W(), n.current.value || j(), E.emit();
1351
+ Z(), W(), n.current.value || V(), b.emit();
1352
1352
  }), () => {
1353
1353
  i.current.delete(l), r.current.delete(l), n.current.filtered.items.delete(l);
1354
1354
  let R = Q();
1355
1355
  S(4, () => {
1356
- Z(), R?.getAttribute("id") === l && j(), E.emit();
1356
+ Z(), R?.getAttribute("id") === l && V(), b.emit();
1357
1357
  });
1358
1358
  }), group: (l) => (o.current.has(l) || o.current.set(l, /* @__PURE__ */ new Set()), () => {
1359
1359
  i.current.delete(l), o.current.delete(l);
@@ -1387,9 +1387,9 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
1387
1387
  A?.parentElement.appendChild(A);
1388
1388
  });
1389
1389
  }
1390
- function j() {
1390
+ function V() {
1391
1391
  let l = ce().find((R) => R.getAttribute("aria-disabled") !== "true"), w = l?.getAttribute(ne);
1392
- E.setState("value", w || void 0);
1392
+ b.setState("value", w || void 0);
1393
1393
  }
1394
1394
  function Z() {
1395
1395
  var l, w, R, g;
@@ -1424,17 +1424,17 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
1424
1424
  }
1425
1425
  function Pe(l) {
1426
1426
  let w = ce()[l];
1427
- w && E.setState("value", w.getAttribute(ne));
1427
+ w && b.setState("value", w.getAttribute(ne));
1428
1428
  }
1429
1429
  function De(l) {
1430
1430
  var w;
1431
1431
  let R = Q(), g = ce(), O = g.findIndex((M) => M === R), A = g[O + l];
1432
- (w = c.current) != null && w.loop && (A = O + l < 0 ? g[g.length - 1] : O + l === g.length ? g[0] : g[O + l]), A && E.setState("value", A.getAttribute(ne));
1432
+ (w = c.current) != null && w.loop && (A = O + l < 0 ? g[g.length - 1] : O + l === g.length ? g[0] : g[O + l]), A && b.setState("value", A.getAttribute(ne));
1433
1433
  }
1434
1434
  function Ye(l) {
1435
1435
  let w = Q(), R = w?.closest(ue), g;
1436
1436
  for (; R && !g; ) R = l > 0 ? so(R, ue) : lo(R, ue), g = R?.querySelector(mt);
1437
- g ? E.setState("value", g.getAttribute(ne)) : De(l);
1437
+ g ? b.setState("value", g.getAttribute(ne)) : De(l);
1438
1438
  }
1439
1439
  let Xe = () => Pe(ce().length - 1), qe = (l) => {
1440
1440
  l.preventDefault(), l.metaKey ? Xe() : l.altKey ? Ye(1) : De(1);
@@ -1476,12 +1476,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
1476
1476
  l.preventDefault();
1477
1477
  let g = Q();
1478
1478
  if (g) {
1479
- let O = new Event(je);
1479
+ let O = new Event(Ve);
1480
1480
  g.dispatchEvent(O);
1481
1481
  }
1482
1482
  }
1483
1483
  }
1484
- } }, a.createElement("label", { "cmdk-label": "", htmlFor: T.inputId, id: T.labelId, style: vo }, m), _e(e, (l) => a.createElement(zt.Provider, { value: E }, a.createElement(Gt.Provider, { value: T }, l))));
1484
+ } }, a.createElement("label", { "cmdk-label": "", htmlFor: T.inputId, id: T.labelId, style: vo }, m), _e(e, (l) => a.createElement(zt.Provider, { value: b }, a.createElement(Gt.Provider, { value: T }, l))));
1485
1485
  }), to = a.forwardRef((e, t) => {
1486
1486
  var n, r;
1487
1487
  let o = $(), i = a.useRef(null), u = a.useContext(Yt), c = de(), m = qt(e), s = (r = (n = m.current) == null ? void 0 : n.forceMount) != null ? r : u?.forceMount;
@@ -1491,11 +1491,11 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
1491
1491
  let d = Zt(o, i, [e.value, e.children, i], e.keywords), f = Ge(), p = H((S) => S.value && S.value === d.current), h = H((S) => s || c.filter() === !1 ? !0 : S.search ? S.filtered.items.get(o) > 0 : !0);
1492
1492
  a.useEffect(() => {
1493
1493
  let S = i.current;
1494
- if (!(!S || e.disabled)) return S.addEventListener(je, _), () => S.removeEventListener(je, _);
1494
+ if (!(!S || e.disabled)) return S.addEventListener(Ve, _), () => S.removeEventListener(Ve, _);
1495
1495
  }, [h, e.onSelect, e.disabled]);
1496
1496
  function _() {
1497
- var S, E;
1498
- v(), (E = (S = m.current).onSelect) == null || E.call(S, d.current);
1497
+ var S, b;
1498
+ v(), (b = (S = m.current).onSelect) == null || b.call(S, d.current);
1499
1499
  }
1500
1500
  function v() {
1501
1501
  f.setState("value", d.current, !0);
@@ -1599,15 +1599,15 @@ function _e({ asChild: e, children: t }, n) {
1599
1599
  return e && a.isValidElement(t) ? a.cloneElement(mo(t), { ref: t.ref }, n(t.props.children)) : n(t);
1600
1600
  }
1601
1601
  var vo = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
1602
- const po = "_command_1vmbj_2", ho = "_command__empty_1vmbj_15", go = "_command__input_1vmbj_21", yo = "_command__list_1vmbj_52", bo = "_command__group_1vmbj_62", Eo = "_command__item_1vmbj_75", wo = "_command__shortcut_1vmbj_88", B = {
1602
+ const po = "_command_1t4ah_2", ho = "_command__empty_1t4ah_15", go = "_command__input_1t4ah_21", yo = "_command__list_1t4ah_52", Eo = "_command__group_1t4ah_62", bo = "_command__item_1t4ah_75", wo = "_command__shortcut_1t4ah_88", B = {
1603
1603
  command: po,
1604
1604
  command__empty: ho,
1605
- "command__input-root": "_command__input-root_1vmbj_21",
1605
+ "command__input-root": "_command__input-root_1t4ah_21",
1606
1606
  command__input: go,
1607
- "command__input-icon": "_command__input-icon_1vmbj_46",
1607
+ "command__input-icon": "_command__input-icon_1t4ah_46",
1608
1608
  command__list: yo,
1609
- command__group: bo,
1610
- command__item: Eo,
1609
+ command__group: Eo,
1610
+ command__item: bo,
1611
1611
  command__shortcut: wo
1612
1612
  };
1613
1613
  function Co({
@@ -1616,7 +1616,7 @@ function Co({
1616
1616
  background: n = "default",
1617
1617
  ...r
1618
1618
  }) {
1619
- return /* @__PURE__ */ b(
1619
+ return /* @__PURE__ */ E(
1620
1620
  nn,
1621
1621
  {
1622
1622
  width: "sm",
@@ -1626,18 +1626,18 @@ function Co({
1626
1626
  ...r,
1627
1627
  children: /* @__PURE__ */ oe(z, { children: [
1628
1628
  /* @__PURE__ */ oe(ye, { className: B["command__input-root"], children: [
1629
- /* @__PURE__ */ b(
1629
+ /* @__PURE__ */ E(
1630
1630
  ye,
1631
1631
  {
1632
1632
  interactive: "fill-outline",
1633
1633
  className: B.command__input,
1634
- render: /* @__PURE__ */ b(z.Input, { placeholder: e })
1634
+ render: /* @__PURE__ */ E(z.Input, { placeholder: e })
1635
1635
  }
1636
1636
  ),
1637
- /* @__PURE__ */ b(vt, { name: "search-line", className: B["command__input-icon"] })
1637
+ /* @__PURE__ */ E(vt, { name: "search-line", className: B["command__input-icon"] })
1638
1638
  ] }),
1639
1639
  /* @__PURE__ */ oe(z.List, { className: B.command__list, children: [
1640
- /* @__PURE__ */ b(z.Empty, { children: /* @__PURE__ */ b(ye, { className: B.command__empty, children: /* @__PURE__ */ b(pt, { color: "dimmer", children: "No results found." }) }) }),
1640
+ /* @__PURE__ */ E(z.Empty, { children: /* @__PURE__ */ E(ye, { className: B.command__empty, children: /* @__PURE__ */ E(pt, { color: "dimmer", children: "No results found." }) }) }),
1641
1641
  t
1642
1642
  ] })
1643
1643
  ] })
@@ -1645,7 +1645,7 @@ function Co({
1645
1645
  );
1646
1646
  }
1647
1647
  function So({ className: e, ...t }) {
1648
- return /* @__PURE__ */ b(
1648
+ return /* @__PURE__ */ E(
1649
1649
  z.Group,
1650
1650
  {
1651
1651
  className: We(B.command__group, e),
@@ -1654,7 +1654,7 @@ function So({ className: e, ...t }) {
1654
1654
  );
1655
1655
  }
1656
1656
  function Ro(e) {
1657
- return /* @__PURE__ */ b(rn, { render: /* @__PURE__ */ b(z.Separator, { ...e }) });
1657
+ return /* @__PURE__ */ E(rn, { render: /* @__PURE__ */ E(z.Separator, { ...e }) });
1658
1658
  }
1659
1659
  function _o({
1660
1660
  shortcut: e,
@@ -1668,11 +1668,11 @@ function _o({
1668
1668
  {
1669
1669
  interactive: "list-item",
1670
1670
  className: We(B.command__item, n),
1671
- render: /* @__PURE__ */ b(z.Item, { ...o }),
1671
+ render: /* @__PURE__ */ E(z.Item, { ...o }),
1672
1672
  children: [
1673
- t ? /* @__PURE__ */ b(vt, { name: t }) : void 0,
1673
+ t ? /* @__PURE__ */ E(vt, { name: t }) : void 0,
1674
1674
  tn(r),
1675
- e ? /* @__PURE__ */ b(
1675
+ e ? /* @__PURE__ */ E(
1676
1676
  pt,
1677
1677
  {
1678
1678
  className: We(B.command__shortcut),