@anoki/fse-ui 1.0.0-beta1.45.6 → 1.0.0-beta1.45.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/components/ui/BaseModal/BaseModal.css +1 -1
- package/dist/index.cjs245.js +1 -1
- package/dist/index.cjs252.js +1 -1
- package/dist/index.cjs290.js +1 -1
- package/dist/index.cjs295.js +1 -1
- package/dist/index.cjs303.js +1 -1
- package/dist/index.cjs314.js +1 -1
- package/dist/index.cjs321.js +1 -1
- package/dist/index.cjs352.js +1 -1
- package/dist/index.cjs393.js +1 -1
- package/dist/index.cjs399.js +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs44.js.map +1 -1
- package/dist/index.cjs453.js +1 -27
- package/dist/index.cjs453.js.map +1 -1
- package/dist/index.cjs454.js +2 -1
- package/dist/index.cjs454.js.map +1 -1
- package/dist/index.cjs455.js +27 -1
- package/dist/index.cjs455.js.map +1 -1
- package/dist/index.cjs456.js +1 -1
- package/dist/index.cjs456.js.map +1 -1
- package/dist/index.cjs457.js +1 -2
- package/dist/index.cjs457.js.map +1 -1
- package/dist/index.cjs468.js +1 -1
- package/dist/index.cjs468.js.map +1 -1
- package/dist/index.cjs471.js +1 -1
- package/dist/index.cjs471.js.map +1 -1
- package/dist/index.cjs472.js +1 -1
- package/dist/index.cjs472.js.map +1 -1
- package/dist/index.cjs473.js +1 -1
- package/dist/index.cjs473.js.map +1 -1
- package/dist/index.cjs474.js +1 -1
- package/dist/index.cjs474.js.map +1 -1
- package/dist/index.cjs475.js +1 -1
- package/dist/index.cjs475.js.map +1 -1
- package/dist/index.cjs476.js +1 -1
- package/dist/index.cjs476.js.map +1 -1
- package/dist/index.cjs477.js +1 -1
- package/dist/index.cjs477.js.map +1 -1
- package/dist/index.cjs478.js +1 -1
- package/dist/index.cjs478.js.map +1 -1
- package/dist/index.cjs479.js +1 -1
- package/dist/index.cjs479.js.map +1 -1
- package/dist/index.cjs480.js +1 -1
- package/dist/index.cjs480.js.map +1 -1
- package/dist/index.cjs481.js +1 -1
- package/dist/index.cjs481.js.map +1 -1
- package/dist/index.cjs482.js +1 -1
- package/dist/index.cjs482.js.map +1 -1
- package/dist/index.cjs483.js +1 -1
- package/dist/index.cjs483.js.map +1 -1
- package/dist/index.cjs484.js +1 -1
- package/dist/index.cjs484.js.map +1 -1
- package/dist/index.cjs485.js +1 -1
- package/dist/index.cjs485.js.map +1 -1
- package/dist/index.cjs486.js +1 -1
- package/dist/index.cjs486.js.map +1 -1
- package/dist/index.cjs487.js +1 -1
- package/dist/index.cjs487.js.map +1 -1
- package/dist/index.cjs488.js +1 -1
- package/dist/index.cjs488.js.map +1 -1
- package/dist/index.cjs489.js +1 -1
- package/dist/index.cjs489.js.map +1 -1
- package/dist/index.cjs490.js +2 -0
- package/dist/index.cjs490.js.map +1 -0
- package/dist/index.cjs491.js +2 -0
- package/dist/index.cjs491.js.map +1 -0
- package/dist/index.cjs492.js +1 -1
- package/dist/index.cjs492.js.map +1 -1
- package/dist/index.cjs493.js +1 -1
- package/dist/index.cjs493.js.map +1 -1
- package/dist/index.cjs494.js +1 -1
- package/dist/index.cjs494.js.map +1 -1
- package/dist/index.cjs495.js +1 -1
- package/dist/index.cjs495.js.map +1 -1
- package/dist/index.cjs496.js +1 -1
- package/dist/index.cjs496.js.map +1 -1
- package/dist/index.cjs497.js +1 -1
- package/dist/index.cjs497.js.map +1 -1
- package/dist/index.cjs502.js +2 -0
- package/dist/index.cjs502.js.map +1 -0
- package/dist/index.cjs503.js +2 -0
- package/dist/index.cjs503.js.map +1 -0
- package/dist/index.cjs504.js +2 -0
- package/dist/index.cjs504.js.map +1 -0
- package/dist/index.cjs505.js +2 -0
- package/dist/index.cjs505.js.map +1 -0
- package/dist/index.cjs506.js +1 -1
- package/dist/index.cjs506.js.map +1 -1
- package/dist/index.cjs507.js +1 -1
- package/dist/index.cjs507.js.map +1 -1
- package/dist/index.cjs508.js +1 -1
- package/dist/index.cjs508.js.map +1 -1
- package/dist/index.cjs509.js +4 -1
- package/dist/index.cjs509.js.map +1 -1
- package/dist/{index.cjs524.js → index.cjs510.js} +2 -2
- package/dist/{index.cjs524.js.map → index.cjs510.js.map} +1 -1
- package/dist/{index.cjs525.js → index.cjs511.js} +2 -2
- package/dist/{index.cjs525.js.map → index.cjs511.js.map} +1 -1
- package/dist/{index.cjs526.js → index.cjs512.js} +1 -1
- package/dist/{index.cjs526.js.map → index.cjs512.js.map} +1 -1
- package/dist/{index.cjs527.js → index.cjs513.js} +1 -1
- package/dist/{index.cjs527.js.map → index.cjs513.js.map} +1 -1
- package/dist/{index.cjs528.js → index.cjs519.js} +2 -2
- package/dist/{index.cjs528.js.map → index.cjs519.js.map} +1 -1
- package/dist/index.cjs520.js +1 -1
- package/dist/index.cjs520.js.map +1 -1
- package/dist/index.cjs521.js +1 -1
- package/dist/index.cjs521.js.map +1 -1
- package/dist/index.cjs522.js +1 -1
- package/dist/index.cjs522.js.map +1 -1
- package/dist/index.cjs523.js +1 -4
- package/dist/index.cjs523.js.map +1 -1
- package/dist/index.cjs539.js +1 -1
- package/dist/index.cjs540.js +1 -1
- package/dist/index.cjs545.js +1 -1
- package/dist/index.cjs546.js +1 -1
- package/dist/index.cjs548.js +1 -1
- package/dist/index.cjs549.js +1 -1
- package/dist/index.cjs550.js +1 -1
- package/dist/index.cjs551.js +1 -1
- package/dist/index.cjs554.js +1 -1
- package/dist/index.cjs557.js +1 -1
- package/dist/index.cjs562.js +1 -1
- package/dist/index.cjs564.js +1 -1
- package/dist/index.cjs567.js +1 -1
- package/dist/index.cjs571.js +1 -1
- package/dist/index.cjs571.js.map +1 -1
- package/dist/index.cjs572.js +1 -1
- package/dist/index.cjs572.js.map +1 -1
- package/dist/index.cjs573.js +2 -0
- package/dist/index.cjs573.js.map +1 -0
- package/dist/index.cjs574.js +1 -1
- package/dist/index.cjs574.js.map +1 -1
- package/dist/index.cjs575.js +1 -1
- package/dist/index.cjs575.js.map +1 -1
- package/dist/{index.cjs578.js → index.cjs576.js} +1 -1
- package/dist/{index.cjs578.js.map → index.cjs576.js.map} +1 -1
- package/dist/index.cjs577.js +1 -1
- package/dist/index.cjs577.js.map +1 -1
- package/dist/index.cjs582.js +2 -0
- package/dist/index.cjs582.js.map +1 -0
- package/dist/index.cjs583.js +1 -1
- package/dist/index.cjs583.js.map +1 -1
- package/dist/index.cjs594.js +1 -1
- package/dist/index.d.ts +8 -7
- package/dist/index.es245.js +1 -1
- package/dist/index.es252.js +2 -2
- package/dist/index.es290.js +7 -7
- package/dist/index.es295.js +1 -1
- package/dist/index.es303.js +8 -8
- package/dist/index.es314.js +1 -1
- package/dist/index.es321.js +14 -14
- package/dist/index.es352.js +7 -7
- package/dist/index.es393.js +4 -4
- package/dist/index.es399.js +1 -1
- package/dist/index.es44.js +43 -31
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es453.js +5 -3674
- package/dist/index.es453.js.map +1 -1
- package/dist/index.es454.js +520 -5
- package/dist/index.es454.js.map +1 -1
- package/dist/index.es455.js +3675 -2
- package/dist/index.es455.js.map +1 -1
- package/dist/index.es456.js +5 -5
- package/dist/index.es456.js.map +1 -1
- package/dist/index.es457.js +2 -521
- package/dist/index.es457.js.map +1 -1
- package/dist/index.es468.js +15 -7
- package/dist/index.es468.js.map +1 -1
- package/dist/index.es471.js +6 -51
- package/dist/index.es471.js.map +1 -1
- package/dist/index.es472.js +26 -33
- package/dist/index.es472.js.map +1 -1
- package/dist/index.es473.js +63 -617
- package/dist/index.es473.js.map +1 -1
- package/dist/index.es474.js +51 -10
- package/dist/index.es474.js.map +1 -1
- package/dist/index.es475.js +34 -4
- package/dist/index.es475.js.map +1 -1
- package/dist/index.es476.js +619 -54
- package/dist/index.es476.js.map +1 -1
- package/dist/index.es477.js +10 -45
- package/dist/index.es477.js.map +1 -1
- package/dist/index.es478.js +3 -13
- package/dist/index.es478.js.map +1 -1
- package/dist/index.es479.js +52 -120
- package/dist/index.es479.js.map +1 -1
- package/dist/index.es480.js +45 -14
- package/dist/index.es480.js.map +1 -1
- package/dist/index.es481.js +13 -134
- package/dist/index.es481.js.map +1 -1
- package/dist/index.es482.js +113 -206
- package/dist/index.es482.js.map +1 -1
- package/dist/index.es483.js +14 -13
- package/dist/index.es483.js.map +1 -1
- package/dist/index.es484.js +126 -60
- package/dist/index.es484.js.map +1 -1
- package/dist/index.es485.js +203 -166
- package/dist/index.es485.js.map +1 -1
- package/dist/index.es486.js +13 -10
- package/dist/index.es486.js.map +1 -1
- package/dist/index.es487.js +66 -47
- package/dist/index.es487.js.map +1 -1
- package/dist/index.es488.js +181 -9
- package/dist/index.es488.js.map +1 -1
- package/dist/index.es489.js +11 -15
- package/dist/index.es489.js.map +1 -1
- package/dist/index.es490.js +53 -0
- package/dist/index.es490.js.map +1 -0
- package/dist/index.es491.js +12 -0
- package/dist/index.es491.js.map +1 -0
- package/dist/index.es492.js +5 -11
- package/dist/index.es492.js.map +1 -1
- package/dist/index.es493.js +24 -204
- package/dist/index.es493.js.map +1 -1
- package/dist/index.es494.js +12 -22
- package/dist/index.es494.js.map +1 -1
- package/dist/index.es495.js +204 -24
- package/dist/index.es495.js.map +1 -1
- package/dist/index.es496.js +21 -396
- package/dist/index.es496.js.map +1 -1
- package/dist/index.es497.js +396 -5
- package/dist/index.es497.js.map +1 -1
- package/dist/index.es502.js +28 -0
- package/dist/index.es502.js.map +1 -0
- package/dist/index.es503.js +32 -0
- package/dist/index.es503.js.map +1 -0
- package/dist/index.es504.js +8 -0
- package/dist/index.es504.js.map +1 -0
- package/dist/index.es505.js +18 -0
- package/dist/index.es505.js.map +1 -0
- package/dist/index.es506.js +5 -15
- package/dist/index.es506.js.map +1 -1
- package/dist/index.es507.js +3 -25
- package/dist/index.es507.js.map +1 -1
- package/dist/index.es508.js +24 -29
- package/dist/index.es508.js.map +1 -1
- package/dist/index.es509.js +110 -5
- package/dist/index.es509.js.map +1 -1
- package/dist/{index.es524.js → index.es510.js} +2 -2
- package/dist/{index.es524.js.map → index.es510.js.map} +1 -1
- package/dist/{index.es525.js → index.es511.js} +2 -2
- package/dist/{index.es525.js.map → index.es511.js.map} +1 -1
- package/dist/{index.es526.js → index.es512.js} +1 -1
- package/dist/{index.es526.js.map → index.es512.js.map} +1 -1
- package/dist/{index.es527.js → index.es513.js} +1 -1
- package/dist/{index.es527.js.map → index.es513.js.map} +1 -1
- package/dist/{index.es528.js → index.es519.js} +3 -3
- package/dist/{index.es528.js.map → index.es519.js.map} +1 -1
- package/dist/index.es520.js +9 -5
- package/dist/index.es520.js.map +1 -1
- package/dist/index.es521.js +14 -3
- package/dist/index.es521.js.map +1 -1
- package/dist/index.es522.js +61 -23
- package/dist/index.es522.js.map +1 -1
- package/dist/index.es523.js +58 -103
- package/dist/index.es523.js.map +1 -1
- package/dist/index.es539.js +1 -1
- package/dist/index.es540.js +3 -3
- package/dist/index.es545.js +1 -1
- package/dist/index.es546.js +2 -2
- package/dist/index.es548.js +1 -1
- package/dist/index.es549.js +2 -2
- package/dist/index.es550.js +15 -15
- package/dist/index.es551.js +2 -2
- package/dist/index.es554.js +2 -2
- package/dist/index.es557.js +8 -8
- package/dist/index.es562.js +8 -8
- package/dist/index.es564.js +1 -1
- package/dist/index.es567.js +1 -1
- package/dist/index.es571.js +16 -6
- package/dist/index.es571.js.map +1 -1
- package/dist/index.es572.js +6 -16
- package/dist/index.es572.js.map +1 -1
- package/dist/index.es573.js +5 -0
- package/dist/index.es573.js.map +1 -0
- package/dist/index.es574.js +2 -2
- package/dist/index.es574.js.map +1 -1
- package/dist/index.es575.js +3 -2
- package/dist/index.es575.js.map +1 -1
- package/dist/{index.es578.js → index.es576.js} +1 -1
- package/dist/{index.es578.js.map → index.es576.js.map} +1 -1
- package/dist/index.es577.js +4 -3
- package/dist/index.es577.js.map +1 -1
- package/dist/index.es582.js +77 -0
- package/dist/index.es582.js.map +1 -0
- package/dist/index.es583.js +2 -74
- package/dist/index.es583.js.map +1 -1
- package/dist/index.es594.js +1 -1
- package/package.json +1 -1
- package/dist/index.cjs469.js +0 -2
- package/dist/index.cjs469.js.map +0 -1
- package/dist/index.cjs470.js +0 -2
- package/dist/index.cjs470.js.map +0 -1
- package/dist/index.cjs529.js +0 -2
- package/dist/index.cjs529.js.map +0 -1
- package/dist/index.cjs530.js +0 -2
- package/dist/index.cjs530.js.map +0 -1
- package/dist/index.cjs531.js +0 -2
- package/dist/index.cjs531.js.map +0 -1
- package/dist/index.cjs532.js +0 -2
- package/dist/index.cjs532.js.map +0 -1
- package/dist/index.cjs579.js +0 -2
- package/dist/index.cjs579.js.map +0 -1
- package/dist/index.cjs584.js +0 -2
- package/dist/index.cjs584.js.map +0 -1
- package/dist/index.es469.js +0 -30
- package/dist/index.es469.js.map +0 -1
- package/dist/index.es470.js +0 -71
- package/dist/index.es470.js.map +0 -1
- package/dist/index.es529.js +0 -12
- package/dist/index.es529.js.map +0 -1
- package/dist/index.es530.js +0 -17
- package/dist/index.es530.js.map +0 -1
- package/dist/index.es531.js +0 -65
- package/dist/index.es531.js.map +0 -1
- package/dist/index.es532.js +0 -68
- package/dist/index.es532.js.map +0 -1
- package/dist/index.es579.js +0 -7
- package/dist/index.es579.js.map +0 -1
- package/dist/index.es584.js +0 -5
- package/dist/index.es584.js.map +0 -1
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { commonjsGlobal as u } from "./index.es456.js";
|
|
2
|
+
import { __module as f } from "./index.es583.js";
|
|
3
|
+
var j = f.exports, E;
|
|
4
|
+
function S() {
|
|
5
|
+
return E ? f.exports : (E = 1, function(R, L) {
|
|
6
|
+
(function(v, i) {
|
|
7
|
+
i();
|
|
8
|
+
})(j, function() {
|
|
9
|
+
function v(e, t) {
|
|
10
|
+
return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
11
|
+
}
|
|
12
|
+
function i(e, t, r) {
|
|
13
|
+
var n = new XMLHttpRequest();
|
|
14
|
+
n.open("GET", e), n.responseType = "blob", n.onload = function() {
|
|
15
|
+
l(n.response, t, r);
|
|
16
|
+
}, n.onerror = function() {
|
|
17
|
+
console.error("could not download file");
|
|
18
|
+
}, n.send();
|
|
19
|
+
}
|
|
20
|
+
function m(e) {
|
|
21
|
+
var t = new XMLHttpRequest();
|
|
22
|
+
t.open("HEAD", e, !1);
|
|
23
|
+
try {
|
|
24
|
+
t.send();
|
|
25
|
+
} catch {
|
|
26
|
+
}
|
|
27
|
+
return 200 <= t.status && 299 >= t.status;
|
|
28
|
+
}
|
|
29
|
+
function c(e) {
|
|
30
|
+
try {
|
|
31
|
+
e.dispatchEvent(new MouseEvent("click"));
|
|
32
|
+
} catch {
|
|
33
|
+
var t = document.createEvent("MouseEvents");
|
|
34
|
+
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof u == "object" && u.global === u ? u : void 0, w = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), l = a.saveAs || (typeof window != "object" || window !== a ? function() {
|
|
38
|
+
} : "download" in HTMLAnchorElement.prototype && !w ? function(e, t, r) {
|
|
39
|
+
var n = a.URL || a.webkitURL, o = document.createElement("a");
|
|
40
|
+
t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? c(o) : m(o.href) ? i(e, t, r) : c(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
|
|
41
|
+
n.revokeObjectURL(o.href);
|
|
42
|
+
}, 4e4), setTimeout(function() {
|
|
43
|
+
c(o);
|
|
44
|
+
}, 0));
|
|
45
|
+
} : "msSaveOrOpenBlob" in navigator ? function(e, t, r) {
|
|
46
|
+
if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(v(e, r), t);
|
|
47
|
+
else if (m(e)) i(e, t, r);
|
|
48
|
+
else {
|
|
49
|
+
var n = document.createElement("a");
|
|
50
|
+
n.href = e, n.target = "_blank", setTimeout(function() {
|
|
51
|
+
c(n);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
} : function(e, t, r, n) {
|
|
55
|
+
if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string") return i(e, t, r);
|
|
56
|
+
var o = e.type === "application/octet-stream", b = /constructor/i.test(a.HTMLElement) || a.safari, y = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
57
|
+
if ((y || o && b || w) && typeof FileReader < "u") {
|
|
58
|
+
var d = new FileReader();
|
|
59
|
+
d.onloadend = function() {
|
|
60
|
+
var s = d.result;
|
|
61
|
+
s = y ? s : s.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = s : location = s, n = null;
|
|
62
|
+
}, d.readAsDataURL(e);
|
|
63
|
+
} else {
|
|
64
|
+
var h = a.URL || a.webkitURL, p = h.createObjectURL(e);
|
|
65
|
+
n ? n.location = p : location.href = p, n = null, setTimeout(function() {
|
|
66
|
+
h.revokeObjectURL(p);
|
|
67
|
+
}, 4e4);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
a.saveAs = l.saveAs = l, R.exports = l;
|
|
71
|
+
});
|
|
72
|
+
}(f), f.exports);
|
|
73
|
+
}
|
|
74
|
+
export {
|
|
75
|
+
S as __require
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=index.es582.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es582.js","sources":["../node_modules/file-saver/dist/FileSaver.min.js"],"sourcesContent":["(function(a,b){if(\"function\"==typeof define&&define.amd)define([],b);else if(\"undefined\"!=typeof exports)b();else{b(),a.FileSaver={exports:{}}.exports}})(this,function(){\"use strict\";function b(a,b){return\"undefined\"==typeof b?b={autoBom:!1}:\"object\"!=typeof b&&(console.warn(\"Deprecated: Expected third argument to be a object\"),b={autoBom:!b}),b.autoBom&&/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(a.type)?new Blob([\"\\uFEFF\",a],{type:a.type}):a}function c(a,b,c){var d=new XMLHttpRequest;d.open(\"GET\",a),d.responseType=\"blob\",d.onload=function(){g(d.response,b,c)},d.onerror=function(){console.error(\"could not download file\")},d.send()}function d(a){var b=new XMLHttpRequest;b.open(\"HEAD\",a,!1);try{b.send()}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent(\"click\"))}catch(c){var b=document.createEvent(\"MouseEvents\");b.initMouseEvent(\"click\",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var f=\"object\"==typeof window&&window.window===window?window:\"object\"==typeof self&&self.self===self?self:\"object\"==typeof global&&global.global===global?global:void 0,a=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=f.saveAs||(\"object\"!=typeof window||window!==f?function(){}:\"download\"in HTMLAnchorElement.prototype&&!a?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement(\"a\");g=g||b.name||\"download\",j.download=g,j.rel=\"noopener\",\"string\"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target=\"_blank\")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href)},4E4),setTimeout(function(){e(j)},0))}:\"msSaveOrOpenBlob\"in navigator?function(f,g,h){if(g=g||f.name||\"download\",\"string\"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else{var i=document.createElement(\"a\");i.href=f,i.target=\"_blank\",setTimeout(function(){e(i)})}}:function(b,d,e,g){if(g=g||open(\"\",\"_blank\"),g&&(g.document.title=g.document.body.innerText=\"downloading...\"),\"string\"==typeof b)return c(b,d,e);var h=\"application/octet-stream\"===b.type,i=/constructor/i.test(f.HTMLElement)||f.safari,j=/CriOS\\/[\\d]+/.test(navigator.userAgent);if((j||h&&i||a)&&\"undefined\"!=typeof FileReader){var k=new FileReader;k.onloadend=function(){var a=k.result;a=j?a:a.replace(/^data:[^;]*;/,\"data:attachment/file;\"),g?g.location.href=a:location=a,g=null},k.readAsDataURL(b)}else{var l=f.URL||f.webkitURL,m=l.createObjectURL(b);g?g.location=m:location.href=m,g=null,setTimeout(function(){l.revokeObjectURL(m)},4E4)}});f.saveAs=g.saveAs=g,\"undefined\"!=typeof module&&(module.exports=g)});\n\n//# sourceMappingURL=FileSaver.min.js.map"],"names":["a","b","this","c","d","g","e","f","global","h","i","j","k","l","m","module"],"mappings":";;;;;AAAA,KAAC,SAASA,GAAEC,GAAE;AAA2F,MAAAA,EAAC;AAAA,IAA6C,GAAGC,GAAK,WAAU;AAAc,eAASD,EAAED,GAAEC,GAAE;AAAC,eAAmB,OAAOA,IAApB,MAAsBA,IAAE,EAAC,SAAQ,GAAE,IAAY,OAAOA,KAAjB,aAAqB,QAAQ,KAAK,oDAAoD,GAAEA,IAAE,EAAC,SAAQ,CAACA,EAAC,IAAGA,EAAE,WAAS,6EAA6E,KAAKD,EAAE,IAAI,IAAE,IAAI,KAAK,CAAC,UAASA,CAAC,GAAE,EAAC,MAAKA,EAAE,KAAI,CAAC,IAAEA;AAAA,MAAC;AAAC,eAASG,EAAEH,GAAEC,GAAEE,GAAE;AAAC,YAAIC,IAAE,IAAI;AAAe,QAAAA,EAAE,KAAK,OAAMJ,CAAC,GAAEI,EAAE,eAAa,QAAOA,EAAE,SAAO,WAAU;AAAC,UAAAC,EAAED,EAAE,UAASH,GAAEE,CAAC;AAAA,QAAC,GAAEC,E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BAAIZ,IAAEY,EAAE;AAAO,YAAAZ,IAAEW,IAAEX,IAAEA,EAAE,QAAQ,gBAAe,uBAAuB,GAAEK,IAAEA,EAAE,SAAS,OAAKL,IAAE,WAASA,GAAEK,IAAE;AAAA,UAAI,GAAEO,EAAE,cAAcX,CAAC;AAAA,QAAC,OAAK;AAAC,cAAIY,IAAEN,EAAE,OAAKA,EAAE,WAAUO,IAAED,EAAE,gBAAgBZ,CAAC;AAAE,UAAAI,IAAEA,EAAE,WAASS,IAAE,SAAS,OAAKA,GAAET,IAAE,MAAK,WAAW,WAAU;AAAC,YAAAQ,EAAE,gBAAgBC,CAAC;AAAA,UAAC,GAAE,GAAG;AAAA,QAAC;AAAA,MAAC;AAAG,MAAAP,EAAE,SAAOF,EAAE,SAAOA,GAA+BU,EAAe,UAAAV;AAAA,IAAE,CAAC;AAAA;;","x_google_ignoreList":[0]}
|
package/dist/index.es583.js
CHANGED
|
@@ -1,77 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { __module as f } from "./index.es584.js";
|
|
3
|
-
var j = f.exports, E;
|
|
4
|
-
function S() {
|
|
5
|
-
return E ? f.exports : (E = 1, function(R, L) {
|
|
6
|
-
(function(v, i) {
|
|
7
|
-
i();
|
|
8
|
-
})(j, function() {
|
|
9
|
-
function v(e, t) {
|
|
10
|
-
return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
11
|
-
}
|
|
12
|
-
function i(e, t, r) {
|
|
13
|
-
var n = new XMLHttpRequest();
|
|
14
|
-
n.open("GET", e), n.responseType = "blob", n.onload = function() {
|
|
15
|
-
l(n.response, t, r);
|
|
16
|
-
}, n.onerror = function() {
|
|
17
|
-
console.error("could not download file");
|
|
18
|
-
}, n.send();
|
|
19
|
-
}
|
|
20
|
-
function m(e) {
|
|
21
|
-
var t = new XMLHttpRequest();
|
|
22
|
-
t.open("HEAD", e, !1);
|
|
23
|
-
try {
|
|
24
|
-
t.send();
|
|
25
|
-
} catch {
|
|
26
|
-
}
|
|
27
|
-
return 200 <= t.status && 299 >= t.status;
|
|
28
|
-
}
|
|
29
|
-
function c(e) {
|
|
30
|
-
try {
|
|
31
|
-
e.dispatchEvent(new MouseEvent("click"));
|
|
32
|
-
} catch {
|
|
33
|
-
var t = document.createEvent("MouseEvents");
|
|
34
|
-
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof u == "object" && u.global === u ? u : void 0, w = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), l = a.saveAs || (typeof window != "object" || window !== a ? function() {
|
|
38
|
-
} : "download" in HTMLAnchorElement.prototype && !w ? function(e, t, r) {
|
|
39
|
-
var n = a.URL || a.webkitURL, o = document.createElement("a");
|
|
40
|
-
t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? c(o) : m(o.href) ? i(e, t, r) : c(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
|
|
41
|
-
n.revokeObjectURL(o.href);
|
|
42
|
-
}, 4e4), setTimeout(function() {
|
|
43
|
-
c(o);
|
|
44
|
-
}, 0));
|
|
45
|
-
} : "msSaveOrOpenBlob" in navigator ? function(e, t, r) {
|
|
46
|
-
if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(v(e, r), t);
|
|
47
|
-
else if (m(e)) i(e, t, r);
|
|
48
|
-
else {
|
|
49
|
-
var n = document.createElement("a");
|
|
50
|
-
n.href = e, n.target = "_blank", setTimeout(function() {
|
|
51
|
-
c(n);
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
} : function(e, t, r, n) {
|
|
55
|
-
if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string") return i(e, t, r);
|
|
56
|
-
var o = e.type === "application/octet-stream", b = /constructor/i.test(a.HTMLElement) || a.safari, y = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
57
|
-
if ((y || o && b || w) && typeof FileReader < "u") {
|
|
58
|
-
var d = new FileReader();
|
|
59
|
-
d.onloadend = function() {
|
|
60
|
-
var s = d.result;
|
|
61
|
-
s = y ? s : s.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = s : location = s, n = null;
|
|
62
|
-
}, d.readAsDataURL(e);
|
|
63
|
-
} else {
|
|
64
|
-
var h = a.URL || a.webkitURL, p = h.createObjectURL(e);
|
|
65
|
-
n ? n.location = p : location.href = p, n = null, setTimeout(function() {
|
|
66
|
-
h.revokeObjectURL(p);
|
|
67
|
-
}, 4e4);
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
a.saveAs = l.saveAs = l, R.exports = l;
|
|
71
|
-
});
|
|
72
|
-
}(f), f.exports);
|
|
73
|
-
}
|
|
1
|
+
var e = { exports: {} };
|
|
74
2
|
export {
|
|
75
|
-
|
|
3
|
+
e as __module
|
|
76
4
|
};
|
|
77
5
|
//# sourceMappingURL=index.es583.js.map
|
package/dist/index.es583.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es583.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.es583.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index.es594.js
CHANGED
package/package.json
CHANGED
package/dist/index.cjs469.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=f(l);function r(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function s(...e){return t=>{let n=!1;const u=e.map(o=>{const c=r(o,t);return!n&&typeof c=="function"&&(n=!0),c});if(n)return()=>{for(let o=0;o<u.length;o++){const c=u[o];typeof c=="function"?c():r(e[o],null)}}}}function a(...e){return i.useCallback(s(...e),e)}exports.composeRefs=s;exports.useComposedRefs=a;
|
|
2
|
-
//# sourceMappingURL=index.cjs469.js.map
|
package/dist/index.cjs469.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs469.js","sources":["../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":"mYAEA,SAASA,EAAOC,EAAKC,EAAO,CAC1B,GAAI,OAAOD,GAAQ,WACjB,OAAOA,EAAIC,CAAK,EACPD,GAAQ,OACjBA,EAAI,QAAUC,EAElB,CACA,SAASC,KAAeC,EAAM,CAC5B,OAAQC,GAAS,CACf,IAAIC,EAAa,GACjB,MAAMC,EAAWH,EAAK,IAAKH,GAAQ,CACjC,MAAMO,EAAUR,EAAOC,EAAKI,CAAI,EAChC,MAAI,CAACC,GAAc,OAAOE,GAAW,aACnCF,EAAa,IAERE,CACb,CAAK,EACD,GAAIF,EACF,MAAO,IAAM,CACX,QAASG,EAAI,EAAGA,EAAIF,EAAS,OAAQE,IAAK,CACxC,MAAMD,EAAUD,EAASE,CAAC,EACtB,OAAOD,GAAW,WACpBA,EAAS,EAETR,EAAOI,EAAKK,CAAC,EAAG,IAAI,CAEhC,CACO,CAEJ,CACH,CACA,SAASC,KAAmBN,EAAM,CAChC,OAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,EAAGA,CAAI,CACrD","x_google_ignoreList":[0]}
|
package/dist/index.cjs470.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("react"),b=require("./index.cjs241.js");function P(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const i=P(j);function g(e,r){const t=i.createContext(r),s=c=>{const{children:n,...o}=c,u=i.useMemo(()=>o,Object.values(o));return b.jsxRuntimeExports.jsx(t.Provider,{value:u,children:n})};s.displayName=e+"Provider";function a(c){const n=i.useContext(t);if(n)return n;if(r!==void 0)return r;throw new Error(`\`${c}\` must be used within \`${e}\``)}return[s,a]}function _(e,r=[]){let t=[];function s(c,n){const o=i.createContext(n),u=t.length;t=[...t,n];const f=d=>{var S;const{scope:x,children:m,...p}=d,l=((S=x==null?void 0:x[e])==null?void 0:S[u])||o,C=i.useMemo(()=>p,Object.values(p));return b.jsxRuntimeExports.jsx(l.Provider,{value:C,children:m})};f.displayName=c+"Provider";function v(d,x){var l;const m=((l=x==null?void 0:x[e])==null?void 0:l[u])||o,p=i.useContext(m);if(p)return p;if(n!==void 0)return n;throw new Error(`\`${d}\` must be used within \`${c}\``)}return[f,v]}const a=()=>{const c=t.map(n=>i.createContext(n));return function(o){const u=(o==null?void 0:o[e])||c;return i.useMemo(()=>({[`__scope${e}`]:{...o,[e]:u}}),[o,u])}};return a.scopeName=e,[s,h(a,...r)]}function h(...e){const r=e[0];if(e.length===1)return r;const t=()=>{const s=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(c){const n=s.reduce((o,{useScope:u,scopeName:f})=>{const d=u(c)[`__scope${f}`];return{...o,...d}},{});return i.useMemo(()=>({[`__scope${r.scopeName}`]:n}),[n])}};return t.scopeName=r.scopeName,t}exports.createContext=g;exports.createContextScope=_;
|
|
2
|
-
//# sourceMappingURL=index.cjs470.js.map
|
package/dist/index.cjs470.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs470.js","sources":["../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContext2","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","jsx","useContext2","consumerName","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","BaseContext","index","scope","_a","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope"],"mappings":"kaAGA,SAASA,EAAeC,EAAmBC,EAAgB,CACzD,MAAMC,EAAUC,EAAM,cAAcF,CAAc,EAC5CG,EAAYC,GAAU,CAC1B,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAO,EAAKF,EAC3BG,EAAQL,EAAM,QAAQ,IAAMI,EAAS,OAAO,OAAOA,CAAO,CAAC,EACjE,OAAuBE,EAAAA,kBAAAA,IAAIP,EAAQ,SAAU,CAAE,MAAAM,EAAO,SAAAF,CAAQ,CAAE,CACjE,EACDF,EAAS,YAAcJ,EAAoB,WAC3C,SAASU,EAAYC,EAAc,CACjC,MAAMJ,EAAUJ,EAAM,WAAWD,CAAO,EACxC,GAAIK,EAAS,OAAOA,EACpB,GAAIN,IAAmB,OAAQ,OAAOA,EACtC,MAAM,IAAI,MAAM,KAAKU,CAAY,4BAA4BX,CAAiB,IAAI,CACtF,CACE,MAAO,CAACI,EAAUM,CAAW,CAC/B,CACA,SAASE,EAAmBC,EAAWC,EAAyB,GAAI,CAClE,IAAIC,EAAkB,CAAE,EACxB,SAASC,EAAehB,EAAmBC,EAAgB,CACzD,MAAMgB,EAAcd,EAAM,cAAcF,CAAc,EAChDiB,EAAQH,EAAgB,OAC9BA,EAAkB,CAAC,GAAGA,EAAiBd,CAAc,EACrD,MAAMG,EAAYC,GAAU,OAC1B,KAAM,CAAE,MAAAc,EAAO,SAAAb,EAAU,GAAGC,CAAS,EAAGF,EAClCH,IAAUkB,EAAAD,GAAA,YAAAA,EAAQN,KAAR,YAAAO,EAAqBF,KAAUD,EACzCT,EAAQL,EAAM,QAAQ,IAAMI,EAAS,OAAO,OAAOA,CAAO,CAAC,EACjE,OAAuBE,EAAAA,kBAAAA,IAAIP,EAAQ,SAAU,CAAE,MAAAM,EAAO,SAAAF,CAAQ,CAAE,CACjE,EACDF,EAAS,YAAcJ,EAA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EAAU,SAAS,EAAE,EAAGI,CAAU,GAAK,CAACA,CAAU,CAAC,CAC7F,CACF,EACD,OAAAT,EAAY,UAAYK,EAAU,UAC3BL,CACT","x_google_ignoreList":[0]}
|
package/dist/index.cjs529.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs535.js");var i=function(){var t=r.styleHookSingleton(),n=function(e){var l=e.styles,o=e.dynamic;return t(l,o),null};return n};exports.styleSingleton=i;
|
|
2
|
-
//# sourceMappingURL=index.cjs529.js.map
|
package/dist/index.cjs529.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs529.js","sources":["../node_modules/react-style-singleton/dist/es2015/component.js"],"sourcesContent":["import { styleHookSingleton } from './hook';\n/**\n * create a Component to add styles on demand\n * - styles are added when first instance is mounted\n * - styles are removed when the last instance is unmounted\n * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior\n */\nexport var styleSingleton = function () {\n var useStyle = styleHookSingleton();\n var Sheet = function (_a) {\n var styles = _a.styles, dynamic = _a.dynamic;\n useStyle(styles, dynamic);\n return null;\n };\n return Sheet;\n};\n"],"names":["styleSingleton","useStyle","styleHookSingleton","Sheet","_a","styles","dynamic"],"mappings":"qHAOU,IAACA,EAAiB,UAAY,CACpC,IAAIC,EAAWC,EAAAA,mBAAoB,EAC/BC,EAAQ,SAAUC,EAAI,CACtB,IAAIC,EAASD,EAAG,OAAQE,EAAUF,EAAG,QACrC,OAAAH,EAASI,EAAQC,CAAO,EACjB,IACV,EACD,OAAOH,CACX","x_google_ignoreList":[0]}
|
package/dist/index.cjs530.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var t=!1;if(typeof window<"u")try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0,!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{t=!1}var r=t?{passive:!1}:!1;exports.nonPassive=r;
|
|
2
|
-
//# sourceMappingURL=index.cjs530.js.map
|
package/dist/index.cjs530.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs530.js","sources":["../node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js"],"sourcesContent":["var passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n var options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n return true;\n },\n });\n // @ts-ignore\n window.addEventListener('test', options, options);\n // @ts-ignore\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\nexport var nonPassive = passiveSupported ? { passive: false } : false;\n"],"names":["passiveSupported","options","nonPassive"],"mappings":"gFAAA,IAAIA,EAAmB,GACvB,GAAI,OAAO,OAAW,IAClB,GAAI,CACA,IAAIC,EAAU,OAAO,eAAe,CAAA,EAAI,UAAW,CAC/C,IAAK,UAAY,CACb,OAAAD,EAAmB,GACZ,EACV,CACb,CAAS,EAED,OAAO,iBAAiB,OAAQC,EAASA,CAAO,EAEhD,OAAO,oBAAoB,OAAQA,EAASA,CAAO,CAC3D,MACgB,CACRD,EAAmB,EAC3B,CAEU,IAACE,EAAaF,EAAmB,CAAE,QAAS,EAAK,EAAK","x_google_ignoreList":[0]}
|
package/dist/index.cjs531.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var y=function(e){return e.tagName==="TEXTAREA"},w=function(e,r){if(!(e instanceof Element))return!1;var o=window.getComputedStyle(e);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!y(e)&&o[r]==="visible")},p=function(e){return w(e,"overflowY")},B=function(e){return w(e,"overflowX")},H=function(e,r){var o=r.ownerDocument,l=r;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var v=g(e,l);if(v){var n=b(e,l),a=n[1],t=n[2];if(a>t)return!0}l=l.parentNode}while(l&&l!==o.body);return!1},V=function(e){var r=e.scrollTop,o=e.scrollHeight,l=e.clientHeight;return[r,o,l]},D=function(e){var r=e.scrollLeft,o=e.scrollWidth,l=e.clientWidth;return[r,o,l]},g=function(e,r){return e==="v"?p(r):B(r)},b=function(e,r){return e==="v"?V(r):D(r)},R=function(e,r){return e==="h"&&r==="rtl"?-1:1},W=function(e,r,o,l,v){var n=R(e,window.getComputedStyle(r).direction),a=n*l,t=o.target,f=r.contains(t),c=!1,d=a>0,s=0,h=0;do{var i=b(e,t),u=i[0],m=i[1],C=i[2],S=m-C-n*u;(u||S)&&g(e,t)&&(s+=S,h+=u),t instanceof ShadowRoot?t=t.host:t=t.parentNode}while(!f&&t!==document.body||f&&(r.contains(t)||r===t));return(d&&Math.abs(s)<1||!d&&Math.abs(h)<1)&&(c=!0),c};exports.handleScroll=W;exports.locationCouldBeScrolled=H;
|
|
2
|
-
//# sourceMappingURL=index.cjs531.js.map
|
package/dist/index.cjs531.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs531.js","sources":["../node_modules/react-remove-scroll/dist/es2015/handleScroll.js"],"sourcesContent":["var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n if (!(node instanceof Element)) {\n return false;\n }\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nexport var locationCouldBeScrolled = function (axis, node) {\n var ownerDocument = node.ownerDocument;\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];\n if (scrollHeight > clientHeight) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== ownerDocument.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n if (target instanceof ShadowRoot) {\n target = target.host;\n }\n else {\n target = target.parentNode;\n }\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n // handle epsilon around 0 (non standard zoom levels)\n if (isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n"],"names":["alwaysContainsScroll","node","elementCanBeScrolled","overflow","styles","elementCouldBeVScrolled","elementCouldBeHScrolled","locationCouldBeScrolled","axis","ownerDocument","current","isScrollable","elementCouldBeScrolled","_a","getScrollVariables","scrollHeight","clientHeight","getVScrollVariables","scrollTop","getHScrollVariables","scrollLeft","scrollWidth","clientWidth","getDirectionFactor","direction","handleScroll","endTarget","event","sourceDelta","noOverscroll","directionFactor","delta","target","targetInLock","shouldCancelScroll","isDeltaPositive","availableScroll","availableScrollTop","position","scroll_1","capacity","elementScroll"],"mappings":"gFAAA,IAAIA,EAAuB,SAAUC,EAAM,CAEvC,OAAOA,EAAK,UAAY,UAC5B,EACIC,EAAuB,SAAUD,EAAME,EAAU,CACjD,GAAI,EAAEF,aAAgB,SAClB,MAAO,GAEX,IAAIG,EAAS,OAAO,iBAAiBH,CAAI,EACzC,OAEAG,EAAOD,CAAQ,IAAM,UAEjB,EAAEC,EAAO,YAAcA,EAAO,WAAa,CAACJ,EAAqBC,CAAI,GAAKG,EAAOD,CAAQ,IAAM,UACvG,EACIE,EAA0B,SAAUJ,EAAM,CAAE,OAAOC,EAAqBD,EAAM,WAAW,CAAI,EAC7FK,EAA0B,SAAUL,EAAM,CAAE,OAAOC,EAAqBD,EAAM,WAAW,CAAI,EACtFM,EAA0B,SAAUC,EAAMP,EAAM,C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G,CACC,IAAIxB,EAAKC,EAAmBN,EAAMwB,CAAM,EAAGM,EAAWzB,EAAG,CAAC,EAAG0B,EAAW1B,EAAG,CAAC,EAAG2B,EAAW3B,EAAG,CAAC,EAC1F4B,EAAgBF,EAAWC,EAAWV,EAAkBQ,GACxDA,GAAYG,IACR7B,EAAuBJ,EAAMwB,CAAM,IACnCI,GAAmBK,EACnBJ,GAAsBC,GAG1BN,aAAkB,WAClBA,EAASA,EAAO,KAGhBA,EAASA,EAAO,UAEvB,OAEA,CAACC,GAAgBD,IAAW,SAAS,MAEjCC,IAAiBP,EAAU,SAASM,CAAM,GAAKN,IAAcM,IAElE,OAAIG,GACkB,KAAK,IAAIC,CAAe,EAAI,GAGzC,CAACD,GACY,KAAK,IAAIE,CAAkB,EAAI,KACjDH,EAAqB,IAElBA,CACX","x_google_ignoreList":[0]}
|
package/dist/index.cjs532.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index.cjs507.js");function l(n){return n}function h(n,t){t===void 0&&(t=l);var e=[],o=!1,c={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return e.length?e[e.length-1]:n},useMedium:function(u){var r=t(u,o);return e.push(r),function(){e=e.filter(function(i){return i!==r})}},assignSyncMedium:function(u){for(o=!0;e.length;){var r=e;e=[],r.forEach(u)}e={push:function(i){return u(i)},filter:function(){return e}}},assignMedium:function(u){o=!0;var r=[];if(e.length){var i=e;e=[],i.forEach(u),r=e}var s=function(){var f=r;r=[],f.forEach(u)},a=function(){return Promise.resolve().then(s)};a(),e={push:function(f){r.push(f),a()},filter:function(f){return r=r.filter(f),e}}}};return c}function m(n){n===void 0&&(n={});var t=h(null);return t.options=d.__assign({async:!0,ssr:!1},n),t}exports.createSidecarMedium=m;
|
|
2
|
-
//# sourceMappingURL=index.cjs532.js.map
|
package/dist/index.cjs532.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs532.js","sources":["../node_modules/use-sidecar/dist/es2015/medium.js"],"sourcesContent":["import { __assign } from \"tslib\";\nfunction ItoI(a) {\n return a;\n}\nfunction innerCreateMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n var buffer = [];\n var assigned = false;\n var medium = {\n read: function () {\n if (assigned) {\n throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');\n }\n if (buffer.length) {\n return buffer[buffer.length - 1];\n }\n return defaults;\n },\n useMedium: function (data) {\n var item = middleware(data, assigned);\n buffer.push(item);\n return function () {\n buffer = buffer.filter(function (x) { return x !== item; });\n };\n },\n assignSyncMedium: function (cb) {\n assigned = true;\n while (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n }\n buffer = {\n push: function (x) { return cb(x); },\n filter: function () { return buffer; },\n };\n },\n assignMedium: function (cb) {\n assigned = true;\n var pendingQueue = [];\n if (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n pendingQueue = buffer;\n }\n var executeQueue = function () {\n var cbs = pendingQueue;\n pendingQueue = [];\n cbs.forEach(cb);\n };\n var cycle = function () { return Promise.resolve().then(executeQueue); };\n cycle();\n buffer = {\n push: function (x) {\n pendingQueue.push(x);\n cycle();\n },\n filter: function (filter) {\n pendingQueue = pendingQueue.filter(filter);\n return buffer;\n },\n };\n },\n };\n return medium;\n}\nexport function createMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n return innerCreateMedium(defaults, middleware);\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function createSidecarMedium(options) {\n if (options === void 0) { options = {}; }\n var medium = innerCreateMedium(null);\n medium.options = __assign({ async: true, ssr: false }, options);\n return medium;\n}\n"],"names":["ItoI","a","innerCreateMedium","defaults","middleware","buffer","assigned","medium","data","item","x","cb","cbs","pendingQueue","executeQueue","cycle","filter","createSidecarMedium","options","__assign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CACV,CACJ,CACJ,CACJ,EACD,OAAOE,CACX,CAMO,SAASU,EAAoBC,EAAS,CACrCA,IAAY,SAAUA,EAAU,CAAA,GACpC,IAAIX,EAASL,EAAkB,IAAI,EACnC,OAAAK,EAAO,QAAUY,EAAAA,SAAS,CAAE,MAAO,GAAM,IAAK,EAAO,EAAED,CAAO,EACvDX,CACX","x_google_ignoreList":[0]}
|
package/dist/index.cjs579.js
DELETED
package/dist/index.cjs579.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs579.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.js"],"sourcesContent":["function e(n,r){return Object.prototype.hasOwnProperty.call(n,r)}export{e as hasOwnProperty};\n//# sourceMappingURL=has-own-property.js.map\n"],"names":["e","n","r"],"mappings":"gFAAA,SAASA,EAAEC,EAAEC,EAAE,CAAC,OAAO,OAAO,UAAU,eAAe,KAAKD,EAAEC,CAAC,CAAC","x_google_ignoreList":[0]}
|
package/dist/index.cjs584.js
DELETED
package/dist/index.cjs584.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs584.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.es469.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as f from "react";
|
|
2
|
-
function l(n, o) {
|
|
3
|
-
if (typeof n == "function")
|
|
4
|
-
return n(o);
|
|
5
|
-
n != null && (n.current = o);
|
|
6
|
-
}
|
|
7
|
-
function i(...n) {
|
|
8
|
-
return (o) => {
|
|
9
|
-
let u = !1;
|
|
10
|
-
const c = n.map((t) => {
|
|
11
|
-
const e = l(t, o);
|
|
12
|
-
return !u && typeof e == "function" && (u = !0), e;
|
|
13
|
-
});
|
|
14
|
-
if (u)
|
|
15
|
-
return () => {
|
|
16
|
-
for (let t = 0; t < c.length; t++) {
|
|
17
|
-
const e = c[t];
|
|
18
|
-
typeof e == "function" ? e() : l(n[t], null);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function s(...n) {
|
|
24
|
-
return f.useCallback(i(...n), n);
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
i as composeRefs,
|
|
28
|
-
s as useComposedRefs
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=index.es469.js.map
|
package/dist/index.es469.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es469.js","sources":["../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":";AAEA,SAASA,EAAOC,GAAKC,GAAO;AAC1B,MAAI,OAAOD,KAAQ;AACjB,WAAOA,EAAIC,CAAK;AACX,EAAID,KAAQ,SACjBA,EAAI,UAAUC;AAElB;AACA,SAASC,KAAeC,GAAM;AAC5B,SAAO,CAACC,MAAS;AACf,QAAIC,IAAa;AACjB,UAAMC,IAAWH,EAAK,IAAI,CAACH,MAAQ;AACjC,YAAMO,IAAUR,EAAOC,GAAKI,CAAI;AAChC,aAAI,CAACC,KAAc,OAAOE,KAAW,eACnCF,IAAa,KAERE;AAAA,IACb,CAAK;AACD,QAAIF;AACF,aAAO,MAAM;AACX,iBAASG,IAAI,GAAGA,IAAIF,EAAS,QAAQE,KAAK;AACxC,gBAAMD,IAAUD,EAASE,CAAC;AAC1B,UAAI,OAAOD,KAAW,aACpBA,EAAS,IAETR,EAAOI,EAAKK,CAAC,GAAG,IAAI;AAAA,QAEhC;AAAA,MACO;AAAA,EAEJ;AACH;AACA,SAASC,KAAmBN,GAAM;AAChC,SAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,GAAGA,CAAI;AACrD;","x_google_ignoreList":[0]}
|
package/dist/index.es470.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import * as u from "react";
|
|
2
|
-
import { j as h } from "./index.es241.js";
|
|
3
|
-
function j(e, c) {
|
|
4
|
-
const o = u.createContext(c), a = (r) => {
|
|
5
|
-
const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
|
|
6
|
-
return /* @__PURE__ */ h.jsx(o.Provider, { value: s, children: t });
|
|
7
|
-
};
|
|
8
|
-
a.displayName = e + "Provider";
|
|
9
|
-
function i(r) {
|
|
10
|
-
const t = u.useContext(o);
|
|
11
|
-
if (t) return t;
|
|
12
|
-
if (c !== void 0) return c;
|
|
13
|
-
throw new Error(`\`${r}\` must be used within \`${e}\``);
|
|
14
|
-
}
|
|
15
|
-
return [a, i];
|
|
16
|
-
}
|
|
17
|
-
function w(e, c = []) {
|
|
18
|
-
let o = [];
|
|
19
|
-
function a(r, t) {
|
|
20
|
-
const n = u.createContext(t), s = o.length;
|
|
21
|
-
o = [...o, t];
|
|
22
|
-
const d = (m) => {
|
|
23
|
-
var S;
|
|
24
|
-
const { scope: x, children: C, ...p } = m, v = ((S = x == null ? void 0 : x[e]) == null ? void 0 : S[s]) || n, P = u.useMemo(() => p, Object.values(p));
|
|
25
|
-
return /* @__PURE__ */ h.jsx(v.Provider, { value: P, children: C });
|
|
26
|
-
};
|
|
27
|
-
d.displayName = r + "Provider";
|
|
28
|
-
function f(m, x) {
|
|
29
|
-
var v;
|
|
30
|
-
const C = ((v = x == null ? void 0 : x[e]) == null ? void 0 : v[s]) || n, p = u.useContext(C);
|
|
31
|
-
if (p) return p;
|
|
32
|
-
if (t !== void 0) return t;
|
|
33
|
-
throw new Error(`\`${m}\` must be used within \`${r}\``);
|
|
34
|
-
}
|
|
35
|
-
return [d, f];
|
|
36
|
-
}
|
|
37
|
-
const i = () => {
|
|
38
|
-
const r = o.map((t) => u.createContext(t));
|
|
39
|
-
return function(n) {
|
|
40
|
-
const s = (n == null ? void 0 : n[e]) || r;
|
|
41
|
-
return u.useMemo(
|
|
42
|
-
() => ({ [`__scope${e}`]: { ...n, [e]: s } }),
|
|
43
|
-
[n, s]
|
|
44
|
-
);
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
return i.scopeName = e, [a, l(i, ...c)];
|
|
48
|
-
}
|
|
49
|
-
function l(...e) {
|
|
50
|
-
const c = e[0];
|
|
51
|
-
if (e.length === 1) return c;
|
|
52
|
-
const o = () => {
|
|
53
|
-
const a = e.map((i) => ({
|
|
54
|
-
useScope: i(),
|
|
55
|
-
scopeName: i.scopeName
|
|
56
|
-
}));
|
|
57
|
-
return function(r) {
|
|
58
|
-
const t = a.reduce((n, { useScope: s, scopeName: d }) => {
|
|
59
|
-
const m = s(r)[`__scope${d}`];
|
|
60
|
-
return { ...n, ...m };
|
|
61
|
-
}, {});
|
|
62
|
-
return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
return o.scopeName = c.scopeName, o;
|
|
66
|
-
}
|
|
67
|
-
export {
|
|
68
|
-
j as createContext,
|
|
69
|
-
w as createContextScope
|
|
70
|
-
};
|
|
71
|
-
//# sourceMappingURL=index.es470.js.map
|
package/dist/index.es470.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es470.js","sources":["../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContext2","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","jsx","useContext2","consumerName","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","BaseContext","index","scope","_a","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope"],"mappings":";;AAGA,SAASA,EAAeC,GAAmBC,GAAgB;AACzD,QAAMC,IAAUC,EAAM,cAAcF,CAAc,GAC5CG,IAAW,CAACC,MAAU;AAC1B,UAAM,EAAE,UAAAC,GAAU,GAAGC,EAAO,IAAKF,GAC3BG,IAAQL,EAAM,QAAQ,MAAMI,GAAS,OAAO,OAAOA,CAAO,CAAC;AACjE,WAAuBE,gBAAAA,EAAAA,IAAIP,EAAQ,UAAU,EAAE,OAAAM,GAAO,UAAAF,EAAQ,CAAE;AAAA,EACjE;AACD,EAAAF,EAAS,cAAcJ,IAAoB;AAC3C,WAASU,EAAYC,GAAc;AACjC,UAAMJ,IAAUJ,EAAM,WAAWD,CAAO;AACxC,QAAIK,EAAS,QAAOA;AACpB,QAAIN,MAAmB,OAAQ,QAAOA;AACtC,UAAM,IAAI,MAAM,KAAKU,CAAY,4BAA4BX,CAAiB,IAA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M,GAAO,CAACN,CAAS,GAAGU,EAAQ;QACnE,CAACJ,GAAOI,CAAQ;AAAA,MACjB;AAAA,IACF;AAAA,EACF;AACD,SAAAF,EAAY,YAAYR,GACjB,CAACG,GAAgBQ,EAAqBH,GAAa,GAAGP,CAAsB,CAAC;AACtF;AACA,SAASU,KAAwBC,GAAQ;AACvC,QAAMC,IAAYD,EAAO,CAAC;AAC1B,MAAIA,EAAO,WAAW,EAAG,QAAOC;AAChC,QAAML,IAAc,MAAM;AACxB,UAAMM,IAAaF,EAAO,IAAI,CAACG,OAAkB;AAAA,MAC/C,UAAUA,EAAc;AAAA,MACxB,WAAWA,EAAa;AAAA,IAC9B,EAAM;AACF,WAAO,SAA2BC,GAAgB;AAChD,YAAMC,IAAaH,EAAW,OAAO,CAACI,GAAa,EAAE,UAAAC,GAAU,WAAAnB,QAAgB;AAE7E,cAAMoB,IADaD,EAASH,CAAc,EACV,UAAUhB,CAAS,EAAE;AACrD,eAAO,EAAE,GAAGkB,GAAa,GAAGE,EAAc;AAAA,MAC3C,GAAE,EAAE;AACL,aAAO9B,EAAM,QAAQ,OAAO,EAAE,CAAC,UAAUuB,EAAU,SAAS,EAAE,GAAGI,EAAU,IAAK,CAACA,CAAU,CAAC;AAAA,IAC7F;AAAA,EACF;AACD,SAAAT,EAAY,YAAYK,EAAU,WAC3BL;AACT;","x_google_ignoreList":[0]}
|
package/dist/index.es529.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { styleHookSingleton as o } from "./index.es535.js";
|
|
2
|
-
var s = function() {
|
|
3
|
-
var e = o(), n = function(t) {
|
|
4
|
-
var r = t.styles, l = t.dynamic;
|
|
5
|
-
return e(r, l), null;
|
|
6
|
-
};
|
|
7
|
-
return n;
|
|
8
|
-
};
|
|
9
|
-
export {
|
|
10
|
-
s as styleSingleton
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=index.es529.js.map
|
package/dist/index.es529.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es529.js","sources":["../node_modules/react-style-singleton/dist/es2015/component.js"],"sourcesContent":["import { styleHookSingleton } from './hook';\n/**\n * create a Component to add styles on demand\n * - styles are added when first instance is mounted\n * - styles are removed when the last instance is unmounted\n * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior\n */\nexport var styleSingleton = function () {\n var useStyle = styleHookSingleton();\n var Sheet = function (_a) {\n var styles = _a.styles, dynamic = _a.dynamic;\n useStyle(styles, dynamic);\n return null;\n };\n return Sheet;\n};\n"],"names":["styleSingleton","useStyle","styleHookSingleton","Sheet","_a","styles","dynamic"],"mappings":";AAOU,IAACA,IAAiB,WAAY;AACpC,MAAIC,IAAWC,EAAoB,GAC/BC,IAAQ,SAAUC,GAAI;AACtB,QAAIC,IAASD,EAAG,QAAQE,IAAUF,EAAG;AACrC,WAAAH,EAASI,GAAQC,CAAO,GACjB;AAAA,EACV;AACD,SAAOH;AACX;","x_google_ignoreList":[0]}
|
package/dist/index.es530.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
var r = !1;
|
|
2
|
-
if (typeof window < "u")
|
|
3
|
-
try {
|
|
4
|
-
var e = Object.defineProperty({}, "passive", {
|
|
5
|
-
get: function() {
|
|
6
|
-
return r = !0, !0;
|
|
7
|
-
}
|
|
8
|
-
});
|
|
9
|
-
window.addEventListener("test", e, e), window.removeEventListener("test", e, e);
|
|
10
|
-
} catch {
|
|
11
|
-
r = !1;
|
|
12
|
-
}
|
|
13
|
-
var a = r ? { passive: !1 } : !1;
|
|
14
|
-
export {
|
|
15
|
-
a as nonPassive
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=index.es530.js.map
|
package/dist/index.es530.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es530.js","sources":["../node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js"],"sourcesContent":["var passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n var options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n return true;\n },\n });\n // @ts-ignore\n window.addEventListener('test', options, options);\n // @ts-ignore\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\nexport var nonPassive = passiveSupported ? { passive: false } : false;\n"],"names":["passiveSupported","options","nonPassive"],"mappings":"AAAA,IAAIA,IAAmB;AACvB,IAAI,OAAO,SAAW;AAClB,MAAI;AACA,QAAIC,IAAU,OAAO,eAAe,CAAA,GAAI,WAAW;AAAA,MAC/C,KAAK,WAAY;AACb,eAAAD,IAAmB,IACZ;AAAA,MACV;AAAA,IACb,CAAS;AAED,WAAO,iBAAiB,QAAQC,GAASA,CAAO,GAEhD,OAAO,oBAAoB,QAAQA,GAASA,CAAO;AAAA,EAC3D,QACgB;AACR,IAAAD,IAAmB;AAAA,EAC3B;AAEU,IAACE,IAAaF,IAAmB,EAAE,SAAS,GAAK,IAAK;","x_google_ignoreList":[0]}
|
package/dist/index.es531.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
var p = function(e) {
|
|
2
|
-
return e.tagName === "TEXTAREA";
|
|
3
|
-
}, w = function(e, r) {
|
|
4
|
-
if (!(e instanceof Element))
|
|
5
|
-
return !1;
|
|
6
|
-
var o = window.getComputedStyle(e);
|
|
7
|
-
return (
|
|
8
|
-
// not-not-scrollable
|
|
9
|
-
o[r] !== "hidden" && // contains scroll inside self
|
|
10
|
-
!(o.overflowY === o.overflowX && !p(e) && o[r] === "visible")
|
|
11
|
-
);
|
|
12
|
-
}, y = function(e) {
|
|
13
|
-
return w(e, "overflowY");
|
|
14
|
-
}, H = function(e) {
|
|
15
|
-
return w(e, "overflowX");
|
|
16
|
-
}, R = function(e, r) {
|
|
17
|
-
var o = r.ownerDocument, t = r;
|
|
18
|
-
do {
|
|
19
|
-
typeof ShadowRoot < "u" && t instanceof ShadowRoot && (t = t.host);
|
|
20
|
-
var v = g(e, t);
|
|
21
|
-
if (v) {
|
|
22
|
-
var n = b(e, t), a = n[1], l = n[2];
|
|
23
|
-
if (a > l)
|
|
24
|
-
return !0;
|
|
25
|
-
}
|
|
26
|
-
t = t.parentNode;
|
|
27
|
-
} while (t && t !== o.body);
|
|
28
|
-
return !1;
|
|
29
|
-
}, B = function(e) {
|
|
30
|
-
var r = e.scrollTop, o = e.scrollHeight, t = e.clientHeight;
|
|
31
|
-
return [
|
|
32
|
-
r,
|
|
33
|
-
o,
|
|
34
|
-
t
|
|
35
|
-
];
|
|
36
|
-
}, V = function(e) {
|
|
37
|
-
var r = e.scrollLeft, o = e.scrollWidth, t = e.clientWidth;
|
|
38
|
-
return [
|
|
39
|
-
r,
|
|
40
|
-
o,
|
|
41
|
-
t
|
|
42
|
-
];
|
|
43
|
-
}, g = function(e, r) {
|
|
44
|
-
return e === "v" ? y(r) : H(r);
|
|
45
|
-
}, b = function(e, r) {
|
|
46
|
-
return e === "v" ? B(r) : V(r);
|
|
47
|
-
}, D = function(e, r) {
|
|
48
|
-
return e === "h" && r === "rtl" ? -1 : 1;
|
|
49
|
-
}, W = function(e, r, o, t, v) {
|
|
50
|
-
var n = D(e, window.getComputedStyle(r).direction), a = n * t, l = o.target, f = r.contains(l), i = !1, s = a > 0, d = 0, h = 0;
|
|
51
|
-
do {
|
|
52
|
-
var c = b(e, l), u = c[0], m = c[1], C = c[2], S = m - C - n * u;
|
|
53
|
-
(u || S) && g(e, l) && (d += S, h += u), l instanceof ShadowRoot ? l = l.host : l = l.parentNode;
|
|
54
|
-
} while (
|
|
55
|
-
// portaled content
|
|
56
|
-
!f && l !== document.body || // self content
|
|
57
|
-
f && (r.contains(l) || r === l)
|
|
58
|
-
);
|
|
59
|
-
return (s && Math.abs(d) < 1 || !s && Math.abs(h) < 1) && (i = !0), i;
|
|
60
|
-
};
|
|
61
|
-
export {
|
|
62
|
-
W as handleScroll,
|
|
63
|
-
R as locationCouldBeScrolled
|
|
64
|
-
};
|
|
65
|
-
//# sourceMappingURL=index.es531.js.map
|
package/dist/index.es531.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es531.js","sources":["../node_modules/react-remove-scroll/dist/es2015/handleScroll.js"],"sourcesContent":["var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n if (!(node instanceof Element)) {\n return false;\n }\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nexport var locationCouldBeScrolled = function (axis, node) {\n var ownerDocument = node.ownerDocument;\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];\n if (scrollHeight > clientHeight) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== ownerDocument.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n if (target instanceof ShadowRoot) {\n target = target.host;\n }\n else {\n target = target.parentNode;\n }\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n // handle epsilon around 0 (non standard zoom levels)\n if (isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n"],"names":["alwaysContainsScroll","node","elementCanBeScrolled","overflow","styles","elementCouldBeVScrolled","elementCouldBeHScrolled","locationCouldBeScrolled","axis","ownerDocument","current","isScrollable","elementCouldBeScrolled","_a","getScrollVariables","scrollHeight","clientHeight","getVScrollVariables","scrollTop","getHScrollVariables","scrollLeft","scrollWidth","clientWidth","getDirectionFactor","direction","handleScroll","endTarget","event","sourceDelta","noOverscroll","directionFactor","delta","target","targetInLock","shouldCancelScroll","isDeltaPositive","availableScroll","availableScrollTop","position","scroll_1","capacity","elementScroll"],"mappings":"AAAA,IAAIA,IAAuB,SAAUC,GAAM;AAEvC,SAAOA,EAAK,YAAY;AAC5B,GACIC,IAAuB,SAAUD,GAAME,GAAU;AACjD,MAAI,EAAEF,aAAgB;AAClB,WAAO;AAEX,MAAIG,IAAS,OAAO,iBAAiBH,CAAI;AACzC;AAAA;AAAA,IAEAG,EAAOD,CAAQ,MAAM;AAAA,IAEjB,EAAEC,EAAO,cAAcA,EAAO,aAAa,CAACJ,EAAqBC,CAAI,KAAKG,EAAOD,CAAQ,MAAM;AAAA;AACvG,GACIE,IAA0B,SAAUJ,GAAM;AAAE,SAAOC,EAAqBD,GAAM,WAAW;AAAI,GAC7FK,IAA0B,SAAUL,GAAM;AAAE,SAAOC,EAAqBD,GAAM,WAAW;AAAI,GACtFM,IAA0B,SAAUC,GAAMP,GAAM;AACvD,MAAIQ,IAAgBR,EAAK,eACrBS,IAAUT;AACd,KAAG;AAEC,IAAI,OAAO,aAAe,OAAeS,aAAmB,eACxDA,IAAUA,EAAQ;AAEtB,QAAIC,IAAeC,EAAuBJ,GAAME,CAAO;AACvD,QAAIC,GAAc;AACd,UAAIE,IAAKC,EAAmBN,GAAME,CAAO,GAAGK,IAAeF,EAAG,CAAC,GAAGG,IAAeH,EAAG,CAAC;AACrF,UAAIE,IAAeC;AACf,eAAO;AAAA,IAEvB;AACQ,IAAAN,IAAUA,EAAQ;AAAA,EAC1B,SAAaA,KAAWA,MAAYD,EAAc;AAC9C,SAAO;AACX,GACIQ,IAAsB,SAAUJ,GAAI;AACpC,MAAIK,IAAYL,EAAG,WAAWE,IAAeF,EAAG,cAAcG,IAAeH,EAAG;AAChF,SAAO;AAAA,IACHK;AAAA,IACAH;AAAA,IACAC;AAAA,EACH;AACL,GACIG,IAAsB,SAAUN,GAAI;AACpC,MAAIO,IAAaP,EA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