@boxcustodia/library 0.0.7 → 0.0.8

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 (272) hide show
  1. package/dist/index.d.ts +6 -1
  2. package/dist/index.es100.js +4 -4
  3. package/dist/index.es101.js +4 -14
  4. package/dist/index.es102.js +3 -4
  5. package/dist/index.es103.js +14 -57
  6. package/dist/index.es104.js +5 -29
  7. package/dist/index.es105.js +57 -12
  8. package/dist/index.es106.js +29 -11
  9. package/dist/index.es111.js +243 -1046
  10. package/dist/index.es112.js +12 -4
  11. package/dist/index.es113.js +11 -4
  12. package/dist/index.es114.js +7 -7
  13. package/dist/index.es117.js +14 -14
  14. package/dist/index.es118.js +813 -55
  15. package/dist/index.es119.js +9 -822
  16. package/dist/index.es120.js +5 -3
  17. package/dist/index.es121.js +64 -11
  18. package/dist/index.es122.js +88 -11
  19. package/dist/index.es123.js +11 -88
  20. package/dist/index.es124.js +4 -216
  21. package/dist/index.es127.js +5 -5
  22. package/dist/index.es128.js +216 -4
  23. package/dist/index.es129.js +2 -2
  24. package/dist/index.es134.js +1 -1
  25. package/dist/index.es137.js +20 -11
  26. package/dist/index.es138.js +37 -205
  27. package/dist/index.es139.js +10 -10
  28. package/dist/index.es140.js +11 -20
  29. package/dist/index.es141.js +205 -37
  30. package/dist/index.es142.js +10 -10
  31. package/dist/index.es143.js +5 -6
  32. package/dist/index.es144.js +2 -65
  33. package/dist/index.es145.js +44 -11
  34. package/dist/index.es146.js +5 -123
  35. package/dist/index.es147.js +58 -128
  36. package/dist/index.es148.js +11 -14
  37. package/dist/index.es149.js +122 -30
  38. package/dist/index.es150.js +134 -14
  39. package/dist/index.es151.js +12 -7
  40. package/dist/index.es152.js +32 -49
  41. package/dist/index.es153.js +14 -5
  42. package/dist/index.es154.js +9 -2
  43. package/dist/index.es155.js +48 -648
  44. package/dist/index.es156.js +5 -5
  45. package/dist/index.es157.js +649 -3
  46. package/dist/index.es158.js +4 -4
  47. package/dist/index.es159.js +3 -45
  48. package/dist/index.es160.js +45 -7
  49. package/dist/index.es161.js +7 -5
  50. package/dist/index.es162.js +6 -28
  51. package/dist/index.es163.js +27 -43
  52. package/dist/index.es164.js +3 -3
  53. package/dist/index.es166.js +5 -5
  54. package/dist/index.es168.js +2 -2
  55. package/dist/index.es179.js +1 -1
  56. package/dist/index.es180.js +1 -1
  57. package/dist/index.es181.js +2 -2
  58. package/dist/index.es182.js +1 -1
  59. package/dist/index.es184.js +1 -1
  60. package/dist/index.es207.js +1 -1
  61. package/dist/index.es240.js +1 -1
  62. package/dist/index.es241.js +24 -177
  63. package/dist/index.es242.js +5 -5
  64. package/dist/index.es243.js +2 -2
  65. package/dist/index.es246.js +1 -1
  66. package/dist/index.es247.js +1 -1
  67. package/dist/index.es248.js +3 -3
  68. package/dist/index.es249.js +178 -2
  69. package/dist/index.es250.js +25 -397
  70. package/dist/index.es251.js +4 -722
  71. package/dist/index.es252.js +7 -282
  72. package/dist/index.es253.js +13 -60
  73. package/dist/index.es254.js +13 -9
  74. package/dist/index.es255.js +134 -28
  75. package/dist/index.es256.js +32 -199
  76. package/dist/index.es257.js +462 -25
  77. package/dist/index.es258.js +131 -4
  78. package/dist/index.es259.js +27 -8
  79. package/dist/index.es260.js +4 -13
  80. package/dist/index.es261.js +26 -13
  81. package/dist/index.es262.js +7 -134
  82. package/dist/index.es263.js +11 -31
  83. package/dist/index.es264.js +26 -460
  84. package/dist/index.es265.js +47 -130
  85. package/dist/index.es266.js +31 -27
  86. package/dist/index.es267.js +43 -4
  87. package/dist/index.es268.js +158 -26
  88. package/dist/index.es269.js +32 -6
  89. package/dist/index.es27.js +1 -1
  90. package/dist/index.es270.js +2 -12
  91. package/dist/index.es271.js +77 -26
  92. package/dist/index.es272.js +18 -48
  93. package/dist/index.es273.js +2 -31
  94. package/dist/index.es274.js +397 -43
  95. package/dist/index.es275.js +715 -151
  96. package/dist/index.es276.js +278 -29
  97. package/dist/index.es277.js +61 -2
  98. package/dist/index.es278.js +8 -78
  99. package/dist/index.es279.js +28 -18
  100. package/dist/index.es28.js +3 -3
  101. package/dist/index.es280.js +199 -25
  102. package/dist/index.es281.js +15 -16
  103. package/dist/index.es282.js +3 -8
  104. package/dist/index.es283.js +16 -4
  105. package/dist/index.es284.js +8 -14
  106. package/dist/index.es285.js +4 -15
  107. package/dist/index.es286.js +14 -15
  108. package/dist/index.es287.js +15 -3
  109. package/dist/index.es29.js +6 -6
  110. package/dist/index.es31.js +2 -2
  111. package/dist/index.es32.js +2 -2
  112. package/dist/index.es322.js +3 -3
  113. package/dist/index.es323.js +3 -3
  114. package/dist/index.es325.js +1 -1
  115. package/dist/index.es326.js +5 -5
  116. package/dist/index.es327.js +1 -1
  117. package/dist/index.es336.js +6 -2
  118. package/dist/index.es337.js +34 -2
  119. package/dist/index.es338.js +26 -6
  120. package/dist/index.es339.js +18 -34
  121. package/dist/index.es34.js +5 -5
  122. package/dist/index.es340.js +4 -25
  123. package/dist/index.es341.js +231 -18
  124. package/dist/index.es342.js +100 -5
  125. package/dist/index.es343.js +26 -229
  126. package/dist/index.es344.js +35 -80
  127. package/dist/index.es345.js +2 -28
  128. package/dist/index.es346.js +2 -55
  129. package/dist/index.es347.js +334 -2
  130. package/dist/index.es348.js +31 -106
  131. package/dist/index.es349.js +16 -75
  132. package/dist/index.es35.js +2 -2
  133. package/dist/index.es350.js +29 -35
  134. package/dist/index.es351.js +3 -64
  135. package/dist/index.es352.js +107 -34
  136. package/dist/index.es353.js +71 -60
  137. package/dist/index.es354.js +34 -111
  138. package/dist/index.es355.js +60 -90
  139. package/dist/index.es356.js +32 -41
  140. package/dist/index.es357.js +66 -3
  141. package/dist/index.es358.js +113 -3
  142. package/dist/index.es359.js +94 -3
  143. package/dist/index.es360.js +43 -3
  144. package/dist/index.es361.js +2 -2
  145. package/dist/index.es362.js +2 -2
  146. package/dist/index.es363.js +2 -2
  147. package/dist/index.es364.js +2 -2
  148. package/dist/index.es365.js +2 -2
  149. package/dist/index.es366.js +4 -241
  150. package/dist/index.es367.js +4 -384
  151. package/dist/index.es368.js +4 -169
  152. package/dist/index.es369.js +4 -153
  153. package/dist/index.es370.js +187 -88
  154. package/dist/index.es371.js +384 -4
  155. package/dist/index.es372.js +169 -4
  156. package/dist/index.es373.js +153 -4
  157. package/dist/index.es374.js +142 -4
  158. package/dist/index.es375.js +2 -2
  159. package/dist/index.es376.js +2 -2
  160. package/dist/index.es377.js +2 -334
  161. package/dist/index.es378.js +2 -31
  162. package/dist/index.es379.js +2 -17
  163. package/dist/index.es38.js +51 -46
  164. package/dist/index.es380.js +2 -29
  165. package/dist/index.es381.js +2 -2
  166. package/dist/index.es382.js +1 -1
  167. package/dist/index.es384.js +1 -1
  168. package/dist/index.es385.js +1 -1
  169. package/dist/index.es39.js +2 -2
  170. package/dist/index.es394.js +68 -5
  171. package/dist/index.es395.js +31 -3
  172. package/dist/index.es396.js +16 -24
  173. package/dist/index.es397.js +141 -110
  174. package/dist/index.es398.js +113 -15
  175. package/dist/index.es399.js +5 -6
  176. package/dist/index.es40.js +3 -3
  177. package/dist/index.es400.js +3 -2
  178. package/dist/index.es401.js +23 -7
  179. package/dist/index.es402.js +108 -325
  180. package/dist/index.es403.js +15 -49
  181. package/dist/index.es404.js +518 -3
  182. package/dist/index.es405.js +113 -505
  183. package/dist/index.es406.js +120 -121
  184. package/dist/index.es407.js +5 -125
  185. package/dist/index.es408.js +2 -68
  186. package/dist/index.es409.js +8 -31
  187. package/dist/index.es41.js +1 -1
  188. package/dist/index.es410.js +327 -16
  189. package/dist/index.es411.js +48 -139
  190. package/dist/index.es412.js +4 -114
  191. package/dist/index.es416.js +1 -1
  192. package/dist/index.es418.js +1 -1
  193. package/dist/index.es419.js +4 -4
  194. package/dist/index.es42.js +1 -1
  195. package/dist/index.es437.js +21 -271
  196. package/dist/index.es438.js +10 -79
  197. package/dist/index.es439.js +31 -164
  198. package/dist/index.es44.js +1 -1
  199. package/dist/index.es440.js +29 -24
  200. package/dist/index.es441.js +11 -10
  201. package/dist/index.es442.js +274 -32
  202. package/dist/index.es443.js +79 -29
  203. package/dist/index.es444.js +165 -11
  204. package/dist/index.es448.js +2 -2
  205. package/dist/index.es45.js +1 -1
  206. package/dist/index.es454.js +1 -1
  207. package/dist/index.es455.js +1 -1
  208. package/dist/index.es461.js +1 -1
  209. package/dist/index.es476.js +1 -1
  210. package/dist/index.es477.js +1 -1
  211. package/dist/index.es50.js +2 -2
  212. package/dist/index.es51.js +1 -1
  213. package/dist/index.es52.js +4 -4
  214. package/dist/index.es55.js +1 -1
  215. package/dist/index.es56.js +1 -1
  216. package/dist/index.es57.js +2 -2
  217. package/dist/index.es59.js +2 -2
  218. package/dist/index.es62.js +1 -1
  219. package/dist/index.es63.js +1 -1
  220. package/dist/index.es65.js +2 -2
  221. package/dist/index.es66.js +2 -2
  222. package/dist/index.es754.js +13 -21
  223. package/dist/index.es755.js +18 -79
  224. package/dist/index.es756.js +82 -13
  225. package/dist/index.es757.js +14 -2
  226. package/dist/index.es758.js +60 -2
  227. package/dist/index.es759.js +2 -14
  228. package/dist/index.es760.js +2 -60
  229. package/dist/index.es768.js +2 -5
  230. package/dist/index.es769.js +2 -17
  231. package/dist/index.es770.js +5 -2
  232. package/dist/index.es771.js +17 -2
  233. package/dist/index.es772.js +1 -1
  234. package/dist/index.es773.js +2 -2
  235. package/dist/index.es78.js +1 -1
  236. package/dist/index.es781.js +1 -1
  237. package/dist/index.es784.js +1 -1
  238. package/dist/index.es787.js +56 -26
  239. package/dist/index.es788.js +10 -3
  240. package/dist/index.es789.js +14 -57
  241. package/dist/index.es79.js +1 -1
  242. package/dist/index.es790.js +3 -6
  243. package/dist/index.es791.js +28 -15
  244. package/dist/index.es792.js +3 -7
  245. package/dist/index.es808.js +1 -1
  246. package/dist/index.es811.js +5 -5
  247. package/dist/index.es812.js +2 -2
  248. package/dist/index.es813.js +1 -1
  249. package/dist/index.es815.js +2 -2
  250. package/dist/index.es827.js +64 -15
  251. package/dist/index.es828.js +11 -7
  252. package/dist/index.es829.js +38 -61
  253. package/dist/index.es830.js +54 -7
  254. package/dist/index.es831.js +16 -40
  255. package/dist/index.es832.js +17 -57
  256. package/dist/index.es833.js +7 -20
  257. package/dist/index.es834.js +1 -1
  258. package/dist/index.es86.js +55 -33
  259. package/dist/index.es87.js +53 -44
  260. package/dist/index.es88.js +89 -29
  261. package/dist/index.es89.js +37 -30
  262. package/dist/index.es90.js +24 -9
  263. package/dist/index.es91.js +30 -55
  264. package/dist/index.es92.js +31 -53
  265. package/dist/index.es93.js +46 -90
  266. package/dist/index.es94.js +29 -36
  267. package/dist/index.es95.js +29 -23
  268. package/dist/index.es96.js +9 -30
  269. package/dist/index.es97.js +12 -259
  270. package/dist/index.es98.js +1062 -12
  271. package/dist/index.es99.js +2 -2
  272. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { j as f } from "./index.es82.js";
