@boxcustodia/library 0.2.3 → 0.2.4

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 (248) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.es101.js +2 -2
  3. package/dist/index.es104.js +9 -4
  4. package/dist/index.es105.js +4 -14
  5. package/dist/index.es106.js +14 -5
  6. package/dist/index.es107.js +4 -56
  7. package/dist/index.es108.js +55 -222
  8. package/dist/index.es109.js +224 -11
  9. package/dist/index.es110.js +4 -4
  10. package/dist/index.es111.js +11 -41
  11. package/dist/index.es112.js +41 -11
  12. package/dist/index.es113.js +21 -33
  13. package/dist/index.es114.js +12 -21
  14. package/dist/index.es115.js +4 -5
  15. package/dist/index.es116.js +4 -3
  16. package/dist/index.es117.js +4 -5
  17. package/dist/index.es118.js +14 -14
  18. package/dist/index.es119.js +813 -55
  19. package/dist/index.es120.js +9 -822
  20. package/dist/index.es121.js +5 -3
  21. package/dist/index.es122.js +4 -11
  22. package/dist/index.es123.js +64 -4
  23. package/dist/index.es124.js +33 -13
  24. package/dist/index.es125.js +13 -33
  25. package/dist/index.es126.js +216 -13
  26. package/dist/index.es127.js +13 -8
  27. package/dist/index.es128.js +7 -215
  28. package/dist/index.es130.js +1 -1
  29. package/dist/index.es131.js +1 -1
  30. package/dist/index.es132.js +12 -9
  31. package/dist/index.es133.js +196 -204
  32. package/dist/index.es134.js +41 -10
  33. package/dist/index.es135.js +9 -12
  34. package/dist/index.es136.js +204 -196
  35. package/dist/index.es137.js +10 -41
  36. package/dist/index.es139.js +1 -1
  37. package/dist/index.es140.js +1 -1
  38. package/dist/index.es141.js +12 -6
  39. package/dist/index.es142.js +5 -63
  40. package/dist/index.es143.js +64 -10
  41. package/dist/index.es144.js +10 -124
  42. package/dist/index.es145.js +116 -126
  43. package/dist/index.es146.js +134 -13
  44. package/dist/index.es147.js +14 -33
  45. package/dist/index.es148.js +32 -14
  46. package/dist/index.es149.js +14 -8
  47. package/dist/index.es15.js +1 -1
  48. package/dist/index.es150.js +9 -50
  49. package/dist/index.es151.js +50 -6
  50. package/dist/index.es152.js +6 -2
  51. package/dist/index.es153.js +2 -44
  52. package/dist/index.es154.js +40 -646
  53. package/dist/index.es155.js +648 -11
  54. package/dist/index.es156.js +5 -5
  55. package/dist/index.es157.js +4 -4
  56. package/dist/index.es158.js +45 -3
  57. package/dist/index.es159.js +7 -45
  58. package/dist/index.es160.js +4 -8
  59. package/dist/index.es162.js +1 -1
  60. package/dist/index.es163.js +6 -118
  61. package/dist/index.es164.js +3 -35
  62. package/dist/index.es165.js +2054 -2
  63. package/dist/index.es166.js +118 -2
  64. package/dist/index.es167.js +33 -6
  65. package/dist/index.es168.js +4 -3
  66. package/dist/index.es169.js +2 -2054
  67. package/dist/index.es176.js +1 -1
  68. package/dist/index.es177.js +1 -1
  69. package/dist/index.es178.js +1 -1
  70. package/dist/index.es181.js +2 -2
  71. package/dist/index.es183.js +1 -1
  72. package/dist/index.es203.js +1 -1
  73. package/dist/index.es22.js +2 -2
  74. package/dist/index.es236.js +176 -19
  75. package/dist/index.es237.js +15 -3
  76. package/dist/index.es238.js +3 -32
  77. package/dist/index.es239.js +32 -12
  78. package/dist/index.es240.js +17 -177
  79. package/dist/index.es242.js +5 -5
  80. package/dist/index.es243.js +16 -18
  81. package/dist/index.es246.js +1 -1
  82. package/dist/index.es247.js +1 -1
  83. package/dist/index.es248.js +3 -3
  84. package/dist/index.es27.js +1 -1
  85. package/dist/index.es275.js +12 -12
  86. package/dist/index.es276.js +2 -2
  87. package/dist/index.es277.js +2 -2
  88. package/dist/index.es278.js +8 -8
  89. package/dist/index.es279.js +2 -2
  90. package/dist/index.es28.js +1 -1
  91. package/dist/index.es283.js +16 -15
  92. package/dist/index.es284.js +8 -3
  93. package/dist/index.es285.js +15 -16
  94. package/dist/index.es286.js +3 -8
  95. package/dist/index.es29.js +3 -3
  96. package/dist/index.es30.js +23 -23
  97. package/dist/index.es32.js +2 -2
  98. package/dist/index.es325.js +1 -1
  99. package/dist/index.es33.js +2 -2
  100. package/dist/index.es335.js +3 -3
  101. package/dist/index.es338.js +1 -1
  102. package/dist/index.es339.js +1 -1
  103. package/dist/index.es34.js +46 -35
  104. package/dist/index.es342.js +2 -2
  105. package/dist/index.es343.js +2 -2
  106. package/dist/index.es35.js +2 -2
  107. package/dist/index.es350.js +2 -29
  108. package/dist/index.es351.js +106 -5
  109. package/dist/index.es352.js +76 -2
  110. package/dist/index.es353.js +36 -107
  111. package/dist/index.es354.js +60 -73
  112. package/dist/index.es355.js +28 -30
  113. package/dist/index.es356.js +63 -61
  114. package/dist/index.es357.js +109 -30
  115. package/dist/index.es358.js +87 -59
  116. package/dist/index.es359.js +40 -110
  117. package/dist/index.es360.js +3 -94
  118. package/dist/index.es361.js +3 -43
  119. package/dist/index.es362.js +2 -2
  120. package/dist/index.es363.js +2 -2
  121. package/dist/index.es364.js +2 -2
  122. package/dist/index.es366.js +2 -2
  123. package/dist/index.es367.js +2 -2
  124. package/dist/index.es368.js +2 -2
  125. package/dist/index.es369.js +241 -4
  126. package/dist/index.es370.js +384 -4
  127. package/dist/index.es371.js +132 -204
  128. package/dist/index.es372.js +103 -334
  129. package/dist/index.es373.js +75 -102
  130. package/dist/index.es374.js +4 -153
  131. package/dist/index.es375.js +4 -142
  132. package/dist/index.es376.js +2 -2
  133. package/dist/index.es377.js +2 -2
  134. package/dist/index.es378.js +2 -2
  135. package/dist/index.es379.js +2 -2
  136. package/dist/index.es38.js +1 -1
  137. package/dist/index.es380.js +29 -2
  138. package/dist/index.es381.js +5 -2
  139. package/dist/index.es39.js +1 -1
  140. package/dist/index.es393.js +1 -1
  141. package/dist/index.es394.js +1 -1
  142. package/dist/index.es404.js +68 -2
  143. package/dist/index.es405.js +31 -47
  144. package/dist/index.es406.js +16 -83
  145. package/dist/index.es407.js +140 -13
  146. package/dist/index.es408.js +113 -340
  147. package/dist/index.es409.js +507 -63
  148. package/dist/index.es41.js +1 -1
  149. package/dist/index.es410.js +126 -10
  150. package/dist/index.es411.js +117 -510
  151. package/dist/index.es412.js +64 -116
  152. package/dist/index.es413.js +10 -125
  153. package/dist/index.es414.js +2 -68
  154. package/dist/index.es415.js +47 -31
  155. package/dist/index.es416.js +83 -16
  156. package/dist/index.es417.js +13 -140
  157. package/dist/index.es418.js +340 -113
  158. package/dist/index.es43.js +1 -1
  159. package/dist/index.es439.js +2 -2
  160. package/dist/index.es44.js +4 -4
  161. package/dist/index.es441.js +275 -3
  162. package/dist/index.es442.js +78 -105
  163. package/dist/index.es443.js +166 -2
  164. package/dist/index.es444.js +3 -2
  165. package/dist/index.es445.js +100 -268
  166. package/dist/index.es446.js +2 -80
  167. package/dist/index.es447.js +2 -166
  168. package/dist/index.es45.js +1 -1
  169. package/dist/index.es46.js +5 -5
  170. package/dist/index.es475.js +1 -1
  171. package/dist/index.es476.js +1 -1
  172. package/dist/index.es49.js +2 -2
  173. package/dist/index.es50.js +1 -1
  174. package/dist/index.es51.js +4 -4
  175. package/dist/index.es54.js +1 -1
  176. package/dist/index.es57.js +3 -3
  177. package/dist/index.es59.js +2 -2
  178. package/dist/index.es61.js +1 -1
  179. package/dist/index.es62.js +1 -1
  180. package/dist/index.es63.js +2 -2
  181. package/dist/index.es64.js +1 -1
  182. package/dist/index.es65.js +3 -3
  183. package/dist/index.es66.js +2 -2
  184. package/dist/index.es67.js +2 -2
  185. package/dist/index.es753.js +5 -5
  186. package/dist/index.es754.js +22 -14
  187. package/dist/index.es755.js +82 -59
  188. package/dist/index.es756.js +14 -22
  189. package/dist/index.es757.js +59 -82
  190. package/dist/index.es769.js +2 -8
  191. package/dist/index.es770.js +2 -56
  192. package/dist/index.es771.js +7 -18
  193. package/dist/index.es772.js +56 -2
  194. package/dist/index.es773.js +19 -2
  195. package/dist/index.es780.js +28 -28
  196. package/dist/index.es782.js +5 -5
  197. package/dist/index.es783.js +13 -17
  198. package/dist/index.es785.js +5 -11
  199. package/dist/index.es786.js +28 -28
  200. package/dist/index.es787.js +5 -5
  201. package/dist/index.es788.js +17 -13
  202. package/dist/index.es789.js +11 -5
  203. package/dist/index.es79.js +1 -1
  204. package/dist/index.es790.js +1 -1
  205. package/dist/index.es796.js +1 -1
  206. package/dist/index.es797.js +1 -1
  207. package/dist/index.es798.js +1 -1
  208. package/dist/index.es799.js +1 -1
  209. package/dist/index.es80.js +1 -1
  210. package/dist/index.es801.js +1 -1
  211. package/dist/index.es805.js +8 -10
  212. package/dist/index.es806.js +9 -7
  213. package/dist/index.es807.js +1 -1
  214. package/dist/index.es808.js +10 -8
  215. package/dist/index.es809.js +7 -9
  216. package/dist/index.es810.js +5 -5
  217. package/dist/index.es811.js +2 -2
  218. package/dist/index.es812.js +1 -1
  219. package/dist/index.es814.js +2 -2
  220. package/dist/index.es822.js +1 -1
  221. package/dist/index.es824.js +25 -38
  222. package/dist/index.es825.js +38 -25
  223. package/dist/index.es826.js +15 -64
  224. package/dist/index.es827.js +7 -11
  225. package/dist/index.es828.js +61 -38
  226. package/dist/index.es829.js +7 -54
  227. package/dist/index.es830.js +40 -16
  228. package/dist/index.es831.js +57 -17
  229. package/dist/index.es832.js +20 -7
  230. package/dist/index.es833.js +1 -1
  231. package/dist/index.es84.js +305 -33
  232. package/dist/index.es85.js +12 -46
  233. package/dist/index.es86.js +34 -29
  234. package/dist/index.es87.js +42 -26
  235. package/dist/index.es88.js +27 -304
  236. package/dist/index.es89.js +30 -12
  237. package/dist/index.es90.js +55 -9
  238. package/dist/index.es91.js +52 -52
  239. package/dist/index.es92.js +92 -55
  240. package/dist/index.es93.js +34 -87
  241. package/dist/index.es94.js +23 -36
  242. package/dist/index.es95.js +24 -18
  243. package/dist/index.es96.js +257 -28
  244. package/dist/index.es97.js +5 -5
  245. package/dist/index.es98.js +32 -258
  246. package/dist/index.es99.js +5 -5
  247. package/dist/style.css +8 -8
  248. package/package.json +1 -1
