@anoki/fse-ui 1.0.0-beta1.47.3 → 1.0.0-beta1.47.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs16.js.map +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.cjs32.js +1 -1
- package/dist/index.cjs321.js +1 -1
- package/dist/index.cjs328.js +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs333.js +1 -1
- package/dist/index.cjs344.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.cjs40.js +1 -1
- package/dist/index.cjs40.js.map +1 -1
- package/dist/index.cjs433.js +1 -1
- package/dist/index.cjs466.js +1 -1
- package/dist/index.cjs467.js +1 -1
- package/dist/index.cjs469.js +1 -1
- package/dist/index.cjs469.js.map +1 -1
- package/dist/{index.cjs473.js → index.cjs470.js} +1 -1
- package/dist/{index.cjs473.js.map → index.cjs470.js.map} +1 -1
- package/dist/{index.cjs474.js → index.cjs471.js} +1 -1
- package/dist/{index.cjs474.js.map → index.cjs471.js.map} +1 -1
- package/dist/index.cjs472.js +1 -1
- package/dist/index.cjs472.js.map +1 -1
- package/dist/index.cjs484.js +2 -0
- package/dist/index.cjs484.js.map +1 -0
- package/dist/index.cjs490.js +1 -1
- package/dist/index.cjs490.js.map +1 -1
- package/dist/{index.cjs478.js → index.cjs491.js} +1 -1
- package/dist/{index.cjs478.js.map → index.cjs491.js.map} +1 -1
- package/dist/{index.cjs479.js → index.cjs492.js} +1 -1
- package/dist/{index.cjs479.js.map → index.cjs492.js.map} +1 -1
- package/dist/{index.cjs480.js → index.cjs493.js} +1 -1
- package/dist/{index.cjs480.js.map → index.cjs493.js.map} +1 -1
- package/dist/{index.cjs481.js → index.cjs494.js} +2 -2
- package/dist/{index.cjs481.js.map → index.cjs494.js.map} +1 -1
- package/dist/{index.cjs482.js → index.cjs495.js} +1 -1
- package/dist/{index.cjs482.js.map → index.cjs495.js.map} +1 -1
- package/dist/{index.cjs483.js → index.cjs496.js} +1 -1
- package/dist/{index.cjs483.js.map → index.cjs496.js.map} +1 -1
- package/dist/{index.cjs506.js → index.cjs504.js} +2 -2
- package/dist/{index.cjs506.js.map → index.cjs504.js.map} +1 -1
- package/dist/{index.cjs507.js → index.cjs505.js} +1 -1
- package/dist/index.cjs505.js.map +1 -0
- package/dist/index.cjs520.js +1 -1
- package/dist/index.cjs522.js +1 -1
- package/dist/index.cjs525.js +1 -1
- package/dist/index.cjs525.js.map +1 -1
- package/dist/index.cjs526.js +1 -1
- package/dist/index.cjs526.js.map +1 -1
- package/dist/index.cjs529.js +1 -1
- package/dist/index.cjs530.js +1 -1
- package/dist/index.cjs530.js.map +1 -1
- package/dist/index.cjs531.js +1 -1
- package/dist/index.cjs531.js.map +1 -1
- package/dist/index.cjs532.js +1 -1
- package/dist/index.cjs532.js.map +1 -1
- package/dist/index.cjs533.js +1 -1
- package/dist/index.cjs533.js.map +1 -1
- package/dist/index.cjs535.js +1 -1
- package/dist/index.cjs540.js +1 -1
- package/dist/index.cjs544.js +1 -1
- package/dist/index.cjs545.js +1 -1
- package/dist/index.cjs552.js +1 -1
- package/dist/index.cjs557.js +1 -1
- package/dist/index.cjs561.js +1 -1
- package/dist/index.cjs563.js +1 -1
- package/dist/index.cjs564.js +1 -1
- package/dist/index.cjs578.js +1 -1
- package/dist/index.cjs578.js.map +1 -1
- package/dist/index.cjs579.js +1 -38
- package/dist/index.cjs579.js.map +1 -1
- package/dist/index.cjs580.js +1 -1
- package/dist/index.cjs580.js.map +1 -1
- package/dist/index.cjs581.js +38 -1
- package/dist/index.cjs581.js.map +1 -1
- package/dist/index.cjs582.js +1 -1
- package/dist/index.cjs582.js.map +1 -1
- package/dist/index.cjs583.js +1 -1
- package/dist/index.cjs583.js.map +1 -1
- package/dist/index.cjs584.js +1 -1
- package/dist/index.cjs584.js.map +1 -1
- package/dist/index.cjs585.js +1 -1
- package/dist/index.cjs585.js.map +1 -1
- package/dist/index.cjs591.js +1 -1
- package/dist/index.cjs591.js.map +1 -1
- package/dist/index.cjs592.js +1 -1
- package/dist/index.cjs592.js.map +1 -1
- package/dist/index.cjs593.js +1 -1
- package/dist/index.cjs593.js.map +1 -1
- package/dist/index.cjs594.js +1 -1
- package/dist/index.cjs594.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es16.js +47 -38
- package/dist/index.es16.js.map +1 -1
- package/dist/index.es295.js +1 -1
- package/dist/index.es303.js +3 -3
- package/dist/index.es314.js +1 -1
- package/dist/index.es32.js +1 -1
- package/dist/index.es321.js +8 -8
- package/dist/index.es328.js +1 -1
- package/dist/index.es33.js +1 -1
- package/dist/index.es333.js +1 -1
- package/dist/index.es344.js +1 -1
- package/dist/index.es352.js +2 -2
- package/dist/index.es393.js +1 -1
- package/dist/index.es399.js +1 -1
- package/dist/index.es40.js +36 -36
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es433.js +1 -1
- package/dist/index.es466.js +1 -1
- package/dist/index.es467.js +8 -8
- package/dist/index.es469.js +6 -15
- package/dist/index.es469.js.map +1 -1
- package/dist/{index.es473.js → index.es470.js} +1 -1
- package/dist/{index.es473.js.map → index.es470.js.map} +1 -1
- package/dist/{index.es474.js → index.es471.js} +1 -1
- package/dist/{index.es474.js.map → index.es471.js.map} +1 -1
- package/dist/index.es472.js +15 -6
- package/dist/index.es472.js.map +1 -1
- package/dist/index.es484.js +18 -0
- package/dist/index.es484.js.map +1 -0
- package/dist/index.es490.js +124 -14
- package/dist/index.es490.js.map +1 -1
- package/dist/{index.es478.js → index.es491.js} +1 -1
- package/dist/{index.es478.js.map → index.es491.js.map} +1 -1
- package/dist/{index.es479.js → index.es492.js} +1 -1
- package/dist/{index.es479.js.map → index.es492.js.map} +1 -1
- package/dist/{index.es480.js → index.es493.js} +1 -1
- package/dist/{index.es480.js.map → index.es493.js.map} +1 -1
- package/dist/{index.es481.js → index.es494.js} +4 -4
- package/dist/{index.es481.js.map → index.es494.js.map} +1 -1
- package/dist/{index.es482.js → index.es495.js} +1 -1
- package/dist/{index.es482.js.map → index.es495.js.map} +1 -1
- package/dist/{index.es483.js → index.es496.js} +1 -1
- package/dist/{index.es483.js.map → index.es496.js.map} +1 -1
- package/dist/{index.es506.js → index.es504.js} +2 -2
- package/dist/{index.es506.js.map → index.es504.js.map} +1 -1
- package/dist/{index.es507.js → index.es505.js} +1 -1
- package/dist/index.es505.js.map +1 -0
- package/dist/index.es520.js +1 -1
- package/dist/index.es522.js +1 -1
- package/dist/index.es525.js +2 -14
- package/dist/index.es525.js.map +1 -1
- package/dist/index.es526.js +14 -2
- package/dist/index.es526.js.map +1 -1
- package/dist/index.es529.js +3 -3
- package/dist/index.es530.js +82 -24
- package/dist/index.es530.js.map +1 -1
- package/dist/index.es531.js +24 -28
- package/dist/index.es531.js.map +1 -1
- package/dist/index.es532.js +29 -5
- package/dist/index.es532.js.map +1 -1
- package/dist/index.es533.js +5 -83
- package/dist/index.es533.js.map +1 -1
- package/dist/index.es535.js +1 -1
- package/dist/index.es540.js +1 -1
- package/dist/index.es544.js +1 -1
- package/dist/index.es545.js +8 -8
- package/dist/index.es552.js +1 -1
- package/dist/index.es557.js +3 -3
- package/dist/index.es561.js +1 -1
- package/dist/index.es563.js +5 -5
- package/dist/index.es564.js +1 -1
- package/dist/index.es578.js +512 -54
- package/dist/index.es578.js.map +1 -1
- package/dist/index.es579.js +126 -68
- package/dist/index.es579.js.map +1 -1
- package/dist/index.es580.js +128 -8
- package/dist/index.es580.js.map +1 -1
- package/dist/index.es581.js +68 -13
- package/dist/index.es581.js.map +1 -1
- package/dist/index.es582.js +8 -61
- package/dist/index.es582.js.map +1 -1
- package/dist/index.es583.js +11 -520
- package/dist/index.es583.js.map +1 -1
- package/dist/index.es584.js +61 -126
- package/dist/index.es584.js.map +1 -1
- package/dist/index.es585.js +61 -125
- package/dist/index.es585.js.map +1 -1
- package/dist/index.es591.js +21 -11
- package/dist/index.es591.js.map +1 -1
- package/dist/index.es592.js +11 -26
- package/dist/index.es592.js.map +1 -1
- package/dist/index.es593.js +27 -4
- package/dist/index.es593.js.map +1 -1
- package/dist/index.es594.js +4 -22
- package/dist/index.es594.js.map +1 -1
- package/package.json +1 -1
- package/dist/index.cjs477.js +0 -2
- package/dist/index.cjs477.js.map +0 -1
- package/dist/index.cjs507.js.map +0 -1
- package/dist/index.es477.js +0 -128
- package/dist/index.es477.js.map +0 -1
- package/dist/index.es507.js.map +0 -1
- /package/dist/components/ui/{CardMapDoctor/CardMapDoctor.css → CardMapDoctorV2/CardMapDoctorV2.css} +0 -0
- /package/dist/components/ui/{DoctorModal/DoctorModalFooter/DoctorModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
package/dist/index.es584.js
CHANGED
|
@@ -1,130 +1,65 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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;
|
|
12
60
|
};
|
|
13
|
-
function w(t, n, e) {
|
|
14
|
-
return m(t, l(n, e));
|
|
15
|
-
}
|
|
16
|
-
function j(t, n) {
|
|
17
|
-
return typeof t == "function" ? t(n) : t;
|
|
18
|
-
}
|
|
19
|
-
function u(t) {
|
|
20
|
-
return t.split("-")[0];
|
|
21
|
-
}
|
|
22
|
-
function g(t) {
|
|
23
|
-
return t.split("-")[1];
|
|
24
|
-
}
|
|
25
|
-
function h(t) {
|
|
26
|
-
return t === "x" ? "y" : "x";
|
|
27
|
-
}
|
|
28
|
-
function b(t) {
|
|
29
|
-
return t === "y" ? "height" : "width";
|
|
30
|
-
}
|
|
31
|
-
function x(t) {
|
|
32
|
-
return ["top", "bottom"].includes(u(t)) ? "y" : "x";
|
|
33
|
-
}
|
|
34
|
-
function d(t) {
|
|
35
|
-
return h(x(t));
|
|
36
|
-
}
|
|
37
|
-
function C(t, n, e) {
|
|
38
|
-
e === void 0 && (e = !1);
|
|
39
|
-
const r = g(t), o = d(t), i = b(o);
|
|
40
|
-
let c = o === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
41
|
-
return n.reference[i] > n.floating[i] && (c = f(c)), [c, f(c)];
|
|
42
|
-
}
|
|
43
|
-
function L(t) {
|
|
44
|
-
const n = f(t);
|
|
45
|
-
return [s(t), n, s(n)];
|
|
46
|
-
}
|
|
47
|
-
function s(t) {
|
|
48
|
-
return t.replace(/start|end/g, (n) => a[n]);
|
|
49
|
-
}
|
|
50
|
-
function A(t, n, e) {
|
|
51
|
-
const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], c = ["bottom", "top"];
|
|
52
|
-
switch (t) {
|
|
53
|
-
case "top":
|
|
54
|
-
case "bottom":
|
|
55
|
-
return e ? n ? o : r : n ? r : o;
|
|
56
|
-
case "left":
|
|
57
|
-
case "right":
|
|
58
|
-
return n ? i : c;
|
|
59
|
-
default:
|
|
60
|
-
return [];
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function E(t, n, e, r) {
|
|
64
|
-
const o = g(t);
|
|
65
|
-
let i = A(u(t), e === "start", r);
|
|
66
|
-
return o && (i = i.map((c) => c + "-" + o), n && (i = i.concat(i.map(s)))), i;
|
|
67
|
-
}
|
|
68
|
-
function f(t) {
|
|
69
|
-
return t.replace(/left|right|bottom|top/g, (n) => p[n]);
|
|
70
|
-
}
|
|
71
|
-
function y(t) {
|
|
72
|
-
return {
|
|
73
|
-
top: 0,
|
|
74
|
-
right: 0,
|
|
75
|
-
bottom: 0,
|
|
76
|
-
left: 0,
|
|
77
|
-
...t
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function R(t) {
|
|
81
|
-
return typeof t != "number" ? y(t) : {
|
|
82
|
-
top: t,
|
|
83
|
-
right: t,
|
|
84
|
-
bottom: t,
|
|
85
|
-
left: t
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
function T(t) {
|
|
89
|
-
const {
|
|
90
|
-
x: n,
|
|
91
|
-
y: e,
|
|
92
|
-
width: r,
|
|
93
|
-
height: o
|
|
94
|
-
} = t;
|
|
95
|
-
return {
|
|
96
|
-
width: r,
|
|
97
|
-
height: o,
|
|
98
|
-
top: e,
|
|
99
|
-
left: n,
|
|
100
|
-
right: n + r,
|
|
101
|
-
bottom: e + o,
|
|
102
|
-
x: n,
|
|
103
|
-
y: e
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
61
|
export {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
j as evaluate,
|
|
110
|
-
y as expandPaddingObject,
|
|
111
|
-
O as floor,
|
|
112
|
-
g as getAlignment,
|
|
113
|
-
d as getAlignmentAxis,
|
|
114
|
-
C as getAlignmentSides,
|
|
115
|
-
b as getAxisLength,
|
|
116
|
-
L as getExpandedPlacements,
|
|
117
|
-
s as getOppositeAlignmentPlacement,
|
|
118
|
-
h as getOppositeAxis,
|
|
119
|
-
E as getOppositeAxisPlacements,
|
|
120
|
-
f as getOppositePlacement,
|
|
121
|
-
R as getPaddingObject,
|
|
122
|
-
u as getSide,
|
|
123
|
-
x as getSideAxis,
|
|
124
|
-
m as max,
|
|
125
|
-
l as min,
|
|
126
|
-
T as rectToClientRect,
|
|
127
|
-
M as round,
|
|
128
|
-
P as sides
|
|
62
|
+
W as handleScroll,
|
|
63
|
+
R as locationCouldBeScrolled
|
|
129
64
|
};
|
|
130
65
|
//# sourceMappingURL=index.es584.js.map
|
package/dist/index.es584.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es584.js","sources":["../node_modules
|
|
1
|
+
{"version":3,"file":"index.es584.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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,aAAkB,aAClBA,IAASA,EAAO,OAGhBA,IAASA,EAAO;AAAA,EAEvB;AAAA;AAAA,IAEA,CAACC,KAAgBD,MAAW,SAAS;AAAA,IAEjCC,MAAiBP,EAAU,SAASM,CAAM,KAAKN,MAAcM;AAAA;AAElE,UAAIG,KACkB,KAAK,IAAIC,CAAe,IAAI,KAGzC,CAACD,KACY,KAAK,IAAIE,CAAkB,IAAI,OACjDH,IAAqB,KAElBA;AACX;","x_google_ignoreList":[0]}
|
package/dist/index.es585.js
CHANGED
|
@@ -1,132 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
function
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
function
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
import { __assign as d } from "./index.es531.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
|
+
};
|
|
45
56
|
}
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
function T(n) {
|
|
49
|
-
const t = L(), e = m(n) ? b(n) : n;
|
|
50
|
-
return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => e[o] ? e[o] !== "none" : !1) || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
|
|
51
|
-
}
|
|
52
|
-
function k(n) {
|
|
53
|
-
let t = u(n);
|
|
54
|
-
for (; w(t) && !g(t); ) {
|
|
55
|
-
if (T(t))
|
|
56
|
-
return t;
|
|
57
|
-
if (N(t))
|
|
58
|
-
return null;
|
|
59
|
-
t = u(t);
|
|
60
|
-
}
|
|
61
|
-
return null;
|
|
62
|
-
}
|
|
63
|
-
function L() {
|
|
64
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
65
|
-
}
|
|
66
|
-
function g(n) {
|
|
67
|
-
return ["html", "body", "#document"].includes(s(n));
|
|
68
|
-
}
|
|
69
|
-
function b(n) {
|
|
70
|
-
return i(n).getComputedStyle(n);
|
|
71
|
-
}
|
|
72
|
-
function C(n) {
|
|
73
|
-
return m(n) ? {
|
|
74
|
-
scrollLeft: n.scrollLeft,
|
|
75
|
-
scrollTop: n.scrollTop
|
|
76
|
-
} : {
|
|
77
|
-
scrollLeft: n.scrollX,
|
|
78
|
-
scrollTop: n.scrollY
|
|
79
57
|
};
|
|
58
|
+
return c;
|
|
80
59
|
}
|
|
81
|
-
function
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
86
|
-
n.assignedSlot || // DOM Element detected.
|
|
87
|
-
n.parentNode || // ShadowRoot detected.
|
|
88
|
-
a(n) && n.host || // Fallback.
|
|
89
|
-
E(n)
|
|
90
|
-
);
|
|
91
|
-
return a(t) ? t.host : t;
|
|
92
|
-
}
|
|
93
|
-
function h(n) {
|
|
94
|
-
const t = u(n);
|
|
95
|
-
return g(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : w(t) && y(t) ? t : h(t);
|
|
96
|
-
}
|
|
97
|
-
function d(n, t, e) {
|
|
98
|
-
var o;
|
|
99
|
-
t === void 0 && (t = []), e === void 0 && (e = !0);
|
|
100
|
-
const r = h(n), S = r === ((o = n.ownerDocument) == null ? void 0 : o.body), l = i(r);
|
|
101
|
-
if (S) {
|
|
102
|
-
const f = v(l);
|
|
103
|
-
return t.concat(l, l.visualViewport || [], y(r) ? r : [], f && e ? d(f) : []);
|
|
104
|
-
}
|
|
105
|
-
return t.concat(r, d(r, [], e));
|
|
106
|
-
}
|
|
107
|
-
function v(n) {
|
|
108
|
-
return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
|
|
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;
|
|
109
64
|
}
|
|
110
65
|
export {
|
|
111
|
-
|
|
112
|
-
k as getContainingBlock,
|
|
113
|
-
E as getDocumentElement,
|
|
114
|
-
v as getFrameElement,
|
|
115
|
-
h as getNearestOverflowAncestor,
|
|
116
|
-
s as getNodeName,
|
|
117
|
-
C as getNodeScroll,
|
|
118
|
-
d as getOverflowAncestors,
|
|
119
|
-
u as getParentNode,
|
|
120
|
-
i as getWindow,
|
|
121
|
-
T as isContainingBlock,
|
|
122
|
-
m as isElement,
|
|
123
|
-
w as isHTMLElement,
|
|
124
|
-
g as isLastTraversableNode,
|
|
125
|
-
p as isNode,
|
|
126
|
-
y as isOverflowElement,
|
|
127
|
-
a as isShadowRoot,
|
|
128
|
-
D as isTableElement,
|
|
129
|
-
N as isTopLayer,
|
|
130
|
-
L as isWebKit
|
|
66
|
+
v as createSidecarMedium
|
|
131
67
|
};
|
|
132
68
|
//# sourceMappingURL=index.es585.js.map
|
package/dist/index.es585.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es585.js","sources":["../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"],"sourcesContent":["function hasWindow() {\n return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);\n}\nfunction isTableElement(element) {\n return ['table', 'td', 'th'].includes(getNodeName(element));\n}\nfunction isTopLayer(element) {\n return [':popover-open', ':modal'].some(selector => {\n try {\n return element.matches(selector);\n } catch (e) {\n return false;\n }\n });\n}\nfunction isContainingBlock(elementOrCss) {\n const webkit = isWebKit();\n const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n // https://drafts.csswg.org/css-transforms-2/#individual-transforms\n return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else if (isTopLayer(currentNode)) {\n return null;\n }\n currentNode = getParentNode(currentNode);\n }\n return null;\n}\nfunction isWebKit() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nfunction isLastTraversableNode(node) {\n return ['html', 'body', '#document'].includes(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.scrollX,\n scrollTop: element.scrollY\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n const frameElement = getFrameElement(win);\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\nfunction getFrameElement(win) {\n return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };\n"],"names":["hasWindow","getNodeName","node","isNode","getWindow","_node$ownerDocument","getDocumentElement","_ref","value","isElement","isHTMLElement","isShadowRoot","isOverflowElement","element","overflow","overflowX","overflowY","display","getComputedStyle","isTableElement","isTopLayer","selector","isContainingBlock","elementOrCss","webkit","isWebKit","css","getContainingBlock","currentNode","getParentNode","isLastTraversableNode","getNodeScroll","result","getNearestOverflowAncestor","parentNode","getOverflowAncestors","list","traverseIframes","_node$ownerDocument2","scrollableAncestor","isBody","win","frameElement","getFrameElement"],"mappings":"AAAA,SAASA,IAAY;AACnB,SAAO,OAAO,SAAW;AAC3B;AACA,SAASC,EAAYC,GAAM;AACzB,SAAIC,EAAOD,CAAI,KACLA,EAAK,YAAY,IAAI,YAAa,IAKrC;AACT;AACA,SAASE,EAAUF,GAAM;AACvB,MAAIG;AACJ,UAAQH,KAAQ,SAASG,IAAsBH,EAAK,kBAAkB,OAAO,SAASG,EAAoB,gBAAgB;AAC5H;AACA,SAASC,EAAmBJ,GAAM;AAChC,MAAIK;AACJ,UAAQA,KAAQJ,EAAOD,CAAI,IAAIA,EAAK,gBAAgBA,EAAK,aAAa,OAAO,aAAa,OAAO,SAASK,EAAK;AACjH;AACA,SAASJ,EAAOK,GAAO;AACrB,SAAKR,EAAS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AAaT,CAAI,KAAKA,EAAK;AAAA,IAE3BI,EAAmBJ,CAAI;AAAA;AACvB,SAAOS,EAAaqB,CAAM,IAAIA,EAAO,OAAOA;AAC9C;AACA,SAASC,EAA2B/B,GAAM;AACxC,QAAMgC,IAAaL,EAAc3B,CAAI;AACrC,SAAI4B,EAAsBI,CAAU,IAC3BhC,EAAK,gBAAgBA,EAAK,cAAc,OAAOA,EAAK,OAEzDQ,EAAcwB,CAAU,KAAKtB,EAAkBsB,CAAU,IACpDA,IAEFD,EAA2BC,CAAU;AAC9C;AACA,SAASC,EAAqBjC,GAAMkC,GAAMC,GAAiB;AACzD,MAAIC;AACJ,EAAIF,MAAS,WACXA,IAAO,CAAE,IAEPC,MAAoB,WACtBA,IAAkB;AAEpB,QAAME,IAAqBN,EAA2B/B,CAAI,GACpDsC,IAASD,QAAyBD,IAAuBpC,EAAK,kBAAkB,OAAO,SAASoC,EAAqB,OACrHG,IAAMrC,EAAUmC,CAAkB;AACxC,MAAIC,GAAQ;AACV,UAAME,IAAeC,EAAgBF,CAAG;AACxC,WAAOL,EAAK,OAAOK,GAAKA,EAAI,kBAAkB,CAAE,GAAE7B,EAAkB2B,CAAkB,IAAIA,IAAqB,CAAE,GAAEG,KAAgBL,IAAkBF,EAAqBO,CAAY,IAAI,EAAE;AAAA,EAChM;AACE,SAAON,EAAK,OAAOG,GAAoBJ,EAAqBI,GAAoB,CAAA,GAAIF,CAAe,CAAC;AACtG;AACA,SAASM,EAAgBF,GAAK;AAC5B,SAAOA,EAAI,UAAU,OAAO,eAAeA,EAAI,MAAM,IAAIA,EAAI,eAAe;AAC9E;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.es585.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,CAAE,GACXC,IAAW,IACXC,IAAS;AAAA,IACT,MAAM,WAAY;AACd,UAAID;AACA,cAAM,IAAI,MAAM,kGA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;AACD,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,GAAO,GAAED,CAAO,GACvDX;AACX;","x_google_ignoreList":[0]}
|
package/dist/index.es591.js
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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])
|
|
11
20
|
};
|
|
12
21
|
};
|
|
13
22
|
export {
|
|
14
|
-
|
|
23
|
+
f as getGapWidth,
|
|
24
|
+
a as zeroGap
|
|
15
25
|
};
|
|
16
26
|
//# sourceMappingURL=index.es591.js.map
|
package/dist/index.es591.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es591.js","sources":["../node_modules/react-
|
|
1
|
+
{"version":3,"file":"index.es591.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;AAAI,GAC3DC,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,EACzE;AACL;","x_google_ignoreList":[0]}
|
package/dist/index.es592.js
CHANGED
|
@@ -1,31 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
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
|
-
}
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { stylesheetSingleton as r } from "./index.es593.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]);
|
|
26
11
|
};
|
|
27
12
|
};
|
|
28
13
|
export {
|
|
29
|
-
|
|
14
|
+
i as styleHookSingleton
|
|
30
15
|
};
|
|
31
16
|
//# sourceMappingURL=index.es592.js.map
|
package/dist/index.es592.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es592.js","sources":["../node_modules/react-style-singleton/dist/es2015/
|
|
1
|
+
{"version":3,"file":"index.es592.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,EAAqB;AACjC,SAAO,SAAUC,GAAQC,GAAW;AAChC,IAAAC,EAAM,UAAU,WAAY;AACxB,aAAAJ,EAAM,IAAIE,CAAM,GACT,WAAY;AACf,QAAAF,EAAM,OAAQ;AAAA,MACjB;AAAA,IACb,GAAW,CAACE,KAAUC,CAAS,CAAC;AAAA,EAC3B;AACL;","x_google_ignoreList":[0]}
|
package/dist/index.es593.js
CHANGED
|
@@ -1,8 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { getNonce as o } from "./index.es594.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
|
+
}
|
|
26
|
+
};
|
|
4
27
|
};
|
|
5
28
|
export {
|
|
6
|
-
|
|
29
|
+
c as stylesheetSingleton
|
|
7
30
|
};
|
|
8
31
|
//# sourceMappingURL=index.es593.js.map
|