@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
@@ -0,0 +1,559 @@
1
+ import { u as Se, a as se, S as be, b as xe, c as Oe, d as Ce, e as de } from "./DG5U6ZEL-DB0iwihy.js";
2
+ import { u as Ie } from "./MTZPJQMC-D2i4-LA_.js";
3
+ import { c as D, _ as G, i as Y, m as I, o as p, r as Ae, f as _, a as V, Y as De, V as q, U as O, W as K, X as _e, j as N, e as le, J as Ve, l as X, n as he, S as ke, s as Le, q as ge, t as Ke, E as Ne, F as Me, R as Re, h as Te, u as Fe, aa as Ge } from "./LMDWO4NN-CpSMaD5G.js";
4
+ import { useMemo as ae, useState as J, useRef as He, useEffect as ne, useCallback as $e, useContext as me, createContext as je } from "react";
5
+ import { jsx as P, jsxs as oe, Fragment as ve } from "react/jsx-runtime";
6
+ import { u as we } from "./T7VMP3TM-C8D6mVva.js";
7
+ import { a as Be } from "./WMYDSCNQ-pGjWB-Pk.js";
8
+ import { t as ye } from "./7PRQYBBV-91wrWGjk.js";
9
+ import { c as Ue, a as qe } from "./O2PQ2652-DIoegIkE.js";
10
+ import { c as We, d as ze, b as Je } from "./4CMBR7SL-DezfZPUS.js";
11
+ import { u as Xe } from "./S43UC3DV-HCi6u_G4.js";
12
+ import { m as Ye, o as Qe, t as Ze, c as et, s as W, d as re, g as tt, b as ot, f as pe, u as rt } from "./YV4JVR4I-CQnJhUSg.js";
13
+ import { u as nt, a as st } from "./YORGHBM4-D_fOXG5Y.js";
14
+ import { u as lt } from "./UQQRIHDV-DEGlgATx.js";
15
+ import { u as at } from "./6VRAQV3D-BYmT0QTl.js";
16
+ import { i as it } from "./KFH4SEIX-DaQeP5D_.js";
17
+ import { u as ut } from "./5JTVDSTH-CZ7mfyUK.js";
18
+ import { c as ct, u as dt } from "./G7GW6PWC-Dk4hVbAk.js";
19
+ var mt = "span", vt = {
20
+ top: "4,10 8,6 12,10",
21
+ right: "6,4 10,8 6,12",
22
+ bottom: "4,6 8,10 12,6",
23
+ left: "10,4 6,8 10,12"
24
+ }, Pe = D(function(t) {
25
+ var o = t, { store: e, placement: r } = o, a = G(o, ["store", "placement"]);
26
+ const m = Ie();
27
+ e = e || m, Y(
28
+ e,
29
+ process.env.NODE_ENV !== "production" && "PopoverDisclosureArrow must be wrapped in a PopoverDisclosure component."
30
+ );
31
+ const E = e.useState((s) => r || s.placement).split("-")[0], u = vt[E], l = ae(
32
+ () => /* @__PURE__ */ P(
33
+ "svg",
34
+ {
35
+ display: "block",
36
+ fill: "none",
37
+ stroke: "currentColor",
38
+ strokeLinecap: "round",
39
+ strokeLinejoin: "round",
40
+ strokeWidth: 1.5,
41
+ viewBox: "0 0 16 16",
42
+ height: "1em",
43
+ width: "1em",
44
+ children: /* @__PURE__ */ P("polyline", { points: u })
45
+ }
46
+ ),
47
+ [u]
48
+ );
49
+ return a = I(p({
50
+ children: l,
51
+ "aria-hidden": !0
52
+ }, a), {
53
+ style: p({
54
+ width: "1em",
55
+ height: "1em",
56
+ pointerEvents: "none"
57
+ }, a.style)
58
+ }), Ae(a);
59
+ }), oo = _(
60
+ function(t) {
61
+ const o = Pe(t);
62
+ return V(mt, o);
63
+ }
64
+ );
65
+ function pt(n = {}) {
66
+ var t = n, {
67
+ combobox: o
68
+ } = t, e = De(t, [
69
+ "combobox"
70
+ ]);
71
+ const r = Ye(
72
+ e.store,
73
+ Qe(o, [
74
+ "value",
75
+ "items",
76
+ "renderedItems",
77
+ "baseElement",
78
+ "arrowElement",
79
+ "anchorElement",
80
+ "contentElement",
81
+ "popoverElement",
82
+ "disclosureElement"
83
+ ])
84
+ );
85
+ Ze(e, r);
86
+ const a = r.getState(), m = We(q(K({}, e), {
87
+ store: r,
88
+ virtualFocus: O(
89
+ e.virtualFocus,
90
+ a.virtualFocus,
91
+ !0
92
+ ),
93
+ includesBaseElement: O(
94
+ e.includesBaseElement,
95
+ a.includesBaseElement,
96
+ !1
97
+ ),
98
+ activeId: O(
99
+ e.activeId,
100
+ a.activeId,
101
+ e.defaultActiveId,
102
+ null
103
+ ),
104
+ orientation: O(
105
+ e.orientation,
106
+ a.orientation,
107
+ "vertical"
108
+ )
109
+ })), S = Ue(q(K({}, e), {
110
+ store: r,
111
+ placement: O(
112
+ e.placement,
113
+ a.placement,
114
+ "bottom-start"
115
+ )
116
+ })), E = new String(""), u = q(K(K({}, m.getState()), S.getState()), {
117
+ value: O(
118
+ e.value,
119
+ a.value,
120
+ e.defaultValue,
121
+ E
122
+ ),
123
+ setValueOnMove: O(
124
+ e.setValueOnMove,
125
+ a.setValueOnMove,
126
+ !1
127
+ ),
128
+ labelElement: O(a.labelElement, null),
129
+ selectElement: O(a.selectElement, null),
130
+ listElement: O(a.listElement, null)
131
+ }), l = et(u, m, S, r);
132
+ return W(
133
+ l,
134
+ () => re(l, ["value", "items"], (s) => {
135
+ if (s.value !== E || !s.items.length) return;
136
+ const f = s.items.find(
137
+ (b) => !b.disabled && b.value != null
138
+ );
139
+ (f == null ? void 0 : f.value) != null && l.setState("value", f.value);
140
+ })
141
+ ), W(
142
+ l,
143
+ () => re(l, ["mounted"], (s) => {
144
+ s.mounted || l.setState("activeId", u.activeId);
145
+ })
146
+ ), W(
147
+ l,
148
+ () => re(l, ["mounted", "items", "value"], (s) => {
149
+ if (o || s.mounted) return;
150
+ const f = ye(s.value), b = f[f.length - 1];
151
+ if (b == null) return;
152
+ const w = s.items.find(
153
+ (g) => !g.disabled && g.value === b
154
+ );
155
+ w && l.setState("activeId", w.id);
156
+ })
157
+ ), W(
158
+ l,
159
+ () => tt(l, ["setValueOnMove", "moves"], (s) => {
160
+ const { mounted: f, value: b, activeId: w } = l.getState();
161
+ if (!s.setValueOnMove && f || Array.isArray(b) || !s.moves || !w) return;
162
+ const g = m.item(w);
163
+ !g || g.disabled || g.value == null || l.setState("value", g.value);
164
+ })
165
+ ), q(K(K(K({}, m), S), l), {
166
+ combobox: o,
167
+ setValue: (s) => l.setState("value", s),
168
+ setLabelElement: (s) => l.setState("labelElement", s),
169
+ setSelectElement: (s) => l.setState("selectElement", s),
170
+ setListElement: (s) => l.setState("listElement", s)
171
+ });
172
+ }
173
+ function ft(n) {
174
+ const t = Xe();
175
+ return n = I(p({}, n), {
176
+ combobox: n.combobox !== void 0 ? n.combobox : t
177
+ }), ze(n);
178
+ }
179
+ function St(n, t, o) {
180
+ return _e(t, [o.combobox]), pe(n, o, "value", "setValue"), pe(n, o, "setValueOnMove"), Object.assign(
181
+ qe(
182
+ Je(n, t, o),
183
+ t,
184
+ o
185
+ ),
186
+ { combobox: o.combobox }
187
+ );
188
+ }
189
+ function bt(n = {}) {
190
+ n = ft(n);
191
+ const [t, o] = ot(pt, n);
192
+ return St(t, o, n);
193
+ }
194
+ var ht = "span", gt = D(
195
+ function(t) {
196
+ var o = t, { store: e } = o, r = G(o, ["store"]);
197
+ const a = Se();
198
+ return e = e || a, r = Pe(p({ store: e }, r)), r;
199
+ }
200
+ ), wt = _(function(t) {
201
+ const o = gt(t);
202
+ return V(ht, o);
203
+ }), yt = "button";
204
+ function Pt(n) {
205
+ return Array.from(n.selectedOptions).map((t) => t.value);
206
+ }
207
+ function z(n, t) {
208
+ return () => {
209
+ const o = t();
210
+ if (!o) return;
211
+ let e = 0, r = n.item(o);
212
+ const a = r;
213
+ for (; r && r.value == null; ) {
214
+ const m = t(++e);
215
+ if (!m) return;
216
+ if (r = n.item(m), r === a) break;
217
+ }
218
+ return r == null ? void 0 : r.id;
219
+ };
220
+ }
221
+ var Et = D(function(t) {
222
+ var o = t, {
223
+ store: e,
224
+ name: r,
225
+ form: a,
226
+ required: m,
227
+ showOnKeyDown: S = !0,
228
+ moveOnKeyDown: E = !0,
229
+ toggleOnPress: u = !0,
230
+ toggleOnClick: l = u
231
+ } = o, s = G(o, [
232
+ "store",
233
+ "name",
234
+ "form",
235
+ "required",
236
+ "showOnKeyDown",
237
+ "moveOnKeyDown",
238
+ "toggleOnPress",
239
+ "toggleOnClick"
240
+ ]);
241
+ const f = se();
242
+ e = e || f, Y(
243
+ e,
244
+ process.env.NODE_ENV !== "production" && "Select must receive a `store` prop or be wrapped in a SelectProvider component."
245
+ );
246
+ const b = s.onKeyDown, w = N(S), g = N(E), y = e.useState("placement").split("-")[0], x = e.useState("value"), k = Array.isArray(x), R = le((c) => {
247
+ var d;
248
+ if (b == null || b(c), c.defaultPrevented || !e) return;
249
+ const { orientation: Z, items: ee, activeId: j } = e.getState(), B = Z !== "horizontal", U = Z !== "vertical", v = !!((d = ee.find((ce) => !ce.disabled && ce.value != null)) != null && d.rowId), ie = {
250
+ ArrowUp: (v || B) && z(e, e.up),
251
+ ArrowRight: (v || U) && z(e, e.next),
252
+ ArrowDown: (v || B) && z(e, e.down),
253
+ ArrowLeft: (v || U) && z(e, e.previous)
254
+ }[c.key];
255
+ ie && g(c) && (c.preventDefault(), e.move(ie()));
256
+ const ue = y === "top" || y === "bottom";
257
+ ({
258
+ ArrowDown: ue,
259
+ ArrowUp: ue,
260
+ ArrowLeft: y === "left",
261
+ ArrowRight: y === "right"
262
+ })[c.key] && w(c) && (c.preventDefault(), e.move(j), Ve(c.currentTarget, "keyup", e.show));
263
+ });
264
+ s = X(
265
+ s,
266
+ (c) => /* @__PURE__ */ P(be, { value: e, children: c }),
267
+ [e]
268
+ );
269
+ const [H, T] = J(!1), C = He(!1);
270
+ ne(() => {
271
+ const c = C.current;
272
+ C.current = !1, !c && T(!1);
273
+ }, [x]);
274
+ const F = e.useState((c) => {
275
+ var d;
276
+ return (d = c.labelElement) == null ? void 0 : d.id;
277
+ }), i = s["aria-label"], h = s["aria-labelledby"] || F, L = e.useState((c) => {
278
+ if (r)
279
+ return c.items;
280
+ }), A = ae(() => [...new Set(L == null ? void 0 : L.map((c) => c.value).filter((c) => c != null))], [L]);
281
+ s = X(
282
+ s,
283
+ (c) => r ? /* @__PURE__ */ oe(ve, { children: [
284
+ /* @__PURE__ */ oe(
285
+ "select",
286
+ {
287
+ style: {
288
+ border: 0,
289
+ clip: "rect(0 0 0 0)",
290
+ height: "1px",
291
+ margin: "-1px",
292
+ overflow: "hidden",
293
+ padding: 0,
294
+ position: "absolute",
295
+ whiteSpace: "nowrap",
296
+ width: "1px"
297
+ },
298
+ tabIndex: -1,
299
+ "aria-hidden": !0,
300
+ "aria-label": i,
301
+ "aria-labelledby": h,
302
+ name: r,
303
+ form: a,
304
+ required: m,
305
+ disabled: s.disabled,
306
+ value: x,
307
+ multiple: k,
308
+ onFocus: () => {
309
+ var d;
310
+ return (d = e == null ? void 0 : e.getState().selectElement) == null ? void 0 : d.focus();
311
+ },
312
+ onChange: (d) => {
313
+ C.current = !0, T(!0), e == null || e.setValue(
314
+ k ? Pt(d.target) : d.target.value
315
+ );
316
+ },
317
+ children: [
318
+ ye(x).map((d) => d == null || A.includes(d) ? null : /* @__PURE__ */ P("option", { value: d, children: d }, d)),
319
+ A.map((d) => /* @__PURE__ */ P("option", { value: d, children: d }, d))
320
+ ]
321
+ }
322
+ ),
323
+ c
324
+ ] }) : c,
325
+ [
326
+ e,
327
+ i,
328
+ h,
329
+ r,
330
+ a,
331
+ m,
332
+ x,
333
+ k,
334
+ A,
335
+ s.disabled
336
+ ]
337
+ );
338
+ const $ = /* @__PURE__ */ oe(ve, { children: [
339
+ x,
340
+ /* @__PURE__ */ P(wt, {})
341
+ ] }), Q = e.useState("contentElement");
342
+ return s = I(p({
343
+ role: "combobox",
344
+ "aria-autocomplete": "none",
345
+ "aria-labelledby": F,
346
+ "aria-haspopup": ke(Q, "listbox"),
347
+ "data-autofill": H || void 0,
348
+ "data-name": r,
349
+ children: $
350
+ }, s), {
351
+ ref: he(e.setSelectElement, s.ref),
352
+ onKeyDown: R
353
+ }), s = Be(p({ store: e, toggleOnClick: l }, s)), s = we(p({ store: e }, s)), s;
354
+ }), ro = _(function(t) {
355
+ const o = Et(t);
356
+ return V(yt, o);
357
+ });
358
+ function no(n = {}) {
359
+ const t = bt(n);
360
+ return /* @__PURE__ */ P(xe, { value: t, children: n.children });
361
+ }
362
+ var xt = "div", Ot = D(
363
+ function(t) {
364
+ return t = nt(t), t;
365
+ }
366
+ ), so = _(function(t) {
367
+ const o = Ot(t);
368
+ return V(xt, o);
369
+ }), Ct = "div", It = D(
370
+ function(t) {
371
+ return t = st(t), t;
372
+ }
373
+ ), lo = _(function(t) {
374
+ const o = It(t);
375
+ return V(Ct, o);
376
+ }), At = "div";
377
+ function Dt(n, t) {
378
+ if (t != null)
379
+ return n == null ? !1 : Array.isArray(n) ? n.includes(t) : n === t;
380
+ }
381
+ var _t = D(
382
+ function(t) {
383
+ var o = t, {
384
+ store: e,
385
+ value: r,
386
+ getItem: a,
387
+ hideOnClick: m,
388
+ setValueOnClick: S = r != null,
389
+ preventScrollOnKeyDown: E = !0,
390
+ focusOnHover: u = !0
391
+ } = o, l = G(o, [
392
+ "store",
393
+ "value",
394
+ "getItem",
395
+ "hideOnClick",
396
+ "setValueOnClick",
397
+ "preventScrollOnKeyDown",
398
+ "focusOnHover"
399
+ ]), s;
400
+ const f = Oe();
401
+ e = e || f, Y(
402
+ e,
403
+ process.env.NODE_ENV !== "production" && "SelectItem must be wrapped in a SelectList or SelectPopover component."
404
+ );
405
+ const b = ge(l.id), w = Ke(l), { listElement: g, multiSelectable: M, selected: y, autoFocus: x } = rt(e, {
406
+ listElement: "listElement",
407
+ multiSelectable(i) {
408
+ return Array.isArray(i.value);
409
+ },
410
+ selected(i) {
411
+ return Dt(i.value, r);
412
+ },
413
+ autoFocus(i) {
414
+ return r == null || i.value == null || i.activeId !== b && (e != null && e.item(i.activeId)) ? !1 : Array.isArray(i.value) ? i.value[i.value.length - 1] === r : i.value === r;
415
+ }
416
+ }), k = $e(
417
+ (i) => {
418
+ const h = I(p({}, i), {
419
+ value: w ? void 0 : r,
420
+ children: r
421
+ });
422
+ return a ? a(h) : h;
423
+ },
424
+ [w, r, a]
425
+ );
426
+ m = m ?? (r != null && !M);
427
+ const R = l.onClick, H = N(S), T = N(m), C = le((i) => {
428
+ R == null || R(i), !i.defaultPrevented && (Ne(i) || Me(i) || (H(i) && r != null && (e == null || e.setValue((h) => Array.isArray(h) ? h.includes(r) ? h.filter((L) => L !== r) : [...h, r] : r)), T(i) && (e == null || e.hide())));
429
+ });
430
+ l = X(
431
+ l,
432
+ (i) => /* @__PURE__ */ P(Ce.Provider, { value: y ?? !1, children: i }),
433
+ [y]
434
+ ), l = I(p({
435
+ id: b,
436
+ role: Re(g),
437
+ "aria-selected": y,
438
+ children: r
439
+ }, l), {
440
+ autoFocus: (s = l.autoFocus) != null ? s : x,
441
+ onClick: C
442
+ }), l = at(p({
443
+ store: e,
444
+ getItem: k,
445
+ preventScrollOnKeyDown: E
446
+ }, l));
447
+ const F = N(u);
448
+ return l = lt(I(p({
449
+ store: e
450
+ }, l), {
451
+ // We have to disable focusOnHover when the popup is closed, otherwise
452
+ // the active item will change to null (the container) when the popup is
453
+ // closed by clicking on an item.
454
+ focusOnHover(i) {
455
+ if (!F(i)) return !1;
456
+ const h = e == null ? void 0 : e.getState();
457
+ return !!(h != null && h.open);
458
+ }
459
+ })), l;
460
+ }
461
+ ), ao = Le(
462
+ _(function(t) {
463
+ const o = _t(t);
464
+ return V(At, o);
465
+ })
466
+ ), Vt = "div", fe = je(null), Ee = D(
467
+ function(t) {
468
+ var o = t, {
469
+ store: e,
470
+ resetOnEscape: r = !0,
471
+ hideOnEnter: a = !0,
472
+ focusOnMove: m = !0,
473
+ composite: S,
474
+ alwaysVisible: E
475
+ } = o, u = G(o, [
476
+ "store",
477
+ "resetOnEscape",
478
+ "hideOnEnter",
479
+ "focusOnMove",
480
+ "composite",
481
+ "alwaysVisible"
482
+ ]);
483
+ const l = Se();
484
+ e = e || l, Y(
485
+ e,
486
+ process.env.NODE_ENV !== "production" && "SelectList must receive a `store` prop or be wrapped in a SelectProvider component."
487
+ );
488
+ const s = ge(u.id), f = e.useState("value"), b = Array.isArray(f), [w, g] = J(f), M = e.useState("mounted");
489
+ ne(() => {
490
+ M || g(f);
491
+ }, [M, f]), r = r && !b;
492
+ const y = u.onKeyDown, x = N(r), k = N(a), R = le((v) => {
493
+ y == null || y(v), !v.defaultPrevented && (v.key === "Escape" && x(v) && (e == null || e.setValue(w)), (v.key === " " || v.key === "Enter") && Te(v) && k(v) && (v.preventDefault(), e == null || e.hide()));
494
+ }), H = me(de), T = J(), [C, F] = H || T, i = ae(
495
+ () => [C, F],
496
+ [C]
497
+ ), [h, L] = J(null), A = me(fe);
498
+ ne(() => {
499
+ if (A)
500
+ return A(e), () => A(null);
501
+ }, [A, e]), u = X(
502
+ u,
503
+ (v) => /* @__PURE__ */ P(be, { value: e, children: /* @__PURE__ */ P(fe.Provider, { value: L, children: /* @__PURE__ */ P(de.Provider, { value: i, children: v }) }) }),
504
+ [e, i]
505
+ );
506
+ const $ = !!e.combobox;
507
+ S = S ?? (!$ && h !== e);
508
+ const [Q, c] = Fe(
509
+ S ? e.setListElement : null
510
+ ), d = Ge(Q, "role", u.role), ee = (S || (d === "listbox" || d === "menu" || d === "tree" || d === "grid")) && b || void 0, j = it(M, u.hidden, E), B = j ? I(p({}, u.style), { display: "none" }) : u.style;
511
+ S && (u = p({
512
+ role: "listbox",
513
+ "aria-multiselectable": ee
514
+ }, u));
515
+ const U = e.useState(
516
+ (v) => {
517
+ var te;
518
+ return C || ((te = v.labelElement) == null ? void 0 : te.id);
519
+ }
520
+ );
521
+ return u = I(p({
522
+ id: s,
523
+ "aria-labelledby": U,
524
+ hidden: j
525
+ }, u), {
526
+ ref: he(c, u.ref),
527
+ style: B,
528
+ onKeyDown: R
529
+ }), u = ut(I(p({ store: e }, u), { composite: S })), u = we(p({ store: e, typeahead: !$ }, u)), u;
530
+ }
531
+ ), io = _(function(t) {
532
+ const o = Ee(t);
533
+ return V(Vt, o);
534
+ }), kt = "div", Lt = D(
535
+ function(t) {
536
+ var o = t, { store: e, alwaysVisible: r } = o, a = G(o, ["store", "alwaysVisible"]);
537
+ const m = se();
538
+ return e = e || m, a = Ee(p({ store: e, alwaysVisible: r }, a)), a = dt(p({ store: e, alwaysVisible: r }, a)), a;
539
+ }
540
+ ), uo = ct(
541
+ _(function(t) {
542
+ const o = Lt(t);
543
+ return V(kt, o);
544
+ }),
545
+ se
546
+ );
547
+ export {
548
+ oo as P,
549
+ no as S,
550
+ ro as a,
551
+ uo as b,
552
+ io as c,
553
+ lo as d,
554
+ so as e,
555
+ ao as f,
556
+ wt as g,
557
+ bt as h,
558
+ Pe as u
559
+ };
@@ -1,5 +1,5 @@
1
- import { u as l } from "./DG5U6ZEL-Bn6QlO7C.js";
2
- import { a } from "./YV4JVR4I-BuKFdNa0.js";
1
+ import { u as l } from "./DG5U6ZEL-DB0iwihy.js";
2
+ import { a } from "./YV4JVR4I-CQnJhUSg.js";
3
3
  function i({
4
4
  store: e,
5
5
  fallback: r,
@@ -1,7 +1,7 @@
1
- import { a as w } from "./UYGDZTLQ-BDhCZlZ2.js";
2
- import { C as v, u as E } from "./6VRAQV3D-pTuMqsWW.js";
3
- import { a as F } from "./YV4JVR4I-BuKFdNa0.js";
4
- import { s as V, f as W, c as D, a as N, _ as j, i as A, q, t as H, m as r, o as a, e as L } from "./LMDWO4NN-ZnclRjpA.js";
1
+ import { a as w } from "./UYGDZTLQ-HiDKLOW5.js";
2
+ import { C as v, u as E } from "./6VRAQV3D-BYmT0QTl.js";
3
+ import { a as F } from "./YV4JVR4I-CQnJhUSg.js";
4
+ import { s as V, f as W, c as D, a as N, _ as j, i as A, q, t as H, m as r, o as a, e as L } from "./LMDWO4NN-CpSMaD5G.js";
5
5
  import { useCallback as O } from "react";
6
6
  import { jsx as C } from "react/jsx-runtime";
7
7
  var y = "button", z = D(function(c) {
@@ -1,6 +1,6 @@
1
- import { u as c, T as u } from "./UYGDZTLQ-BDhCZlZ2.js";
2
- import { u as m } from "./5JTVDSTH-BOGL3M3F.js";
3
- import { f as b, c as v, a as f, _ as d, i as l, l as T, o as s } from "./LMDWO4NN-ZnclRjpA.js";
1
+ import { u as c, T as u } from "./UYGDZTLQ-HiDKLOW5.js";
2
+ import { u as m } from "./5JTVDSTH-CZ7mfyUK.js";
3
+ import { f as b, c as v, a as f, _ as d, i as l, l as T, o as s } from "./LMDWO4NN-CpSMaD5G.js";
4
4
  import { jsx as _ } from "react/jsx-runtime";
5
5
  var x = "div", L = v(
6
6
  function(a) {
@@ -1,10 +1,10 @@
1
- import { u as A, T as K } from "./UYGDZTLQ-BDhCZlZ2.js";
2
- import { u as N } from "./KFH4SEIX-C-0wHvda.js";
3
- import { u as O } from "./WYCIER3C-CABEZy1i.js";
4
- import { u as j } from "./RZ4GPYOB-D4dwmRZg.js";
5
- import { g as V, u as q } from "./PFRGBC2K-BS9YO5-Q.js";
6
- import { a as P } from "./YV4JVR4I-BuKFdNa0.js";
7
- import { f as F, c as W, a as z, _ as B, i as G, q as J, e as y, m as T, o as i, l as Q, n as U } from "./LMDWO4NN-ZnclRjpA.js";
1
+ import { u as A, T as K } from "./UYGDZTLQ-HiDKLOW5.js";
2
+ import { u as N } from "./KFH4SEIX-DaQeP5D_.js";
3
+ import { u as O } from "./WYCIER3C-CxfgpZG_.js";
4
+ import { u as j } from "./RZ4GPYOB-CovncfhJ.js";
5
+ import { g as V, u as q } from "./PFRGBC2K-BdRJd-gU.js";
6
+ import { a as P } from "./YV4JVR4I-CQnJhUSg.js";
7
+ import { f as F, c as W, a as z, _ as B, i as G, q as J, e as y, m as T, o as i, l as Q, n as U } from "./LMDWO4NN-CpSMaD5G.js";
8
8
  import { useRef as h, useEffect as w, useState as X, useCallback as Y } from "react";
9
9
  import { jsx as Z } from "react/jsx-runtime";
10
10
  var $ = "div", ee = W(
@@ -1,10 +1,10 @@
1
- import { u as F } from "./DG5U6ZEL-Bn6QlO7C.js";
2
- import { c as U, a as W, b as $ } from "./4CMBR7SL-C-0Aig1V.js";
3
- import { b as k } from "./S43UC3DV-BVbmEy3J.js";
4
- import { m as z, o as E, c as A, s as f, d as l, g as K, b as V, f as O } from "./YV4JVR4I-BuKFdNa0.js";
5
- import { Y as R, V as p, U as I, W as S, a2 as M, m as y, o as B, X as T } from "./LMDWO4NN-ZnclRjpA.js";
1
+ import { u as F } from "./DG5U6ZEL-DB0iwihy.js";
2
+ import { c as U, a as W, b as $ } from "./4CMBR7SL-DezfZPUS.js";
3
+ import { d as k } from "./S43UC3DV-HCi6u_G4.js";
4
+ import { m as z, o as E, c as A, s as f, d as l, g as K, b as V, f as O } from "./YV4JVR4I-CQnJhUSg.js";
5
+ import { Y as R, V as p, U as I, W as S, a2 as M, m as y, o as B, X as T } from "./LMDWO4NN-CpSMaD5G.js";
6
6
  import { useMemo as X } from "react";
7
- import { b as Y } from "./UYGDZTLQ-BDhCZlZ2.js";
7
+ import { b as Y } from "./UYGDZTLQ-HiDKLOW5.js";
8
8
  import { jsx as q } from "react/jsx-runtime";
9
9
  function w(e = {}) {
10
10
  var c = e, {