@wrdagency/blockout 1.0.27 → 1.0.30

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 (128) hide show
  1. package/dist/{2NBKRL7C-M2oB5mLz.js → 2NBKRL7C-DBbnghCe.js} +16 -16
  2. package/dist/{2RSXSRCN-BtBMZ8Lx.js → 2RSXSRCN-BxQ_v-Je.js} +15 -15
  3. package/dist/{4CMBR7SL-C-0Aig1V.js → 4CMBR7SL-DezfZPUS.js} +18 -18
  4. package/dist/{5JTVDSTH-BOGL3M3F.js → 5JTVDSTH-CZ7mfyUK.js} +4 -4
  5. package/dist/{5VQZOHHZ-DADExXg7.js → 5VQZOHHZ-DLX-ulBK.js} +1 -1
  6. package/dist/{6VRAQV3D-pTuMqsWW.js → 6VRAQV3D-BYmT0QTl.js} +6 -6
  7. package/dist/{A3WPL2ZJ-BiXYGxnE.js → A3WPL2ZJ-24tGIJIQ.js} +2 -2
  8. package/dist/{BM6PGYQY-DL-j4NGc.js → BM6PGYQY-DCbkDr5N.js} +2 -2
  9. package/dist/{DG5U6ZEL-Bn6QlO7C.js → DG5U6ZEL-DB0iwihy.js} +3 -3
  10. package/dist/{EM5CXX6A-B4C-NFJy.js → EM5CXX6A-B4ZS4Hs_.js} +2 -2
  11. package/dist/{F5MUBM3I-D6cacg-c.js → F5MUBM3I-75qY3y0N.js} +9 -9
  12. package/dist/{G7GW6PWC-C6qSYISF.js → G7GW6PWC-Dk4hVbAk.js} +74 -74
  13. package/dist/{IWEFDH56-Da7lGcXC.js → IWEFDH56-BACkQ6dc.js} +3 -3
  14. package/dist/{J2LQO3EC-XUQS0UAH.js → J2LQO3EC-BXJIaM2U.js} +2 -2
  15. package/dist/JMHAJKUZ-D5KCN1Aj.js +114 -0
  16. package/dist/{KFH4SEIX-C-0wHvda.js → KFH4SEIX-DaQeP5D_.js} +3 -3
  17. package/dist/{LMDWO4NN-ZnclRjpA.js → LMDWO4NN-CpSMaD5G.js} +21 -21
  18. package/dist/MAXQOH4L-BYWBWXpb.js +459 -0
  19. package/dist/{MR26YJYP-CWddku_H.js → MR26YJYP-CTh6rCwA.js} +39 -39
  20. package/dist/{MTZPJQMC-CNgogsHX.js → MTZPJQMC-D2i4-LA_.js} +2 -2
  21. package/dist/{O2PQ2652-DkPiHeUQ.js → O2PQ2652-DIoegIkE.js} +3 -3
  22. package/dist/{P7GR5CS5-bOyAbBNR.js → P7GR5CS5-3RsPGPTy.js} +1 -1
  23. package/dist/{PFRGBC2K-BS9YO5-Q.js → PFRGBC2K-BdRJd-gU.js} +16 -16
  24. package/dist/{RS7LB2H4-BpSl1D2T.js → RS7LB2H4-COOfOq9w.js} +1 -1
  25. package/dist/{RZ4GPYOB-D4dwmRZg.js → RZ4GPYOB-CovncfhJ.js} +5 -5
  26. package/dist/{S43UC3DV-BVbmEy3J.js → S43UC3DV-HCi6u_G4.js} +8 -8
  27. package/dist/{T7VMP3TM-BnzhAoaO.js → T7VMP3TM-C8D6mVva.js} +21 -21
  28. package/dist/{TIW3GMFC-C4Bh_hzw.js → TIW3GMFC-BF0w2_9R.js} +4 -4
  29. package/dist/{TP7N7UIH-Bs0NX7lb.js → TP7N7UIH-C4jXJDlO.js} +2 -2
  30. package/dist/{UQQRIHDV-C_0T8mGy.js → UQQRIHDV-DEGlgATx.js} +8 -8
  31. package/dist/{UYGDZTLQ-BDhCZlZ2.js → UYGDZTLQ-HiDKLOW5.js} +2 -2
  32. package/dist/{VIIRIBF3-CQdc2eWO.js → VIIRIBF3-B-djNAU9.js} +3 -3
  33. package/dist/{WMYDSCNQ-J1-TanSP.js → WMYDSCNQ-pGjWB-Pk.js} +6 -6
  34. package/dist/{WYCIER3C-CABEZy1i.js → WYCIER3C-CxfgpZG_.js} +2 -2
  35. package/dist/{YORGHBM4-B1RRY_xR.js → YORGHBM4-D_fOXG5Y.js} +1 -1
  36. package/dist/{YV4JVR4I-BuKFdNa0.js → YV4JVR4I-CQnJhUSg.js} +38 -38
  37. package/dist/assets/button.css +1 -1
  38. package/dist/assets/index2.css +1 -1
  39. package/dist/assets/index9.css +1 -1
  40. package/dist/assets/static.css +1 -1
  41. package/dist/assets/style.css +1 -1
  42. package/dist/assets/style16.css +1 -1
  43. package/dist/assets/style25.css +1 -1
  44. package/dist/assets/style6.css +1 -1
  45. package/dist/{combobox-group-Q7OatWHm.js → combobox-group-hNvv1WJm.js} +3 -3
  46. package/dist/{combobox-popover-CDfaOt6J.js → combobox-popover-BZ_1wNrj.js} +5 -5
  47. package/dist/components/avatar/index.d.ts +2 -2
  48. package/dist/components/avatar/index.js +20 -18
  49. package/dist/components/breadcrumbs/index.js +5 -5
  50. package/dist/components/button/row.js +4 -4
  51. package/dist/components/command-palette/dialog.js +2 -2
  52. package/dist/components/command-palette/index.js +5 -3
  53. package/dist/components/command-palette/presets.d.ts +4 -0
  54. package/dist/components/command-palette/presets.js +10 -0
  55. package/dist/components/command-palette/static.d.ts +4 -11
  56. package/dist/components/command-palette/static.js +43 -124
  57. package/dist/components/controls/base-popover-control/index.js +3 -3
  58. package/dist/components/controls/date-control/index.js +1 -1
  59. package/dist/components/controls/date-control/picker.js +5 -5
  60. package/dist/components/controls/select-control/control.js +23 -23
  61. package/dist/components/controls/select-control/props.d.ts +2 -2
  62. package/dist/components/controls/select-control/select.js +79 -67
  63. package/dist/components/controls/tag-control/ariakit-experimental.js +1102 -1115
  64. package/dist/components/controls/tag-control/index.js +8 -7
  65. package/dist/components/dialog/index.js +2 -2
  66. package/dist/components/filesystem/file.js +1 -1
  67. package/dist/components/filesystem/folder.js +5 -5
  68. package/dist/components/filesystem/list.js +1 -1
  69. package/dist/components/filesystem/root.js +1 -1
  70. package/dist/components/index.d.ts +1 -1
  71. package/dist/components/menu/index.js +2 -2
  72. package/dist/components/menu/item.js +1 -1
  73. package/dist/components/menu/items/action.js +1 -1
  74. package/dist/components/menu/items/spacer.js +1 -1
  75. package/dist/components/menu/items/submenu.js +3 -3
  76. package/dist/components/menu/items/toggle.js +1 -1
  77. package/dist/components/shell/index.js +14 -12
  78. package/dist/components/shell/navigation-separator.d.ts +6 -0
  79. package/dist/components/shell/navigation-separator.js +14 -0
  80. package/dist/components/shell/sidebar-item.d.ts +5 -4
  81. package/dist/components/shell/sidebar-item.js +25 -19
  82. package/dist/components/tabs/list.js +1 -1
  83. package/dist/components/tabs/panel.js +1 -1
  84. package/dist/components/tabs/root.js +1 -1
  85. package/dist/components/tabs/tab.js +1 -1
  86. package/dist/components/toolbar/divider.js +1 -1
  87. package/dist/components/toolbar/index.js +1 -1
  88. package/dist/components/toolbar/root.js +1 -1
  89. package/dist/components/window/index.js +1 -1
  90. package/dist/{composite-provider-VHhinf1k.js → composite-provider-BPIeS4Cg.js} +2 -2
  91. package/dist/{disclosure-provider-BUQRx-hY.js → disclosure-provider-cEVysvZT.js} +2 -2
  92. package/dist/index.d.ts +1 -0
  93. package/dist/index.js +76 -55
  94. package/dist/{item-PTynqLvp.js → item-CmTk8eHD.js} +2 -2
  95. package/dist/{menu-button-RmWWFvwE.js → menu-button-GQO5dB3U.js} +12 -12
  96. package/dist/{menu-separator-DgYHkDAA.js → menu-separator-Z6pSHpX5.js} +3 -3
  97. package/dist/{picker-DioIiYC0.js → picker-DyJogHYh.js} +4 -4
  98. package/dist/{popover-provider-HlPXIcud.js → popover-provider-BJEfhgr1.js} +2 -2
  99. package/dist/presets-BDIhXP0C.js +148 -0
  100. package/dist/primitives/icon-label/index.d.ts +2 -0
  101. package/dist/primitives/icon-label/index.js +18 -14
  102. package/dist/primitives/link/index.d.ts +3 -1
  103. package/dist/primitives/link/index.js +25 -24
  104. package/dist/primitives/nav-link/index.d.ts +4 -3
  105. package/dist/primitives/nav-link/index.js +21 -17
  106. package/dist/primitives/popover/root.d.ts +2 -3
  107. package/dist/primitives/popover/root.js +1 -1
  108. package/dist/primitives/popover/target.js +1 -1
  109. package/dist/primitives/popover/window.js +3 -3
  110. package/dist/primitives/tooltip/index.d.ts +2 -0
  111. package/dist/primitives/tooltip/index.js +36 -24
  112. package/dist/select-popover-CGgkyRb4.js +559 -0
  113. package/dist/{select-value-3BLrBdZV.js → select-value-B3DYk9eV.js} +2 -2
  114. package/dist/{tab-CKUPUgQ2.js → tab-DejwS4C8.js} +4 -4
  115. package/dist/{tab-list-CzsRzSiN.js → tab-list-CndMWcVv.js} +3 -3
  116. package/dist/{tab-panel-YGzJnU1g.js → tab-panel-DedzuWUA.js} +7 -7
  117. package/dist/{tab-provider-CV8qTybg.js → tab-provider-B0BoLfST.js} +6 -6
  118. package/dist/{tag-remove-DmlHu_9b.js → tag-remove-Dz-sGbyZ.js} +24 -24
  119. package/dist/{toolbar-BlVhTG5v.js → toolbar-PSaF1mdF.js} +5 -5
  120. package/dist/{toolbar-separator-liolx0p8.js → toolbar-separator-DJHiHbGj.js} +3 -3
  121. package/dist/{tooltip-arrow-CjZ1x0xv.js → tooltip-arrow-BVwULA6B.js} +17 -17
  122. package/dist/types/options.d.ts +14 -0
  123. package/dist/types/options.js +44 -12
  124. package/dist/utils/index.d.ts +8 -0
  125. package/dist/utils/index.js +23 -0
  126. package/package.json +1 -1
  127. package/dist/MAXQOH4L-lpuvS1NR.js +0 -564
  128. package/dist/select-popover-P8y2n3bQ.js +0 -542
