@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.
- package/dist/index.d.ts +1 -1
- package/dist/index.es101.js +2 -2
- package/dist/index.es104.js +9 -4
- package/dist/index.es105.js +4 -14
- package/dist/index.es106.js +14 -5
- package/dist/index.es107.js +4 -56
- package/dist/index.es108.js +55 -222
- package/dist/index.es109.js +224 -11
- package/dist/index.es110.js +4 -4
- package/dist/index.es111.js +11 -41
- package/dist/index.es112.js +41 -11
- package/dist/index.es113.js +21 -33
- package/dist/index.es114.js +12 -21
- package/dist/index.es115.js +4 -5
- package/dist/index.es116.js +4 -3
- package/dist/index.es117.js +4 -5
- package/dist/index.es118.js +14 -14
- package/dist/index.es119.js +813 -55
- package/dist/index.es120.js +9 -822
- package/dist/index.es121.js +5 -3
- package/dist/index.es122.js +4 -11
- package/dist/index.es123.js +64 -4
- package/dist/index.es124.js +33 -13
- package/dist/index.es125.js +13 -33
- package/dist/index.es126.js +216 -13
- package/dist/index.es127.js +13 -8
- package/dist/index.es128.js +7 -215
- package/dist/index.es130.js +1 -1
- package/dist/index.es131.js +1 -1
- package/dist/index.es132.js +12 -9
- package/dist/index.es133.js +196 -204
- package/dist/index.es134.js +41 -10
- package/dist/index.es135.js +9 -12
- package/dist/index.es136.js +204 -196
- package/dist/index.es137.js +10 -41
- package/dist/index.es139.js +1 -1
- package/dist/index.es140.js +1 -1
- package/dist/index.es141.js +12 -6
- package/dist/index.es142.js +5 -63
- package/dist/index.es143.js +64 -10
- package/dist/index.es144.js +10 -124
- package/dist/index.es145.js +116 -126
- package/dist/index.es146.js +134 -13
- package/dist/index.es147.js +14 -33
- package/dist/index.es148.js +32 -14
- package/dist/index.es149.js +14 -8
- package/dist/index.es15.js +1 -1
- package/dist/index.es150.js +9 -50
- package/dist/index.es151.js +50 -6
- package/dist/index.es152.js +6 -2
- package/dist/index.es153.js +2 -44
- package/dist/index.es154.js +40 -646
- package/dist/index.es155.js +648 -11
- package/dist/index.es156.js +5 -5
- package/dist/index.es157.js +4 -4
- package/dist/index.es158.js +45 -3
- package/dist/index.es159.js +7 -45
- package/dist/index.es160.js +4 -8
- package/dist/index.es162.js +1 -1
- package/dist/index.es163.js +6 -118
- package/dist/index.es164.js +3 -35
- package/dist/index.es165.js +2054 -2
- package/dist/index.es166.js +118 -2
- package/dist/index.es167.js +33 -6
- package/dist/index.es168.js +4 -3
- package/dist/index.es169.js +2 -2054
- package/dist/index.es176.js +1 -1
- package/dist/index.es177.js +1 -1
- package/dist/index.es178.js +1 -1
- package/dist/index.es181.js +2 -2
- package/dist/index.es183.js +1 -1
- package/dist/index.es203.js +1 -1
- package/dist/index.es22.js +2 -2
- package/dist/index.es236.js +176 -19
- package/dist/index.es237.js +15 -3
- package/dist/index.es238.js +3 -32
- package/dist/index.es239.js +32 -12
- package/dist/index.es240.js +17 -177
- package/dist/index.es242.js +5 -5
- package/dist/index.es243.js +16 -18
- package/dist/index.es246.js +1 -1
- package/dist/index.es247.js +1 -1
- package/dist/index.es248.js +3 -3
- package/dist/index.es27.js +1 -1
- package/dist/index.es275.js +12 -12
- package/dist/index.es276.js +2 -2
- package/dist/index.es277.js +2 -2
- package/dist/index.es278.js +8 -8
- package/dist/index.es279.js +2 -2
- package/dist/index.es28.js +1 -1
- package/dist/index.es283.js +16 -15
- package/dist/index.es284.js +8 -3
- package/dist/index.es285.js +15 -16
- package/dist/index.es286.js +3 -8
- package/dist/index.es29.js +3 -3
- package/dist/index.es30.js +23 -23
- package/dist/index.es32.js +2 -2
- package/dist/index.es325.js +1 -1
- package/dist/index.es33.js +2 -2
- package/dist/index.es335.js +3 -3
- package/dist/index.es338.js +1 -1
- package/dist/index.es339.js +1 -1
- package/dist/index.es34.js +46 -35
- package/dist/index.es342.js +2 -2
- package/dist/index.es343.js +2 -2
- package/dist/index.es35.js +2 -2
- package/dist/index.es350.js +2 -29
- package/dist/index.es351.js +106 -5
- package/dist/index.es352.js +76 -2
- package/dist/index.es353.js +36 -107
- package/dist/index.es354.js +60 -73
- package/dist/index.es355.js +28 -30
- package/dist/index.es356.js +63 -61
- package/dist/index.es357.js +109 -30
- package/dist/index.es358.js +87 -59
- package/dist/index.es359.js +40 -110
- package/dist/index.es360.js +3 -94
- package/dist/index.es361.js +3 -43
- package/dist/index.es362.js +2 -2
- package/dist/index.es363.js +2 -2
- package/dist/index.es364.js +2 -2
- package/dist/index.es366.js +2 -2
- package/dist/index.es367.js +2 -2
- package/dist/index.es368.js +2 -2
- package/dist/index.es369.js +241 -4
- package/dist/index.es370.js +384 -4
- package/dist/index.es371.js +132 -204
- package/dist/index.es372.js +103 -334
- package/dist/index.es373.js +75 -102
- package/dist/index.es374.js +4 -153
- package/dist/index.es375.js +4 -142
- package/dist/index.es376.js +2 -2
- package/dist/index.es377.js +2 -2
- package/dist/index.es378.js +2 -2
- package/dist/index.es379.js +2 -2
- package/dist/index.es38.js +1 -1
- package/dist/index.es380.js +29 -2
- package/dist/index.es381.js +5 -2
- package/dist/index.es39.js +1 -1
- package/dist/index.es393.js +1 -1
- package/dist/index.es394.js +1 -1
- package/dist/index.es404.js +68 -2
- package/dist/index.es405.js +31 -47
- package/dist/index.es406.js +16 -83
- package/dist/index.es407.js +140 -13
- package/dist/index.es408.js +113 -340
- package/dist/index.es409.js +507 -63
- package/dist/index.es41.js +1 -1
- package/dist/index.es410.js +126 -10
- package/dist/index.es411.js +117 -510
- package/dist/index.es412.js +64 -116
- package/dist/index.es413.js +10 -125
- package/dist/index.es414.js +2 -68
- package/dist/index.es415.js +47 -31
- package/dist/index.es416.js +83 -16
- package/dist/index.es417.js +13 -140
- package/dist/index.es418.js +340 -113
- package/dist/index.es43.js +1 -1
- package/dist/index.es439.js +2 -2
- package/dist/index.es44.js +4 -4
- package/dist/index.es441.js +275 -3
- package/dist/index.es442.js +78 -105
- package/dist/index.es443.js +166 -2
- package/dist/index.es444.js +3 -2
- package/dist/index.es445.js +100 -268
- package/dist/index.es446.js +2 -80
- package/dist/index.es447.js +2 -166
- package/dist/index.es45.js +1 -1
- package/dist/index.es46.js +5 -5
- package/dist/index.es475.js +1 -1
- package/dist/index.es476.js +1 -1
- package/dist/index.es49.js +2 -2
- package/dist/index.es50.js +1 -1
- package/dist/index.es51.js +4 -4
- package/dist/index.es54.js +1 -1
- package/dist/index.es57.js +3 -3
- package/dist/index.es59.js +2 -2
- package/dist/index.es61.js +1 -1
- package/dist/index.es62.js +1 -1
- package/dist/index.es63.js +2 -2
- package/dist/index.es64.js +1 -1
- package/dist/index.es65.js +3 -3
- package/dist/index.es66.js +2 -2
- package/dist/index.es67.js +2 -2
- package/dist/index.es753.js +5 -5
- package/dist/index.es754.js +22 -14
- package/dist/index.es755.js +82 -59
- package/dist/index.es756.js +14 -22
- package/dist/index.es757.js +59 -82
- package/dist/index.es769.js +2 -8
- package/dist/index.es770.js +2 -56
- package/dist/index.es771.js +7 -18
- package/dist/index.es772.js +56 -2
- package/dist/index.es773.js +19 -2
- package/dist/index.es780.js +28 -28
- package/dist/index.es782.js +5 -5
- package/dist/index.es783.js +13 -17
- package/dist/index.es785.js +5 -11
- package/dist/index.es786.js +28 -28
- package/dist/index.es787.js +5 -5
- package/dist/index.es788.js +17 -13
- package/dist/index.es789.js +11 -5
- package/dist/index.es79.js +1 -1
- package/dist/index.es790.js +1 -1
- package/dist/index.es796.js +1 -1
- package/dist/index.es797.js +1 -1
- package/dist/index.es798.js +1 -1
- package/dist/index.es799.js +1 -1
- package/dist/index.es80.js +1 -1
- package/dist/index.es801.js +1 -1
- package/dist/index.es805.js +8 -10
- package/dist/index.es806.js +9 -7
- package/dist/index.es807.js +1 -1
- package/dist/index.es808.js +10 -8
- package/dist/index.es809.js +7 -9
- package/dist/index.es810.js +5 -5
- package/dist/index.es811.js +2 -2
- package/dist/index.es812.js +1 -1
- package/dist/index.es814.js +2 -2
- package/dist/index.es822.js +1 -1
- package/dist/index.es824.js +25 -38
- package/dist/index.es825.js +38 -25
- package/dist/index.es826.js +15 -64
- package/dist/index.es827.js +7 -11
- package/dist/index.es828.js +61 -38
- package/dist/index.es829.js +7 -54
- package/dist/index.es830.js +40 -16
- package/dist/index.es831.js +57 -17
- package/dist/index.es832.js +20 -7
- package/dist/index.es833.js +1 -1
- package/dist/index.es84.js +305 -33
- package/dist/index.es85.js +12 -46
- package/dist/index.es86.js +34 -29
- package/dist/index.es87.js +42 -26
- package/dist/index.es88.js +27 -304
- package/dist/index.es89.js +30 -12
- package/dist/index.es90.js +55 -9
- package/dist/index.es91.js +52 -52
- package/dist/index.es92.js +92 -55
- package/dist/index.es93.js +34 -87
- package/dist/index.es94.js +23 -36
- package/dist/index.es95.js +24 -18
- package/dist/index.es96.js +257 -28
- package/dist/index.es97.js +5 -5
- package/dist/index.es98.js +32 -258
- package/dist/index.es99.js +5 -5
- package/dist/style.css +8 -8
- package/package.json +1 -1
package/dist/index.es445.js
CHANGED
|
@@ -1,277 +1,109 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
}
|
|
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
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
if (
|
|
207
|
-
return
|
|
208
|
-
var
|
|
209
|
-
if (
|
|
210
|
-
return
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
if (
|
|
224
|
-
|
|
225
|
-
|
|
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
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
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
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
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
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
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
|
-
|
|
106
|
+
G as RemoveScrollSideCar,
|
|
107
|
+
X as getDeltaXY,
|
|
108
|
+
k as getTouchXY
|
|
277
109
|
};
|
package/dist/index.es446.js
CHANGED
|
@@ -1,82 +1,4 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
|
};
|
package/dist/index.es447.js
CHANGED
|
@@ -1,168 +1,4 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
167
|
-
i as getLocalName
|
|
3
|
+
e as __exports
|
|
168
4
|
};
|
package/dist/index.es45.js
CHANGED
|
@@ -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.
|
|
4
|
+
import { renderMenuItem as g } from "./index.es112.js";
|
|
5
5
|
const R = ({
|
|
6
6
|
trigger: i,
|
|
7
7
|
items: m,
|
package/dist/index.es46.js
CHANGED
|
@@ -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.
|
|
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.
|
|
6
|
-
import y from "./index.
|
|
7
|
-
import k from "./index.
|
|
8
|
-
import I from "./index.
|
|
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,
|
package/dist/index.es475.js
CHANGED
package/dist/index.es476.js
CHANGED