@wrdagency/blockout 0.0.19 → 0.1.1

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 (166) hide show
  1. package/dist/2NBKRL7C-BAzCMGOw.js +85 -0
  2. package/dist/2RSXSRCN-qt84MtKs.js +61 -0
  3. package/dist/4CMBR7SL-BAGv8IL2.js +308 -0
  4. package/dist/5JTVDSTH-CG1NL6Fw.js +174 -0
  5. package/dist/5VQZOHHZ-CscZGerP.js +59 -0
  6. package/dist/6VRAQV3D-2rb_aClP.js +201 -0
  7. package/dist/7PRQYBBV-91wrWGjk.js +17 -0
  8. package/dist/ArrowRight.es-xyNbtVOa.js +60 -0
  9. package/dist/DG5U6ZEL-CVj-Czp2.js +17 -0
  10. package/dist/F5MUBM3I-87B2_4WK.js +54 -0
  11. package/dist/LMDWO4NN--KEvZePp.js +610 -0
  12. package/dist/MTZPJQMC-DyCWBG18.js +14 -0
  13. package/dist/P7GR5CS5-BoOYUfSQ.js +19 -0
  14. package/dist/PFRGBC2K-BEg8ahbY.js +303 -0
  15. package/dist/RS7LB2H4-D0fWv5qu.js +15 -0
  16. package/dist/RZ4GPYOB-13-5LlEb.js +37 -0
  17. package/dist/S43UC3DV-Dn8EFLaT.js +22 -0
  18. package/dist/Square.es-KJLdY11q.js +72 -0
  19. package/dist/T7VMP3TM-DeRMoW8g.js +77 -0
  20. package/dist/TP7N7UIH-BHb1rEeb.js +34 -0
  21. package/dist/UQQRIHDV-Bu8e1bYU.js +69 -0
  22. package/dist/UYGDZTLQ-DcCmv5SE.js +12 -0
  23. package/dist/VIIRIBF3-D5DmZNtI.js +26 -0
  24. package/dist/WMYDSCNQ-Dy1O-Kdl.js +2405 -0
  25. package/dist/WYCIER3C-DRn904Gy.js +175 -0
  26. package/dist/YV4JVR4I-kvospPUa.js +351 -0
  27. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  28. package/dist/assets/button.css +1 -1
  29. package/dist/assets/index.css +1 -1
  30. package/dist/assets/index10.css +1 -1
  31. package/dist/assets/index11.css +1 -1
  32. package/dist/assets/index12.css +1 -1
  33. package/dist/assets/index13.css +1 -1
  34. package/dist/assets/index14.css +1 -0
  35. package/dist/assets/index15.css +1 -0
  36. package/dist/assets/index16.css +1 -0
  37. package/dist/assets/index17.css +1 -0
  38. package/dist/assets/index18.css +1 -0
  39. package/dist/assets/index2.css +1 -1
  40. package/dist/assets/index3.css +1 -1
  41. package/dist/assets/index4.css +1 -1
  42. package/dist/assets/index5.css +1 -1
  43. package/dist/assets/index6.css +1 -1
  44. package/dist/assets/index7.css +1 -1
  45. package/dist/assets/index8.css +1 -1
  46. package/dist/assets/index9.css +1 -1
  47. package/dist/assets/style.css +1 -1
  48. package/dist/assets/style2.css +1 -0
  49. package/dist/assets/style3.css +1 -0
  50. package/dist/assets/style4.css +1 -0
  51. package/dist/assets/styles.css +1 -1
  52. package/dist/components/block-editor/editor.d.ts +5 -0
  53. package/dist/components/block-editor/editor.js +6 -0
  54. package/dist/components/block-editor/index.d.ts +1 -0
  55. package/dist/components/block-editor/index.js +4 -0
  56. package/dist/components/breadcrumbs/index.js +87 -31
  57. package/dist/components/button/button.d.ts +1 -1
  58. package/dist/components/button/button.js +5 -5
  59. package/dist/components/button/icon.d.ts +1 -2
  60. package/dist/components/button/icon.js +10 -3
  61. package/dist/components/button/index.d.ts +4 -0
  62. package/dist/components/controls/base-control/affix.js +7 -7
  63. package/dist/components/controls/base-control/index.js +11 -11
  64. package/dist/components/controls/base-popover-control/index.d.ts +9 -0
  65. package/dist/components/controls/base-popover-control/index.js +47 -0
  66. package/dist/components/controls/checkbox-control/index.d.ts +8 -0
  67. package/dist/components/controls/checkbox-control/index.js +57 -0
  68. package/dist/components/controls/choice-control/choice.js +13 -11
  69. package/dist/components/controls/choice-control/index.js +1 -1
  70. package/dist/components/controls/index.d.ts +4 -1
  71. package/dist/components/controls/index.js +25 -16
  72. package/dist/components/controls/number-control/index.js +29 -27
  73. package/dist/components/controls/password-control/index.js +1 -1
  74. package/dist/components/controls/recurrence-control/index.d.ts +8 -0
  75. package/dist/components/controls/recurrence-control/index.js +208 -0
  76. package/dist/components/controls/select-control/component.d.ts +12 -0
  77. package/dist/components/controls/select-control/component.js +1879 -0
  78. package/dist/components/controls/select-control/index.d.ts +2 -12
  79. package/dist/components/controls/select-control/index.js +5 -1860
  80. package/dist/components/controls/select-control/options.d.ts +7 -0
  81. package/dist/components/controls/select-control/options.js +9 -0
  82. package/dist/components/controls/textarea-control/index.js +1 -1
  83. package/dist/components/controls/toggle-control/index.js +11 -9
  84. package/dist/components/controls/toggle-group-control/index.d.ts +19 -0
  85. package/dist/components/controls/toggle-group-control/index.js +50 -0
  86. package/dist/components/data-table/column.js +1 -1
  87. package/dist/components/data-table/header.js +120 -171
  88. package/dist/components/data-table/index.js +1 -1
  89. package/dist/components/filesystem/file.d.ts +7 -0
  90. package/dist/components/filesystem/file.js +44 -0
  91. package/dist/components/filesystem/folder.d.ts +6 -0
  92. package/dist/components/filesystem/folder.js +160 -0
  93. package/dist/components/filesystem/icon.d.ts +7 -0
  94. package/dist/components/filesystem/icon.js +908 -0
  95. package/dist/components/filesystem/index.js +14 -0
  96. package/dist/components/filesystem/list.d.ts +4 -0
  97. package/dist/components/filesystem/list.js +18 -0
  98. package/dist/components/filesystem/root.d.ts +3 -0
  99. package/dist/components/filesystem/root.js +7 -0
  100. package/dist/components/form/components/index.js +12 -12
  101. package/dist/components/form/components/pagination.js +23 -16
  102. package/dist/components/form/components/progress.d.ts +3 -2
  103. package/dist/components/index.d.ts +4 -0
  104. package/dist/components/index.js +48 -31
  105. package/dist/components/menu/index.js +24 -23
  106. package/dist/components/menu/item.js +1 -1
  107. package/dist/components/menu/items/action.js +1 -1
  108. package/dist/components/menu/items/spacer.js +14 -42
  109. package/dist/components/menu/items/submenu.js +2 -2
  110. package/dist/components/menu/items/toggle.js +25 -91
  111. package/dist/components/progress/index.d.ts +5 -3
  112. package/dist/components/progress/index.js +44 -27
  113. package/dist/components/tabs/index.js +12 -0
  114. package/dist/components/tabs/list.d.ts +7 -0
  115. package/dist/components/tabs/list.js +42 -0
  116. package/dist/components/tabs/panel.d.ts +8 -0
  117. package/dist/components/tabs/panel.js +132 -0
  118. package/dist/components/tabs/root.d.ts +9 -0
  119. package/dist/components/tabs/root.js +173 -0
  120. package/dist/components/tabs/tab.d.ts +7 -0
  121. package/dist/components/tabs/tab.js +81 -0
  122. package/dist/components/toolbar/index.js +27 -0
  123. package/dist/components/toolbar/root.d.ts +6 -0
  124. package/dist/components/toolbar/root.js +6 -0
  125. package/dist/composite-provider-DNftbE5U.js +10 -0
  126. package/dist/hooks/state.d.ts +4 -0
  127. package/dist/hooks/state.js +7 -0
  128. package/dist/hooks/theme.js +7 -38
  129. package/dist/index-1AjPIqTN.js +73 -0
  130. package/dist/index-Cgx3BqdJ.js +388 -0
  131. package/dist/index.js +61 -40
  132. package/dist/{item-D9r2-3fk.js → item-B1ugJ7YQ.js} +240 -234
  133. package/dist/options-Cfoqhxw2.js +96 -0
  134. package/dist/primitives/index.d.ts +2 -0
  135. package/dist/primitives/index.js +4 -0
  136. package/dist/primitives/resizable/index.js +1 -1
  137. package/dist/primitives/scroll-area/index.d.ts +7 -0
  138. package/dist/primitives/scroll-area/index.js +777 -0
  139. package/dist/primitives/truncate/index.d.ts +7 -0
  140. package/dist/primitives/truncate/index.js +46 -0
  141. package/dist/primitives/visually-hidden/index.d.ts +2 -2
  142. package/dist/primitives/visually-hidden/index.js +13 -3
  143. package/dist/root-CaKPdqzv.js +73 -0
  144. package/dist/types/date.d.ts +39 -0
  145. package/dist/types/date.js +1778 -0
  146. package/dist/types/options.d.ts +8 -6
  147. package/dist/utils/components.d.ts +5 -0
  148. package/dist/utils/components.js +14 -0
  149. package/dist/utils/date.d.ts +1 -0
  150. package/dist/utils/date.js +15 -0
  151. package/dist/utils/string.d.ts +4 -0
  152. package/dist/utils/string.js +18 -0
  153. package/package.json +4 -2
  154. package/dist/2NBKRL7C-D-Q0qGRV.js +0 -81
  155. package/dist/P7GR5CS5-qyeuZVEs.js +0 -640
  156. package/dist/T7VMP3TM-BxgFbvdx.js +0 -2106
  157. package/dist/UQQRIHDV-BGs025hb.js +0 -1046
  158. package/dist/VIIRIBF3-D9clDhln.js +0 -21
  159. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  160. package/dist/components/markdown/formats.d.ts +0 -11
  161. package/dist/components/markdown/formats.js +0 -318
  162. package/dist/components/markdown/index.d.ts +0 -7
  163. package/dist/components/markdown/index.js +0 -25845
  164. package/dist/components/markdown/types/format.d.ts +0 -27
  165. package/dist/components/markdown/types/format.js +0 -4
  166. package/dist/floating-ui.dom-9sqP7IwC.js +0 -1512
