@wrdagency/blockout 1.0.5 → 1.0.7

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 (196) hide show
  1. package/dist/2NBKRL7C-CzwWfv1x.js +76 -0
  2. package/dist/2RSXSRCN-rMUAytae.js +61 -0
  3. package/dist/{4CMBR7SL-xNGezbCB.js → 4CMBR7SL-ChJnawVl.js} +132 -126
  4. package/dist/{5JTVDSTH-CIreO5bC.js → 5JTVDSTH-DcfjjEya.js} +4 -4
  5. package/dist/{5VQZOHHZ-CNzYHc1X.js → 5VQZOHHZ-BN-teS5E.js} +1 -1
  6. package/dist/{6VRAQV3D-BoLhl3hf.js → 6VRAQV3D-DK_p41oq.js} +6 -6
  7. package/dist/A3WPL2ZJ-CpUtG5Sk.js +12 -0
  8. package/dist/{BM6PGYQY-Bhr7peim.js → BM6PGYQY-CkMwDqt0.js} +2 -2
  9. package/dist/Check.es-CMkTf2It.js +38 -0
  10. package/dist/{DG5U6ZEL-C7eLVyh-.js → DG5U6ZEL-GfwW2sqh.js} +3 -3
  11. package/dist/EM5CXX6A-C74NAQPE.js +13 -0
  12. package/dist/{F5MUBM3I-_HauDyEF.js → F5MUBM3I-BbDMTUwx.js} +24 -24
  13. package/dist/{G7GW6PWC-Crp1Jn-8.js → G7GW6PWC-A0eDeXMt.js} +100 -96
  14. package/dist/IWEFDH56-CvOsIcbb.js +19 -0
  15. package/dist/{J2LQO3EC-CcHJqN0I.js → J2LQO3EC-DYtZQQv6.js} +4 -3
  16. package/dist/{KFH4SEIX-D-fCkpQv.js → KFH4SEIX-BFT9WmYk.js} +3 -3
  17. package/dist/{LMDWO4NN-DdLnHzru.js → LMDWO4NN-CIZvvtic.js} +233 -203
  18. package/dist/MAXQOH4L-DBaf8WKp.js +564 -0
  19. package/dist/MR26YJYP-DacZIkgJ.js +287 -0
  20. package/dist/MTZPJQMC-DPwZ6caC.js +13 -0
  21. package/dist/{O2PQ2652-THp22K4G.js → O2PQ2652-D2GSkoLq.js} +6 -6
  22. package/dist/P7GR5CS5-5PtDURPc.js +24 -0
  23. package/dist/{PFRGBC2K-DUhGSIey.js → PFRGBC2K-B9ko--FF.js} +34 -33
  24. package/dist/Plus.es-DJ5SuqNv.js +38 -0
  25. package/dist/RS7LB2H4-BvDKQaCt.js +18 -0
  26. package/dist/RZ4GPYOB-COPqjbOz.js +37 -0
  27. package/dist/{S43UC3DV-erT1ucAd.js → S43UC3DV-CiBKpqp8.js} +3 -3
  28. package/dist/{T7VMP3TM-C-Aesx9K.js → T7VMP3TM-C0xl-w4G.js} +21 -21
  29. package/dist/TP7N7UIH-Dc0CLLi8.js +33 -0
  30. package/dist/{UQQRIHDV-DIXH69U3.js → UQQRIHDV-BBkcyl82.js} +17 -17
  31. package/dist/UYGDZTLQ-9uAEICxv.js +13 -0
  32. package/dist/VIIRIBF3-uvnIyICw.js +31 -0
  33. package/dist/WMYDSCNQ-D4CU76mX.js +61 -0
  34. package/dist/{WYCIER3C-S-jsj0wy.js → WYCIER3C-CaoIoaX7.js} +4 -4
  35. package/dist/{YV4JVR4I-BXEaRiAN.js → YV4JVR4I-w1-dnslS.js} +47 -47
  36. package/dist/assets/index10.css +1 -1
  37. package/dist/assets/index11.css +1 -1
  38. package/dist/assets/index12.css +1 -1
  39. package/dist/assets/index13.css +1 -1
  40. package/dist/assets/index14.css +1 -1
  41. package/dist/assets/index15.css +1 -1
  42. package/dist/assets/index16.css +1 -1
  43. package/dist/assets/index17.css +1 -1
  44. package/dist/assets/index4.css +1 -1
  45. package/dist/assets/style16.css +1 -1
  46. package/dist/assets/style17.css +1 -1
  47. package/dist/assets/style18.css +1 -1
  48. package/dist/assets/style19.css +1 -1
  49. package/dist/assets/style20.css +1 -1
  50. package/dist/assets/style21.css +1 -1
  51. package/dist/assets/style22.css +1 -1
  52. package/dist/assets/style23.css +1 -1
  53. package/dist/assets/style24.css +1 -1
  54. package/dist/assets/style25.css +1 -1
  55. package/dist/assets/style26.css +1 -1
  56. package/dist/assets/style27.css +1 -0
  57. package/dist/components/breadcrumbs/index.js +5 -5
  58. package/dist/components/button/row.js +4 -4
  59. package/dist/components/controls/base-popover-control/index.js +4 -4
  60. package/dist/components/controls/card-number-control/index.js +1 -1
  61. package/dist/components/controls/date-control/index.js +1 -1
  62. package/dist/components/controls/date-control/picker.js +5 -5
  63. package/dist/components/controls/index.d.ts +1 -0
  64. package/dist/components/controls/index.js +12 -10
  65. package/dist/components/controls/list-control/item.js +34 -67
  66. package/dist/components/controls/list-control/list.js +1 -1
  67. package/dist/components/controls/recurrence-control/index.js +19 -18
  68. package/dist/components/controls/select-control/control.js +26 -37
  69. package/dist/components/controls/select-control/select.js +62 -1129
  70. package/dist/components/controls/tag-control/ariakit-experimental.d.ts +7 -0
  71. package/dist/components/controls/tag-control/ariakit-experimental.js +2308 -0
  72. package/dist/components/controls/tag-control/index.d.ts +10 -0
  73. package/dist/components/controls/tag-control/index.js +137 -0
  74. package/dist/components/controls/tag-control/props.d.ts +20 -0
  75. package/dist/components/controls/tag-control/props.js +57 -0
  76. package/dist/components/controls/text-control/index.js +1 -1
  77. package/dist/components/data-view/data/apply.js +15 -15
  78. package/dist/components/data-view/data/filter.js +14 -12
  79. package/dist/components/data-view/index.js +1 -1
  80. package/dist/components/data-view/layouts/grid/empty.js +1 -1
  81. package/dist/components/data-view/layouts/grid/group.js +9 -7
  82. package/dist/components/data-view/layouts/grid/item.js +9 -7
  83. package/dist/components/data-view/layouts/grid/root.js +1 -1
  84. package/dist/components/data-view/layouts/kanban/empty.js +1 -1
  85. package/dist/components/data-view/layouts/kanban/group.js +9 -7
  86. package/dist/components/data-view/layouts/kanban/item.js +9 -7
  87. package/dist/components/data-view/layouts/kanban/root.js +1 -1
  88. package/dist/components/data-view/layouts/list/empty.js +1 -1
  89. package/dist/components/data-view/layouts/list/group.js +9 -7
  90. package/dist/components/data-view/layouts/list/item.js +9 -7
  91. package/dist/components/data-view/layouts/list/root.js +1 -1
  92. package/dist/components/data-view/layouts/table/empty.js +9 -7
  93. package/dist/components/data-view/layouts/table/group.js +10 -8
  94. package/dist/components/data-view/layouts/table/item.js +10 -8
  95. package/dist/components/data-view/layouts/table/root.js +9 -7
  96. package/dist/components/data-view/parts/body/index.js +11 -9
  97. package/dist/components/data-view/parts/controls/index.js +9 -7
  98. package/dist/components/data-view/parts/controls/search.js +9 -7
  99. package/dist/components/data-view/parts/filters/editor.js +8 -6
  100. package/dist/components/data-view/parts/filters/index.js +1 -1
  101. package/dist/components/data-view/parts/filters/list.js +39 -73
  102. package/dist/components/data-view/parts/footer/actions.js +9 -7
  103. package/dist/components/data-view/parts/footer/index.js +9 -7
  104. package/dist/components/data-view/parts/footer/selection.js +9 -7
  105. package/dist/components/data-view/parts/view-control/index.js +23 -21
  106. package/dist/components/data-view/root.js +9 -7
  107. package/dist/components/data-view/slots/group/checkbox.js +9 -7
  108. package/dist/components/data-view/slots/group/context.js +1 -1
  109. package/dist/components/data-view/slots/group/icon.js +1 -1
  110. package/dist/components/data-view/slots/group/index.js +1 -1
  111. package/dist/components/data-view/slots/group/label.js +1 -1
  112. package/dist/components/data-view/slots/index.js +3 -3
  113. package/dist/components/data-view/slots/item/actions.js +1 -1
  114. package/dist/components/data-view/slots/item/checkbox.js +9 -7
  115. package/dist/components/data-view/slots/item/depth.js +3 -3
  116. package/dist/components/data-view/slots/item/description.js +1 -1
  117. package/dist/components/data-view/slots/item/index.js +2 -2
  118. package/dist/components/data-view/slots/item/properties.js +2 -2
  119. package/dist/components/data-view/slots/item/relations.js +3 -3
  120. package/dist/components/data-view/slots/item/tags.js +1 -1
  121. package/dist/components/data-view/slots/item/thumbnail.js +1 -1
  122. package/dist/components/data-view/slots/item/title.js +1 -1
  123. package/dist/components/data-view/slots/item/util.js +2 -2
  124. package/dist/components/data-view/slots/property/field/editable.js +8 -6
  125. package/dist/components/data-view/slots/property/field/index.js +2 -2
  126. package/dist/components/data-view/slots/property/field/static.js +1 -1
  127. package/dist/components/data-view/slots/property/index.js +1 -1
  128. package/dist/components/data-view/slots/property/label.js +1 -1
  129. package/dist/components/data-view/slots/root/checkbox.js +8 -6
  130. package/dist/components/data-view/slots/root/index.js +1 -1
  131. package/dist/components/filesystem/file.js +1 -1
  132. package/dist/components/filesystem/folder.js +29 -80
  133. package/dist/components/filesystem/list.js +1 -1
  134. package/dist/components/filesystem/root.js +1 -1
  135. package/dist/components/index.js +41 -39
  136. package/dist/components/menu/index.js +14 -13
  137. package/dist/components/menu/item.js +1 -1
  138. package/dist/components/menu/items/action.js +1 -1
  139. package/dist/components/menu/items/spacer.js +4 -16
  140. package/dist/components/menu/items/submenu.js +4 -3
  141. package/dist/components/menu/items/toggle.js +1 -1
  142. package/dist/components/pagination/index.js +1 -1
  143. package/dist/components/tabs/list.js +8 -36
  144. package/dist/components/tabs/panel.js +13 -126
  145. package/dist/components/tabs/root.js +14 -166
  146. package/dist/components/tabs/tab.js +5 -79
  147. package/dist/components/toolbar/divider.js +7 -19
  148. package/dist/components/toolbar/index.js +10 -24
  149. package/dist/components/toolbar/root.js +5 -67
  150. package/dist/components/window/index.js +2 -2
  151. package/dist/{composite-provider-R5SnRc_G.js → composite-provider-B-M1AaRb.js} +2 -2
  152. package/dist/disclosure-provider-DW9RmAuE.js +61 -0
  153. package/dist/{filter-C-ZkRgt_.js → filter-GoxwLwkT.js} +14 -12
  154. package/dist/{index-DI0cEpya.js → index-C_xrLeQq.js} +20 -18
  155. package/dist/{index-BW-2OhmK.js → index-DJ2XZnew.js} +7 -5
  156. package/dist/{index-Bj4Ga50P.js → index-DpV0obFX.js} +6 -4
  157. package/dist/index.js +87 -85
  158. package/dist/item-CYpF0or4.js +58 -0
  159. package/dist/{style-tA0yiKCL.js → match-sorter.esm-MNVE8H_6.js} +1 -1
  160. package/dist/menu-button-D0chRxS0.js +416 -0
  161. package/dist/menu-separator-Cy38O3cZ.js +16 -0
  162. package/dist/{picker-BkmBjgWA.js → picker-BAQPD-c9.js} +4 -4
  163. package/dist/popover-provider-DZV1nb7Q.js +10 -0
  164. package/dist/primitives/popover/index.js +2 -2
  165. package/dist/primitives/popover/root.js +12 -3
  166. package/dist/primitives/popover/target.js +1 -1
  167. package/dist/primitives/popover/window.js +3 -3
  168. package/dist/primitives/tooltip/index.js +10 -173
  169. package/dist/select-popover-DYAZyLp4.js +542 -0
  170. package/dist/select-value-CeoMyvpZ.js +15 -0
  171. package/dist/{sortable.esm-De3H-_AA.js → sortable.esm-BuV7eW2H.js} +4 -4
  172. package/dist/{style-C7eFpUVU.js → style-CWAa57kN.js} +1 -1
  173. package/dist/tab-DjNG1rEI.js +79 -0
  174. package/dist/tab-list-DtMnUjoy.js +33 -0
  175. package/dist/tab-panel-DdkeLgKE.js +118 -0
  176. package/dist/tab-provider-BMkHrtIK.js +158 -0
  177. package/dist/tag-remove-BVa8oSsq.js +533 -0
  178. package/dist/toolbar-B7_t1rYu.js +68 -0
  179. package/dist/toolbar-separator-DBoO5XdF.js +16 -0
  180. package/dist/tooltip-anchor-CxZWazuo.js +173 -0
  181. package/package.json +1 -1
  182. package/dist/2NBKRL7C-Cug3TzgR.js +0 -85
  183. package/dist/2RSXSRCN-Bc3g-z-i.js +0 -61
  184. package/dist/A3WPL2ZJ-D0Eh1dEB.js +0 -11
  185. package/dist/EM5CXX6A-DKxCXPnz.js +0 -14
  186. package/dist/MR26YJYP-yD1_RvCA.js +0 -283
  187. package/dist/MTZPJQMC-RLG1q394.js +0 -12
  188. package/dist/P7GR5CS5-Dub2zqTX.js +0 -22
  189. package/dist/RS7LB2H4-C0kmTjy8.js +0 -15
  190. package/dist/RZ4GPYOB-c8s_KHUk.js +0 -37
  191. package/dist/TP7N7UIH-mdk33dnV.js +0 -34
  192. package/dist/UYGDZTLQ-fOwUiOjI.js +0 -12
  193. package/dist/VIIRIBF3-DylpToFV.js +0 -18
  194. package/dist/WMYDSCNQ-D43V-JUe.js +0 -62
  195. package/dist/item-C5GtZF5t.js +0 -470
  196. package/dist/root-C7IYlG1s.js +0 -20