@@ -1,277 +1,109 @@
1
- import u from "./index.es756.js";
2
- import J from "./index.es757.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.es446.js";
4
- import { getLocalName as R } from "./index.es447.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");
18
- }
19
- function j(t, r) {
20
- if (!l(t))
21
- 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
1
+ import { __spreadArray as x } from "./index.es287.js";
2
+ import * as n from "react";
3
+ import { RemoveScrollBar as A } from "./index.es449.js";
4
+ import { styleSingleton as I } from "./index.es450.js";
5
+ import { nonPassive as f } from "./index.es756.js";
6
+ import { locationCouldBeScrolled as B, handleScroll as W } from "./index.es757.js";
7
+ var k = function(e) {
8
+ return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
9
+ }, X = function(e) {
10
+ return [e.deltaX, e.deltaY];
11
+ }, M = function(e) {
12
+ return e && "current" in e ? e.current : e;
13
+ }, F = function(e, o) {
14
+ return e[0] === o[0] && e[1] === o[1];
15
+ }, Q = function(e) {
16
+ return `
17
+ .block-interactivity-`.concat(e, ` {pointer-events: none;}
18
+ .allow-interactivity-`).concat(e, ` {pointer-events: all;}
19
+ `);
20
+ }, Z = 0, s = [];
21
+ function G(e) {
22
+ var o = n.useRef([]), E = n.useRef([0, 0]), h = n.useRef(), v = n.useState(Z++)[0], m = n.useState(function() {
23
+ return I();
24
+ })[0], g = n.useRef(e);
25
+ n.useEffect(function() {
26
+ g.current = e;
27
+ }, [e]), n.useEffect(function() {
28
+ if (e.inert) {
29
+ document.body.classList.add("block-interactivity-".concat(v));
30
+ var t = x([e.lockRef.current], (e.shards || []).map(M), !0).filter(Boolean);
31
+ return t.forEach(function(r) {
32
+ return r.classList.add("allow-interactivity-".concat(v));
33
+ }), function() {
34
+ document.body.classList.remove("block-interactivity-".concat(v)), t.forEach(function(r) {
35
+ return r.classList.remove("allow-interactivity-".concat(v));
182
36
  });
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;
37
+ };
200
38
  }
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;
39
+ }, [e.inert, e.lockRef.current, e.shards]);
40
+ var y = n.useCallback(function(t, r) {
41
+ if ("touches" in t && t.touches.length === 2)
42
+ return !g.current.allowPinchZoom;
43
+ var i = k(t), u = E.current, c = "deltaX" in t ? t.deltaX : u[0] - i[0], l = "deltaY" in t ? t.deltaY : u[1] - i[1], a, C = t.target, d = Math.abs(c) > Math.abs(l) ? "h" : "v";
44
+ if ("touches" in t && d === "h" && C.type === "range")
45
+ return !1;
46
+ var b = B(d, C);
47
+ if (!b)
48
+ return !0;
49
+ if (b ? a = d : (a = d === "v" ? "h" : "v", b = B(d, C)), !b)
50
+ return !1;
51
+ if (!h.current && "changedTouches" in t && (c || l) && (h.current = a), !a)
52
+ return !0;
53
+ var Y = h.current || a;
54
+ return W(Y, r, t, Y === "h" ? c : l, !0);
55
+ }, []), S = n.useCallback(function(t) {
56
+ var r = t;
57
+ if (!(!s.length || s[s.length - 1] !== m)) {
58
+ var i = "deltaY" in r ? X(r) : k(r), u = o.current.filter(function(a) {
59
+ return a.name === r.type && a.target === r.target && F(a.delta, i);
60
+ })[0];
61
+ if (u && u.should) {
62
+ r.cancelable && r.preventDefault();
63
+ return;
229
64
  }
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(" ");
65
+ if (!u) {
66
+ var c = (g.current.shards || []).map(M).filter(Boolean).filter(function(a) {
67
+ return a.contains(r.target);
68
+ }), l = c.length > 0 ? y(r, c[0]) : !g.current.noIsolation;
69
+ l && r.cancelable && r.preventDefault();
244
70
  }
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
71
  }
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
72
+ }, []), R = n.useCallback(function(t, r, i, u) {
73
+ var c = { name: t, delta: r, target: i, should: u };
74
+ o.current.push(c), setTimeout(function() {
75
+ o.current = o.current.filter(function(l) {
76
+ return l !== c;
264
77
  });
265
- var E = X(e);
266
- return E !== null ? (i.add(e), E) : (i.add(e), "");
267
- }
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
- }));
78
+ }, 1);
79
+ }, []), L = n.useCallback(function(t) {
80
+ E.current = k(t), h.current = void 0;
81
+ }, []), T = n.useCallback(function(t) {
82
+ R(t.type, X(t), t.target, y(t, e.lockRef.current));
83
+ }, []), w = n.useCallback(function(t) {
84
+ R(t.type, k(t), t.target, y(t, e.lockRef.current));
85
+ }, []);
86
+ n.useEffect(function() {
87
+ return s.push(m), e.setCallbacks({
88
+ onScrollCapture: T,
89
+ onWheelCapture: T,
90
+ onTouchMoveCapture: w
91
+ }), document.addEventListener("wheel", S, f), document.addEventListener("touchmove", S, f), document.addEventListener("touchstart", L, f), function() {
92
+ s = s.filter(function(t) {
93
+ return t !== m;
94
+ }), document.removeEventListener("wheel", S, f), document.removeEventListener("touchmove", S, f), document.removeEventListener("touchstart", L, f);
95
+ };
96
+ }, []);
97
+ var D = e.removeScrollBar, P = e.inert;
98
+ return n.createElement(
99
+ n.Fragment,
100
+ null,
101
+ P ? n.createElement(m, { styles: Q(v) }) : null,
102
+ D ? n.createElement(A, { gapMode: "margin" }) : null
103
+ );
274
104
  }