@@ -0,0 +1,303 @@
1
+ import { createContext as st, useRef as ot, useEffect as A, useState as ut, useContext as at, useMemo as it } from "react";
2
+ import { S as ct, g as E, M as ft, T as W, U as lt, a as bt, _ as dt, V as O, t as pt, e as F, z as vt, C as yt, H as T, h as q, W as Ft, O as mt, o as B, m as xt, n as Et, v as At, A as gt, f as ht, q as Tt } from "./LMDWO4NN--KEvZePp.js";
3
+ var wt = st(!0), g = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";
4
+ function Ct(t) {
5
+ return Number.parseInt(t.getAttribute("tabindex") || "0", 10) < 0;
6
+ }
7
+ function m(t) {
8
+ return !(!t.matches(g) || !ct(t) || t.closest("[inert]"));
9
+ }
10
+ function x(t) {
11
+ if (!m(t) || Ct(t)) return !1;
12
+ if (!("form" in t) || !t.form || t.checked || t.type !== "radio") return !0;
13
+ const e = t.form.elements.namedItem(t.name);
14
+ if (!e || !("length" in e)) return !0;
15
+ const r = E(t);
16
+ return !r || r === t || !("form" in r) || r.form !== t.form || r.name !== t.name;
17
+ }
18
+ function C(t, e) {
19
+ const r = Array.from(
20
+ t.querySelectorAll(g)
21
+ );
22
+ e && r.unshift(t);
23
+ const n = r.filter(m);
24
+ return n.forEach((o, i) => {
25
+ if (W(o) && o.contentDocument) {
26
+ const f = o.contentDocument.body;
27
+ n.splice(i, 1, ...C(f));
28
+ }
29
+ }), n;
30
+ }
31
+ function I(t, e, r) {
32
+ const n = Array.from(
33
+ t.querySelectorAll(g)
34
+ ), o = n.filter(x);
35
+ return e && x(t) && o.unshift(t), o.forEach((i, f) => {
36
+ if (W(i) && i.contentDocument) {
37
+ const a = i.contentDocument.body, l = I(
38
+ a,
39
+ !1,
40
+ r
41
+ );
42
+ o.splice(f, 1, ...l);
43
+ }
44
+ }), !o.length && r ? n : o;
45
+ }
46
+ function jt(t, e, r) {
47
+ const [n] = I(
48
+ t,
49
+ e,
50
+ r
51
+ );
52
+ return n || null;
53
+ }
54
+ function It(t, e, r, n) {
55
+ const o = E(t), i = C(t, e), f = i.indexOf(o), a = i.slice(f + 1);
56
+ return a.find(x) || (r ? i.find(x) : null) || (n ? a[0] : null) || null;
57
+ }
58
+ function Ht(t, e) {
59
+ return It(
60
+ document.body,
61
+ !1,
62
+ t,
63
+ e
64
+ );
65
+ }
66
+ function Dt(t, e, r, n) {
67
+ const o = E(t), i = C(t, e).reverse(), f = i.indexOf(o);
68
+ return i.slice(f + 1).find(x) || null || null || null;
69
+ }
70
+ function $t(t, e) {
71
+ return Dt(
72
+ document.body,
73
+ !1
74
+ );
75
+ }
76
+ function Vt(t) {
77
+ for (; t && !m(t); )
78
+ t = t.closest(g);
79
+ return t || null;
80
+ }
81
+ function R(t) {
82
+ const e = E(t);
83
+ if (!e) return !1;
84
+ if (e === t) return !0;
85
+ const r = e.getAttribute("aria-activedescendant");
86
+ return r ? r === t.id : !1;
87
+ }
88
+ function Pt(t) {
89
+ const e = E(t);
90
+ if (!e) return !1;
91
+ if (ft(t, e)) return !0;
92
+ const r = e.getAttribute("aria-activedescendant");
93
+ return !r || !("id" in t) ? !1 : r === t.id ? !0 : !!t.querySelector(`#${CSS.escape(r)}`);
94
+ }
95
+ function St(t) {
96
+ !Pt(t) && m(t) && t.focus();
97
+ }
98
+ function kt(t) {
99
+ var e;
100
+ const r = (e = t.getAttribute("tabindex")) != null ? e : "";
101
+ t.setAttribute("data-tabindex", r), t.setAttribute("tabindex", "-1");
102
+ }
103
+ function zt(t, e) {
104
+ const r = I(t, e);
105
+ for (const n of r)
106
+ kt(n);
107
+ }
108
+ function Xt(t) {
109
+ const e = t.querySelectorAll("[data-tabindex]"), r = (n) => {
110
+ const o = n.getAttribute("data-tabindex");
111
+ n.removeAttribute("data-tabindex"), o ? n.setAttribute("tabindex", o) : n.removeAttribute("tabindex");
112
+ };
113
+ t.hasAttribute("data-tabindex") && r(t);
114
+ for (const n of e)
115
+ r(n);
116
+ }
117
+ function Jt(t, e) {
118
+ "scrollIntoView" in t ? (t.focus({ preventScroll: !0 }), t.scrollIntoView(lt({ block: "nearest", inline: "nearest" }, e))) : t.focus();
119
+ }
120
+ var Kt = "div", N = gt(), Mt = [
121
+ "text",
122
+ "search",
123
+ "url",
124
+ "tel",
125
+ "email",
126
+ "password",
127
+ "number",
128
+ "date",
129
+ "month",
130
+ "week",
131
+ "time",
132
+ "datetime",
133
+ "datetime-local"
134
+ ], j = Symbol("safariFocusAncestor");
135
+ function Qt(t) {
136
+ return t ? !!t[j] : !1;
137
+ }
138
+ function G(t, e) {
139
+ t && (t[j] = e);
140
+ }
141
+ function _t(t) {
142
+ const { tagName: e, readOnly: r, type: n } = t;
143
+ return e === "TEXTAREA" && !r || e === "SELECT" && !r ? !0 : e === "INPUT" && !r ? Mt.includes(n) : !!(t.isContentEditable || t.getAttribute("role") === "combobox" && t.dataset.name);
144
+ }
145
+ function Lt(t) {
146
+ return "labels" in t ? t.labels : null;
147
+ }
148
+ function U(t) {
149
+ return t.tagName.toLowerCase() === "input" && t.type ? t.type === "radio" || t.type === "checkbox" : !1;
150
+ }
151
+ function Ot(t) {
152
+ return t ? t === "button" || t === "summary" || t === "input" || t === "select" || t === "textarea" || t === "a" : !0;
153
+ }
154
+ function qt(t) {
155
+ return t ? t === "button" || t === "input" || t === "select" || t === "textarea" : !0;
156
+ }
157
+ function Bt(t, e, r, n, o) {
158
+ return t ? e ? r && !n ? -1 : void 0 : r ? o : o || 0 : o;
159
+ }
160
+ function w(t, e) {
161
+ return F((r) => {
162
+ t == null || t(r), !r.defaultPrevented && e && (r.stopPropagation(), r.preventDefault());
163
+ });
164
+ }
165
+ var D = !0;
166
+ function Rt(t) {
167
+ const e = t.target;
168
+ e && "hasAttribute" in e && (e.hasAttribute("data-focus-visible") || (D = !1));
169
+ }
170
+ function Nt(t) {
171
+ t.metaKey || t.ctrlKey || t.altKey || (D = !0);
172
+ }
173
+ var Gt = bt(
174
+ function(e) {
175
+ var r = e, {
176
+ focusable: n = !0,
177
+ accessibleWhenDisabled: o,
178
+ autoFocus: i,
179
+ onFocusVisible: f
180
+ } = r, a = dt(r, [
181
+ "focusable",
182
+ "accessibleWhenDisabled",
183
+ "autoFocus",
184
+ "onFocusVisible"
185
+ ]);
186
+ const l = ot(null);
187
+ A(() => {
188
+ n && (O("mousedown", Rt, !0), O("keydown", Nt, !0));
189
+ }, [n]), N && A(() => {
190
+ if (!n) return;
191
+ const s = l.current;
192
+ if (!s || !U(s)) return;
193
+ const u = Lt(s);
194
+ if (!u) return;
195
+ const c = () => queueMicrotask(() => s.focus());
196
+ for (const y of u)
197
+ y.addEventListener("mouseup", c);
198
+ return () => {
199
+ for (const y of u)
200
+ y.removeEventListener("mouseup", c);
201
+ };
202
+ }, [n]);
203
+ const b = n && pt(a), d = !!b && !o, [p, v] = ut(!1);
204
+ A(() => {
205
+ n && d && p && v(!1);
206
+ }, [n, d, p]), A(() => {
207
+ if (!n || !p) return;
208
+ const s = l.current;
209
+ if (!s || typeof IntersectionObserver > "u") return;
210
+ const u = new IntersectionObserver(() => {
211
+ m(s) || v(!1);
212
+ });
213
+ return u.observe(s), () => u.disconnect();
214
+ }, [n, p]);
215
+ const H = w(
216
+ a.onKeyPressCapture,
217
+ b
218
+ ), $ = w(
219
+ a.onMouseDownCapture,
220
+ b
221
+ ), z = w(a.onClickCapture, b), V = a.onMouseDown, X = F((s) => {
222
+ if (V == null || V(s), s.defaultPrevented || !n) return;
223
+ const u = s.currentTarget;
224
+ if (!N || vt(s) || !yt(u) && !U(u)) return;
225
+ let c = !1;
226
+ const y = () => {
227
+ c = !0;
228
+ }, nt = { capture: !0, once: !0 };
229
+ u.addEventListener("focusin", y, nt);
230
+ const L = Vt(u.parentElement);
231
+ G(L, !0), T(u, "mouseup", () => {
232
+ u.removeEventListener("focusin", y, !0), G(L, !1), !c && St(u);
233
+ });
234
+ }), P = (s, u) => {
235
+ if (u && (s.currentTarget = u), !n) return;
236
+ const c = s.currentTarget;
237
+ c && R(c) && (f == null || f(s), !s.defaultPrevented && (c.dataset.focusVisible = "true", v(!0)));
238
+ }, S = a.onKeyDownCapture, J = F((s) => {
239
+ if (S == null || S(s), s.defaultPrevented || !n || p || s.metaKey || s.altKey || s.ctrlKey || !q(s)) return;
240
+ const u = s.currentTarget;
241
+ T(u, "focusout", () => P(s, u));
242
+ }), k = a.onFocusCapture, Q = F((s) => {
243
+ if (k == null || k(s), s.defaultPrevented || !n) return;
244
+ if (!q(s)) {
245
+ v(!1);
246
+ return;
247
+ }
248
+ const u = s.currentTarget, c = () => P(s, u);
249
+ D || _t(s.target) ? T(s.target, "focusout", c) : v(!1);
250
+ }), K = a.onBlur, Y = F((s) => {
251
+ K == null || K(s), n && Ft(s) && (s.currentTarget.removeAttribute("data-focus-visible"), v(!1));
252
+ }), Z = at(wt), tt = F((s) => {
253
+ n && i && s && Z && queueMicrotask(() => {
254
+ R(s) || m(s) && s.focus();
255
+ });
256
+ }), M = mt(l), et = n && Ot(M), _ = n && qt(M), h = a.style, rt = it(() => d ? B({ pointerEvents: "none" }, h) : h, [d, h]);
257
+ return a = xt(B({
258
+ "data-focus-visible": n && p || void 0,
259
+ "data-autofocus": i || void 0,
260
+ "aria-disabled": b || void 0
261
+ }, a), {
262
+ ref: Et(l, tt, a.ref),
263
+ style: rt,
264
+ tabIndex: Bt(
265
+ n,
266
+ d,
267
+ et,
268
+ _,
269
+ a.tabIndex
270
+ ),
271
+ disabled: _ && d ? !0 : void 0,
272
+ // TODO: Test Focusable contentEditable.
273
+ contentEditable: b ? void 0 : a.contentEditable,
274
+ onKeyPressCapture: H,
275
+ onClickCapture: z,
276
+ onMouseDownCapture: $,
277
+ onMouseDown: X,
278
+ onKeyDownCapture: J,
279
+ onFocusCapture: Q,
280
+ onBlur: Y
281
+ }), At(a);
282
+ }
283
+ );
284
+ ht(function(e) {
285
+ const r = Gt(e);
286
+ return Tt(Kt, r);
287
+ });
288
+ export {
289
+ wt as F,
290
+ Pt as a,
291
+ Ht as b,
292
+ $t as c,
293
+ zt as d,
294
+ jt as e,
295
+ Jt as f,
296
+ I as g,
297
+ R as h,
298
+ Qt as i,
299
+ m as j,
300
+ St as k,
301
+ Xt as r,
302
+ Gt as u
303
+ };
@@ -0,0 +1,15 @@
1
+ import { c as r } from "./LMDWO4NN--KEvZePp.js";
2
+ import { createContext as t } from "react";
3
+ var o = r(), s = o.useProviderContext, a = o.ContextProvider, i = o.ScopedContextProvider, e = r(
4
+ [a],
5
+ [i]
6
+ ), x = e.useProviderContext, n = e.ContextProvider, C = e.ScopedContextProvider, c = t(void 0), P = t(void 0);
7
+ export {
8
+ C as D,
9
+ n as a,
10
+ a as b,
11
+ x as c,
12
+ c as d,
13
+ P as e,
14
+ s as u
15
+ };
@@ -0,0 +1,37 @@
1
+ import { e as d } from "./P7GR5CS5-BoOYUfSQ.js";
2
+ import { a as p, E as I, _, s as v, m as g, n as R, o as C, v as h, f as x, q as E } from "./LMDWO4NN--KEvZePp.js";
3
+ import { useRef as b, useEffect as P } from "react";
4
+ var V = "div", j = p(
5
+ function(s) {
6
+ var r = s, {
7
+ store: e,
8
+ shouldRegisterItem: n = !0,
9
+ getItem: a = I,
10
+ element: l
11
+ } = r, t = _(r, [
12
+ "store",
13
+ "shouldRegisterItem",
14
+ "getItem",
15
+ // @ts-expect-error This prop may come from a collection renderer.
16
+ "element"
17
+ ]);
18
+ const f = d();
19
+ e = e || f;
20
+ const o = v(t.id), m = b(l);
21
+ return P(() => {
22
+ const u = m.current;
23
+ if (!o || !u || !n) return;
24
+ const c = a({ id: o, element: u });
25
+ return e == null ? void 0 : e.renderItem(c);
26
+ }, [o, n, a, e]), t = g(C({}, t), {
27
+ ref: R(m, t.ref)
28
+ }), h(t);
29
+ }
30
+ );
31
+ x(function(s) {
32
+ const r = j(s);
33
+ return E(V, r);
34
+ });
35
+ export {
36
+ j as u
37
+ };
@@ -0,0 +1,22 @@
1
+ import { P as t, a as r } from "./MTZPJQMC-DyCWBG18.js";
2
+ import { C, a } from "./P7GR5CS5-BoOYUfSQ.js";
3
+ import { c as x } from "./LMDWO4NN--KEvZePp.js";
4
+ import { createContext as e } from "react";
5
+ var i = e(
6
+ void 0
7
+ ), o = x(
8
+ [r, a],
9
+ [t, C]
10
+ ), n = o.useContext, b = o.useScopedContext, p = o.useProviderContext, P = o.ContextProvider, c = o.ScopedContextProvider, u = e(
11
+ void 0
12
+ ), S = e(!1);
13
+ export {
14
+ P as C,
15
+ p as a,
16
+ b,
17
+ u as c,
18
+ S as d,
19
+ i as e,
20
+ c as f,
21
+ n as u
22
+ };
@@ -0,0 +1,72 @@
1
+ import * as e from "react";
2
+ import { w as l } from "./SSRBase.es-BUXS72ra.js";
3
+ const n = /* @__PURE__ */ new Map([
4
+ [
5
+ "bold",
6
+ /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M79.51,144.49a12,12,0,1,1,17-17L112,143l47.51-47.52a12,12,0,0,1,17,17l-56,56a12,12,0,0,1-17,0ZM228,48V208a20,20,0,0,1-20,20H48a20,20,0,0,1-20-20V48A20,20,0,0,1,48,28H208A20,20,0,0,1,228,48Zm-24,4H52V204H204Z" }))
7
+ ],
8
+ [
9
+ "duotone",
10
+ /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
11
+ "path",
12
+ {
13
+ d: "M216,48V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",
14
+ opacity: "0.2"
15
+ }
16
+ ), /* @__PURE__ */ e.createElement("path", { d: "M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM208,208V48H48V208H208Z" }))
17
+ ],
18
+ [
19
+ "fill",
20
+ /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm-34.34,77.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z" }))
21
+ ],
22
+ [
23
+ "light",
24
+ /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM222,48V208a14,14,0,0,1-14,14H48a14,14,0,0,1-14-14V48A14,14,0,0,1,48,34H208A14,14,0,0,1,222,48Zm-12,0a2,2,0,0,0-2-2H48a2,2,0,0,0-2,2V208a2,2,0,0,0,2,2H208a2,2,0,0,0,2-2Z" }))
25
+ ],
26
+ [
27
+ "regular",
28
+ /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM208,208V48H48V208H208Z" }))
29
+ ],
30
+ [
31
+ "thin",
32
+ /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM220,48V208a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V48A12,12,0,0,1,48,36H208A12,12,0,0,1,220,48Zm-8,0a4,4,0,0,0-4-4H48a4,4,0,0,0-4,4V208a4,4,0,0,0,4,4H208a4,4,0,0,0,4-4Z" }))
33
+ ]
34
+ ]), r = e.forwardRef((a, t) => /* @__PURE__ */ e.createElement(l, { ref: t, ...a, weights: n }));
35
+ r.displayName = "CheckSquareIcon";
36
+ const m = /* @__PURE__ */ new Map([
37
+ [
38
+ "bold",
39
+ /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M208,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28Zm-4,176H52V52H204Z" }))
40
+ ],
41
+ [
42
+ "duotone",
43
+ /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
44
+ "path",
45
+ {
46
+ d: "M216,48V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",
47
+ opacity: "0.2"
48
+ }
49
+ ), /* @__PURE__ */ e.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,176H48V48H208V208Z" }))
50
+ ],
51
+ [
52
+ "fill",
53
+ /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48Z" }))
54
+ ],
55
+ [
56
+ "light",
57
+ /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M208,34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34Zm2,174a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z" }))
58
+ ],
59
+ [
60
+ "regular",
61
+ /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,176H48V48H208V208Z" }))
62
+ ],
63
+ [
64
+ "thin",
65
+ /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M208,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36Zm4,172a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z" }))
66
+ ]
67
+ ]), H = e.forwardRef((a, t) => /* @__PURE__ */ e.createElement(l, { ref: t, ...a, weights: m }));
68
+ H.displayName = "SquareIcon";
69
+ export {
70
+ H as a,
71
+ r
72
+ };
@@ -0,0 +1,77 @@
1
+ import { d as K } from "./5VQZOHHZ-CscZGerP.js";
2
+ import { b as S } from "./P7GR5CS5-BoOYUfSQ.js";
3
+ import { a as k, _ as E, i as v, e as P, D as L, J as N, m as O, o as R, v as V, k as q, h as W, K as $, f as j, q as z } from "./LMDWO4NN--KEvZePp.js";
4
+ import { useRef as A } from "react";
5
+ var B = "div", s = "";
6
+ function d() {
7
+ s = "";
8
+ }
9
+ function F(e) {
10
+ const t = e.target;
11
+ return t && q(t) ? !1 : e.key === " " && s.length ? !0 : e.key.length === 1 && !e.ctrlKey && !e.altKey && !e.metaKey && /^[\p{Letter}\p{Number}]$/u.test(e.key);
12
+ }
13
+ function H(e, t) {
14
+ if (W(e)) return !0;
15
+ const r = e.target;
16
+ return r ? t.some((n) => n.element === r) : !1;
17
+ }
18
+ function J(e) {
19
+ return e.filter((t) => !t.disabled);
20
+ }
21
+ function l(e, t) {
22
+ var r;
23
+ const o = ((r = e.element) == null ? void 0 : r.textContent) || e.children || // The composite item object itself doesn't include a value property, but
24
+ // other components like Select do. Since CompositeTypeahead is a generic
25
+ // component that can be used with those as well, we also consider the value
26
+ // property as a fallback for the typeahead text content.
27
+ "value" in e && e.value;
28
+ return o ? $(o).trim().toLowerCase().startsWith(t.toLowerCase()) : !1;
29
+ }
30
+ function M(e, t, r) {
31
+ if (!r) return e;
32
+ const o = e.find((n) => n.id === r);
33
+ return !o || !l(o, t) || s !== t && l(o, s) ? e : (s = t, K(
34
+ e.filter((n) => l(n, s)),
35
+ r
36
+ ).filter((n) => n.id !== r));
37
+ }
38
+ var U = k(function(t) {
39
+ var r = t, { store: o, typeahead: n = !0 } = r, f = E(r, ["store", "typeahead"]);
40
+ const T = S();
41
+ o = o || T, v(
42
+ o,
43
+ process.env.NODE_ENV !== "production" && "CompositeTypeahead must be a Composite component"
44
+ );
45
+ const c = f.onKeyDownCapture, m = A(0), b = P((i) => {
46
+ if (c == null || c(i), i.defaultPrevented || !n || !o) return;
47
+ if (!F(i))
48
+ return d();
49
+ const { renderedItems: p, items: h, activeId: w, id: _ } = o.getState();
50
+ let u = J(
51
+ h.length > p.length ? h : p
52
+ );
53
+ const D = L(i.currentTarget), I = `[data-offscreen-id="${_}"]`, g = D.querySelectorAll(I);
54
+ for (const a of g) {
55
+ const x = a.ariaDisabled === "true" || "disabled" in a && !!a.disabled;
56
+ u.push({ id: a.id, element: a, disabled: x });
57
+ }
58
+ if (g.length && (u = N(u, (a) => a.element)), !H(i, u)) return d();
59
+ i.preventDefault(), window.clearTimeout(m.current), m.current = window.setTimeout(() => {
60
+ s = "";
61
+ }, 500);
62
+ const y = i.key.toLowerCase();
63
+ s += y, u = M(u, y, w);
64
+ const C = u.find((a) => l(a, s));
65
+ C ? o.move(C.id) : d();
66
+ });
67
+ return f = O(R({}, f), {
68
+ onKeyDownCapture: b
69
+ }), V(f);
70
+ });
71
+ j(function(t) {
72
+ const r = U(t);
73
+ return z(B, r);
74
+ });
75
+ export {
76
+ U as u
77
+ };
@@ -0,0 +1,34 @@
1
+ import { a as s, _ as n, o as i, f as p, q as m, i as f, m as l } from "./LMDWO4NN--KEvZePp.js";
2
+ import { b as C } from "./P7GR5CS5-BoOYUfSQ.js";
3
+ var S = "hr", u = s(
4
+ function(r) {
5
+ var o = r, { orientation: a = "horizontal" } = o, t = n(o, ["orientation"]);
6
+ return t = i({
7
+ role: "separator",
8
+ "aria-orientation": a
9
+ }, t), t;
10
+ }
11
+ );
12
+ p(function(r) {
13
+ const o = u(r);
14
+ return m(S, o);
15
+ });
16
+ var h = "hr", b = s(function(r) {
17
+ var o = r, { store: a } = o, t = n(o, ["store"]);
18
+ const c = C();
19
+ a = a || c, f(
20
+ a,
21
+ process.env.NODE_ENV !== "production" && "CompositeSeparator must be wrapped in a Composite component."
22
+ );
23
+ const v = a.useState(
24
+ (_) => _.orientation === "horizontal" ? "vertical" : "horizontal"
25
+ );
26
+ return t = u(l(i({}, t), { orientation: v })), t;
27
+ }), x = p(function(r) {
28
+ const o = b(r);
29
+ return m(h, o);
30
+ });
31
+ export {
32
+ x as C,
33
+ b as u
34
+ };
@@ -0,0 +1,69 @@
1
+ import { b as h } from "./P7GR5CS5-BoOYUfSQ.js";
2
+ import { a as O, _ as P, i as T, L as C, j as d, e as m, m as N, n as I, o as L, v as w, M as x, N as y, r as A, f as D, q as R } from "./LMDWO4NN--KEvZePp.js";
3
+ import { a as S, h as V } from "./PFRGBC2K-BEg8ahbY.js";
4
+ import { useCallback as j } from "react";
5
+ var k = "div";
6
+ function p(t) {
7
+ const e = t.relatedTarget;
8
+ return (e == null ? void 0 : e.nodeType) === Node.ELEMENT_NODE ? e : null;
9
+ }
10
+ function F(t) {
11
+ const e = p(t);
12
+ return e ? x(t.currentTarget, e) : !1;
13
+ }
14
+ var a = Symbol("composite-hover");
15
+ function q(t) {
16
+ let e = p(t);
17
+ if (!e) return !1;
18
+ do {
19
+ if (y(e, a) && e[a]) return !0;
20
+ e = e.parentElement;
21
+ } while (e);
22
+ return !1;
23
+ }
24
+ var B = O(
25
+ function(e) {
26
+ var u = e, {
27
+ store: r,
28
+ focusOnHover: i = !0,
29
+ blurOnHoverEnd: E = !!i
30
+ } = u, n = P(u, [
31
+ "store",
32
+ "focusOnHover",
33
+ "blurOnHoverEnd"
34
+ ]);
35
+ const M = h();
36
+ r = r || M, T(
37
+ r,
38
+ process.env.NODE_ENV !== "production" && "CompositeHover must be wrapped in a Composite component."
39
+ );
40
+ const l = C(), f = n.onMouseMove, c = d(i), g = m((o) => {
41
+ if (f == null || f(o), !o.defaultPrevented && l() && c(o)) {
42
+ if (!S(o.currentTarget)) {
43
+ const s = r == null ? void 0 : r.getState().baseElement;
44
+ s && !V(s) && s.focus();
45
+ }
46
+ r == null || r.setActiveId(o.currentTarget.id);
47
+ }
48
+ }), v = n.onMouseLeave, b = d(E), H = m((o) => {
49
+ var s;
50
+ v == null || v(o), !o.defaultPrevented && l() && (F(o) || q(o) || c(o) && b(o) && (r == null || r.setActiveId(null), (s = r == null ? void 0 : r.getState().baseElement) == null || s.focus()));
51
+ }), _ = j((o) => {
52
+ o && (o[a] = !0);
53
+ }, []);
54
+ return n = N(L({}, n), {
55
+ ref: I(_, n.ref),
56
+ onMouseMove: g,
57
+ onMouseLeave: H
58
+ }), w(n);
59
+ }
60
+ );
61
+ A(
62
+ D(function(e) {
63
+ const u = B(e);
64
+ return R(k, u);
65
+ })
66
+ );
67
+ export {
68
+ B as u
69
+ };
@@ -0,0 +1,12 @@
1
+ import { C as o, a as t } from "./P7GR5CS5-BoOYUfSQ.js";
2
+ import { c as r } from "./LMDWO4NN--KEvZePp.js";
3
+ var e = r(
4
+ [t],
5
+ [o]
6
+ ), d = e.useScopedContext, s = e.useProviderContext, v = e.ContextProvider, x = e.ScopedContextProvider;
7
+ export {
8
+ x as T,
9
+ s as a,
10
+ v as b,
11
+ d as u
12
+ };
@@ -0,0 +1,26 @@
1
+ import { P as t, a as v } from "./MTZPJQMC-DyCWBG18.js";
2
+ import { c as r } from "./LMDWO4NN--KEvZePp.js";
3
+ import { C as a, a as d } from "./P7GR5CS5-BoOYUfSQ.js";
4
+ import { createContext as n } from "react";
5
+ var e = r(
6
+ [v],
7
+ [t]
8
+ );
9
+ e.useContext;
10
+ e.useScopedContext;
11
+ var c = e.useProviderContext, C = e.ContextProvider, x = e.ScopedContextProvider, o = r(
12
+ [d, C],
13
+ [a, x]
14
+ ), u = o.useContext, m = o.useScopedContext, S = o.useProviderContext, M = o.ContextProvider, f = o.ScopedContextProvider;
15
+ n(
16
+ void 0
17
+ );
18
+ export {
19
+ x as H,
20
+ f as M,
21
+ m as a,
22
+ c as b,
23
+ S as c,
24
+ M as d,
25
+ u
26
+ };