@@ -1,15 +1,15 @@
1
1
  import { createContext as ze, useRef as q, useContext as Ye, useState as Q, useEffect as C, useCallback as $e, useMemo as Ot, isValidElement as Ft } from "react";
2
- import { c as ue, m as x, o as y, f as K, a as ne, _ as Me, n as ct, b as N, aj as Qe, D as F, l as ee, a1 as be, a0 as Xe, a2 as re, N as j, Z as Dt, e as Ce, a8 as At, ad as lt, ah as Tt, ak as Rt, ab as Ne, a3 as ft, q as $t, g as dt, A as Ct, j as Ve, H as Mt, x as _t, i as pt } from "./LMDWO4NN-ZnclRjpA.js";
3
- import { c as He, d as et, r as Nt, e as Vt, F as Ht, i as Lt, g as It, j as kt, k as ye, u as Bt, l as qt } from "./PFRGBC2K-BS9YO5-Q.js";
2
+ import { c as ue, m as x, o as y, f as K, a as ne, _ as Me, n as ct, b as N, aj as Qe, D as F, l as ee, a1 as be, a0 as Xe, a2 as re, P as j, Z as Dt, e as Ce, a6 as At, ad as lt, ah as Tt, ak as Rt, a9 as Ne, a3 as ft, q as $t, g as dt, A as Ct, j as Ve, J as Mt, x as _t, i as pt } from "./LMDWO4NN-CpSMaD5G.js";
3
+ import { c as He, d as et, r as Nt, e as Vt, F as Ht, i as Lt, g as It, j as kt, k as ye, u as Bt, l as qt } from "./PFRGBC2K-BdRJd-gU.js";
4
4
  import { r as Be } from "./index-Cgx3BqdJ.js";