@@ -0,0 +1,76 @@
1
+ import { u as _, a as H } from "./VIIRIBF3-uvnIyICw.js";
2
+ import { u as T } from "./UQQRIHDV-BBkcyl82.js";
3
+ import { u as y } from "./6VRAQV3D-DK_p41oq.js";
4
+ import { a as S } from "./YV4JVR4I-w1-dnslS.js";
5
+ import { s as k, f as P, c as w, a as A, _ as D, i as N, j as F, e as R, O as j, P as B, Q as K, m as g, o as p, C as V } from "./LMDWO4NN-CIZvvtic.js";
6
+ import { a as M } from "./PFRGBC2K-B9ko--FF.js";
7
+ var W = "div";
8
+ function q(a, o, u) {
9
+ var r;
10
+ if (!a) return !1;
11
+ if (M(a)) return !0;
12
+ const i = o == null ? void 0 : o.find((n) => {
13
+ var l;
14
+ return n.element === u ? !1 : ((l = n.element) == null ? void 0 : l.getAttribute("aria-expanded")) === "true";
15
+ }), c = (r = i == null ? void 0 : i.element) == null ? void 0 : r.getAttribute("aria-controls");
16
+ if (!c) return !1;
17
+ const t = V(a).getElementById(c);
18
+ return t ? M(t) ? !0 : !!t.querySelector("[role=menuitem][aria-expanded=true]") : !1;
19
+ }
20
+ var L = w(
21
+ function(o) {
22
+ var u = o, {
23
+ store: r,
24
+ hideOnClick: i = !0,
25
+ preventScrollOnKeyDown: c = !0,
26
+ focusOnHover: s,
27
+ blurOnHoverEnd: t
28
+ } = u, n = D(u, [
29
+ "store",
30
+ "hideOnClick",
31
+ "preventScrollOnKeyDown",
32
+ "focusOnHover",
33
+ "blurOnHoverEnd"
34
+ ]);
35
+ const l = _(!0), O = H();
36
+ r = r || l || O, N(
37
+ r,
38
+ process.env.NODE_ENV !== "production" && "MenuItem must be wrapped in a MenuList, Menu or Menubar component"
39
+ );
40
+ const m = n.onClick, b = F(i), f = "hideAll" in r ? r.hideAll : void 0, d = !!f, C = R((e) => {
41
+ m == null || m(e), !(e.defaultPrevented || j(e) || B(e) || !f || e.currentTarget.getAttribute("aria-haspopup") === "menu") && b(e) && f();
42
+ }), h = S(
43
+ r,
44
+ (e) => "contentElement" in e ? e.contentElement : null
45
+ ), x = K(h, "menuitem");
46
+ return n = g(p({
47
+ role: x
48
+ }, n), {
49
+ onClick: C
50
+ }), n = y(p({
51
+ store: r,
52
+ preventScrollOnKeyDown: c
53
+ }, n)), n = T(g(p({
54
+ store: r
55
+ }, n), {
56
+ focusOnHover(e) {
57
+ const v = () => typeof s == "function" ? s(e) : s ?? !0;
58
+ if (!r || !v()) return !1;
59
+ const { baseElement: E, items: I } = r.getState();
60
+ return d ? (e.currentTarget.hasAttribute("aria-expanded") && e.currentTarget.focus(), !0) : q(E, I, e.currentTarget) ? (e.currentTarget.focus(), !0) : !1;
61
+ },
62
+ blurOnHoverEnd(e) {
63
+ return typeof t == "function" ? t(e) : t ?? d;
64
+ }
65
+ })), n;
66
+ }
67
+ ), Y = k(
68
+ P(function(o) {
69
+ const u = L(o);
70
+ return A(W, u);
71
+ })
72
+ );
73
+ export {
74
+ Y as M,
75
+ L as u
76
+ };
@@ -0,0 +1,61 @@
1
+ import { u as I } from "./PFRGBC2K-B9ko--FF.js";
2
+ import { c as O, _ as m, A as p, t as q, E as x, e as N, h as H, k as Y, F as j, G, H as _, m as L, n as V, o as T, f as z, a as J } from "./LMDWO4NN-CIZvvtic.js";
3
+ import { useRef as w, useState as D, useEffect as Q } from "react";
4
+ var W = "button";
5
+ function M(a) {
6
+ if (!a.isTrusted) return !1;
7
+ const t = a.currentTarget;
8
+ return a.key === "Enter" ? p(t) || t.tagName === "SUMMARY" || t.tagName === "A" : a.key === " " ? p(t) || t.tagName === "SUMMARY" || t.tagName === "INPUT" || t.tagName === "SELECT" : !1;
9
+ }
10
+ var X = Symbol("command"), Z = O(
11
+ function(t) {
12
+ var o = t, { clickOnEnter: d = !0, clickOnSpace: u = !0 } = o, r = m(o, ["clickOnEnter", "clickOnSpace"]);
13
+ const c = w(null), [K, R] = D(!1);
14
+ Q(() => {
15
+ c.current && R(p(c.current));
16
+ }, []);
17
+ const [U, k] = D(!1), f = w(!1), y = q(r), [E, A] = x(r, X, !0), v = r.onKeyDown, F = N((e) => {
18
+ v == null || v(e);
19
+ const s = e.currentTarget;
20
+ if (e.defaultPrevented || E || y || !H(e) || Y(s) || s.isContentEditable) return;
21
+ const i = d && e.key === "Enter", n = u && e.key === " ", g = e.key === "Enter" && !d, l = e.key === " " && !u;
22
+ if (g || l) {
23
+ e.preventDefault();
24
+ return;
25
+ }
26
+ if (i || n) {
27
+ const S = M(e);
28
+ if (i) {
29
+ if (!S) {
30
+ e.preventDefault();
31
+ const b = e, { view: $ } = b, B = m(b, ["view"]), C = () => _(s, B);
32
+ j() ? G(s, "keyup", C) : queueMicrotask(C);
33
+ }
34
+ } else n && (f.current = !0, S || (e.preventDefault(), k(!0)));
35
+ }
36
+ }), P = r.onKeyUp, h = N((e) => {
37
+ if (P == null || P(e), e.defaultPrevented || E || y || e.metaKey) return;
38
+ const s = u && e.key === " ";
39
+ if (f.current && s && (f.current = !1, !M(e))) {
40
+ e.preventDefault(), k(!1);
41
+ const i = e.currentTarget, n = e, { view: g } = n, l = m(n, ["view"]);
42
+ queueMicrotask(() => _(i, l));
43
+ }
44
+ });
45
+ return r = L(T(T({
46
+ "data-active": U || void 0,
47
+ type: K ? "button" : void 0
48
+ }, A), r), {
49
+ ref: V(c, r.ref),
50
+ onKeyDown: F,
51
+ onKeyUp: h
52
+ }), r = I(r), r;
53
+ }
54
+ ), ae = z(function(t) {
55
+ const o = Z(t);
56
+ return J(W, o);
57
+ });
58
+ export {
59
+ ae as C,
60
+ Z as u
61
+ };
@@ -1,145 +1,149 @@
1
- import { t as K, c as k, s as R, i as X, g as $, d as _, e as Z, b as p } from "./YV4JVR4I-BXEaRiAN.js";
2
- import { S, Q as M, R as L, a1 as ee, J as te, C as ne, T as re, q as ie, o as se } from "./LMDWO4NN-DdLnHzru.js";
3
- import { r as U, f as oe } from "./7PRQYBBV-91wrWGjk.js";
4
- function le(e) {
5
- var i;
6
- const t = e.find((a) => !!a.element), o = [...e].reverse().find((a) => !!a.element);
7
- let s = (i = t == null ? void 0 : t.element) == null ? void 0 : i.parentElement;
1
+ import { t as p, c as k, s as M, i as ee, g as U, d as _, b as J, e as te } from "./YV4JVR4I-w1-dnslS.js";
2
+ import { V as S, T as R, U as L, a1 as ne, J as re, C as ie, W as se, q as oe, o as ae } from "./LMDWO4NN-CIZvvtic.js";
3
+ import { r as $, f as le } from "./7PRQYBBV-91wrWGjk.js";
4
+ function de(e) {
5
+ var r;
6
+ const t = e.find((l) => !!l.element), o = [...e].reverse().find((l) => !!l.element);
7
+ let s = (r = t == null ? void 0 : t.element) == null ? void 0 : r.parentElement;
8
8
  for (; s && (o != null && o.element); ) {
9
9
  if (o && s.contains(o.element))
10
10
  return s;
11
11
  s = s.parentElement;
12
12
  }
13
- return ne(s).body;
13
+ return ie(s).body;
14
14
  }
15
- function ae(e) {
15
+ function ue(e) {
16
16
  return e == null ? void 0 : e.__unstablePrivateStore;
17
17
  }
18
- function de(e = {}) {
19
- var i;
20
- K(e, e.store);
21
- const t = (i = e.store) == null ? void 0 : i.getState(), o = S(
18
+ function Y(e = {}) {
19
+ var r;
20
+ p(e, e.store);
21
+ const t = (r = e.store) == null ? void 0 : r.getState(), o = S(
22
22
  e.items,
23
23
  t == null ? void 0 : t.items,
24
24
  e.defaultItems,
25
25
  []
26
- ), s = new Map(o.map((r) => [r.id, r])), a = {
26
+ ), s = new Map(o.map((i) => [i.id, i])), l = {
27
27
  items: o,
28
28
  renderedItems: S(t == null ? void 0 : t.renderedItems, [])
29
- }, d = ae(e.store), c = k(
30
- { items: o, renderedItems: a.renderedItems },
29
+ }, d = ue(e.store), c = k(
30
+ { items: o, renderedItems: l.renderedItems },
31
31
  d
32
- ), n = k(a, e.store), x = (r) => {
33
- const l = te(r, (u) => u.element);
34
- c.setState("renderedItems", l), n.setState("renderedItems", l);
32
+ ), n = k(l, e.store), x = (i) => {
33
+ const a = re(i, (u) => u.element);
34
+ c.setState("renderedItems", a), n.setState("renderedItems", a);
35
35
  };
36
- R(n, () => X(c)), R(c, () => $(c, ["items"], (r) => {
37
- n.setState("items", r.items);
38
- })), R(c, () => $(c, ["renderedItems"], (r) => {
39
- let l = !0, u = requestAnimationFrame(() => {
36
+ M(n, () => ee(c)), M(c, () => U(c, ["items"], (i) => {
37
+ n.setState("items", i.items);
38
+ })), M(c, () => U(c, ["renderedItems"], (i) => {
39
+ let a = !0, u = requestAnimationFrame(() => {
40
40
  const { renderedItems: m } = n.getState();
41
- r.renderedItems !== m && x(r.renderedItems);
41
+ i.renderedItems !== m && x(i.renderedItems);
42
42
  });
43
43
  if (typeof IntersectionObserver != "function")
44
44
  return () => cancelAnimationFrame(u);
45
45
  const g = () => {
46
- if (l) {
47
- l = !1;
46
+ if (a) {
47
+ a = !1;
48
48
  return;
49
49
  }
50
- cancelAnimationFrame(u), u = requestAnimationFrame(() => x(r.renderedItems));
51
- }, F = le(r.renderedItems), f = new IntersectionObserver(g, { root: F });
52
- for (const m of r.renderedItems)
50
+ cancelAnimationFrame(u), u = requestAnimationFrame(() => x(i.renderedItems));
51
+ }, F = de(i.renderedItems), f = new IntersectionObserver(g, { root: F });
52
+ for (const m of i.renderedItems)
53
53
  m.element && f.observe(m.element);
54
54
  return () => {
55
55
  cancelAnimationFrame(u), f.disconnect();
56
56
  };
57
57
  }));
58
- const E = (r, l, u = !1) => {
58
+ const E = (i, a, u = !1) => {
59
59
  let g;
60
- return l((f) => {
61
- const m = f.findIndex(({ id: b }) => b === r.id), w = f.slice();
60
+ return a((f) => {
61
+ const m = f.findIndex(({ id: b }) => b === i.id), w = f.slice();
62
62
  if (m !== -1) {
63
63
  g = f[m];
64
- const b = L(L({}, g), r);
65
- w[m] = b, s.set(r.id, b);
64
+ const b = L(L({}, g), i);
65
+ w[m] = b, s.set(i.id, b);
66
66
  } else
67
- w.push(r), s.set(r.id, r);
67
+ w.push(i), s.set(i.id, i);
68
68
  return w;
69
69
  }), () => {
70
- l((f) => {
70
+ a((f) => {
71
71
  if (!g)
72
- return u && s.delete(r.id), f.filter(({ id: b }) => b !== r.id);
73
- const m = f.findIndex(({ id: b }) => b === r.id);
72
+ return u && s.delete(i.id), f.filter(({ id: b }) => b !== i.id);
73
+ const m = f.findIndex(({ id: b }) => b === i.id);
74
74
  if (m === -1) return f;
75
75
  const w = f.slice();
76
- return w[m] = g, s.set(r.id, g), w;
76
+ return w[m] = g, s.set(i.id, g), w;
77
77
  });
78
78
  };
79
- }, P = (r) => E(
80
- r,
81
- (l) => c.setState("items", l),
79
+ }, P = (i) => E(
80
+ i,
81
+ (a) => c.setState("items", a),
82
82
  !0
83
83
  );
84
- return M(L({}, n), {
84
+ return R(L({}, n), {
85
85
  registerItem: P,
86
- renderItem: (r) => ee(
87
- P(r),
86
+ renderItem: (i) => ne(
87
+ P(i),
88
88
  E(
89
- r,
90
- (l) => c.setState("renderedItems", l)
89
+ i,
90
+ (a) => c.setState("renderedItems", a)
91
91
  )
92
92
  ),
93
- item: (r) => {
94
- if (!r) return null;
95
- let l = s.get(r);
96
- if (!l) {
93
+ item: (i) => {
94
+ if (!i) return null;
95
+ let a = s.get(i);
96
+ if (!a) {
97
97
  const { items: u } = c.getState();
98
- l = u.find((g) => g.id === r), l && s.set(r, l);
98
+ a = u.find((g) => g.id === i), a && s.set(i, a);
99
99
  }
100
- return l || null;
100
+ return a || null;
101
101
  },
102
102
  // @ts-expect-error Internal
103
103
  __unstablePrivateStore: c
104
104
  });
105
105
  }
106
- function ue(e, i, t) {
107
- return re(i, [t.store]), _(e, t, "items", "setItems"), e;
106
+ function j(e, r, t) {
107
+ return se(r, [t.store]), _(e, t, "items", "setItems"), e;
108
+ }
109
+ function Ee(e = {}) {
110
+ const [r, t] = J(Y, e);
111
+ return j(r, t, e);
108
112
  }
109
113
  var ce = { id: null };
110
- function h(e, i) {
111
- return e.find((t) => i ? !t.disabled && t.id !== i : !t.disabled);
114
+ function h(e, r) {
115
+ return e.find((t) => r ? !t.disabled && t.id !== r : !t.disabled);
112
116
  }
113
- function fe(e, i) {
114
- return e.filter((t) => i ? !t.disabled && t.id !== i : !t.disabled);
117
+ function fe(e, r) {
118
+ return e.filter((t) => r ? !t.disabled && t.id !== r : !t.disabled);
115
119
  }
116
- function G(e, i) {
117
- return e.filter((t) => t.rowId === i);
120
+ function G(e, r) {
121
+ return e.filter((t) => t.rowId === r);
118
122
  }
119
- function me(e, i, t = !1) {
120
- const o = e.findIndex((s) => s.id === i);
123
+ function me(e, r, t = !1) {
124
+ const o = e.findIndex((s) => s.id === r);
121
125
  return [
122
126
  ...e.slice(o + 1),
123
127
  ...t ? [ce] : [],
124
128
  ...e.slice(0, o)
125
129
  ];
126
130
  }
127
- function J(e) {
128
- const i = [];
131
+ function H(e) {
132
+ const r = [];
129
133
  for (const t of e) {
130
- const o = i.find((s) => {
131
- var a;
132
- return ((a = s[0]) == null ? void 0 : a.rowId) === t.rowId;
134
+ const o = r.find((s) => {
135
+ var l;
136
+ return ((l = s[0]) == null ? void 0 : l.rowId) === t.rowId;
133
137
  });
134
- o ? o.push(t) : i.push([t]);
138
+ o ? o.push(t) : r.push([t]);
135
139
  }
136
- return i;
140
+ return r;
137
141
  }
138
- function Q(e) {
139
- let i = 0;
142
+ function K(e) {
143
+ let r = 0;
140
144
  for (const { length: t } of e)
141
- t > i && (i = t);
142
- return i;
145
+ t > r && (r = t);
146
+ return r;
143
147
  }
144
148
  function ve(e) {
145
149
  return {
@@ -148,24 +152,24 @@ function ve(e) {
148
152
  rowId: e
149
153
  };
150
154
  }
151
- function Ie(e, i, t) {
152
- const o = Q(e);
155
+ function Ie(e, r, t) {
156
+ const o = K(e);
153
157
  for (const s of e)
154
- for (let a = 0; a < o; a += 1) {
155
- const d = s[a];
158
+ for (let l = 0; l < o; l += 1) {
159
+ const d = s[l];
156
160
  if (!d || t && d.disabled) {
157
- const n = a === 0 && t ? h(s) : s[a - 1];
158
- s[a] = n && i !== n.id && t ? n : ve(n == null ? void 0 : n.rowId);
161
+ const n = l === 0 && t ? h(s) : s[l - 1];
162
+ s[l] = n && r !== n.id && t ? n : ve(n == null ? void 0 : n.rowId);
159
163
  }
160
164
  }
161
165
  return e;
162
166
  }
163
167
  function Se(e) {
164
- const i = J(e), t = Q(i), o = [];
168
+ const r = H(e), t = K(r), o = [];
165
169
  for (let s = 0; s < t; s += 1)
166
- for (const a of i) {
167
- const d = a[s];
168
- d && o.push(M(L({}, d), {
170
+ for (const l of r) {
171
+ const d = l[s];
172
+ d && o.push(R(L({}, d), {
169
173
  // If there's no rowId, it means that it's not a grid composite, but
170
174
  // a single row instead. So, instead of verticalizing it, that is,
171
175
  // assigning a different rowId based on the column index, we keep it
@@ -177,12 +181,12 @@ function Se(e) {
177
181
  return o;
178
182
  }
179
183
  function ge(e = {}) {
180
- var i;
181
- const t = (i = e.store) == null ? void 0 : i.getState(), o = de(e), s = S(
184
+ var r;
185
+ const t = (r = e.store) == null ? void 0 : r.getState(), o = Y(e), s = S(
182
186
  e.activeId,
183
187
  t == null ? void 0 : t.activeId,
184
188
  e.defaultActiveId
185
- ), a = M(L({}, o.getState()), {
189
+ ), l = R(L({}, o.getState()), {
186
190
  id: S(
187
191
  e.id,
188
192
  t == null ? void 0 : t.id,
@@ -210,10 +214,10 @@ function ge(e = {}) {
210
214
  focusLoop: S(e.focusLoop, t == null ? void 0 : t.focusLoop, !1),
211
215
  focusWrap: S(e.focusWrap, t == null ? void 0 : t.focusWrap, !1),
212
216
  focusShift: S(e.focusShift, t == null ? void 0 : t.focusShift, !1)
213
- }), d = k(a, o, e.store);
214
- R(
217
+ }), d = k(l, o, e.store);
218
+ M(
215
219
  d,
216
- () => Z(d, ["renderedItems", "activeId"], (n) => {
220
+ () => te(d, ["renderedItems", "activeId"], (n) => {
217
221
  d.setState("activeId", (x) => {
218
222
  var E;
219
223
  return x !== void 0 ? x : (E = h(n.renderedItems)) == null ? void 0 : E.id;
@@ -222,36 +226,36 @@ function ge(e = {}) {
222
226
  );
223
227
  const c = (n = "next", x = {}) => {
224
228
  var E, P;
225
- const r = d.getState(), {
226
- skip: l = 0,
227
- activeId: u = r.activeId,
228
- focusShift: g = r.focusShift,
229
- focusLoop: F = r.focusLoop,
230
- focusWrap: f = r.focusWrap,
231
- includesBaseElement: m = r.includesBaseElement,
232
- renderedItems: w = r.renderedItems,
233
- rtl: b = r.rtl
234
- } = x, y = n === "up" || n === "down", z = n === "next" || n === "down", Y = z ? b && !y : !b || y, j = g && !l;
235
- let v = y ? oe(
236
- Ie(J(w), u, j)
229
+ const i = d.getState(), {
230
+ skip: a = 0,
231
+ activeId: u = i.activeId,
232
+ focusShift: g = i.focusShift,
233
+ focusLoop: F = i.focusLoop,
234
+ focusWrap: f = i.focusWrap,
235
+ includesBaseElement: m = i.includesBaseElement,
236
+ renderedItems: w = i.renderedItems,
237
+ rtl: b = i.rtl
238
+ } = x, y = n === "up" || n === "down", z = n === "next" || n === "down", Q = z ? b && !y : !b || y, X = g && !a;
239
+ let v = y ? le(
240
+ Ie(H(w), u, X)
237
241
  ) : w;
238
- if (v = Y ? U(v) : v, v = y ? Se(v) : v, u == null)
242
+ if (v = Q ? $(v) : v, v = y ? Se(v) : v, u == null)
239
243
  return (E = h(v)) == null ? void 0 : E.id;
240
244
  const B = v.find((I) => I.id === u);
241
245
  if (!B)
242
246
  return (P = h(v)) == null ? void 0 : P.id;
243
- const D = v.some((I) => I.rowId), H = v.indexOf(B), N = v.slice(H + 1), O = G(N, B.rowId);
244
- if (l) {
245
- const I = fe(O, u), C = I.slice(l)[0] || // If we can't find an item, just return the last one.
247
+ const D = v.some((I) => I.rowId), Z = v.indexOf(B), V = v.slice(Z + 1), W = G(V, B.rowId);
248
+ if (a) {
249
+ const I = fe(W, u), A = I.slice(a)[0] || // If we can't find an item, just return the last one.
246
250
  I[I.length - 1];
247
- return C == null ? void 0 : C.id;
251
+ return A == null ? void 0 : A.id;
248
252
  }
249
- const T = F && (y ? F !== "horizontal" : F !== "vertical"), V = D && f && (y ? f !== "horizontal" : f !== "vertical"), A = z ? (!D || y) && T && m : y ? m : !1;
250
- if (T) {
251
- const I = V && !A ? v : G(v, B.rowId), C = me(I, u, A), q = h(C, u);
253
+ const N = F && (y ? F !== "horizontal" : F !== "vertical"), T = D && f && (y ? f !== "horizontal" : f !== "vertical"), C = z ? (!D || y) && N && m : y ? m : !1;
254
+ if (N) {
255
+ const I = T && !C ? v : G(v, B.rowId), A = me(I, u, C), q = h(A, u);
252
256
  return q == null ? void 0 : q.id;
253
257
  }
254
- if (V) {
258
+ if (T) {
255
259
  const I = h(
256
260
  // We can use nextItems, which contains all the next items, including
257
261
  // items from other rows, to wrap between rows. However, if there is a
@@ -259,15 +263,15 @@ function ge(e = {}) {
259
263
  // the row. So moving next from the last item will focus on the
260
264
  // composite container. On grid composites, horizontal navigation never
261
265
  // focuses on the composite container, only vertical.
262
- A ? O : N,
266
+ C ? W : V,
263
267
  u
264
268
  );
265
- return A ? (I == null ? void 0 : I.id) || null : I == null ? void 0 : I.id;
269
+ return C ? (I == null ? void 0 : I.id) || null : I == null ? void 0 : I.id;
266
270
  }
267
- const W = h(O, u);
268
- return !W && A ? null : W == null ? void 0 : W.id;
271
+ const O = h(W, u);
272
+ return !O && C ? null : O == null ? void 0 : O.id;
269
273
  };
270
- return M(L(L({}, o), d), {
274
+ return R(L(L({}, o), d), {
271
275
  setBaseElement: (n) => d.setState("baseElement", n),
272
276
  setActiveId: (n) => d.setState("activeId", n),
273
277
  move: (n) => {
@@ -279,7 +283,7 @@ function ge(e = {}) {
279
283
  },
280
284
  last: () => {
281
285
  var n;
282
- return (n = h(U(d.getState().renderedItems))) == null ? void 0 : n.id;
286
+ return (n = h($(d.getState().renderedItems))) == null ? void 0 : n.id;
283
287
  },
284
288
  next: (n) => (n !== void 0 && typeof n == "number" && (n = { skip: n }), c("next", n)),
285
289
  previous: (n) => (n !== void 0 && typeof n == "number" && (n = { skip: n }), c("previous", n)),
@@ -288,21 +292,23 @@ function ge(e = {}) {
288
292
  });
289
293
  }
290
294
  function be(e) {
291
- const i = ie(e.id);
292
- return se({ id: i }, e);
295
+ const r = oe(e.id);
296
+ return ae({ id: r }, e);
293
297
  }
294
- function xe(e, i, t) {
295
- return e = ue(e, i, t), _(e, t, "activeId", "setActiveId"), _(e, t, "includesBaseElement"), _(e, t, "virtualFocus"), _(e, t, "orientation"), _(e, t, "rtl"), _(e, t, "focusLoop"), _(e, t, "focusWrap"), _(e, t, "focusShift"), e;
298
+ function xe(e, r, t) {
299
+ return e = j(e, r, t), _(e, t, "activeId", "setActiveId"), _(e, t, "includesBaseElement"), _(e, t, "virtualFocus"), _(e, t, "orientation"), _(e, t, "rtl"), _(e, t, "focusLoop"), _(e, t, "focusWrap"), _(e, t, "focusShift"), e;
296
300
  }
297
- function Ee(e = {}) {
301
+ function ye(e = {}) {
298
302
  e = be(e);
299
- const [i, t] = p(ge, e);
300
- return xe(i, t, e);
303
+ const [r, t] = J(ge, e);
304
+ return xe(r, t, e);
301
305
  }
302
306
  export {
303
- de as a,
307
+ Y as a,
304
308
  xe as b,
305
309
  ge as c,
306
310
  be as d,
307
- Ee as u
311
+ j as e,
312
+ Ee as f,
313
+ ye as u
308
314
  };
@@ -1,7 +1,7 @@
1
- import { g as v, s as Z, i as K, f as $, a as ee } from "./5VQZOHHZ-CNzYHc1X.js";
2
- import { u as te, C as re } from "./P7GR5CS5-Dub2zqTX.js";
3
- import { f as oe, h as ne, u as se } from "./PFRGBC2K-DUhGSIey.js";
4
- import { f as ie, c as ue, a as ae, _ as O, i as ce, u as le, b as B, d as E, g as fe, e as P, h as I, j as de, k as z, l as me, m as pe, n as ve, o as M, p as ge } from "./LMDWO4NN-DdLnHzru.js";
1
+ import { g as v, s as Z, i as K, f as $, a as ee } from "./5VQZOHHZ-BN-teS5E.js";
2
+ import { u as te, C as re } from "./P7GR5CS5-5PtDURPc.js";
3
+ import { f as oe, h as ne, u as se } from "./PFRGBC2K-B9ko--FF.js";
4
+ import { f as ie, c as ue, a as ae, _ as O, i as ce, u as le, b as B, d as E, g as fe, e as P, h as I, j as de, k as z, l as me, m as pe, n as ve, o as M, p as ge } from "./LMDWO4NN-CIZvvtic.js";
5
5
  import { f as ye, r as Ee } from "./7PRQYBBV-91wrWGjk.js";
6
6
  import { useRef as R, useEffect as L, useState as Ie, useCallback as Ce } from "react";
7
7
  import { jsx as Pe } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { k as o, C as u } from "./LMDWO4NN-DdLnHzru.js";
1
+ import { k as o, C as u } from "./LMDWO4NN-CIZvvtic.js";
2
2
  var f = { id: null };
3
3
  function a(n, t, i = !1) {
4
4
  const e = n.findIndex((s) => s.id === t);
@@ -1,9 +1,9 @@
1
- import { b as ie, i as j, c as se, g as ae } from "./5VQZOHHZ-CNzYHc1X.js";
2
- import { u as ue } from "./RZ4GPYOB-c8s_KHUk.js";
3
- import { a as le, b as fe, c as ce } from "./P7GR5CS5-Dub2zqTX.js";
4
- import { u as de } from "./2RSXSRCN-Bc3g-z-i.js";
5
- import { u as me } from "./YV4JVR4I-BXEaRiAN.js";
6
- import { s as pe, f as be, c as Ie, a as ge, _ as ve, q as we, t as Pe, m as S, o as x, e as T, v as Se, w as D, h as A, x as xe, j as N, y as Ce, z as he, l as Ee, n as ye, r as Te, k as De, A as Ae, B as ke } from "./LMDWO4NN-DdLnHzru.js";
1
+ import { b as ie, i as j, c as se, g as ae } from "./5VQZOHHZ-BN-teS5E.js";
2
+ import { u as ue } from "./RZ4GPYOB-COPqjbOz.js";
3
+ import { a as le, b as fe, c as ce } from "./P7GR5CS5-5PtDURPc.js";
4
+ import { u as de } from "./2RSXSRCN-rMUAytae.js";
5
+ import { u as me } from "./YV4JVR4I-w1-dnslS.js";
6
+ import { s as pe, f as be, c as Ie, a as ge, _ as ve, q as we, t as Pe, m as S, o as x, e as T, v as Se, w as D, h as A, x as xe, j as N, y as Ce, z as he, l as Ee, n as ye, r as Te, k as De, A as Ae, B as ke } from "./LMDWO4NN-CIZvvtic.js";
7
7
  import { useRef as V, useContext as Oe, useCallback as Re, useMemo as ze } from "react";
8
8
  import { jsx as Ke } from "react/jsx-runtime";
9
9
  var Fe = "button";
@@ -0,0 +1,12 @@
1
+ import { e, C as r } from "./P7GR5CS5-5PtDURPc.js";
2
+ import { I as t } from "./LMDWO4NN-CIZvvtic.js";
3
+ var o = t(
4
+ [r],
5
+ [e]
6
+ ), s = o.useContext, v = o.useProviderContext, x = o.ContextProvider, i = o.ScopedContextProvider;
7
+ export {
8
+ i as T,
9
+ v as a,
10
+ x as b,
11
+ s as u
12
+ };
@@ -1,5 +1,5 @@
1
- import { c as t, a as s } from "./WYCIER3C-S-jsj0wy.js";
2
- import { b as a } from "./YV4JVR4I-BXEaRiAN.js";
1
+ import { c as t, a as s } from "./WYCIER3C-CaoIoaX7.js";
2
+ import { b as a } from "./YV4JVR4I-w1-dnslS.js";
3
3
  function u(r = {}) {
4
4
  return t(r);
5
5
  }
@@ -0,0 +1,38 @@
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: "M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z" }))
7
+ ],
8
+ [
9
+ "duotone",
10
+ /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
11
+ "path",
12
+ {
13
+ d: "M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",
14
+ opacity: "0.2"
15
+ }
16
+ ), /* @__PURE__ */ e.createElement("path", { d: "M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z" }))
17
+ ],
18
+ [
19
+ "fill",
20
+ /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.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: "M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z" }))
25
+ ],
26
+ [
27
+ "regular",
28
+ /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z" }))
29
+ ],
30
+ [
31
+ "thin",
32
+ /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z" }))
33
+ ]
34
+ ]), r = e.forwardRef((a, t) => /* @__PURE__ */ e.createElement(l, { ref: t, ...a, weights: n }));
35
+ r.displayName = "CheckIcon";
36
+ export {
37
+ r as o
38
+ };
@@ -1,6 +1,6 @@
1
- import { P as o, a as r } from "./MTZPJQMC-RLG1q394.js";
2
- import { e as a, C } from "./P7GR5CS5-Dub2zqTX.js";
3
- import { I as s } from "./LMDWO4NN-DdLnHzru.js";
1
+ import { a as o, P as r } from "./MTZPJQMC-DPwZ6caC.js";
2
+ import { e as a, C } from "./P7GR5CS5-5PtDURPc.js";
3
+ import { I as s } from "./LMDWO4NN-CIZvvtic.js";
4
4
  import { createContext as t } from "react";
5
5
  var e = s(
6
6
  [r, C],