@rpcbase/ui 0.180.0 → 0.181.0
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/index103.js +36 -36
- package/dist/index115.js +6 -6
- package/dist/index122.js +1 -1
- package/dist/index124.js +2 -2
- package/dist/index126.js +1 -1
- package/dist/index147.js +1 -1
- package/dist/index148.js +40 -599
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +205 -5
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +22 -69
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +25 -2
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +378 -342
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +595 -251
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +5 -60
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +62 -40
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +2 -170
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +356 -102
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +261 -24
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +61 -8
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +46 -4
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +169 -5
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +109 -4
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +24 -466
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +8 -186
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +4 -107
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +5 -262
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +4 -9
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +462 -38
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +185 -4
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +103 -42
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +253 -196
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +10 -22
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +42 -24
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +4 -399
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +15 -57
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +5 -8
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +4 -65
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +57 -18
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +64 -14
- package/dist/index179.js.map +1 -1
- package/dist/index180.js +6 -5
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +4 -5
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +7 -6
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +17 -4
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +5 -7
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +5 -17
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +13 -5
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +10 -5
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +14 -13
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +14 -10
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +5 -14
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +6 -14
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +7 -5
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +5 -5
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +9 -7
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +5 -6
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +5 -9
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +9 -5
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +5 -5
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +5 -9
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +4 -5
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +11 -5
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +10 -4
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +8 -9
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +11 -10
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +11 -10
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +10 -11
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +6 -10
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +6 -10
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +5 -7
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +5 -5
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +7 -5
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +6 -6
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +55 -7
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +8 -6
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +18 -54
- package/dist/index215.js.map +1 -1
- package/dist/index220.js +3 -3
- package/dist/index227.js +1 -1
- package/dist/index23.js +1 -1
- package/dist/index235.js +22 -65
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +27 -179
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +5 -47
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +66 -12
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +176 -150
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +43 -27
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +13 -9
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +147 -40
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +29 -10
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +9 -44
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +40 -88
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +10 -85
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +41 -102
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +88 -45
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +85 -10
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +96 -28
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +52 -8
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +10 -115
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +36 -16
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +8 -15
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +116 -3
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +16 -35
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +14 -19
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +3 -9
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +36 -8
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +19 -18
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +9 -28
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +7 -15
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +19 -24
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +29 -29
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +17 -5
- package/dist/index265.js.map +1 -1
- package/dist/index269.js +5 -21
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +3 -5
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +24 -3
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +111 -22
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +14 -111
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +523 -14
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +114 -511
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +117 -111
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +20 -133
- package/dist/index277.js.map +1 -1
- package/dist/index285.js +2 -2
- package/dist/index288.js +1 -1
- package/dist/index289.js +2 -2
- package/dist/index29.js +5 -5
- package/dist/index291.js +1 -1
- package/dist/index292.js +1 -1
- package/dist/index293.js +1 -1
- package/dist/index294.js +1 -1
- package/dist/index295.js +69 -65
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +8 -68
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +14 -9
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +66 -14
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +64 -65
- package/dist/index299.js.map +1 -1
- package/dist/index313.js +11 -21
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +26 -11
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +4 -27
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +22 -4
- package/dist/index316.js.map +1 -1
- package/dist/index33.js +1 -1
- package/dist/index37.js +1 -1
- package/dist/index38.js +2 -2
- package/dist/index41.js +2 -2
- package/dist/index42.js +20 -20
- package/dist/index46.js +1 -1
- package/dist/index47.js +1 -1
- package/dist/index48.js +7 -205
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +33 -6
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +26 -33
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +7 -26
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +11 -7
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +205 -12
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +3 -5
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +47 -7
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +50 -5
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +7 -3
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +14 -47
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +129 -46
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +10 -7
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +215 -13
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +12 -133
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +46 -10
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +46 -213
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +4 -13
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +5 -46
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +28 -50
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +49 -3
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +9 -6
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +54 -28
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +2 -50
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +2 -9
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +6 -2
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +8 -2
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +5 -53
- package/dist/index75.js.map +1 -1
- package/package.json +1 -1
package/dist/index299.js
CHANGED
|
@@ -1,69 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import { __assign as d } from "./index235.js";
|
|
2
|
+
function l(r) {
|
|
3
|
+
return r;
|
|
4
|
+
}
|
|
5
|
+
function h(r, t) {
|
|
6
|
+
t === void 0 && (t = l);
|
|
7
|
+
var e = [], o = !1, c = {
|
|
8
|
+
read: function() {
|
|
9
|
+
if (o)
|
|
10
|
+
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
11
|
+
return e.length ? e[e.length - 1] : r;
|
|
12
|
+
},
|
|
13
|
+
useMedium: function(u) {
|
|
14
|
+
var n = t(u, o);
|
|
15
|
+
return e.push(n), function() {
|
|
16
|
+
e = e.filter(function(i) {
|
|
17
|
+
return i !== n;
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
assignSyncMedium: function(u) {
|
|
22
|
+
for (o = !0; e.length; ) {
|
|
23
|
+
var n = e;
|
|
24
|
+
e = [], n.forEach(u);
|
|
25
|
+
}
|
|
26
|
+
e = {
|
|
27
|
+
push: function(i) {
|
|
28
|
+
return u(i);
|
|
29
|
+
},
|
|
30
|
+
filter: function() {
|
|
31
|
+
return e;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
assignMedium: function(u) {
|
|
36
|
+
o = !0;
|
|
37
|
+
var n = [];
|
|
38
|
+
if (e.length) {
|
|
39
|
+
var i = e;
|
|
40
|
+
e = [], i.forEach(u), n = e;
|
|
41
|
+
}
|
|
42
|
+
var s = function() {
|
|
43
|
+
var f = n;
|
|
44
|
+
n = [], f.forEach(u);
|
|
45
|
+
}, a = function() {
|
|
46
|
+
return Promise.resolve().then(s);
|
|
47
|
+
};
|
|
48
|
+
a(), e = {
|
|
49
|
+
push: function(f) {
|
|
50
|
+
n.push(f), a();
|
|
51
|
+
},
|
|
52
|
+
filter: function(f) {
|
|
53
|
+
return n = n.filter(f), e;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
25
56
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
l
|
|
35
|
-
];
|
|
36
|
-
}, p = function(r) {
|
|
37
|
-
var e = r.scrollLeft, t = r.scrollWidth, l = r.clientWidth;
|
|
38
|
-
return [
|
|
39
|
-
e,
|
|
40
|
-
t,
|
|
41
|
-
l
|
|
42
|
-
];
|
|
43
|
-
}, g = function(r, e) {
|
|
44
|
-
return r === "v" ? D(e) : E(e);
|
|
45
|
-
}, m = function(r, e) {
|
|
46
|
-
return r === "v" ? H(e) : p(e);
|
|
47
|
-
}, B = function(r, e) {
|
|
48
|
-
return r === "h" && e === "rtl" ? -1 : 1;
|
|
49
|
-
}, V = function(r, e, t, l, f) {
|
|
50
|
-
var n = B(r, window.getComputedStyle(e).direction), i = n * l, o = t.target, d = e.contains(o), c = !1, s = i > 0, h = 0, S = 0;
|
|
51
|
-
do {
|
|
52
|
-
if (!o)
|
|
53
|
-
break;
|
|
54
|
-
var u = m(r, o), v = u[0], C = u[1], y = u[2], w = C - y - n * v;
|
|
55
|
-
(v || w) && g(r, o) && (h += w, S += v);
|
|
56
|
-
var a = o.parentNode;
|
|
57
|
-
o = a && a.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? a.host : a;
|
|
58
|
-
} while (
|
|
59
|
-
// portaled content
|
|
60
|
-
!d && o !== document.body || // self content
|
|
61
|
-
d && (e.contains(o) || e === o)
|
|
62
|
-
);
|
|
63
|
-
return (s && Math.abs(h) < 1 || !s && Math.abs(S) < 1) && (c = !0), c;
|
|
64
|
-
};
|
|
57
|
+
};
|
|
58
|
+
return c;
|
|
59
|
+
}
|
|
60
|
+
function v(r) {
|
|
61
|
+
r === void 0 && (r = {});
|
|
62
|
+
var t = h(null);
|
|
63
|
+
return t.options = d({ async: !0, ssr: !1 }, r), t;
|
|
64
|
+
}
|
|
65
65
|
export {
|
|
66
|
-
|
|
67
|
-
T as locationCouldBeScrolled
|
|
66
|
+
v as createSidecarMedium
|
|
68
67
|
};
|
|
69
68
|
//# sourceMappingURL=index299.js.map
|
package/dist/index299.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index299.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index299.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"],"mappings":";AACA,SAASA,EAAKC,GAAG;AACb,SAAOA;AACX;AACA,SAASC,EAAkBC,GAAUC,GAAY;AAC7C,EAAIA,MAAe,WAAUA,IAAaJ;AAC1C,MAAIK,IAAS,CAAA,GACTC,IAAW,IACXC,IAAS;AAAA,IACT,MAAM,WAAY;AACd,UAAID;AACA,cAAM,IAAI,MAAM,kGAAkG;AAEtH,aAAID,EAAO,SACAA,EAAOA,EAAO,SAAS,CAAC,IAE5BF;AAAA,IACX;AAAA,IACA,WAAW,SAAUK,GAAM;AACvB,UAAIC,IAAOL,EAAWI,GAAMF,CAAQ;AACpC,aAAAD,EAAO,KAAKI,CAAI,GACT,WAAY;AACf,QAAAJ,IAASA,EAAO,OAAO,SAAUK,GAAG;AAAE,iBAAOA,MAAMD;AAAA,QAAM,CAAC;AAAA,MAC9D;AAAA,IACJ;AAAA,IACA,kBAAkB,SAAUE,GAAI;AAE5B,WADAL,IAAW,IACJD,EAAO,UAAQ;AAClB,YAAIO,IAAMP;AACV,QAAAA,IAAS,CAAA,GACTO,EAAI,QAAQD,CAAE;AAAA,MAClB;AACA,MAAAN,IAAS;AAAA,QACL,MAAM,SAAUK,GAAG;AAAE,iBAAOC,EAAGD,CAAC;AAAA,QAAG;AAAA,QACnC,QAAQ,WAAY;AAAE,iBAAOL;AAAA,QAAQ;AAAA,MACrD;AAAA,IACQ;AAAA,IACA,cAAc,SAAUM,GAAI;AACxB,MAAAL,IAAW;AACX,UAAIO,IAAe,CAAA;AACnB,UAAIR,EAAO,QAAQ;AACf,YAAIO,IAAMP;AACV,QAAAA,IAAS,CAAA,GACTO,EAAI,QAAQD,CAAE,GACdE,IAAeR;AAAA,MACnB;AACA,UAAIS,IAAe,WAAY;AAC3B,YAAIF,IAAMC;AACV,QAAAA,IAAe,CAAA,GACfD,EAAI,QAAQD,CAAE;AAAA,MAClB,GACII,IAAQ,WAAY;AAAE,eAAO,QAAQ,QAAO,EAAG,KAAKD,CAAY;AAAA,MAAG;AACvE,MAAAC,EAAK,GACLV,IAAS;AAAA,QACL,MAAM,SAAUK,GAAG;AACf,UAAAG,EAAa,KAAKH,CAAC,GACnBK,EAAK;AAAA,QACT;AAAA,QACA,QAAQ,SAAUC,GAAQ;AACtB,iBAAAH,IAAeA,EAAa,OAAOG,CAAM,GAClCX;AAAA,QACX;AAAA,MAChB;AAAA,IACQ;AAAA,EACR;AACI,SAAOE;AACX;AAMO,SAASU,EAAoBC,GAAS;AACzC,EAAIA,MAAY,WAAUA,IAAU,CAAA;AACpC,MAAIX,IAASL,EAAkB,IAAI;AACnC,SAAAK,EAAO,UAAUY,EAAS,EAAE,OAAO,IAAM,KAAK,GAAK,GAAID,CAAO,GACvDX;AACX;","x_google_ignoreList":[0]}
|
package/dist/index313.js
CHANGED
|
@@ -1,26 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}, f = function(t) {
|
|
12
|
-
if (t === void 0 && (t = "margin"), typeof window > "u")
|
|
13
|
-
return a;
|
|
14
|
-
var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
|
|
15
|
-
return {
|
|
16
|
-
left: n[0],
|
|
17
|
-
top: n[1],
|
|
18
|
-
right: n[2],
|
|
19
|
-
gap: Math.max(0, r - i + n[2] - n[0])
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { stylesheetSingleton as r } from "./index314.js";
|
|
3
|
+
var i = function() {
|
|
4
|
+
var t = r();
|
|
5
|
+
return function(e, n) {
|
|
6
|
+
o.useEffect(function() {
|
|
7
|
+
return t.add(e), function() {
|
|
8
|
+
t.remove();
|
|
9
|
+
};
|
|
10
|
+
}, [e && n]);
|
|
20
11
|
};
|
|
21
12
|
};
|
|
22
13
|
export {
|
|
23
|
-
|
|
24
|
-
a as zeroGap
|
|
14
|
+
i as styleHookSingleton
|
|
25
15
|
};
|
|
26
16
|
//# sourceMappingURL=index313.js.map
|
package/dist/index313.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index313.js","sources":["../../../node_modules/react-
|
|
1
|
+
{"version":3,"file":"index313.js","sources":["../../../node_modules/react-style-singleton/dist/es2015/hook.js"],"sourcesContent":["import * as React from 'react';\nimport { stylesheetSingleton } from './singleton';\n/**\n * creates a hook to control style singleton\n * @see {@link styleSingleton} for a safer component version\n * @example\n * ```tsx\n * const useStyle = styleHookSingleton();\n * ///\n * useStyle('body { overflow: hidden}');\n */\nexport var styleHookSingleton = function () {\n var sheet = stylesheetSingleton();\n return function (styles, isDynamic) {\n React.useEffect(function () {\n sheet.add(styles);\n return function () {\n sheet.remove();\n };\n }, [styles && isDynamic]);\n };\n};\n"],"names":["styleHookSingleton","sheet","stylesheetSingleton","styles","isDynamic","React"],"mappings":";;AAWU,IAACA,IAAqB,WAAY;AACxC,MAAIC,IAAQC,EAAmB;AAC/B,SAAO,SAAUC,GAAQC,GAAW;AAChC,IAAAC,EAAM,UAAU,WAAY;AACxB,aAAAJ,EAAM,IAAIE,CAAM,GACT,WAAY;AACf,QAAAF,EAAM,OAAM;AAAA,MAChB;AAAA,IACJ,GAAG,CAACE,KAAUC,CAAS,CAAC;AAAA,EAC5B;AACJ;","x_google_ignoreList":[0]}
|
package/dist/index314.js
CHANGED
|
@@ -1,16 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { getNonce as o } from "./index315.js";
|
|
2
|
+
function r() {
|
|
3
|
+
if (!document)
|
|
4
|
+
return null;
|
|
5
|
+
var t = document.createElement("style");
|
|
6
|
+
t.type = "text/css";
|
|
7
|
+
var e = o();
|
|
8
|
+
return e && t.setAttribute("nonce", e), t;
|
|
9
|
+
}
|
|
10
|
+
function l(t, e) {
|
|
11
|
+
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
12
|
+
}
|
|
13
|
+
function a(t) {
|
|
14
|
+
var e = document.head || document.getElementsByTagName("head")[0];
|
|
15
|
+
e.appendChild(t);
|
|
16
|
+
}
|
|
17
|
+
var c = function() {
|
|
18
|
+
var t = 0, e = null;
|
|
19
|
+
return {
|
|
20
|
+
add: function(n) {
|
|
21
|
+
t == 0 && (e = r()) && (l(e, n), a(e)), t++;
|
|
22
|
+
},
|
|
23
|
+
remove: function() {
|
|
24
|
+
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
25
|
+
}
|
|
11
26
|
};
|
|
12
27
|
};
|
|
13
28
|
export {
|
|
14
|
-
|
|
29
|
+
c as stylesheetSingleton
|
|
15
30
|
};
|
|
16
31
|
//# sourceMappingURL=index314.js.map
|
package/dist/index314.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index314.js","sources":["../../../node_modules/react-style-singleton/dist/es2015/
|
|
1
|
+
{"version":3,"file":"index314.js","sources":["../../../node_modules/react-style-singleton/dist/es2015/singleton.js"],"sourcesContent":["import { getNonce } from 'get-nonce';\nfunction makeStyleTag() {\n if (!document)\n return null;\n var tag = document.createElement('style');\n tag.type = 'text/css';\n var nonce = getNonce();\n if (nonce) {\n tag.setAttribute('nonce', nonce);\n }\n return tag;\n}\nfunction injectStyles(tag, css) {\n // @ts-ignore\n if (tag.styleSheet) {\n // @ts-ignore\n tag.styleSheet.cssText = css;\n }\n else {\n tag.appendChild(document.createTextNode(css));\n }\n}\nfunction insertStyleTag(tag) {\n var head = document.head || document.getElementsByTagName('head')[0];\n head.appendChild(tag);\n}\nexport var stylesheetSingleton = function () {\n var counter = 0;\n var stylesheet = null;\n return {\n add: function (style) {\n if (counter == 0) {\n if ((stylesheet = makeStyleTag())) {\n injectStyles(stylesheet, style);\n insertStyleTag(stylesheet);\n }\n }\n counter++;\n },\n remove: function () {\n counter--;\n if (!counter && stylesheet) {\n stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);\n stylesheet = null;\n }\n },\n };\n};\n"],"names":["makeStyleTag","tag","nonce","getNonce","injectStyles","css","insertStyleTag","head","stylesheetSingleton","counter","stylesheet","style"],"mappings":";AACA,SAASA,IAAe;AACpB,MAAI,CAAC;AACD,WAAO;AACX,MAAIC,IAAM,SAAS,cAAc,OAAO;AACxC,EAAAA,EAAI,OAAO;AACX,MAAIC,IAAQC,EAAQ;AACpB,SAAID,KACAD,EAAI,aAAa,SAASC,CAAK,GAE5BD;AACX;AACA,SAASG,EAAaH,GAAKI,GAAK;AAE5B,EAAIJ,EAAI,aAEJA,EAAI,WAAW,UAAUI,IAGzBJ,EAAI,YAAY,SAAS,eAAeI,CAAG,CAAC;AAEpD;AACA,SAASC,EAAeL,GAAK;AACzB,MAAIM,IAAO,SAAS,QAAQ,SAAS,qBAAqB,MAAM,EAAE,CAAC;AACnE,EAAAA,EAAK,YAAYN,CAAG;AACxB;AACU,IAACO,IAAsB,WAAY;AACzC,MAAIC,IAAU,GACVC,IAAa;AACjB,SAAO;AAAA,IACH,KAAK,SAAUC,GAAO;AAClB,MAAIF,KAAW,MACNC,IAAaV,SACdI,EAAaM,GAAYC,CAAK,GAC9BL,EAAeI,CAAU,IAGjCD;AAAA,IACJ;AAAA,IACA,QAAQ,WAAY;AAChB,MAAAA,KACI,CAACA,KAAWC,MACZA,EAAW,cAAcA,EAAW,WAAW,YAAYA,CAAU,GACrEA,IAAa;AAAA,IAErB;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
|
package/dist/index315.js
CHANGED
|
@@ -1,31 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return null;
|
|
5
|
-
var t = document.createElement("style");
|
|
6
|
-
t.type = "text/css";
|
|
7
|
-
var e = o();
|
|
8
|
-
return e && t.setAttribute("nonce", e), t;
|
|
9
|
-
}
|
|
10
|
-
function l(t, e) {
|
|
11
|
-
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
12
|
-
}
|
|
13
|
-
function a(t) {
|
|
14
|
-
var e = document.head || document.getElementsByTagName("head")[0];
|
|
15
|
-
e.appendChild(t);
|
|
16
|
-
}
|
|
17
|
-
var c = function() {
|
|
18
|
-
var t = 0, e = null;
|
|
19
|
-
return {
|
|
20
|
-
add: function(n) {
|
|
21
|
-
t == 0 && (e = r()) && (l(e, n), a(e)), t++;
|
|
22
|
-
},
|
|
23
|
-
remove: function() {
|
|
24
|
-
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
1
|
+
var e = function() {
|
|
2
|
+
if (typeof __webpack_nonce__ < "u")
|
|
3
|
+
return __webpack_nonce__;
|
|
27
4
|
};
|
|
28
5
|
export {
|
|
29
|
-
|
|
6
|
+
e as getNonce
|
|
30
7
|
};
|
|
31
8
|
//# sourceMappingURL=index315.js.map
|
package/dist/index315.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index315.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index315.js","sources":["../../../node_modules/get-nonce/dist/es2015/index.js"],"sourcesContent":["var currentNonce;\nexport var setNonce = function (nonce) {\n currentNonce = nonce;\n};\nexport var getNonce = function () {\n if (currentNonce) {\n return currentNonce;\n }\n if (typeof __webpack_nonce__ !== 'undefined') {\n return __webpack_nonce__;\n }\n return undefined;\n};\n"],"names":["getNonce"],"mappings":"AAIU,IAACA,IAAW,WAAY;AAI9B,MAAI,OAAO,oBAAsB;AAC7B,WAAO;AAGf;","x_google_ignoreList":[0]}
|
package/dist/index316.js
CHANGED
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var a = {
|
|
2
|
+
left: 0,
|
|
3
|
+
top: 0,
|
|
4
|
+
right: 0,
|
|
5
|
+
gap: 0
|
|
6
|
+
}, e = function(t) {
|
|
7
|
+
return parseInt(t || "", 10) || 0;
|
|
8
|
+
}, o = function(t) {
|
|
9
|
+
var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
|
|
10
|
+
return [e(i), e(r), e(d)];
|
|
11
|
+
}, f = function(t) {
|
|
12
|
+
if (t === void 0 && (t = "margin"), typeof window > "u")
|
|
13
|
+
return a;
|
|
14
|
+
var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
|
|
15
|
+
return {
|
|
16
|
+
left: n[0],
|
|
17
|
+
top: n[1],
|
|
18
|
+
right: n[2],
|
|
19
|
+
gap: Math.max(0, r - i + n[2] - n[0])
|
|
20
|
+
};
|
|
4
21
|
};
|
|
5
22
|
export {
|
|
6
|
-
|
|
23
|
+
f as getGapWidth,
|
|
24
|
+
a as zeroGap
|
|
7
25
|
};
|
|
8
26
|
//# sourceMappingURL=index316.js.map
|
package/dist/index316.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index316.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index316.js","sources":["../../../node_modules/react-remove-scroll-bar/dist/es2015/utils.js"],"sourcesContent":["export var zeroGap = {\n left: 0,\n top: 0,\n right: 0,\n gap: 0,\n};\nvar parse = function (x) { return parseInt(x || '', 10) || 0; };\nvar getOffset = function (gapMode) {\n var cs = window.getComputedStyle(document.body);\n var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];\n var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];\n var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];\n return [parse(left), parse(top), parse(right)];\n};\nexport var getGapWidth = function (gapMode) {\n if (gapMode === void 0) { gapMode = 'margin'; }\n if (typeof window === 'undefined') {\n return zeroGap;\n }\n var offsets = getOffset(gapMode);\n var documentWidth = document.documentElement.clientWidth;\n var windowWidth = window.innerWidth;\n return {\n left: offsets[0],\n top: offsets[1],\n right: offsets[2],\n gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),\n };\n};\n"],"names":["zeroGap","parse","x","getOffset","gapMode","cs","left","top","right","getGapWidth","offsets","documentWidth","windowWidth"],"mappings":"AAAU,IAACA,IAAU;AAAA,EACjB,MAAM;AAAA,EACN,KAAK;AAAA,EACL,OAAO;AAAA,EACP,KAAK;AACT,GACIC,IAAQ,SAAUC,GAAG;AAAE,SAAO,SAASA,KAAK,IAAI,EAAE,KAAK;AAAG,GAC1DC,IAAY,SAAUC,GAAS;AAC/B,MAAIC,IAAK,OAAO,iBAAiB,SAAS,IAAI,GAC1CC,IAAOD,EAAGD,MAAY,YAAY,gBAAgB,YAAY,GAC9DG,IAAMF,EAAGD,MAAY,YAAY,eAAe,WAAW,GAC3DI,IAAQH,EAAGD,MAAY,YAAY,iBAAiB,aAAa;AACrE,SAAO,CAACH,EAAMK,CAAI,GAAGL,EAAMM,CAAG,GAAGN,EAAMO,CAAK,CAAC;AACjD,GACWC,IAAc,SAAUL,GAAS;AAExC,MADIA,MAAY,WAAUA,IAAU,WAChC,OAAO,SAAW;AAClB,WAAOJ;AAEX,MAAIU,IAAUP,EAAUC,CAAO,GAC3BO,IAAgB,SAAS,gBAAgB,aACzCC,IAAc,OAAO;AACzB,SAAO;AAAA,IACH,MAAMF,EAAQ,CAAC;AAAA,IACf,KAAKA,EAAQ,CAAC;AAAA,IACd,OAAOA,EAAQ,CAAC;AAAA,IAChB,KAAK,KAAK,IAAI,GAAGE,IAAcD,IAAgBD,EAAQ,CAAC,IAAIA,EAAQ,CAAC,CAAC;AAAA,EAC9E;AACA;","x_google_ignoreList":[0]}
|
package/dist/index33.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import M, { memo as Dn, useMemo as A, useReducer as xn, useState as K, useRef as P, useCallback as U, useEffect as O, createContext as Ne, useContext as de, forwardRef as Cn, cloneElement as Sn } from "react";
|
|
2
2
|
import { unstable_batchedUpdates as Be, createPortal as Rn } from "react-dom";
|
|
3
3
|
import { useLatestValue as Ae, useUniqueId as Ue, getEventCoordinates as $e, getWindow as J, add as ye, useIsomorphicLayoutEffect as fe, getOwnerDocument as me, isKeyboardEvent as at, subtract as Ke, useLazyMemo as Me, isHTMLElement as He, useNodeRef as Xe, canUseDOM as lt, useInterval as En, usePrevious as je, findFirstFocusableNode as An, useEvent as ct, isWindow as ut, isNode as On, isDocument as Ut, CSS as rt, isSVGElement as Nn } from "./index35.js";
|
|
4
|
-
import { useAnnouncement as Mn, HiddenText as Tn, LiveRegion as Ln } from "./
|
|
4
|
+
import { useAnnouncement as Mn, HiddenText as Tn, LiveRegion as Ln } from "./index70.js";
|
|
5
5
|
const Ht = /* @__PURE__ */ Ne(null);
|
|
6
6
|
function kn(e) {
|
|
7
7
|
const t = de(Ht);
|
package/dist/index37.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCountryList as E } from "./
|
|
1
|
+
import { getCountryList as E } from "./index73.js";
|
|
2
2
|
import { getCountryCallingCode as s } from "./index41.js";
|
|
3
3
|
const c = "US", u = E(), f = /* @__PURE__ */ new Map(), m = "__default_locale__", _ = Array.from(
|
|
4
4
|
new Set(u.map((e) => s(e)))
|
package/dist/index38.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MAX_DIAL_CODE_LENGTH as W, COMMON_IDD_PREFIXES as $, DEFAULT_COUNTRY as x, COUNTRY_DIAL_CODES as C } from "./index37.js";
|
|
2
2
|
import { getCountryCallingCode as p } from "./index41.js";
|
|
3
|
-
import { AsYouType as I } from "./
|
|
4
|
-
import { validatePhoneNumberLength as D } from "./
|
|
3
|
+
import { AsYouType as I } from "./index74.js";
|
|
4
|
+
import { validatePhoneNumberLength as D } from "./index75.js";
|
|
5
5
|
function g(t) {
|
|
6
6
|
return t.replace(/\D/g, "");
|
|
7
7
|
}
|
package/dist/index41.js
CHANGED
package/dist/index42.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import * as t from "react";
|
|
2
2
|
import * as Re from "react-dom";
|
|
3
|
-
import { clamp as Te } from "./
|
|
4
|
-
import { composeEventHandlers as R } from "./
|
|
5
|
-
import { createCollection as tt } from "./
|
|
6
|
-
import { useComposedRefs as j } from "./
|
|
7
|
-
import { createContextScope as ot } from "./
|
|
8
|
-
import { useDirection as nt } from "./
|
|
3
|
+
import { clamp as Te } from "./index54.js";
|
|
4
|
+
import { composeEventHandlers as R } from "./index48.js";
|
|
5
|
+
import { createCollection as tt } from "./index55.js";
|
|
6
|
+
import { useComposedRefs as j } from "./index50.js";
|
|
7
|
+
import { createContextScope as ot } from "./index56.js";
|
|
8
|
+
import { useDirection as nt } from "./index57.js";
|
|
9
9
|
import { DismissableLayer as rt } from "./index29.js";
|
|
10
|
-
import { useFocusGuards as st } from "./
|
|
11
|
-
import { FocusScope as lt } from "./
|
|
12
|
-
import { useId as ye } from "./
|
|
13
|
-
import { createPopperScope as Ee, Root as ct, Anchor as it, Content as at, Arrow as dt } from "./
|
|
14
|
-
import { Portal as ut } from "./
|
|
15
|
-
import { Primitive as M } from "./
|
|
16
|
-
import { createSlot as pt } from "./
|
|
17
|
-
import { useCallbackRef as ft } from "./
|
|
18
|
-
import { useControllableState as Pe } from "./
|
|
19
|
-
import { useLayoutEffect as z } from "./
|
|
20
|
-
import { usePrevious as mt } from "./
|
|
21
|
-
import { VISUALLY_HIDDEN_STYLES as ht } from "./
|
|
22
|
-
import { hideOthers as vt } from "./
|
|
23
|
-
import gt from "./
|
|
10
|
+
import { useFocusGuards as st } from "./index58.js";
|
|
11
|
+
import { FocusScope as lt } from "./index59.js";
|
|
12
|
+
import { useId as ye } from "./index60.js";
|
|
13
|
+
import { createPopperScope as Ee, Root as ct, Anchor as it, Content as at, Arrow as dt } from "./index61.js";
|
|
14
|
+
import { Portal as ut } from "./index62.js";
|
|
15
|
+
import { Primitive as M } from "./index49.js";
|
|
16
|
+
import { createSlot as pt } from "./index63.js";
|
|
17
|
+
import { useCallbackRef as ft } from "./index51.js";
|
|
18
|
+
import { useControllableState as Pe } from "./index64.js";
|
|
19
|
+
import { useLayoutEffect as z } from "./index65.js";
|
|
20
|
+
import { usePrevious as mt } from "./index66.js";
|
|
21
|
+
import { VISUALLY_HIDDEN_STYLES as ht } from "./index67.js";
|
|
22
|
+
import { hideOthers as vt } from "./index68.js";
|
|
23
|
+
import gt from "./index69.js";
|
|
24
24
|
import { j as d } from "./index28.js";
|
|
25
25
|
var St = [" ", "Enter", "ArrowUp", "ArrowDown"], xt = [" ", "Enter"], J = "Select", [ie, ae, wt] = tt(J), [te] = ot(J, [
|
|
26
26
|
wt,
|
package/dist/index46.js
CHANGED
package/dist/index47.js
CHANGED