5
5
  import { jsx as E, jsxs as Te, Fragment as Re } from "react/jsx-runtime";
6
- import { a as te, d as jt } from "./YV4JVR4I-BuKFdNa0.js";
7
- import { u as vt, i as Wt } from "./KFH4SEIX-C-0wHvda.js";
8
- import { u as zt } from "./WYCIER3C-CABEZy1i.js";
9
- import { u as Yt } from "./BM6PGYQY-DL-j4NGc.js";
10
- import { e as Ke, D as Xt, d as Kt, f as Ut } from "./RS7LB2H4-BpSl1D2T.js";
11
- import { b as mt, a as Gt } from "./MTZPJQMC-CNgogsHX.js";
12
- import { a as Zt, c as Jt, o as Qt, f as er, s as tr, b as rr, d as nr, l as or } from "./floating-ui.dom-2MezWvgs.js";
6
+ import { a as te, d as jt } from "./YV4JVR4I-CQnJhUSg.js";
7
+ import { u as vt, i as Wt } from "./KFH4SEIX-DaQeP5D_.js";
8
+ import { u as zt } from "./WYCIER3C-CxfgpZG_.js";
9
+ import { u as Yt } from "./BM6PGYQY-DCbkDr5N.js";
10
+ import { e as Ke, D as Xt, d as Kt, f as Ut } from "./RS7LB2H4-COOfOq9w.js";
11
+ import { b as mt, a as Gt } from "./MTZPJQMC-D2i4-LA_.js";
12
+ import { a as Jt, c as Zt, o as Qt, f as er, s as tr, b as rr, d as nr, l as or } from "./floating-ui.dom-2MezWvgs.js";
13
13
  var tt = ze(null), sr = "span", gt = ue(
14
14
  function(t) {
15
15
  return t = x(y({}, t), {
@@ -57,7 +57,7 @@ function lr(e, t) {
57
57
  function fr(e = "id") {
58
58
  return `${e ? `${e}-` : ""}${Math.random().toString(36).slice(2, 8)}`;
59
59
  }
60
- function J(e) {
60
+ function Z(e) {
61
61
  queueMicrotask(() => {
62
62
  e == null || e.focus();
63
63
  });
@@ -141,7 +141,7 @@ var ht = ue(function(t) {
141
141
  "data-focus-trap": a.id,
142
142
  className: "__focus-trap-inner-before",
143
143
  onFocus: (g) => {
144
- be(g, f) ? J(He()) : J(I.current);
144
+ be(g, f) ? Z(He()) : Z(I.current);
145
145
  }
146
146
  }
147
147
  ),
@@ -153,7 +153,7 @@ var ht = ue(function(t) {
153
153
  "data-focus-trap": a.id,
154
154
  className: "__focus-trap-inner-after",
155
155
  onFocus: (g) => {
156
- be(g, f) ? J(et()) : J(A.current);
156
+ be(g, f) ? Z(et()) : Z(A.current);
157
157
  }
158
158
  }
159
159
  )
@@ -166,7 +166,7 @@ var ht = ue(function(t) {
166
166
  "data-focus-trap": a.id,
167
167
  className: "__focus-trap-outer-before",
168
168
  onFocus: (g) => {
169
- !(g.relatedTarget === A.current) && be(g, f) ? J(M.current) : J(et());
169
+ !(g.relatedTarget === A.current) && be(g, f) ? Z(M.current) : Z(et());
170
170
  }
171
171
  }
172
172
  ),
@@ -181,7 +181,7 @@ var ht = ue(function(t) {
181
181
  className: "__focus-trap-outer-after",
182
182
  onFocus: (g) => {
183
183
  if (be(g, f))
184
- J(_.current);
184
+ Z(_.current);
185
185
  else {
186
186
  const p = He();
187
187
  if (p === M.current) {
@@ -191,7 +191,7 @@ var ht = ue(function(t) {
191
191
  });
192
192
  return;
193
193
  }
194
- J(p);
194
+ Z(p);
195
195
  }
196
196
  }
197
197
  }
@@ -358,7 +358,7 @@ function yt(e, ...t) {
358
358
  function pe(e = "", t = !1) {
359
359
  return `__ariakit-dialog-${t ? "ancestor" : "outside"}${e ? `-${e}` : ""}`;
360
360
  }
361
- function wr(e, t = "") {
361
+ function Pr(e, t = "") {
362
362
  return re(
363
363
  ie(e, pe(), !0),
364
364
  ie(e, pe(t), !0)
@@ -370,7 +370,7 @@ function Et(e, t = "") {
370
370
  ie(e, pe(t, !0), !0)
371
371
  );
372
372
  }
373
- function Ze(e, t) {
373
+ function Je(e, t) {
374
374
  const n = pe(t, !0);
375
375
  if (e[n]) return !0;
376
376
  const r = pe(t);
@@ -386,7 +386,7 @@ function nt(e, t) {
386
386
  e,
387
387
  t,
388
388
  (s) => {
389
- yt(s, ...r) || n.unshift(wr(s, e));
389
+ yt(s, ...r) || n.unshift(Pr(s, e));
390
390
  },
391
391
  (s, u) => {
392
392
  u.hasAttribute("data-dialog") && u.id !== e || n.unshift(Et(s, e));
@@ -396,7 +396,7 @@ function nt(e, t) {
396
396
  s();
397
397
  };
398
398
  }
399
- function Pr(e) {
399
+ function wr(e) {
400
400
  return e.tagName === "HTML" ? !0 : j(F(e).body, e);
401
401
  }
402
402
  function xr(e, t) {
@@ -433,7 +433,7 @@ function Ie({
433
433
  return a.addEventListener("focusin", m, !0), () => a.removeEventListener("focusin", m, !0);
434
434
  }, [e, u, o]), C(() => u ? Xe(t, (m) => {
435
435
  const { contentElement: b, disclosureElement: D } = e.getState(), f = m.target;
436
- !b || !f || !Pr(f) || j(b, f) || xr(D, f) || f.hasAttribute("data-focus-trap") || Sr(m, b) || i.current && !Ze(f, b.id) || Lt(f) || s(m);
436
+ !b || !f || !wr(f) || j(b, f) || xr(D, f) || f.hasAttribute("data-focus-trap") || Sr(m, b) || i.current && !Je(f, b.id) || Lt(f) || s(m);
437
437
  }, r) : void 0, [u, r]);
438
438
  }
439
439
  function ke(e, t) {
@@ -445,7 +445,7 @@ function Or(e, t, n) {
445
445
  type: "click",
446
446
  listener: (u) => {
447
447
  const { contentElement: i } = e.getState(), a = o.current;
448
- a && Dt(a) && Ze(a, i == null ? void 0 : i.id) && ke(t, u) && e.hide();
448
+ a && Dt(a) && Je(a, i == null ? void 0 : i.id) && ke(t, u) && e.hide();
449
449
  }
450
450
  })), Ie(x(y({}, s), {
451
451
  type: "focusin",
@@ -547,15 +547,15 @@ function Rr(e, ...t) {
547
547
  const n = e.getAttribute("data-focus-trap");
548
548
  return n == null ? !1 : t.length ? n === "" ? !1 : t.some((r) => n === r) : !0;
549
549
  }
550
- function wt() {
550
+ function Pt() {
551
551
  return "inert" in HTMLElement.prototype;
552
552
  }
553
553
  function $r(e) {
554
554
  return Ue(e, "aria-hidden", "true");
555
555
  }
556
- function Pt(e, t) {
556
+ function wt(e, t) {
557
557
  if (!("style" in e)) return Ne;
558
- if (wt())
558
+ if (Pt())
559
559
  return ie(e, "inert", !0);
560
560
  const r = It(e, !0).map((o) => {
561
561
  if (t != null && t.some((u) => u && j(u, o))) return Ne;
@@ -580,7 +580,7 @@ function Cr(e, t) {
580
580
  e,
581
581
  t,
582
582
  (s) => {
583
- yt(s, ...r) || Rr(s, ...r) || n.unshift(Pt(s, t));
583
+ yt(s, ...r) || Rr(s, ...r) || n.unshift(wt(s, t));
584
584
  },
585
585
  (s) => {
586
586
  s.hasAttribute("role") && (t.some((u) => u && j(u, s)) || n.unshift(Ue(s, "role", "none")));
@@ -729,30 +729,30 @@ var xt = ue(function(t) {
729
729
  if (c) return;
730
730
  const v = g.current;
731
731
  if (!v) return;
732
- const P = new Event("close", { bubbles: !1, cancelable: !0 });
733
- s && v.addEventListener("close", s, { once: !0 }), v.dispatchEvent(P), P.defaultPrevented && p.setOpen(!0);
732
+ const w = new Event("close", { bubbles: !1, cancelable: !0 });
733
+ s && v.addEventListener("close", s, { once: !0 }), v.dispatchEvent(w), w.defaultPrevented && p.setOpen(!0);
734
734
  }
735
735
  }), { portalRef: U, domReady: S } = ft(a, l.portalRef), O = l.preserveTabOrder, G = te(
736
736
  p,
737
737
  (c) => O && !i && c.mounted
738
- ), T = $t(l.id), w = te(p, "open"), R = te(p, "mounted"), k = te(p, "contentElement"), we = Wt(R, l.hidden, l.alwaysVisible);
739
- Tr(k, T, V && !we), Or(p, D, S);
740
- const { wrapElement: ae, nestedDialogs: Pe } = Fr(p);
738
+ ), T = $t(l.id), P = te(p, "open"), R = te(p, "mounted"), k = te(p, "contentElement"), Pe = Wt(R, l.hidden, l.alwaysVisible);
739
+ Tr(k, T, V && !Pe), Or(p, D, S);
740
+ const { wrapElement: ae, nestedDialogs: we } = Fr(p);
741
741
  l = ee(l, ae, [ae]), N(() => {
742
- if (!w) return;
742
+ if (!P) return;
743
743
  const c = g.current, v = dt(c, !0);
744
744
  v && v.tagName !== "BODY" && (c && j(c, v) || p.setDisclosureElement(v));
745
- }, [p, w]), st && C(() => {
745
+ }, [p, P]), st && C(() => {
746
746
  if (!R) return;
747
747
  const { disclosureElement: c } = p.getState();
748
748
  if (!c || !Ct(c)) return;
749
749
  const v = () => {
750
- let P = !1;
750
+ let w = !1;
751
751
  const h = () => {
752
- P = !0;
752
+ w = !0;
753
753
  }, $ = { capture: !0, once: !0 };
754
754
  c.addEventListener("focusin", h, $), Mt(c, "mouseup", () => {
755
- c.removeEventListener("focusin", h, !0), !P && qt(c);
755
+ c.removeEventListener("focusin", h, !0), !w && qt(c);
756
756
  });
757
757
  };
758
758
  return c.addEventListener("mousedown", v), () => {
@@ -762,13 +762,13 @@ var xt = ue(function(t) {
762
762
  if (!R || !S) return;
763
763
  const c = g.current;
764
764
  if (!c) return;
765
- const v = lt(c), P = v.visualViewport || v, h = () => {
765
+ const v = lt(c), w = v.visualViewport || v, h = () => {
766
766
  var $, Y;
767
767
  const he = (Y = ($ = v.visualViewport) == null ? void 0 : $.height) != null ? Y : v.innerHeight;
768
768
  c.style.setProperty("--dialog-viewport-height", `${he}px`);
769
769
  };
770
- return h(), P.addEventListener("resize", h), () => {
771
- P.removeEventListener("resize", h);
770
+ return h(), w.addEventListener("resize", h), () => {
771
+ w.removeEventListener("resize", h);
772
772
  };
773
773
  }, [R, S]), C(() => {
774
774
  if (!i || !R || !S) return;
@@ -776,24 +776,24 @@ var xt = ue(function(t) {
776
776
  if (!(!c || c.querySelector("[data-dialog-dismiss]")))
777
777
  return vr(c, p.hide);
778
778
  }, [p, i, R, S]), N(() => {
779
- if (!wt() || w || !R || !S) return;
779
+ if (!Pt() || P || !R || !S) return;
780
780
  const c = g.current;
781
781
  if (c)
782
- return Pt(c);
783
- }, [w, R, S]);
784
- const Z = w && S;
782
+ return wt(c);
783
+ }, [P, R, S]);
784
+ const J = P && S;
785
785
  N(() => {
786
- if (!T || !Z) return;
786
+ if (!T || !J) return;
787
787
  const c = g.current;
788
788
  return Er(T, [c]);
789
- }, [T, Z, A]);
789
+ }, [T, J, A]);
790
790
  const ve = Ce(f);
791
791
  N(() => {
792
- if (!T || !Z) return;
793
- const { disclosureElement: c } = p.getState(), v = g.current, P = ve() || [], h = [
792
+ if (!T || !J) return;
793
+ const { disclosureElement: c } = p.getState(), v = g.current, w = ve() || [], h = [
794
794
  v,
795
- ...P,
796
- ...Pe.map(($) => $.getState().contentElement)
795
+ ...w,
796
+ ...we.map(($) => $.getState().contentElement)
797
797
  ];
798
798
  return i ? re(
799
799
  nt(T, h),
@@ -802,15 +802,15 @@ var xt = ue(function(t) {
802
802
  }, [
803
803
  T,
804
804
  p,
805
- Z,
805
+ J,
806
806
  ve,
807
- Pe,
807
+ we,
808
808
  i,
809
809
  A
810
810
  ]);
811
811
  const me = !!H, ge = Ve(H), [xe, B] = Q(!1);
812
812
  C(() => {
813
- if (!w || !me || !S || !(k != null && k.isConnected)) return;
813
+ if (!P || !me || !S || !(k != null && k.isConnected)) return;
814
814
  const c = it(I, !0) || // If no initial focus is specified, we try to focus the first element
815
815
  // with the autofocus attribute. If it's an Ariakit component, the
816
816
  // Focusable component will consume the autoFocus prop and add the
@@ -827,7 +827,7 @@ var xt = ue(function(t) {
827
827
  c.focus(), st && v && c.scrollIntoView({ block: "nearest", inline: "nearest" });
828
828
  }));
829
829
  }, [
830
- w,
830
+ P,
831
831
  me,
832
832
  S,
833
833
  k,
@@ -838,14 +838,14 @@ var xt = ue(function(t) {
838
838
  ]);
839
839
  const W = !!L, _e = Ve(L), [ce, X] = Q(!1);
840
840
  C(() => {
841
- if (w)
841
+ if (P)
842
842
  return X(!0), () => X(!1);
843
- }, [w]);
843
+ }, [P]);
844
844
  const oe = $e(
845
845
  (c, v = !0) => {
846
- const { disclosureElement: P } = p.getState();
846
+ const { disclosureElement: w } = p.getState();
847
847
  if (Hr(c)) return;
848
- let h = it(M) || P;
848
+ let h = it(M) || w;
849
849
  if (h != null && h.id) {
850
850
  const Y = F(h), he = `[aria-activedescendant="${h.id}"]`, De = Y.querySelector(he);
851
851
  De && (h = De);
@@ -853,8 +853,8 @@ var xt = ue(function(t) {
853
853
  if (h && !ye(h)) {
854
854
  const Y = h.closest("[data-dialog]");
855
855
  if (Y != null && Y.id) {
856
- const he = F(Y), De = `[aria-controls~="${Y.id}"]`, Je = he.querySelector(De);
857
- Je && (h = Je);
856
+ const he = F(Y), De = `[aria-controls~="${Y.id}"]`, Ze = he.querySelector(De);
857
+ Ze && (h = Ze);
858
858
  }
859
859
  }
860
860
  const $ = h && ye(h);
@@ -867,10 +867,10 @@ var xt = ue(function(t) {
867
867
  [p, M, _e]
868
868
  ), z = q(!1);
869
869
  N(() => {
870
- if (w || !ce || !W) return;
870
+ if (P || !ce || !W) return;
871
871
  const c = g.current;
872
872
  z.current = !0, oe(c);
873
- }, [w, ce, S, W, oe]), C(() => {
873
+ }, [P, ce, S, W, oe]), C(() => {
874
874
  if (!ce || !W) return;
875
875
  const c = g.current;
876
876
  return () => {
@@ -884,12 +884,12 @@ var xt = ue(function(t) {
884
884
  const Se = Ve(b);
885
885
  C(() => !S || !R ? void 0 : Xe("keydown", (v) => {
886
886
  if (v.key !== "Escape" || v.defaultPrevented) return;
887
- const P = g.current;
888
- if (!P || Ze(P)) return;
887
+ const w = g.current;
888
+ if (!w || Je(w)) return;
889
889
  const h = v.target;
890
890
  if (!h) return;
891
891
  const { disclosureElement: $ } = p.getState();
892
- !!(h.tagName === "BODY" || j(P, h) || !$ || j($, h)) && Se(v) && p.hide();
892
+ !!(h.tagName === "BODY" || j(w, h) || !$ || j($, h)) && Se(v) && p.hide();
893
893
  }, !0), [p, S, R, Se]), l = ee(
894
894
  l,
895
895
  (c) => /* @__PURE__ */ E(dr, { level: i ? 1 : void 0, children: c }),
@@ -1084,7 +1084,7 @@ var Xr = ue(
1084
1084
  r,
1085
1085
  process.env.NODE_ENV !== "production" && "Popover must receive a `store` prop or be wrapped in a PopoverProvider component."
1086
1086
  );
1087
- const p = r.useState("arrowElement"), U = r.useState("anchorElement"), S = r.useState("disclosureElement"), O = r.useState("popoverElement"), G = r.useState("contentElement"), T = r.useState("placement"), w = r.useState("mounted"), R = r.useState("rendered"), k = q(null), [we, ae] = Q(!1), { portalRef: Pe, domReady: Z } = ft(s, d.portalRef), ve = Ce(A), me = Ce(l), ge = !!l;
1087
+ const p = r.useState("arrowElement"), U = r.useState("anchorElement"), S = r.useState("disclosureElement"), O = r.useState("popoverElement"), G = r.useState("contentElement"), T = r.useState("placement"), P = r.useState("mounted"), R = r.useState("rendered"), k = q(null), [Pe, ae] = Q(!1), { portalRef: we, domReady: J } = ft(s, d.portalRef), ve = Ce(A), me = Ce(l), ge = !!l;
1088
1088
  N(() => {
1089
1089
  if (!(O != null && O.isConnected)) return;
1090
1090
  O.style.setProperty(
@@ -1092,7 +1092,7 @@ var Xr = ue(
1092
1092
  `${_}px`
1093
1093
  );
1094
1094
  const B = kr(U, ve), W = async () => {
1095
- if (!w) return;
1095
+ if (!P) return;
1096
1096
  p || (k.current = k.current || document.createElement("div"));
1097
1097
  const X = p || k.current, oe = [
1098
1098
  qr(X, { gutter: I, shift: D }),
@@ -1104,7 +1104,7 @@ var Xr = ue(
1104
1104
  fitViewport: L,
1105
1105
  overflowPadding: _
1106
1106
  })
1107
- ], z = await Jt(B, O, {
1107
+ ], z = await Zt(B, O, {
1108
1108
  placement: T,
1109
1109
  strategy: m ? "fixed" : "absolute",
1110
1110
  middleware: oe
@@ -1131,7 +1131,7 @@ var Xr = ue(
1131
1131
  [Fe]: "100%"
1132
1132
  });
1133
1133
  }
1134
- }, ce = Zt(B, O, async () => {
1134
+ }, ce = Jt(B, O, async () => {
1135
1135
  ge ? (await me({ updatePosition: W }), ae(!0)) : await W();
1136
1136
  }, {
1137
1137
  // JSDOM doesn't support ResizeObserver
@@ -1148,8 +1148,8 @@ var Xr = ue(
1148
1148
  U,
1149
1149
  O,
1150
1150
  T,
1151
- w,
1152
- Z,
1151
+ P,
1152
+ J,
1153
1153
  m,
1154
1154
  b,
1155
1155
  D,
@@ -1164,7 +1164,7 @@ var Xr = ue(
1164
1164
  ge,
1165
1165
  me
1166
1166
  ]), N(() => {
1167
- if (!w || !Z || !(O != null && O.isConnected) || !(G != null && G.isConnected)) return;
1167
+ if (!P || !J || !(O != null && O.isConnected) || !(G != null && G.isConnected)) return;
1168
1168
  const B = () => {
1169
1169
  O.style.zIndex = getComputedStyle(G).zIndex;
1170
1170
  };
@@ -1173,7 +1173,7 @@ var Xr = ue(
1173
1173
  W = requestAnimationFrame(B);
1174
1174
  });
1175
1175
  return () => cancelAnimationFrame(W);
1176
- }, [w, Z, O, G]);
1176
+ }, [P, J, O, G]);
1177
1177
  const xe = m ? "fixed" : "absolute";
1178
1178
  return d = ee(
1179
1179
  d,
@@ -1201,7 +1201,7 @@ var Xr = ue(
1201
1201
  // we can wait for the popover to be positioned before other components
1202
1202
  // move focus into it. For example, this attribute is observed by the
1203
1203
  // Combobox component with the autoSelect behavior.
1204
- "data-placing": !we || void 0
1204
+ "data-placing": !Pe || void 0
1205
1205
  }, d), {
1206
1206
  style: y({
1207
1207
  position: "relative"
@@ -1212,9 +1212,9 @@ var Xr = ue(
1212
1212
  portal: s,
1213
1213
  preserveTabOrder: u,
1214
1214
  preserveTabOrderAnchor: S || U,
1215
- autoFocusOnShow: we && i
1215
+ autoFocusOnShow: Pe && i
1216
1216
  }, d), {
1217
- portalRef: Pe
1217
+ portalRef: we
1218
1218
  })), d;
1219
1219
  }
1220
1220
  ), ln = St(
@@ -1,6 +1,6 @@
1
- import { u as m } from "./A3WPL2ZJ-BiXYGxnE.js";
2
- import { u } from "./6VRAQV3D-pTuMqsWW.js";
3
- import { s as n, f as p, c as b, a as c, _ as f, o as l } from "./LMDWO4NN-ZnclRjpA.js";
1
+ import { u as m } from "./A3WPL2ZJ-24tGIJIQ.js";
2
+ import { u } from "./6VRAQV3D-BYmT0QTl.js";
3
+ import { s as n, f as p, c as b, a as c, _ as f, o as l } from "./LMDWO4NN-CpSMaD5G.js";
4
4
  var T = "button", i = b(
5
5
  function(e) {
6
6
  var o = e, { store: r } = o, t = f(o, ["store"]);
@@ -1,5 +1,5 @@
1
- import { a as d, b as v } from "./P7GR5CS5-bOyAbBNR.js";
2
- import { f as l, c as C, a as f, _ as w, i as R, q as _, l as b, o as E, r as x } from "./LMDWO4NN-ZnclRjpA.js";
1
+ import { a as d, b as v } from "./P7GR5CS5-3RsPGPTy.js";
2
+ import { f as l, c as C, a as f, _ as w, i as R, q as _, l as b, o as E, r as x } from "./LMDWO4NN-CpSMaD5G.js";
3
3
  import { useMemo as S } from "react";
4
4
  import { jsx as V } from "react/jsx-runtime";
5
5
  var z = "div", N = C(
@@ -0,0 +1,114 @@
1
+ import { u as H } from "./UQQRIHDV-DEGlgATx.js";
2
+ import { u as N } from "./6VRAQV3D-BYmT0QTl.js";
3
+ import { a as F, C as T, b as L, c as q } from "./S43UC3DV-HCi6u_G4.js";
4
+ import { u as M } from "./YV4JVR4I-CQnJhUSg.js";
5
+ import { s as W, f as z, c as G, a as J, _ as Q, i as U, m as C, o as c, j as m, e as P, E as X, F as Y, k as Z, l as $ } from "./LMDWO4NN-CpSMaD5G.js";
6
+ import { h as ee } from "./PFRGBC2K-BdRJd-gU.js";
7
+ import { useCallback as oe, useContext as te } from "react";
8
+ import { jsx as y } from "react/jsx-runtime";
9
+ var ne = "div";
10
+ function re(s, l) {
11
+ if (l != null)
12
+ return s == null ? !1 : Array.isArray(s) ? s.includes(l) : s === l;
13
+ }
14
+ function le(s) {
15
+ var l;
16
+ return (l = {
17
+ menu: "menuitem",
18
+ listbox: "option",
19
+ tree: "treeitem"
20
+ }[s]) != null ? l : "option";
21
+ }
22
+ var se = G(
23
+ function(l) {
24
+ var i = l, {
25
+ store: o,
26
+ value: n,
27
+ hideOnClick: f,
28
+ setValueOnClick: p,
29
+ selectValueOnClick: S = !0,
30
+ resetValueOnSelect: v,
31
+ focusOnHover: I = !1,
32
+ moveOnKeyPress: E = !0,
33
+ getItem: b
34
+ } = i, r = Q(i, [
35
+ "store",
36
+ "value",
37
+ "hideOnClick",
38
+ "setValueOnClick",
39
+ "selectValueOnClick",
40
+ "resetValueOnSelect",
41
+ "focusOnHover",
42
+ "moveOnKeyPress",
43
+ "getItem"
44
+ ]), O;
45
+ const h = F();
46
+ o = o || h, U(
47
+ o,
48
+ process.env.NODE_ENV !== "production" && "ComboboxItem must be wrapped in a ComboboxList or ComboboxPopover component."
49
+ );
50
+ const { resetValueOnSelectState: V, multiSelectable: d, selected: u } = M(o, {
51
+ resetValueOnSelectState: "resetValueOnSelect",
52
+ multiSelectable(e) {
53
+ return Array.isArray(e.selectedValue);
54
+ },
55
+ selected(e) {
56
+ return re(e.selectedValue, n);
57
+ }
58
+ }), g = oe(
59
+ (e) => {
60
+ const t = C(c({}, e), { value: n });
61
+ return b ? b(t) : t;
62
+ },
63
+ [n, b]
64
+ );
65
+ p = p ?? !d, f = f ?? (n != null && !d);
66
+ const k = r.onClick, _ = m(p), R = m(S), w = m(
67
+ (O = v ?? V) != null ? O : d
68
+ ), K = m(f), A = P((e) => {
69
+ k == null || k(e), !e.defaultPrevented && (X(e) || Y(e) || (n != null && (R(e) && (w(e) && (o == null || o.resetValue()), o == null || o.setSelectedValue((t) => Array.isArray(t) ? t.includes(n) ? t.filter((a) => a !== n) : [...t, n] : n)), _(e) && (o == null || o.setValue(n))), K(e) && (o == null || o.hide())));
70
+ }), x = r.onKeyDown, D = P((e) => {
71
+ if (x == null || x(e), e.defaultPrevented) return;
72
+ const t = o == null ? void 0 : o.getState().baseElement;
73
+ if (!t || ee(t)) return;
74
+ (e.key.length === 1 || e.key === "Backspace" || e.key === "Delete") && (queueMicrotask(() => t.focus()), Z(t) && (o == null || o.setValue(t.value)));
75
+ });
76
+ d && u != null && (r = c({
77
+ "aria-selected": u
78
+ }, r)), r = $(
79
+ r,
80
+ (e) => /* @__PURE__ */ y(T.Provider, { value: n, children: /* @__PURE__ */ y(L.Provider, { value: u ?? !1, children: e }) }),
81
+ [n, u]
82
+ );
83
+ const j = te(q);
84
+ r = C(c({
85
+ role: le(j),
86
+ children: n
87
+ }, r), {
88
+ onClick: A,
89
+ onKeyDown: D
90
+ });
91
+ const B = m(E);
92
+ return r = N(C(c({
93
+ store: o
94
+ }, r), {
95
+ getItem: g,
96
+ // Dispatch a custom event on the combobox input when moving to an item
97
+ // with the keyboard so the Combobox component can enable inline
98
+ // autocompletion.
99
+ moveOnKeyPress: (e) => {
100
+ if (!B(e)) return !1;
101
+ const t = new Event("combobox-item-move"), a = o == null ? void 0 : o.getState().baseElement;
102
+ return a == null || a.dispatchEvent(t), !0;
103
+ }
104
+ })), r = H(c({ store: o, focusOnHover: I }, r)), r;
105
+ }
106
+ ), be = W(
107
+ z(function(l) {
108
+ const i = se(l);
109
+ return J(ne, i);
110
+ })
111
+ );
112
+ export {
113
+ be as C
114
+ };
@@ -1,6 +1,6 @@
1
- import { u as A, D as z } from "./RS7LB2H4-BpSl1D2T.js";
2
- import { a as T } from "./YV4JVR4I-BuKFdNa0.js";
3
- import { c as B, _ as R, i as G, q as J, b as p, l as K, m as x, o as E, n as Q, r as X, f as V, a as Y } from "./LMDWO4NN-ZnclRjpA.js";
1
+ import { u as A, D as z } from "./RS7LB2H4-COOfOq9w.js";
2
+ import { a as T } from "./YV4JVR4I-CQnJhUSg.js";
3
+ import { c as B, _ as R, i as G, q as J, b as p, l as K, m as x, o as E, n as Q, r as X, f as V, a as Y } from "./LMDWO4NN-CpSMaD5G.js";
4
4
  import { useRef as Z, useState as $, useMemo as tt } from "react";
5
5
  import { r as et } from "./index-Cgx3BqdJ.js";
6
6
  import { jsx as g } from "react/jsx-runtime";
@@ -562,19 +562,19 @@ export {
562
562
  mt as B,
563
563
  Vt as C,
564
564
  _ as D,
565
- Dt as E,
566
- _e as F,
567
- Jt as G,
568
- ce as H,
569
- ue as I,
570
- Se as J,
571
- zt as K,
572
- Mt as L,
573
- be as M,
574
- R as N,
575
- S as O,
576
- ne as P,
577
- ee as Q,
565
+ ne as E,
566
+ ee as F,
567
+ Dt as G,
568
+ _e as H,
569
+ Jt as I,
570
+ ce as J,
571
+ ue as K,
572
+ Se as L,
573
+ zt as M,
574
+ Mt as N,
575
+ be as O,
576
+ R as P,
577
+ S as Q,
578
578
  Yt as R,
579
579
  vt as S,
580
580
  pe as T,
@@ -591,14 +591,14 @@ export {
591
591
  Tt as a2,
592
592
  he as a3,
593
593
  fe as a4,
594
- xt as a5,
595
- re as a6,
596
- yt as a7,
597
- ye as a8,
598
- ge as a9,
599
- qt as aa,
600
- Ot as ab,
601
- ve as ac,
594
+ yt as a5,
595
+ ye as a6,
596
+ ge as a7,
597
+ qt as a8,
598
+ Ot as a9,
599
+ ve as aa,
600
+ xt as ab,
601
+ re as ac,
602
602
  Wt as ad,
603
603
  It as ae,
604
604
  jt as af,