@boxcustodia/library 0.0.5 → 0.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.
- package/dist/index.es10.js +1 -1
- package/dist/index.es100.js +4 -14
- package/dist/index.es101.js +14 -5
- package/dist/index.es102.js +4 -56
- package/dist/index.es103.js +55 -257
- package/dist/index.es104.js +29 -12
- package/dist/index.es105.js +12 -1062
- package/dist/index.es106.js +11 -4
- package/dist/index.es107.js +21 -4
- package/dist/index.es108.js +12 -29
- package/dist/index.es109.js +4 -4
- package/dist/index.es110.js +12 -224
- package/dist/index.es111.js +1062 -11
- package/dist/index.es112.js +4 -11
- package/dist/index.es113.js +4 -41
- package/dist/index.es114.js +222 -19
- package/dist/index.es115.js +4 -5
- package/dist/index.es116.js +41 -12
- package/dist/index.es117.js +237 -61
- package/dist/index.es118.js +61 -237
- package/dist/index.es119.js +12 -12
- package/dist/index.es120.js +1 -1
- package/dist/index.es121.js +1 -1
- package/dist/index.es122.js +1 -1
- package/dist/index.es124.js +216 -4
- package/dist/index.es126.js +1 -1
- package/dist/index.es127.js +5 -5
- package/dist/index.es128.js +4 -8
- package/dist/index.es129.js +7 -215
- package/dist/index.es13.js +1 -1
- package/dist/index.es131.js +1 -1
- package/dist/index.es132.js +1 -1
- package/dist/index.es134.js +1 -1
- package/dist/index.es14.js +1 -1
- package/dist/index.es140.js +1 -1
- package/dist/index.es141.js +1 -1
- package/dist/index.es142.js +1 -1
- package/dist/index.es143.js +6 -5
- package/dist/index.es144.js +65 -2
- package/dist/index.es145.js +10 -6
- package/dist/index.es146.js +118 -58
- package/dist/index.es147.js +134 -10
- package/dist/index.es148.js +13 -124
- package/dist/index.es149.js +31 -133
- package/dist/index.es15.js +1 -1
- package/dist/index.es150.js +14 -13
- package/dist/index.es151.js +9 -33
- package/dist/index.es152.js +50 -15
- package/dist/index.es153.js +6 -9
- package/dist/index.es154.js +2 -50
- package/dist/index.es155.js +649 -3
- package/dist/index.es156.js +193 -625
- package/dist/index.es157.js +3 -217
- package/dist/index.es159.js +1 -1
- package/dist/index.es162.js +1 -1
- package/dist/index.es163.js +2 -2
- package/dist/index.es164.js +6 -118
- package/dist/index.es165.js +3 -35
- package/dist/index.es166.js +2054 -2
- package/dist/index.es167.js +118 -2
- package/dist/index.es168.js +32 -20
- package/dist/index.es169.js +2 -9
- package/dist/index.es170.js +2 -38
- package/dist/index.es171.js +14 -11
- package/dist/index.es172.js +9 -6
- package/dist/index.es173.js +40 -3
- package/dist/index.es174.js +17 -2053
- package/dist/index.es186.js +2 -2
- package/dist/index.es207.js +1 -1
- package/dist/index.es241.js +4 -4
- package/dist/index.es243.js +2 -2
- package/dist/index.es246.js +1 -1
- package/dist/index.es247.js +1 -1
- package/dist/index.es249.js +2 -26
- package/dist/index.es250.js +397 -4
- package/dist/index.es251.js +722 -7
- package/dist/index.es252.js +282 -13
- package/dist/index.es253.js +60 -13
- package/dist/index.es254.js +9 -134
- package/dist/index.es255.js +28 -31
- package/dist/index.es256.js +195 -459
- package/dist/index.es257.js +25 -131
- package/dist/index.es258.js +5 -27
- package/dist/index.es259.js +7 -4
- package/dist/index.es260.js +12 -25
- package/dist/index.es261.js +13 -7
- package/dist/index.es262.js +134 -11
- package/dist/index.es263.js +30 -27
- package/dist/index.es264.js +460 -46
- package/dist/index.es265.js +129 -28
- package/dist/index.es266.js +26 -43
- package/dist/index.es267.js +4 -158
- package/dist/index.es268.js +23 -30
- package/dist/index.es269.js +8 -2
- package/dist/index.es270.js +9 -77
- package/dist/index.es271.js +28 -18
- package/dist/index.es272.js +48 -24
- package/dist/index.es273.js +31 -16
- package/dist/index.es274.js +44 -8
- package/dist/index.es275.js +159 -2
- package/dist/index.es276.js +32 -396
- package/dist/index.es277.js +2 -723
- package/dist/index.es278.js +71 -274
- package/dist/index.es279.js +18 -60
- package/dist/index.es280.js +25 -10
- package/dist/index.es281.js +16 -29
- package/dist/index.es282.js +8 -199
- package/dist/index.es29.js +6 -6
- package/dist/index.es31.js +29 -29
- package/dist/index.es32.js +1 -1
- package/dist/index.es326.js +1 -1
- package/dist/index.es34.js +5 -5
- package/dist/index.es341.js +5 -5
- package/dist/index.es345.js +1 -1
- package/dist/index.es346.js +2 -2
- package/dist/index.es347.js +2 -334
- package/dist/index.es348.js +106 -31
- package/dist/index.es349.js +75 -16
- package/dist/index.es35.js +2 -2
- package/dist/index.es350.js +35 -29
- package/dist/index.es351.js +63 -29
- package/dist/index.es352.js +34 -6
- package/dist/index.es353.js +66 -3
- package/dist/index.es354.js +111 -105
- package/dist/index.es355.js +88 -71
- package/dist/index.es356.js +38 -31
- package/dist/index.es357.js +3 -64
- package/dist/index.es358.js +3 -34
- package/dist/index.es359.js +3 -66
- package/dist/index.es360.js +3 -113
- package/dist/index.es361.js +3 -94
- package/dist/index.es362.js +3 -43
- package/dist/index.es363.js +2 -2
- package/dist/index.es364.js +2 -2
- package/dist/index.es365.js +2 -2
- package/dist/index.es366.js +241 -4
- package/dist/index.es367.js +384 -4
- package/dist/index.es368.js +169 -4
- package/dist/index.es369.js +153 -4
- package/dist/index.es370.js +142 -4
- package/dist/index.es371.js +2 -2
- package/dist/index.es372.js +4 -241
- package/dist/index.es373.js +4 -384
- package/dist/index.es374.js +4 -169
- package/dist/index.es375.js +4 -153
- package/dist/index.es376.js +4 -142
- package/dist/index.es377.js +334 -2
- package/dist/index.es378.js +31 -2
- package/dist/index.es379.js +17 -2
- package/dist/index.es38.js +4 -4
- package/dist/index.es380.js +29 -2
- package/dist/index.es381.js +29 -2
- package/dist/index.es382.js +5 -2
- package/dist/index.es384.js +1 -1
- package/dist/index.es385.js +1 -1
- package/dist/index.es39.js +1 -1
- package/dist/index.es40.js +3 -3
- package/dist/index.es41.js +1 -1
- package/dist/index.es418.js +1 -1
- package/dist/index.es419.js +4 -4
- package/dist/index.es425.js +21 -24
- package/dist/index.es426.js +2 -11
- package/dist/index.es427.js +34 -34
- package/dist/index.es428.js +176 -31
- package/dist/index.es429.js +88 -13
- package/dist/index.es430.js +17 -5
- package/dist/index.es431.js +2 -107
- package/dist/index.es432.js +4 -24
- package/dist/index.es433.js +2 -2
- package/dist/index.es434.js +4 -35
- package/dist/index.es435.js +25 -176
- package/dist/index.es436.js +4 -89
- package/dist/index.es437.js +277 -17
- package/dist/index.es438.js +80 -2
- package/dist/index.es439.js +166 -2
- package/dist/index.es44.js +1 -1
- package/dist/index.es440.js +25 -2
- package/dist/index.es441.js +11 -2
- package/dist/index.es442.js +31 -22
- package/dist/index.es443.js +30 -2
- package/dist/index.es444.js +12 -2
- package/dist/index.es445.js +2 -2
- package/dist/index.es446.js +2 -275
- package/dist/index.es447.js +3 -80
- package/dist/index.es448.js +104 -163
- package/dist/index.es45.js +4 -4
- package/dist/index.es454.js +1 -1
- package/dist/index.es455.js +1 -1
- package/dist/index.es46.js +1 -1
- package/dist/index.es47.js +4 -4
- package/dist/index.es476.js +1 -1
- package/dist/index.es477.js +1 -1
- package/dist/index.es48.js +1 -1
- package/dist/index.es50.js +1 -1
- package/dist/index.es52.js +1 -1
- package/dist/index.es56.js +1 -1
- package/dist/index.es57.js +1 -1
- package/dist/index.es59.js +1 -1
- package/dist/index.es62.js +1 -1
- package/dist/index.es63.js +1 -1
- package/dist/index.es64.js +1 -1
- package/dist/index.es65.js +2 -2
- package/dist/index.es66.js +1 -1
- package/dist/index.es67.js +2 -2
- package/dist/index.es69.js +1 -1
- package/dist/index.es7.js +1 -1
- package/dist/index.es754.js +21 -13
- package/dist/index.es755.js +82 -13
- package/dist/index.es756.js +14 -60
- package/dist/index.es757.js +2 -22
- package/dist/index.es758.js +2 -83
- package/dist/index.es759.js +14 -2
- package/dist/index.es760.js +60 -2
- package/dist/index.es770.js +2 -8
- package/dist/index.es771.js +2 -56
- package/dist/index.es772.js +7 -18
- package/dist/index.es773.js +56 -2
- package/dist/index.es774.js +19 -2
- package/dist/index.es78.js +1 -1
- package/dist/index.es781.js +2 -2
- package/dist/index.es783.js +1 -1
- package/dist/index.es784.js +2 -2
- package/dist/index.es787.js +26 -56
- package/dist/index.es788.js +3 -10
- package/dist/index.es789.js +57 -14
- package/dist/index.es79.js +1 -1
- package/dist/index.es790.js +6 -3
- package/dist/index.es791.js +15 -28
- package/dist/index.es792.js +7 -3
- package/dist/index.es797.js +1 -1
- package/dist/index.es798.js +1 -1
- package/dist/index.es799.js +1 -1
- package/dist/index.es800.js +1 -1
- package/dist/index.es802.js +1 -1
- package/dist/index.es807.js +1 -1
- package/dist/index.es808.js +2 -2
- package/dist/index.es809.js +1 -1
- package/dist/index.es811.js +5 -5
- package/dist/index.es812.js +2 -2
- package/dist/index.es813.js +1 -1
- package/dist/index.es815.js +2 -2
- package/dist/index.es823.js +1 -1
- package/dist/index.es827.js +15 -64
- package/dist/index.es828.js +7 -11
- package/dist/index.es829.js +61 -38
- package/dist/index.es830.js +7 -54
- package/dist/index.es831.js +40 -16
- package/dist/index.es832.js +57 -17
- package/dist/index.es833.js +20 -7
- package/dist/index.es834.js +1 -1
- package/dist/index.es84.js +1 -1
- package/dist/index.es88.js +1 -1
- package/dist/index.es90.js +9 -55
- package/dist/index.es91.js +52 -52
- package/dist/index.es92.js +55 -90
- package/dist/index.es93.js +87 -34
- package/dist/index.es94.js +36 -23
- package/dist/index.es95.js +18 -24
- package/dist/index.es96.js +30 -9
- package/dist/index.es97.js +259 -12
- package/dist/index.es98.js +10 -3672
- package/dist/index.es99.js +3673 -3
- package/dist/style.css +14 -2
- package/package.json +2 -2
package/dist/index.es446.js
CHANGED
|
@@ -1,277 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import J from "./index.es758.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.es447.js";
|
|
4
|
-
import { getLocalName as R } from "./index.es448.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
|
|
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), "");
|
|
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
|
-
}));
|
|
274
|
-
}
|
|
1
|
+
var e = {};
|
|
275
2
|
export {
|
|
276
|
-
|
|
3
|
+
e as __exports
|
|
277
4
|
};
|
package/dist/index.es447.js
CHANGED
|
@@ -1,82 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
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
|
+
import { createSidecarMedium as e } from "./index.es460.js";
|
|
2
|
+
var a = e();
|
|
64
3
|
export {
|
|
65
|
-
|
|
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
|
|
4
|
+
a as effectCar
|
|
82
5
|
};
|
package/dist/index.es448.js
CHANGED
|
@@ -1,168 +1,109 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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;
|
|
1
|
+
import { __spreadArray as x } from "./index.es321.js";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { RemoveScrollBar as A } from "./index.es461.js";
|
|
4
|
+
import { styleSingleton as I } from "./index.es462.js";
|
|
5
|
+
import { nonPassive as f } from "./index.es759.js";
|
|
6
|
+
import { locationCouldBeScrolled as B, handleScroll as W } from "./index.es760.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));
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
}
|
|
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;
|
|
64
|
+
}
|
|
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();
|
|
149
70
|
}
|
|
150
71
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
|
|
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;
|
|
77
|
+
});
|
|
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
|
+
);
|
|
164
104
|
}
|
|
165
105
|
export {
|
|
166
|
-
|
|
167
|
-
|
|
106
|
+
G as RemoveScrollSideCar,
|
|
107
|
+
X as getDeltaXY,
|
|
108
|
+
k as getTouchXY
|
|
168
109
|
};
|
package/dist/index.es45.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as a } from "./index.es82.js";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { Root as g, Trigger as h, Group as y, Portal as r, Sub as j, RadioGroup as w, SubTrigger as d, SubContent as l, Content as m, Item as c, CheckboxItem as p, ItemIndicator as f, RadioItem as x, Label as b, Separator as N } from "./index.
|
|
4
|
-
import R from "./index.
|
|
5
|
-
import M from "./index.
|
|
6
|
-
import S from "./index.
|
|
3
|
+
import { Root as g, Trigger as h, Group as y, Portal as r, Sub as j, RadioGroup as w, SubTrigger as d, SubContent as l, Content as m, Item as c, CheckboxItem as p, ItemIndicator as f, RadioItem as x, Label as b, Separator as N } from "./index.es114.js";
|
|
4
|
+
import R from "./index.es109.js";
|
|
5
|
+
import M from "./index.es90.js";
|
|
6
|
+
import S from "./index.es115.js";
|
|
7
7
|
import v from "./index.es15.js";
|
|
8
8
|
import { cn as o } from "./index.es72.js";
|
|
9
9
|
const K = g, O = h, Q = y, U = r, V = j, W = w, I = s.forwardRef(({ className: e, inset: i, children: t, ...u }, n) => /* @__PURE__ */ a.jsxs(
|
package/dist/index.es454.js
CHANGED
package/dist/index.es455.js
CHANGED
package/dist/index.es46.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "./index.es82.js";
|
|
2
2
|
import p from "react";
|
|
3
3
|
import { MenuRoot as t, MenuTrigger as x, MenuContent as j, MenuShortcut as o } from "./index.es45.js";
|
|
4
|
-
import { renderMenuItem as M } from "./index.
|
|
4
|
+
import { renderMenuItem as M } from "./index.es116.js";
|
|
5
5
|
const u = ({ trigger: i, items: m }) => /* @__PURE__ */ e.jsxs(t, { children: [
|
|
6
6
|
/* @__PURE__ */ e.jsx(x, { asChild: !0, children: i }),
|
|
7
7
|
/* @__PURE__ */ e.jsx(j, { children: m.map(
|