@anoki/fse-ui 1.0.528 → 1.0.529
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/EditorialWidget/EditorialWidget.css +1 -1
- package/dist/index.cjs102.js +1 -1
- package/dist/index.cjs102.js.map +1 -1
- package/dist/index.cjs107.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs162.js +1 -1
- package/dist/index.cjs162.js.map +1 -1
- package/dist/index.cjs163.js +1 -1
- package/dist/index.cjs163.js.map +1 -1
- package/dist/index.cjs167.js +1 -1
- package/dist/index.cjs167.js.map +1 -1
- package/dist/index.cjs176.js +1 -1
- package/dist/index.cjs176.js.map +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs180.js +1 -1
- package/dist/index.cjs180.js.map +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs213.js +1 -1
- package/dist/index.cjs214.js +1 -1
- package/dist/index.cjs220.js +1 -1
- package/dist/index.cjs231.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs260.js +2 -2
- package/dist/index.cjs260.js.map +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs297.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs310.js +1 -1
- package/dist/index.cjs318.js +2 -2
- package/dist/index.cjs319.js +3 -12
- package/dist/index.cjs319.js.map +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs325.js +2 -0
- package/dist/index.cjs325.js.map +1 -0
- package/dist/index.cjs327.js +1 -1
- package/dist/index.cjs328.js +1 -1
- package/dist/index.cjs328.js.map +1 -1
- package/dist/index.cjs329.js +1 -1
- package/dist/index.cjs329.js.map +1 -1
- package/dist/index.cjs330.js +1 -1
- package/dist/index.cjs330.js.map +1 -1
- package/dist/index.cjs331.js +1 -1
- package/dist/index.cjs331.js.map +1 -1
- package/dist/index.cjs333.js +1 -1
- package/dist/index.cjs333.js.map +1 -1
- package/dist/index.cjs334.js +2 -0
- package/dist/index.cjs334.js.map +1 -0
- package/dist/index.cjs335.js +2 -0
- package/dist/index.cjs335.js.map +1 -0
- package/dist/index.cjs336.js +2 -0
- package/dist/index.cjs336.js.map +1 -0
- package/dist/index.cjs337.js +1 -1
- package/dist/index.cjs337.js.map +1 -1
- package/dist/index.cjs338.js +1 -1
- package/dist/index.cjs338.js.map +1 -1
- package/dist/index.cjs339.js +1 -1
- package/dist/index.cjs340.js +1 -1
- package/dist/index.cjs340.js.map +1 -1
- package/dist/index.cjs341.js +1 -1
- package/dist/index.cjs341.js.map +1 -1
- package/dist/index.cjs342.js +1 -1
- package/dist/index.cjs342.js.map +1 -1
- package/dist/index.cjs343.js +1 -1
- package/dist/index.cjs343.js.map +1 -1
- package/dist/index.cjs344.js +1 -1
- package/dist/index.cjs344.js.map +1 -1
- package/dist/index.cjs345.js +2 -0
- package/dist/index.cjs345.js.map +1 -0
- package/dist/index.cjs346.js +2 -0
- package/dist/index.cjs346.js.map +1 -0
- package/dist/index.cjs347.js +2 -0
- package/dist/index.cjs347.js.map +1 -0
- package/dist/index.cjs348.js +1 -1
- package/dist/index.cjs348.js.map +1 -1
- package/dist/index.cjs349.js +1 -1
- package/dist/index.cjs349.js.map +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs350.js +1 -1
- package/dist/index.cjs350.js.map +1 -1
- package/dist/index.cjs351.js +1 -1
- package/dist/index.cjs351.js.map +1 -1
- package/dist/index.cjs352.js +1 -1
- package/dist/index.cjs352.js.map +1 -1
- package/dist/index.cjs353.js +1 -1
- package/dist/index.cjs353.js.map +1 -1
- package/dist/{index.cjs361.js → index.cjs356.js} +1 -1
- package/dist/{index.cjs361.js.map → index.cjs356.js.map} +1 -1
- package/dist/index.cjs357.js +2 -0
- package/dist/{index.cjs362.js.map → index.cjs357.js.map} +1 -1
- package/dist/index.cjs358.js +2 -0
- package/dist/index.cjs358.js.map +1 -0
- package/dist/index.cjs363.js +1 -1
- package/dist/index.cjs363.js.map +1 -1
- package/dist/index.cjs364.js +1 -1
- package/dist/index.cjs364.js.map +1 -1
- package/dist/{index.cjs386.js → index.cjs365.js} +2 -2
- package/dist/{index.cjs386.js.map → index.cjs365.js.map} +1 -1
- package/dist/index.cjs366.js +2 -0
- package/dist/index.cjs366.js.map +1 -0
- package/dist/index.cjs367.js +1 -1
- package/dist/index.cjs367.js.map +1 -1
- package/dist/index.cjs368.js +1 -1
- package/dist/index.cjs368.js.map +1 -1
- package/dist/index.cjs369.js +4 -1
- package/dist/index.cjs369.js.map +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs370.js +1 -1
- package/dist/index.cjs370.js.map +1 -1
- package/dist/index.cjs379.js +1 -1
- package/dist/index.cjs380.js +3 -3
- package/dist/index.cjs381.js +1 -1
- package/dist/index.cjs384.js +1 -1
- package/dist/index.cjs384.js.map +1 -1
- package/dist/index.cjs385.js +1 -1
- package/dist/index.cjs385.js.map +1 -1
- package/dist/index.cjs389.js +1 -1
- package/dist/index.cjs389.js.map +1 -1
- package/dist/index.cjs390.js +1 -1
- package/dist/index.cjs390.js.map +1 -1
- package/dist/index.cjs391.js +1 -1
- package/dist/index.cjs391.js.map +1 -1
- package/dist/index.cjs392.js +1 -1
- package/dist/index.cjs392.js.map +1 -1
- package/dist/index.cjs396.js +1 -1
- package/dist/index.cjs396.js.map +1 -1
- package/dist/index.cjs399.js +1 -1
- package/dist/index.cjs399.js.map +1 -1
- package/dist/index.cjs401.js +1 -1
- package/dist/index.cjs402.js +1 -1
- package/dist/index.cjs405.js +1 -1
- package/dist/index.cjs405.js.map +1 -1
- package/dist/index.cjs407.js +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es102.js +1 -1
- package/dist/index.es102.js.map +1 -1
- package/dist/index.es107.js +17 -17
- package/dist/index.es16.js +18 -18
- package/dist/index.es162.js +76 -71
- package/dist/index.es162.js.map +1 -1
- package/dist/index.es163.js +11 -1
- package/dist/index.es163.js.map +1 -1
- package/dist/index.es164.js +2 -2
- package/dist/index.es165.js +24 -24
- package/dist/index.es167.js +63 -58
- package/dist/index.es167.js.map +1 -1
- package/dist/index.es172.js +1 -1
- package/dist/index.es176.js +29 -26
- package/dist/index.es176.js.map +1 -1
- package/dist/index.es18.js +22 -22
- package/dist/index.es180.js +18 -15
- package/dist/index.es180.js.map +1 -1
- package/dist/index.es209.js +20 -20
- package/dist/index.es213.js +25 -25
- package/dist/index.es214.js +10 -10
- package/dist/index.es220.js +6 -6
- package/dist/index.es231.js +11 -11
- package/dist/index.es24.js +4 -4
- package/dist/index.es25.js +38 -38
- package/dist/index.es258.js +30 -30
- package/dist/index.es26.js +21 -21
- package/dist/index.es260.js +22 -22
- package/dist/index.es260.js.map +1 -1
- package/dist/index.es27.js +2 -2
- package/dist/index.es297.js +11 -11
- package/dist/index.es30.js +6 -6
- package/dist/index.es310.js +3 -3
- package/dist/index.es318.js +20 -20
- package/dist/index.es319.js +137 -298
- package/dist/index.es319.js.map +1 -1
- package/dist/index.es32.js +4 -4
- package/dist/index.es325.js +10 -0
- package/dist/index.es325.js.map +1 -0
- package/dist/index.es326.js +14 -14
- package/dist/index.es327.js +40 -40
- package/dist/index.es328.js +29 -6
- package/dist/index.es328.js.map +1 -1
- package/dist/index.es329.js +32 -29
- package/dist/index.es329.js.map +1 -1
- package/dist/index.es330.js +621 -5
- package/dist/index.es330.js.map +1 -1
- package/dist/index.es331.js +10 -24
- package/dist/index.es331.js.map +1 -1
- package/dist/index.es333.js +10 -32
- package/dist/index.es333.js.map +1 -1
- package/dist/index.es334.js +56 -0
- package/dist/index.es334.js.map +1 -0
- package/dist/index.es335.js +49 -0
- package/dist/index.es335.js.map +1 -0
- package/dist/index.es336.js +11 -0
- package/dist/index.es336.js.map +1 -0
- package/dist/index.es337.js +124 -10
- package/dist/index.es337.js.map +1 -1
- package/dist/index.es338.js +12 -122
- package/dist/index.es338.js.map +1 -1
- package/dist/index.es339.js +2 -2
- package/dist/index.es340.js +217 -13
- package/dist/index.es340.js.map +1 -1
- package/dist/index.es341.js +13 -14
- package/dist/index.es341.js.map +1 -1
- package/dist/index.es342.js +69 -9
- package/dist/index.es342.js.map +1 -1
- package/dist/index.es343.js +176 -48
- package/dist/index.es343.js.map +1 -1
- package/dist/index.es344.js +49 -52
- package/dist/index.es344.js.map +1 -1
- package/dist/index.es345.js +12 -0
- package/dist/index.es345.js.map +1 -0
- package/dist/index.es346.js +7 -0
- package/dist/index.es346.js.map +1 -0
- package/dist/index.es347.js +9 -0
- package/dist/index.es347.js.map +1 -0
- package/dist/index.es348.js +24 -10
- package/dist/index.es348.js.map +1 -1
- package/dist/index.es349.js +12 -4
- package/dist/index.es349.js.map +1 -1
- package/dist/index.es35.js +14 -14
- package/dist/index.es350.js +197 -614
- package/dist/index.es350.js.map +1 -1
- package/dist/index.es351.js +22 -12
- package/dist/index.es351.js.map +1 -1
- package/dist/index.es352.js +390 -43
- package/dist/index.es352.js.map +1 -1
- package/dist/index.es353.js +15 -8
- package/dist/index.es353.js.map +1 -1
- package/dist/{index.es361.js → index.es356.js} +1 -1
- package/dist/{index.es361.js.map → index.es356.js.map} +1 -1
- package/dist/{index.es362.js → index.es357.js} +14 -14
- package/dist/{index.es362.js.map → index.es357.js.map} +1 -1
- package/dist/index.es358.js +8 -0
- package/dist/index.es358.js.map +1 -0
- package/dist/index.es363.js +523 -5
- package/dist/index.es363.js.map +1 -1
- package/dist/index.es364.js +126 -14
- package/dist/index.es364.js.map +1 -1
- package/dist/{index.es386.js → index.es365.js} +43 -43
- package/dist/{index.es386.js.map → index.es365.js.map} +1 -1
- package/dist/index.es366.js +8 -0
- package/dist/index.es366.js.map +1 -0
- package/dist/index.es367.js +3 -205
- package/dist/index.es367.js.map +1 -1
- package/dist/index.es368.js +23 -21
- package/dist/index.es368.js.map +1 -1
- package/dist/index.es369.js +105 -388
- package/dist/index.es369.js.map +1 -1
- package/dist/index.es37.js +6 -6
- package/dist/index.es370.js +16 -5
- package/dist/index.es370.js.map +1 -1
- package/dist/index.es379.js +1 -1
- package/dist/index.es380.js +16 -16
- package/dist/index.es381.js +1 -1
- package/dist/index.es384.js +3 -522
- package/dist/index.es384.js.map +1 -1
- package/dist/index.es385.js +22 -126
- package/dist/index.es385.js.map +1 -1
- package/dist/index.es389.js +21 -11
- package/dist/index.es389.js.map +1 -1
- package/dist/index.es390.js +11 -26
- package/dist/index.es390.js.map +1 -1
- package/dist/index.es391.js +27 -4
- package/dist/index.es391.js.map +1 -1
- package/dist/index.es392.js +4 -22
- package/dist/index.es392.js.map +1 -1
- package/dist/index.es396.js +2 -2
- package/dist/index.es396.js.map +1 -1
- package/dist/index.es399.js +34 -34
- package/dist/index.es399.js.map +1 -1
- package/dist/index.es401.js +2 -2
- package/dist/index.es401.js.map +1 -1
- package/dist/index.es402.js +6 -6
- package/dist/index.es405.js +2 -2
- package/dist/index.es405.js.map +1 -1
- package/dist/index.es47.js +2 -2
- package/dist/index.es5.js +4 -4
- package/dist/index.es65.js +44 -44
- package/dist/index.es68.js +25 -25
- package/dist/index.es69.js +23 -23
- package/dist/index.es98.js +12 -12
- package/package.json +1 -1
- package/dist/index.cjs332.js +0 -2
- package/dist/index.cjs332.js.map +0 -1
- package/dist/index.cjs354.js +0 -2
- package/dist/index.cjs354.js.map +0 -1
- package/dist/index.cjs355.js +0 -2
- package/dist/index.cjs355.js.map +0 -1
- package/dist/index.cjs362.js +0 -2
- package/dist/index.cjs371.js +0 -2
- package/dist/index.cjs371.js.map +0 -1
- package/dist/index.cjs372.js +0 -2
- package/dist/index.cjs372.js.map +0 -1
- package/dist/index.cjs373.js +0 -5
- package/dist/index.cjs373.js.map +0 -1
- package/dist/index.cjs374.js +0 -2
- package/dist/index.cjs374.js.map +0 -1
- package/dist/index.cjs387.js +0 -2
- package/dist/index.cjs387.js.map +0 -1
- package/dist/index.cjs388.js +0 -2
- package/dist/index.cjs388.js.map +0 -1
- package/dist/index.es332.js +0 -72
- package/dist/index.es332.js.map +0 -1
- package/dist/index.es354.js +0 -221
- package/dist/index.es354.js.map +0 -1
- package/dist/index.es355.js +0 -181
- package/dist/index.es355.js.map +0 -1
- package/dist/index.es371.js +0 -6
- package/dist/index.es371.js.map +0 -1
- package/dist/index.es372.js +0 -27
- package/dist/index.es372.js.map +0 -1
- package/dist/index.es373.js +0 -113
- package/dist/index.es373.js.map +0 -1
- package/dist/index.es374.js +0 -19
- package/dist/index.es374.js.map +0 -1
- package/dist/index.es387.js +0 -7
- package/dist/index.es387.js.map +0 -1
- package/dist/index.es388.js +0 -26
- package/dist/index.es388.js.map +0 -1
package/dist/index.es364.js
CHANGED
@@ -1,18 +1,130 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
};
|
13
|
-
}, [n, t]);
|
1
|
+
const P = ["top", "right", "bottom", "left"], l = Math.min, m = Math.max, M = Math.round, O = Math.floor, S = (t) => ({
|
2
|
+
x: t,
|
3
|
+
y: t
|
4
|
+
}), p = {
|
5
|
+
left: "right",
|
6
|
+
right: "left",
|
7
|
+
bottom: "top",
|
8
|
+
top: "bottom"
|
9
|
+
}, a = {
|
10
|
+
start: "end",
|
11
|
+
end: "start"
|
14
12
|
};
|
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
|
+
}
|
15
106
|
export {
|
16
|
-
|
107
|
+
w as clamp,
|
108
|
+
S as createCoords,
|
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
|
17
129
|
};
|
18
130
|
//# sourceMappingURL=index.es364.js.map
|
package/dist/index.es364.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es364.js","sources":["../
|
1
|
+
{"version":3,"file":"index.es364.js","sources":["../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"],"sourcesContent":["/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nconst oppositeAlignmentMap = {\n start: 'end',\n end: 'start'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);\n}\nfunction getSideList(side, isStart, rtl) {\n const lr = ['left', 'right'];\n const rl = ['right', 'left'];\n const tb = ['top', 'bottom'];\n const bt = ['bottom', 'top'];\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rl : lr;\n return isStart ? lr : rl;\n case 'left':\n case 'right':\n return isStart ? tb : bt;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n"],"names":["sides","min","max","round","floor","createCoords","v","oppositeSideMap","oppositeAlignmentMap","clamp","start","value","end","evaluate","param","getSide","placement","getAlignment","getOppositeAxis","axis","getAxisLength","getSideAxis","getAlignmentAxis","getAlignmentSides","rects","rtl","alignment","alignmentAxis","length","mainAlignmentSide","getOppositePlacement","getExpandedPlacements","oppositePlacement","getOppositeAlignmentPlacement","getSideList","side","isStart","lr","rl","tb","bt","getOppositeAxisPlacements","flipAlignment","direction","list","expandPaddingObject","padding","getPaddingObject","rectToClientRect","rect","x","y","width","height"],"mappings":"AAK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ACL,KAAK;AAAA,IACL,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,GAAGA;AAAA,EACJ;AACH;AACA,SAASC,EAAiBD,GAAS;AACjC,SAAO,OAAOA,KAAY,WAAWD,EAAoBC,CAAO,IAAI;AAAA,IAClE,KAAKA;AAAA,IACL,OAAOA;AAAA,IACP,QAAQA;AAAA,IACR,MAAMA;AAAA,EACP;AACH;AACA,SAASE,EAAiBC,GAAM;AAC9B,QAAM;AAAA,IACJ,GAAAC;AAAA,IACA,GAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,EACJ,IAAMJ;AACJ,SAAO;AAAA,IACL,OAAAG;AAAA,IACA,QAAAC;AAAA,IACA,KAAKF;AAAA,IACL,MAAMD;AAAA,IACN,OAAOA,IAAIE;AAAA,IACX,QAAQD,IAAIE;AAAA,IACZ,GAAAH;AAAA,IACA,GAAAC;AAAA,EACD;AACH;","x_google_ignoreList":[0]}
|
@@ -1,16 +1,16 @@
|
|
1
1
|
function c() {
|
2
2
|
return typeof window < "u";
|
3
3
|
}
|
4
|
-
function
|
4
|
+
function s(n) {
|
5
5
|
return p(n) ? (n.nodeName || "").toLowerCase() : "#document";
|
6
6
|
}
|
7
7
|
function i(n) {
|
8
|
-
var
|
9
|
-
return (n == null || (
|
8
|
+
var t;
|
9
|
+
return (n == null || (t = n.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
10
10
|
}
|
11
11
|
function E(n) {
|
12
|
-
var
|
13
|
-
return (
|
12
|
+
var t;
|
13
|
+
return (t = (p(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : t.documentElement;
|
14
14
|
}
|
15
15
|
function p(n) {
|
16
16
|
return c() ? n instanceof Node || n instanceof i(n).Node : !1;
|
@@ -26,37 +26,37 @@ function a(n) {
|
|
26
26
|
}
|
27
27
|
function y(n) {
|
28
28
|
const {
|
29
|
-
overflow:
|
30
|
-
overflowX:
|
29
|
+
overflow: t,
|
30
|
+
overflowX: e,
|
31
31
|
overflowY: o,
|
32
32
|
display: r
|
33
33
|
} = b(n);
|
34
|
-
return /auto|scroll|overlay|hidden|clip/.test(
|
34
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(r);
|
35
35
|
}
|
36
|
-
function
|
37
|
-
return ["table", "td", "th"].includes(
|
36
|
+
function D(n) {
|
37
|
+
return ["table", "td", "th"].includes(s(n));
|
38
38
|
}
|
39
39
|
function N(n) {
|
40
|
-
return [":popover-open", ":modal"].some((
|
40
|
+
return [":popover-open", ":modal"].some((t) => {
|
41
41
|
try {
|
42
|
-
return n.matches(
|
42
|
+
return n.matches(t);
|
43
43
|
} catch {
|
44
44
|
return !1;
|
45
45
|
}
|
46
46
|
});
|
47
47
|
}
|
48
48
|
function T(n) {
|
49
|
-
const
|
50
|
-
return ["transform", "translate", "scale", "rotate", "perspective"].some((o) =>
|
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
51
|
}
|
52
|
-
function
|
53
|
-
let
|
54
|
-
for (; w(
|
55
|
-
if (T(
|
56
|
-
return
|
57
|
-
if (N(
|
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
58
|
return null;
|
59
|
-
|
59
|
+
t = u(t);
|
60
60
|
}
|
61
61
|
return null;
|
62
62
|
}
|
@@ -64,12 +64,12 @@ function L() {
|
|
64
64
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
65
65
|
}
|
66
66
|
function g(n) {
|
67
|
-
return ["html", "body", "#document"].includes(
|
67
|
+
return ["html", "body", "#document"].includes(s(n));
|
68
68
|
}
|
69
69
|
function b(n) {
|
70
70
|
return i(n).getComputedStyle(n);
|
71
71
|
}
|
72
|
-
function
|
72
|
+
function C(n) {
|
73
73
|
return m(n) ? {
|
74
74
|
scrollLeft: n.scrollLeft,
|
75
75
|
scrollTop: n.scrollTop
|
@@ -78,45 +78,45 @@ function R(n) {
|
|
78
78
|
scrollTop: n.scrollY
|
79
79
|
};
|
80
80
|
}
|
81
|
-
function
|
82
|
-
if (
|
81
|
+
function u(n) {
|
82
|
+
if (s(n) === "html")
|
83
83
|
return n;
|
84
|
-
const
|
84
|
+
const t = (
|
85
85
|
// Step into the shadow DOM of the parent of a slotted node.
|
86
86
|
n.assignedSlot || // DOM Element detected.
|
87
87
|
n.parentNode || // ShadowRoot detected.
|
88
88
|
a(n) && n.host || // Fallback.
|
89
89
|
E(n)
|
90
90
|
);
|
91
|
-
return a(
|
91
|
+
return a(t) ? t.host : t;
|
92
92
|
}
|
93
93
|
function h(n) {
|
94
|
-
const
|
95
|
-
return g(
|
94
|
+
const t = u(n);
|
95
|
+
return g(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : w(t) && y(t) ? t : h(t);
|
96
96
|
}
|
97
|
-
function d(n,
|
97
|
+
function d(n, t, e) {
|
98
98
|
var o;
|
99
|
-
|
100
|
-
const r = h(n), S = r === ((o = n.ownerDocument) == null ? void 0 : o.body),
|
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
101
|
if (S) {
|
102
|
-
const
|
103
|
-
return
|
102
|
+
const f = v(l);
|
103
|
+
return t.concat(l, l.visualViewport || [], y(r) ? r : [], f && e ? d(f) : []);
|
104
104
|
}
|
105
|
-
return
|
105
|
+
return t.concat(r, d(r, [], e));
|
106
106
|
}
|
107
|
-
function
|
107
|
+
function v(n) {
|
108
108
|
return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
|
109
109
|
}
|
110
110
|
export {
|
111
111
|
b as getComputedStyle,
|
112
|
-
|
112
|
+
k as getContainingBlock,
|
113
113
|
E as getDocumentElement,
|
114
|
-
|
114
|
+
v as getFrameElement,
|
115
115
|
h as getNearestOverflowAncestor,
|
116
|
-
|
117
|
-
|
116
|
+
s as getNodeName,
|
117
|
+
C as getNodeScroll,
|
118
118
|
d as getOverflowAncestors,
|
119
|
-
|
119
|
+
u as getParentNode,
|
120
120
|
i as getWindow,
|
121
121
|
T as isContainingBlock,
|
122
122
|
m as isElement,
|
@@ -125,8 +125,8 @@ export {
|
|
125
125
|
p as isNode,
|
126
126
|
y as isOverflowElement,
|
127
127
|
a as isShadowRoot,
|
128
|
-
|
128
|
+
D as isTableElement,
|
129
129
|
N as isTopLayer,
|
130
130
|
L as isWebKit
|
131
131
|
};
|
132
|
-
//# sourceMappingURL=index.
|
132
|
+
//# sourceMappingURL=index.es365.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es386.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,IAGPQ,aAAiB,QAAQA,aAAiBJ,EAAUI,CAAK,EAAE,OAFzD;AAGX;AACA,SAASC,EAAUD,GAAO;AACxB,SAAKR,EAAS,IAGPQ,aAAiB,WAAWA,aAAiBJ,EAAUI,CAAK,EAAE,UAF5D;AAGX;AACA,SAASE,EAAcF,GAAO;AAC5B,SAAKR,EAAS,IAGPQ,aAAiB,eAAeA,aAAiBJ,EAAUI,CAAK,EAAE,cAFhE;AAGX;AACA,SAASG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AkBsB,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.es365.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,IAGPQ,aAAiB,QAAQA,aAAiBJ,EAAUI,CAAK,EAAE,OAFzD;AAGX;AACA,SAASC,EAAUD,GAAO;AACxB,SAAKR,EAAS,IAGPQ,aAAiB,WAAWA,aAAiBJ,EAAUI,CAAK,EAAE,UAF5D;AAGX;AACA,SAASE,EAAcF,GAAO;AAC5B,SAAKR,EAAS,IAGPQ,aAAiB,eAAeA,aAAiBJ,EAAUI,CAAK,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Q,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]}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
var r = "right-scroll-bar-position", a = "width-before-scroll-bar", l = "with-scroll-bars-hidden", e = "--removed-body-scroll-bar-size";
|
2
|
+
export {
|
3
|
+
a as fullWidthClassName,
|
4
|
+
l as noScrollbarsClassName,
|
5
|
+
e as removedBarSizeVariable,
|
6
|
+
r as zeroRightClassName
|
7
|
+
};
|
8
|
+
//# sourceMappingURL=index.es366.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.es366.js","sources":["../node_modules/react-remove-scroll-bar/dist/es2015/constants.js"],"sourcesContent":["export var zeroRightClassName = 'right-scroll-bar-position';\nexport var fullWidthClassName = 'width-before-scroll-bar';\nexport var noScrollbarsClassName = 'with-scroll-bars-hidden';\n/**\n * Name of a CSS variable containing the amount of \"hidden\" scrollbar\n * ! might be undefined ! use will fallback!\n */\nexport var removedBarSizeVariable = '--removed-body-scroll-bar-size';\n"],"names":["zeroRightClassName","fullWidthClassName","noScrollbarsClassName","removedBarSizeVariable"],"mappings":"AAAU,IAACA,IAAqB,6BACrBC,IAAqB,2BACrBC,IAAwB,2BAKxBC,IAAyB;","x_google_ignoreList":[0]}
|
package/dist/index.es367.js
CHANGED
@@ -1,208 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
import * as f from "react";
|
4
|
-
import { useLayoutEffect as Y, useEffect as Z } from "react";
|
5
|
-
import * as b from "react-dom";
|
6
|
-
var w = typeof document < "u" ? Y : Z;
|
7
|
-
function R(e, t) {
|
8
|
-
if (e === t)
|
9
|
-
return !0;
|
10
|
-
if (typeof e != typeof t)
|
11
|
-
return !1;
|
12
|
-
if (typeof e == "function" && e.toString() === t.toString())
|
13
|
-
return !0;
|
14
|
-
let n, r, s;
|
15
|
-
if (e && t && typeof e == "object") {
|
16
|
-
if (Array.isArray(e)) {
|
17
|
-
if (n = e.length, n !== t.length) return !1;
|
18
|
-
for (r = n; r-- !== 0; )
|
19
|
-
if (!R(e[r], t[r]))
|
20
|
-
return !1;
|
21
|
-
return !0;
|
22
|
-
}
|
23
|
-
if (s = Object.keys(e), n = s.length, n !== Object.keys(t).length)
|
24
|
-
return !1;
|
25
|
-
for (r = n; r-- !== 0; )
|
26
|
-
if (!{}.hasOwnProperty.call(t, s[r]))
|
27
|
-
return !1;
|
28
|
-
for (r = n; r-- !== 0; ) {
|
29
|
-
const p = s[r];
|
30
|
-
if (!(p === "_owner" && e.$$typeof) && !R(e[p], t[p]))
|
31
|
-
return !1;
|
32
|
-
}
|
33
|
-
return !0;
|
34
|
-
}
|
35
|
-
return e !== e && t !== t;
|
36
|
-
}
|
37
|
-
function q(e) {
|
38
|
-
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
39
|
-
}
|
40
|
-
function A(e, t) {
|
41
|
-
const n = q(e);
|
42
|
-
return Math.round(t * n) / n;
|
43
|
-
}
|
44
|
-
function E(e) {
|
45
|
-
const t = f.useRef(e);
|
46
|
-
return w(() => {
|
47
|
-
t.current = e;
|
48
|
-
}), t;
|
49
|
-
}
|
50
|
-
function re(e) {
|
51
|
-
e === void 0 && (e = {});
|
52
|
-
const {
|
53
|
-
placement: t = "bottom",
|
54
|
-
strategy: n = "absolute",
|
55
|
-
middleware: r = [],
|
56
|
-
platform: s,
|
57
|
-
elements: {
|
58
|
-
reference: p,
|
59
|
-
floating: v
|
60
|
-
} = {},
|
61
|
-
transform: k = !0,
|
62
|
-
whileElementsMounted: D,
|
63
|
-
open: x
|
64
|
-
} = e, [i, O] = f.useState({
|
65
|
-
x: 0,
|
66
|
-
y: 0,
|
67
|
-
strategy: n,
|
68
|
-
placement: t,
|
69
|
-
middlewareData: {},
|
70
|
-
isPositioned: !1
|
71
|
-
}), [M, B] = f.useState(r);
|
72
|
-
R(M, r) || B(r);
|
73
|
-
const [U, V] = f.useState(null), [W, G] = f.useState(null), _ = f.useCallback((o) => {
|
74
|
-
o !== a.current && (a.current = o, V(o));
|
75
|
-
}, []), C = f.useCallback((o) => {
|
76
|
-
o !== d.current && (d.current = o, G(o));
|
77
|
-
}, []), u = p || U, l = v || W, a = f.useRef(null), d = f.useRef(null), y = f.useRef(i), H = D != null, S = E(D), P = E(s), F = E(x), g = f.useCallback(() => {
|
78
|
-
if (!a.current || !d.current)
|
79
|
-
return;
|
80
|
-
const o = {
|
81
|
-
placement: t,
|
82
|
-
strategy: n,
|
83
|
-
middleware: M
|
84
|
-
};
|
85
|
-
P.current && (o.platform = P.current), I(a.current, d.current, o).then((h) => {
|
86
|
-
const m = {
|
87
|
-
...h,
|
88
|
-
// The floating element's position may be recomputed while it's closed
|
89
|
-
// but still mounted (such as when transitioning out). To ensure
|
90
|
-
// `isPositioned` will be `false` initially on the next open, avoid
|
91
|
-
// setting it to `true` when `open === false` (must be specified).
|
92
|
-
isPositioned: F.current !== !1
|
93
|
-
};
|
94
|
-
$.current && !R(y.current, m) && (y.current = m, b.flushSync(() => {
|
95
|
-
O(m);
|
96
|
-
}));
|
97
|
-
});
|
98
|
-
}, [M, t, n, P, F]);
|
99
|
-
w(() => {
|
100
|
-
x === !1 && y.current.isPositioned && (y.current.isPositioned = !1, O((o) => ({
|
101
|
-
...o,
|
102
|
-
isPositioned: !1
|
103
|
-
})));
|
104
|
-
}, [x]);
|
105
|
-
const $ = f.useRef(!1);
|
106
|
-
w(() => ($.current = !0, () => {
|
107
|
-
$.current = !1;
|
108
|
-
}), []), w(() => {
|
109
|
-
if (u && (a.current = u), l && (d.current = l), u && l) {
|
110
|
-
if (S.current)
|
111
|
-
return S.current(u, l, g);
|
112
|
-
g();
|
113
|
-
}
|
114
|
-
}, [u, l, g, S, H]);
|
115
|
-
const j = f.useMemo(() => ({
|
116
|
-
reference: a,
|
117
|
-
floating: d,
|
118
|
-
setReference: _,
|
119
|
-
setFloating: C
|
120
|
-
}), [_, C]), c = f.useMemo(() => ({
|
121
|
-
reference: u,
|
122
|
-
floating: l
|
123
|
-
}), [u, l]), z = f.useMemo(() => {
|
124
|
-
const o = {
|
125
|
-
position: n,
|
126
|
-
left: 0,
|
127
|
-
top: 0
|
128
|
-
};
|
129
|
-
if (!c.floating)
|
130
|
-
return o;
|
131
|
-
const h = A(c.floating, i.x), m = A(c.floating, i.y);
|
132
|
-
return k ? {
|
133
|
-
...o,
|
134
|
-
transform: "translate(" + h + "px, " + m + "px)",
|
135
|
-
...q(c.floating) >= 1.5 && {
|
136
|
-
willChange: "transform"
|
137
|
-
}
|
138
|
-
} : {
|
139
|
-
position: n,
|
140
|
-
left: h,
|
141
|
-
top: m
|
142
|
-
};
|
143
|
-
}, [n, k, c.floating, i.x, i.y]);
|
144
|
-
return f.useMemo(() => ({
|
145
|
-
...i,
|
146
|
-
update: g,
|
147
|
-
refs: j,
|
148
|
-
elements: c,
|
149
|
-
floatingStyles: z
|
150
|
-
}), [i, g, j, c, z]);
|
151
|
-
}
|
152
|
-
const ee = (e) => {
|
153
|
-
function t(n) {
|
154
|
-
return {}.hasOwnProperty.call(n, "current");
|
155
|
-
}
|
156
|
-
return {
|
157
|
-
name: "arrow",
|
158
|
-
options: e,
|
159
|
-
fn(n) {
|
160
|
-
const {
|
161
|
-
element: r,
|
162
|
-
padding: s
|
163
|
-
} = typeof e == "function" ? e(n) : e;
|
164
|
-
return r && t(r) ? r.current != null ? L({
|
165
|
-
element: r.current,
|
166
|
-
padding: s
|
167
|
-
}).fn(n) : {} : r ? L({
|
168
|
-
element: r,
|
169
|
-
padding: s
|
170
|
-
}).fn(n) : {};
|
171
|
-
}
|
172
|
-
};
|
173
|
-
}, fe = (e, t) => ({
|
174
|
-
...J(e),
|
175
|
-
options: [e, t]
|
176
|
-
}), oe = (e, t) => ({
|
177
|
-
...K(e),
|
178
|
-
options: [e, t]
|
179
|
-
}), se = (e, t) => ({
|
180
|
-
...X(e),
|
181
|
-
options: [e, t]
|
182
|
-
}), ie = (e, t) => ({
|
183
|
-
...N(e),
|
184
|
-
options: [e, t]
|
185
|
-
}), ue = (e, t) => ({
|
186
|
-
...Q(e),
|
187
|
-
options: [e, t]
|
188
|
-
}), le = (e, t) => ({
|
189
|
-
...T(e),
|
190
|
-
options: [e, t]
|
191
|
-
}), ce = (e, t) => ({
|
192
|
-
...ee(e),
|
193
|
-
options: [e, t]
|
194
|
-
});
|
1
|
+
import { createSidecarMedium as e } from "./index.es379.js";
|
2
|
+
var a = e();
|
195
3
|
export {
|
196
|
-
|
197
|
-
me as autoUpdate,
|
198
|
-
I as computePosition,
|
199
|
-
ie as flip,
|
200
|
-
le as hide,
|
201
|
-
se as limitShift,
|
202
|
-
fe as offset,
|
203
|
-
pe as platform,
|
204
|
-
oe as shift,
|
205
|
-
ue as size,
|
206
|
-
re as useFloating
|
4
|
+
a as effectCar
|
207
5
|
};
|
208
6
|
//# sourceMappingURL=index.es367.js.map
|