275
105
  export {
276
- he as computeTextAlternative
106
+ G as RemoveScrollSideCar,
107
+ X as getDeltaXY,
108
+ k as getTouchXY
277
109
  };
@@ -1,82 +1,4 @@
1
- import f, { getLocalName as n } from "./index.es447.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;
63
- }
1
+ var o = {};
64
2
  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
3
+ o as __exports
82
4
  };
@@ -1,168 +1,4 @@
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
- }
150
- }
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;
164
- }
1
+ var e = {};
165
2
  export {
166
- c as default,
167
- i as getLocalName
3
+ e as __exports
168
4
  };
@@ -1,7 +1,7 @@
1
1
  import { j as e } from "./index.es83.js";
2
2
  import x from "react";
3
3
  import { MenuRoot as f, MenuTrigger as j, MenuContent as M, MenuShortcut as u } from "./index.es44.js";
4
- import { renderMenuItem as g } from "./index.es111.js";
4
+ import { renderMenuItem as g } from "./index.es112.js";
5
5
  const R = ({
6
6
  trigger: i,
7
7
  items: m,
@@ -1,11 +1,11 @@
1
1
  import { j as a } from "./index.es83.js";
2
2
  import { createElement as C } from "react";
3
- import { PaginationOption as i } from "./index.es114.js";
3
+ import { PaginationOption as i } from "./index.es113.js";
4
4
  import v, { DOTS as r } from "./index.es70.js";
5
- import N from "./index.es115.js";
6
- import y from "./index.es116.js";
7
- import k from "./index.es109.js";
8
- import I from "./index.es117.js";
5
+ import N from "./index.es114.js";
6
+ import y from "./index.es115.js";
7
+ import k from "./index.es110.js";
8
+ import I from "./index.es116.js";
9
9
  import { cn as n } from "./index.es73.js";
10
10
  const R = ({
11
11
  optionProps: s,
@@ -1,4 +1,4 @@
1
- import { __exports as t } from "./index.es772.js";
1
+ import { __exports as t } from "./index.es769.js";
2
2
  /** @license React v17.0.2
3
3
  * react-is.production.min.js
4
4
  *
@@ -1,4 +1,4 @@
1
- import { __exports as r } from "./index.es773.js";
1
+ import { __exports as r } from "./index.es770.js";
2
2
  /** @license React v17.0.2
3
3
  * react-is.development.js
4
4
  *