2
- import { useControllableState as m } from "./index.es89.js";
2
+ import { useControllableState as m } from "./index.es95.js";
3
3
  import { forwardRef as d } from "react";
4
4
  import { cn as p } from "./index.es72.js";
5
5
  const c = d(
@@ -1,277 +1,27 @@
1
- import u from "./index.es754.js";
2
- import J from "./index.es755.js";
3
- import { safeWindow as K, isElement as l, queryIdRefs as w, hasAnyConcreteRoles as b, isHTMLInputElement as A, isHTMLSelectElement as U, isHTMLTableCaptionElement as G, isHTMLTextAreaElement as Y, isHTMLSlotElement as Z, isHTMLFieldSetElement as F, isHTMLLegendElement as _, isHTMLTableElement as ee, isSVGSVGElement as te, isSVGTitleElement as re, isHTMLOptGroupElement as ie } from "./index.es438.js";
4
- import { getLocalName as R } from "./index.es439.js";
5
- function ne(t) {
6
- return t.trim().replace(/\s\s+/g, " ");
7
- }
8
- function ae(t, r) {
9
- if (!l(t))
10
- return !1;
11
- if (t.hasAttribute("hidden") || t.getAttribute("aria-hidden") === "true")
12
- return !0;
13
- var i = r(t);
14
- return i.getPropertyValue("display") === "none" || i.getPropertyValue("visibility") === "hidden";
15
- }
16
- function le(t) {
17
- return b(t, ["button", "combobox", "listbox", "textbox"]) || j(t, "range");
1
+ var s = Number.isNaN || function(r) {
2
+ return typeof r == "number" && r !== r;
3
+ };
4
+ function o(e, r) {
5
+ return !!(e === r || s(e) && s(r));
18
6
  }
19
- function j(t, r) {
20
- if (!l(t))
7
+ function g(e, r) {
8
+ if (e.length !== r.length)
21
9
  return !1;
22
- switch (r) {
23
- case "range":
24
- return b(t, ["meter", "progressbar", "scrollbar", "slider", "spinbutton"]);
25
- default:
26
- throw new TypeError("No knowledge about abstract role '".concat(r, "'. This is likely a bug :("));
27
- }
28
- }
29
- function $(t, r) {
30
- var i = u(t.querySelectorAll(r));
31
- return w(t, "aria-owns").forEach(function(o) {
32
- i.push.apply(i, u(o.querySelectorAll(r)));
33
- }), i;
34
- }
35
- function ue(t) {
36
- return U(t) ? t.selectedOptions || $(t, "[selected]") : $(t, '[aria-selected="true"]');
37
- }
38
- function se(t) {
39
- return b(t, ["none", "presentation"]);
40
- }
41
- function oe(t) {
42
- return G(t);
43
- }
44
- function fe(t) {
45
- return b(t, ["button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem"]);
46
- }
47
- function de(t) {
48
- return !1;
49
- }
50
- function be(t) {
51
- return A(t) || Y(t) ? t.value : t.textContent || "";
52
- }
53
- function D(t) {
54
- var r = t.getPropertyValue("content");
55
- return /^["'].*["']$/.test(r) ? r.slice(1, -1) : "";
56
- }
57
- function B(t) {
58
- var r = R(t);
59
- return r === "button" || r === "input" && t.getAttribute("type") !== "hidden" || r === "meter" || r === "output" || r === "progress" || r === "select" || r === "textarea";
60
- }
61
- function Q(t) {
62
- if (B(t))
63
- return t;
64
- var r = null;
65
- return t.childNodes.forEach(function(i) {
66
- if (r === null && l(i)) {
67
- var o = Q(i);
68
- o !== null && (r = o);
69
- }
70
- }), r;
71
- }
72
- function me(t) {
73
- if (t.control !== void 0)
74
- return t.control;
75
- var r = t.getAttribute("for");
76
- return r !== null ? t.ownerDocument.getElementById(r) : Q(t);
77
- }
78
- function pe(t) {
79
- var r = t.labels;
80
- if (r === null)
81
- return r;
82
- if (r !== void 0)
83
- return u(r);
84
- if (!B(t))
85
- return null;
86
- var i = t.ownerDocument;
87
- return u(i.querySelectorAll("label")).filter(function(o) {
88
- return me(o) === t;
89
- });
90
- }
91
- function ve(t) {
92
- var r = t.assignedNodes();
93
- return r.length === 0 ? u(t.childNodes) : r;
94
- }
95
- function he(t) {
96
- var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = new J(), o = K(t), C = r.compute, L = C === void 0 ? "name" : C, x = r.computedStyleSupportsPseudoElements, H = x === void 0 ? r.getComputedStyle !== void 0 : x, M = r.getComputedStyle, S = M === void 0 ? o.getComputedStyle.bind(o) : M, V = r.hidden, W = V === void 0 ? !1 : V;
97
- function T(e, a) {
98
- var n = "";
99
- if (l(e) && H) {
100
- var p = S(e, "::before"), v = D(p);
101
- n = "".concat(v, " ").concat(n);
102
- }
103
- var f = Z(e) ? ve(e) : u(e.childNodes).concat(w(e, "aria-owns"));
104
- if (f.forEach(function(s) {
105
- var E = m(s, {
106
- isEmbeddedInLabel: a.isEmbeddedInLabel,
107
- isReferenced: !1,
108
- recursion: !0
109
- }), d = l(s) ? S(s).getPropertyValue("display") : "inline", h = d !== "inline" ? " " : "";
110
- n += "".concat(h).concat(E).concat(h);
111
- }), l(e) && H) {
112
- var c = S(e, "::after"), g = D(c);
113
- n = "".concat(n, " ").concat(g);
114
- }
115
- return n.trim();
116
- }
117
- function y(e, a) {
118
- var n = e.getAttributeNode(a);
119
- return n !== null && !i.has(n) && n.value.trim() !== "" ? (i.add(n), n.value) : null;
120
- }
121
- function X(e) {
122
- return l(e) ? y(e, "title") : null;
123
- }
124
- function z(e) {
125
- if (!l(e))
126
- return null;
127
- if (F(e)) {
128
- i.add(e);
129
- for (var a = u(e.childNodes), n = 0; n < a.length; n += 1) {
130
- var p = a[n];
131
- if (_(p))
132
- return m(p, {
133
- isEmbeddedInLabel: !1,
134
- isReferenced: !1,
135
- recursion: !1
136
- });
137
- }
138
- } else if (ee(e)) {
139
- i.add(e);
140
- for (var v = u(e.childNodes), f = 0; f < v.length; f += 1) {
141
- var c = v[f];
142
- if (G(c))
143
- return m(c, {
144
- isEmbeddedInLabel: !1,
145
- isReferenced: !1,
146
- recursion: !1
147
- });
148
- }
149
- } else if (te(e)) {
150
- i.add(e);
151
- for (var g = u(e.childNodes), s = 0; s < g.length; s += 1) {
152
- var E = g[s];
153
- if (re(E))
154
- return E.textContent;
155
- }
156
- return null;
157
- } else if (R(e) === "img" || R(e) === "area") {
158
- var d = y(e, "alt");
159
- if (d !== null)
160
- return d;
161
- } else if (ie(e)) {
162
- var h = y(e, "label");
163
- if (h !== null)
164
- return h;
165
- }
166
- if (A(e) && (e.type === "button" || e.type === "submit" || e.type === "reset")) {
167
- var k = y(e, "value");
168
- if (k !== null)
169
- return k;
170
- if (e.type === "submit")
171
- return "Submit";
172
- if (e.type === "reset")
173
- return "Reset";
174
- }
175
- var I = pe(e);
176
- if (I !== null && I.length !== 0)
177
- return i.add(e), u(I).map(function(N) {
178
- return m(N, {
179
- isEmbeddedInLabel: !0,
180
- isReferenced: !1,
181
- recursion: !0
182
- });
183
- }).filter(function(N) {
184
- return N.length > 0;
185
- }).join(" ");
186
- if (A(e) && e.type === "image") {
187
- var P = y(e, "alt");
188
- if (P !== null)
189
- return P;
190
- var q = y(e, "title");
191
- return q !== null ? q : "Submit Query";
192
- }
193
- if (b(e, ["button"])) {
194
- var O = T(e, {
195
- isEmbeddedInLabel: !1,
196
- isReferenced: !1
197
- });
198
- if (O !== "")
199
- return O;
200
- }
201
- return null;
202
- }
203
- function m(e, a) {
204
- if (i.has(e))
205
- return "";
206
- if (!W && ae(e, S) && !a.isReferenced)
207
- return i.add(e), "";
208
- var n = l(e) ? e.getAttributeNode("aria-labelledby") : null, p = n !== null && !i.has(n) ? w(e, "aria-labelledby") : [];
209
- if (L === "name" && !a.isReferenced && p.length > 0)
210
- return i.add(n), p.map(function(d) {
211
- return m(d, {
212
- isEmbeddedInLabel: a.isEmbeddedInLabel,
213
- isReferenced: !0,
214
- // this isn't recursion as specified, otherwise we would skip
215
- // `aria-label` in
216
- // <input id="myself" aria-label="foo" aria-labelledby="myself"
217
- recursion: !1
218
- });
219
- }).join(" ");
220
- var v = a.recursion && le(e) && L === "name";
221
- if (!v) {
222
- var f = (l(e) && e.getAttribute("aria-label") || "").trim();
223
- if (f !== "" && L === "name")
224
- return i.add(e), f;
225
- if (!se(e)) {
226
- var c = z(e);
227
- if (c !== null)
228
- return i.add(e), c;
229
- }
230
- }
231
- if (b(e, ["menu"]))
232
- return i.add(e), "";
233
- if (v || a.isEmbeddedInLabel || a.isReferenced) {
234
- if (b(e, ["combobox", "listbox"])) {
235
- i.add(e);
236
- var g = ue(e);
237
- return g.length === 0 ? A(e) ? e.value : "" : u(g).map(function(d) {
238
- return m(d, {
239
- isEmbeddedInLabel: a.isEmbeddedInLabel,
240
- isReferenced: !1,
241
- recursion: !0
242
- });
243
- }).join(" ");
244
- }
245
- if (j(e, "range"))
246
- return i.add(e), e.hasAttribute("aria-valuetext") ? e.getAttribute("aria-valuetext") : e.hasAttribute("aria-valuenow") ? e.getAttribute("aria-valuenow") : e.getAttribute("value") || "";
247
- if (b(e, ["textbox"]))
248
- return i.add(e), be(e);
249
- }
250
- if (fe(e) || l(e) && a.isReferenced || oe(e) || de()) {
251
- var s = T(e, {
252
- isEmbeddedInLabel: a.isEmbeddedInLabel,
253
- isReferenced: !1
254
- });
255
- if (s !== "")
256
- return i.add(e), s;
257
- }
258
- if (e.nodeType === e.TEXT_NODE)
259
- return i.add(e), e.textContent || "";
260
- if (a.recursion)
261
- return i.add(e), T(e, {
262
- isEmbeddedInLabel: a.isEmbeddedInLabel,
263
- isReferenced: !1
264
- });
265
- var E = X(e);
266
- return E !== null ? (i.add(e), E) : (i.add(e), "");
10
+ for (var t = 0; t < e.length; t++)
11
+ if (!o(e[t], r[t]))
12
+ return !1;
13
+ return !0;
14
+ }
15
+ function h(e, r) {
16
+ r === void 0 && (r = g);
17
+ var t, f = [], u, l = !1;
18
+ function i() {
19
+ for (var n = [], a = 0; a < arguments.length; a++)
20
+ n[a] = arguments[a];
21
+ return l && t === this && r(n, f) || (u = e.apply(this, n), l = !0, t = this, f = n), u;
267
22
  }
268
- return ne(m(t, {
269
- isEmbeddedInLabel: !1,
270
- // by spec computeAccessibleDescription starts with the referenced elements as roots
271
- isReferenced: L === "description",
272
- recursion: !1
273
- }));
23
+ return i;
274
24
  }
275
25
  export {
276
- he as computeTextAlternative
26
+ h as default
277
27
  };
@@ -1,82 +1,13 @@
1
- import f, { getLocalName as n } from "./index.es439.js";
2
- function e(t) {
3
- return t !== null && t.nodeType === t.ELEMENT_NODE;
4
- }
5
- function s(t) {
6
- return e(t) && n(t) === "caption";
7
- }
8
- function a(t) {
9
- return e(t) && n(t) === "input";
10
- }
11
- function m(t) {
12
- return e(t) && n(t) === "optgroup";
13
- }
14
- function E(t) {
15
- return e(t) && n(t) === "select";
16
- }
17
- function T(t) {
18
- return e(t) && n(t) === "table";
19
- }
20
- function p(t) {
21
- return e(t) && n(t) === "textarea";
22
- }
23
- function L(t) {
24
- var r = t.ownerDocument === null ? t : t.ownerDocument, u = r.defaultView;
25
- if (u === null)
26
- throw new TypeError("no window available");
27
- return u;
28
- }
29
- function w(t) {
30
- return e(t) && n(t) === "fieldset";
31
- }
32
- function g(t) {
33
- return e(t) && n(t) === "legend";
34
- }
35
- function M(t) {
36
- return e(t) && n(t) === "slot";
37
- }
38
- function o(t) {
39
- return e(t) && t.ownerSVGElement !== void 0;
40
- }
41
- function H(t) {
42
- return e(t) && n(t) === "svg";
43
- }
44
- function S(t) {
45
- return o(t) && n(t) === "title";
46
- }
47
- function V(t, r) {
48
- if (e(t) && t.hasAttribute(r)) {
49
- var u = t.getAttribute(r).split(" "), l = t.getRootNode ? t.getRootNode() : t.ownerDocument;
50
- return u.map(function(i) {
51
- return l.getElementById(i);
52
- }).filter(
53
- function(i) {
54
- return i !== null;
55
- }
56
- // TODO: why does this not narrow?
57
- );
58
- }
59
- return [];
60
- }
61
- function G(t, r) {
62
- return e(t) ? r.indexOf(f(t)) !== -1 : !1;
1
+ import { j as u } from "./index.es82.js";
2
+ import { useTreeApi as d, useDndContext as c } from "./index.es337.js";
3
+ function f() {
4
+ var o, n;
5
+ const r = d(), t = c().cursor;
6
+ if (!t || t.type !== "line")
7
+ return null;
8
+ const e = r.indent, s = r.rowHeight * t.index + ((n = (o = r.props.padding) !== null && o !== void 0 ? o : r.props.paddingTop) !== null && n !== void 0 ? n : 0), i = e * t.level, p = r.renderCursor;
9
+ return u.jsx(p, { top: s, left: i, indent: e });
63
10
  }
64
11
  export {
65
- n as getLocalName,
66
- G as hasAnyConcreteRoles,
67
- e as isElement,
68
- w as isHTMLFieldSetElement,
69
- a as isHTMLInputElement,
70
- g as isHTMLLegendElement,
71
- m as isHTMLOptGroupElement,
72
- E as isHTMLSelectElement,
73
- M as isHTMLSlotElement,
74
- s as isHTMLTableCaptionElement,
75
- T as isHTMLTableElement,
76
- p as isHTMLTextAreaElement,
77
- o as isSVGElement,
78
- H as isSVGSVGElement,
79
- S as isSVGTitleElement,
80
- V as queryIdRefs,
81
- L as safeWindow
12
+ f as Cursor
82
13
  };
@@ -1,168 +1,35 @@
1
- function i(a) {
2
- var e;
3
- return (
4
- // eslint-disable-next-line no-restricted-properties -- actual guard for environments without localName
5
- (e = a.localName) !== null && e !== void 0 ? e : (
6
- // eslint-disable-next-line no-restricted-properties -- required for the fallback
7
- a.tagName.toLowerCase()
8
- )
9
- );
10
- }
11
- var n = {
12
- article: "article",
13
- aside: "complementary",
14
- button: "button",
15
- datalist: "listbox",
16
- dd: "definition",
17
- details: "group",
18
- dialog: "dialog",
19
- dt: "term",
20
- fieldset: "group",
21
- figure: "figure",
22
- // WARNING: Only with an accessible name
23
- form: "form",
24
- footer: "contentinfo",
25
- h1: "heading",
26
- h2: "heading",
27
- h3: "heading",
28
- h4: "heading",
29
- h5: "heading",
30
- h6: "heading",
31
- header: "banner",
32
- hr: "separator",
33
- html: "document",
34
- legend: "legend",
35
- li: "listitem",
36
- math: "math",
37
- main: "main",
38
- menu: "list",
39
- nav: "navigation",
40
- ol: "list",
41
- optgroup: "group",
42
- // WARNING: Only in certain context
43
- option: "option",
44
- output: "status",
45
- progress: "progressbar",
46
- // WARNING: Only with an accessible name
47
- section: "region",
48
- summary: "button",
49
- table: "table",
50
- tbody: "rowgroup",
51
- textarea: "textbox",
52
- tfoot: "rowgroup",
53
- // WARNING: Only in certain context
54
- td: "cell",
55
- th: "columnheader",
56
- thead: "rowgroup",
57
- tr: "row",
58
- ul: "list"
59
- }, o = {
60
- caption: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
61
- code: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
62
- deletion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
63
- emphasis: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
64
- generic: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby", "aria-roledescription"]),
65
- insertion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
66
- paragraph: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
67
- presentation: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
68
- strong: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
69
- subscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
70
- superscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"])
71
- };
72
- function s(a, e) {
73
- return [
74
- "aria-atomic",
75
- "aria-busy",
76
- "aria-controls",
77
- "aria-current",
78
- "aria-describedby",
79
- "aria-details",
80
- // "disabled",
81
- "aria-dropeffect",
82
- // "errormessage",
83
- "aria-flowto",
84
- "aria-grabbed",
85
- // "haspopup",
86
- "aria-hidden",
87
- // "invalid",
88
- "aria-keyshortcuts",
89
- "aria-label",
90
- "aria-labelledby",
91
- "aria-live",
92
- "aria-owns",
93
- "aria-relevant",
94
- "aria-roledescription"
95
- ].some(function(r) {
96
- var t;
97
- return a.hasAttribute(r) && !((t = o[e]) !== null && t !== void 0 && t.has(r));
98
- });
99
- }
100
- function l(a, e) {
101
- return s(a, e);
102
- }
103
- function c(a) {
104
- var e = b(a);
105
- if (e === null || e === "presentation") {
106
- var r = u(a);
107
- if (e !== "presentation" || l(a, r || ""))
108
- return r;
109
- }
110
- return e;
111
- }
112
- function u(a) {
113
- var e = n[i(a)];
114
- if (e !== void 0)
115
- return e;
116
- switch (i(a)) {
117
- case "a":
118
- case "area":
119
- case "link":
120
- if (a.hasAttribute("href"))
121
- return "link";
122
- break;
123
- case "img":
124
- return a.getAttribute("alt") === "" && !l(a, "img") ? "presentation" : "img";
125
- case "input": {
126
- var r = a, t = r.type;
127
- switch (t) {
128
- case "button":
129
- case "image":
130
- case "reset":
131
- case "submit":
132
- return "button";
133
- case "checkbox":
134
- case "radio":
135
- return t;
136
- case "range":
137
- return "slider";
138
- case "email":
139
- case "tel":
140
- case "text":
141
- case "url":
142
- return a.hasAttribute("list") ? "combobox" : "textbox";
143
- case "search":
144
- return a.hasAttribute("list") ? "combobox" : "searchbox";
145
- case "number":
146
- return "spinbutton";
147
- default:
148
- return null;
149
- }
1
+ import { useEffect as n } from "react";
2
+ import { useTreeApi as m } from "./index.es337.js";
3
+ import { actions as a } from "./index.es266.js";
4
+ import { safeRun as f } from "./index.es258.js";
5
+ import { ROOT_ID as g } from "./index.es256.js";
6
+ import { useDrag as c } from "./index.es754.js";
7
+ import { getEmptyImage as u } from "./index.es472.js";
8
+ function O(e) {
9
+ const r = m(), o = r.selectedIds, [l, s, d] = c(() => ({
10
+ canDrag: () => e.isDraggable,
11
+ type: "NODE",
12
+ item: () => {
13
+ const t = r.isSelected(e.id) ? Array.from(o) : [e.id];
14
+ return r.dispatch(a.dragStart(e.id, t)), { id: e.id };
15
+ },
16
+ end: () => {
17
+ r.hideCursor();
18
+ let { parentId: t, index: i, dragIds: p } = r.state.dnd;
19
+ r.canDrop() && (f(r.props.onMove, {
20
+ dragIds: p,
21
+ parentId: t === g ? null : t,
22
+ index: i === null ? 0 : i,
23
+ // When it's null it was dropped over a folder
24
+ dragNodes: r.dragNodes,
25
+ parentNode: r.get(t)
26
+ }), r.open(t)), r.dispatch(a.dragEnd());
150
27
  }
151
- case "select":
152
- return a.hasAttribute("multiple") || a.size > 1 ? "listbox" : "combobox";
153
- }
154
- return null;
155
- }
156
- function b(a) {
157
- var e = a.getAttribute("role");
158
- if (e !== null) {
159
- var r = e.trim().split(" ")[0];
160
- if (r.length > 0)
161
- return r;
162
- }
163
- return null;
28
+ }), [o, e]);
29
+ return n(() => {
30
+ d(u());
31
+ }, [d]), s;
164
32
  }
165
33
  export {
166
- c as default,
167
- i as getLocalName
34
+ O as useDragHook
168
35
  };
@@ -1,5 +1,5 @@
1
1
  import { j as e } from "./index.es82.js";
2
- import m from "./index.es106.js";
2
+ import m from "./index.es113.js";
3
3
  import { cn as r } from "./index.es72.js";
4
4
  const t = ({ center: a, containerClassName: s, ...i }) => /* @__PURE__ */ e.jsx(
5
5
  "div",
@@ -1,27 +1,32 @@
1
- var s = Number.isNaN || function(r) {
2
- return typeof r == "number" && r !== r;
3
- };
4
- function o(e, r) {
5
- return !!(e === r || s(e) && s(r));
6
- }
7
- function g(e, r) {
8
- if (e.length !== r.length)
9
- return !1;
10
- for (var t = 0; t < e.length; t++)
11
- if (!o(e[t], r[t]))
12
- return !1;
13
- return !0;
14
- }
15
- function h(e, r) {
16
- r === void 0 && (r = g);
17
- var t, f = [], u, l = !1;
18
- function i() {
19
- for (var n = [], a = 0; a < arguments.length; a++)
20
- n[a] = arguments[a];
21
- return l && t === this && r(n, f) || (u = e.apply(this, n), l = !0, t = this, f = n), u;
22
- }
23
- return i;
1
+ import { useTreeApi as f } from "./index.es337.js";
2
+ import { computeDrop as u } from "./index.es418.js";
3
+ import { actions as m } from "./index.es266.js";
4
+ import { useDrop as d } from "./index.es419.js";
5
+ function l(t, e) {
6
+ const r = f(), [a, c] = d(() => ({
7
+ accept: "NODE",
8
+ canDrop: () => r.canDrop(),
9
+ hover: (s, o) => {
10
+ const p = o.getClientOffset();
11
+ if (!t.current || !p)
12
+ return;
13
+ const { cursor: i, drop: n } = u({
14
+ element: t.current,
15
+ offset: p,
16
+ indent: r.indent,
17
+ node: e,
18
+ prevNode: e.prev,
19
+ nextNode: e.next
20
+ });
21
+ n && r.dispatch(m.hovering(n.parentId, n.index)), o.canDrop() ? i && r.showCursor(i) : r.hideCursor();
22
+ },
23
+ drop: (s, o) => {
24
+ if (!o.canDrop())
25
+ return null;
26
+ }
27
+ }), [e, t.current, r.props]);
28
+ return c;
24
29
  }
25
30
  export {
26
- h as default
31
+ l as useDropHook
27
32
  };