@yselimcan/ui 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +100 -15331
- package/dist/index10.js +137 -0
- package/dist/index100.js +8 -0
- package/dist/index101.js +136 -0
- package/dist/index102.js +30 -0
- package/dist/index103.js +11 -0
- package/dist/index104.js +7 -0
- package/dist/index105.js +15 -0
- package/dist/index106.js +25 -0
- package/dist/index107.js +10 -0
- package/dist/index108.js +90 -0
- package/dist/index109.js +15 -0
- package/dist/index11.js +21 -0
- package/dist/index110.js +65 -0
- package/dist/index111.js +40 -0
- package/dist/index112.js +16 -0
- package/dist/index113.js +35 -0
- package/dist/index114.js +21 -0
- package/dist/index115.js +8 -0
- package/dist/index116.js +6 -0
- package/dist/index117.js +7 -0
- package/dist/index118.js +14 -0
- package/dist/index119.js +21 -0
- package/dist/index12.js +20 -0
- package/dist/index120.js +15 -0
- package/dist/index121.js +299 -0
- package/dist/index122.js +7 -0
- package/dist/index123.js +41 -0
- package/dist/index124.js +128 -0
- package/dist/index125.js +23 -0
- package/dist/index126.js +79 -0
- package/dist/index127.js +67 -0
- package/dist/index128.js +48 -0
- package/dist/index129.js +16 -0
- package/dist/index13.js +206 -0
- package/dist/index130.js +8 -0
- package/dist/index131.js +32 -0
- package/dist/index132.js +20 -0
- package/dist/index133.js +24 -0
- package/dist/index134.js +61 -0
- package/dist/index135.js +20 -0
- package/dist/index136.js +30 -0
- package/dist/index137.js +43 -0
- package/dist/index138.js +45 -0
- package/dist/index139.js +24 -0
- package/dist/index14.js +24 -0
- package/dist/index140.js +51 -0
- package/dist/index141.js +54 -0
- package/dist/index142.js +20 -0
- package/dist/index143.js +14 -0
- package/dist/index144.js +25 -0
- package/dist/index145.js +38 -0
- package/dist/index146.js +233 -0
- package/dist/index147.js +286 -0
- package/dist/index148.js +56 -0
- package/dist/index149.js +18 -0
- package/dist/index15.js +19 -0
- package/dist/index150.js +82 -0
- package/dist/index151.js +6 -0
- package/dist/index152.js +33 -0
- package/dist/index153.js +26 -0
- package/dist/index154.js +18 -0
- package/dist/index155.js +72 -0
- package/dist/index156.js +6 -0
- package/dist/index157.js +107 -0
- package/dist/index158.js +82 -0
- package/dist/index159.js +266 -0
- package/dist/index16.js +8 -0
- package/dist/index160.js +14 -0
- package/dist/index161.js +13 -0
- package/dist/index162.js +43 -0
- package/dist/index163.js +7 -0
- package/dist/index164.js +69 -0
- package/dist/index165.js +12 -0
- package/dist/index166.js +11 -0
- package/dist/index167.js +8 -0
- package/dist/index168.js +56 -0
- package/dist/index169.js +14 -0
- package/dist/index17.js +46 -0
- package/dist/index170.js +120 -0
- package/dist/index171.js +14 -0
- package/dist/index172.js +14 -0
- package/dist/index173.js +69 -0
- package/dist/index174.js +15 -0
- package/dist/index175.js +15 -0
- package/dist/index176.js +15 -0
- package/dist/index177.js +14 -0
- package/dist/index178.js +90 -0
- package/dist/index179.js +14 -0
- package/dist/index18.js +41 -0
- package/dist/index180.js +14 -0
- package/dist/index181.js +59 -0
- package/dist/index182.js +14 -0
- package/dist/index183.js +14 -0
- package/dist/index184.js +21 -0
- package/dist/index185.js +11 -0
- package/dist/index186.js +11 -0
- package/dist/index187.js +106 -0
- package/dist/index188.js +10 -0
- package/dist/index189.js +35 -0
- package/dist/index19.js +80 -0
- package/dist/index190.js +77 -0
- package/dist/index191.js +17 -0
- package/dist/index192.js +31 -0
- package/dist/index193.js +10 -0
- package/dist/index194.js +25 -0
- package/dist/index195.js +27 -0
- package/dist/index196.js +163 -0
- package/dist/index197.js +116 -0
- package/dist/index198.js +78 -0
- package/dist/index199.js +67 -0
- package/dist/index20.js +25 -0
- package/dist/index200.js +50 -0
- package/dist/index201.js +202 -0
- package/dist/index202.js +50 -0
- package/dist/index203.js +22 -0
- package/dist/index204.js +8 -0
- package/dist/index205.js +29 -0
- package/dist/index206.js +14 -0
- package/dist/index207.js +12 -0
- package/dist/index208.js +19 -0
- package/dist/index209.js +9 -0
- package/dist/index21.js +40 -0
- package/dist/index210.js +6 -0
- package/dist/index211.js +24 -0
- package/dist/index212.js +130 -0
- package/dist/index213.js +47 -0
- package/dist/index214.js +20 -0
- package/dist/index215.js +7 -0
- package/dist/index216.js +183 -0
- package/dist/index217.js +78 -0
- package/dist/index218.js +401 -0
- package/dist/index219.js +41 -0
- package/dist/index22.js +31 -0
- package/dist/index220.js +59 -0
- package/dist/index221.js +30 -0
- package/dist/index222.js +10 -0
- package/dist/index223.js +15 -0
- package/dist/index224.js +14 -0
- package/dist/index225.js +14 -0
- package/dist/index226.js +24 -0
- package/dist/index227.js +14 -0
- package/dist/index228.js +10 -0
- package/dist/index229.js +45 -0
- package/dist/index23.js +25 -0
- package/dist/index230.js +599 -0
- package/dist/index231.js +14 -0
- package/dist/index232.js +35 -0
- package/dist/index233.js +6 -0
- package/dist/index234.js +7 -0
- package/dist/index235.js +17 -0
- package/dist/index236.js +211 -0
- package/dist/index237.js +6 -0
- package/dist/index238.js +16 -0
- package/dist/index239.js +50 -0
- package/dist/index24.js +56 -0
- package/dist/index240.js +6 -0
- package/dist/index241.js +15 -0
- package/dist/index242.js +60 -0
- package/dist/index243.js +32 -0
- package/dist/index244.js +16 -0
- package/dist/index245.js +11 -0
- package/dist/index246.js +209 -0
- package/dist/index247.js +324 -0
- package/dist/index248.js +5 -0
- package/dist/index249.js +5 -0
- package/dist/index25.js +35 -0
- package/dist/index250.js +17 -0
- package/dist/index251.js +23 -0
- package/dist/index252.js +8 -0
- package/dist/index253.js +489 -0
- package/dist/index254.js +10 -0
- package/dist/index255.js +4 -0
- package/dist/index256.js +46 -0
- package/dist/index257.js +58 -0
- package/dist/index258.js +10 -0
- package/dist/index259.js +4 -0
- package/dist/index26.js +7 -0
- package/dist/index260.js +57 -0
- package/dist/index261.js +58 -0
- package/dist/index262.js +4 -0
- package/dist/index263.js +4 -0
- package/dist/index264.js +4 -0
- package/dist/index265.js +4 -0
- package/dist/index27.js +82 -0
- package/dist/index28.js +32 -0
- package/dist/index29.js +6 -0
- package/dist/index3.js +181 -0
- package/dist/index30.js +9 -0
- package/dist/index31.js +6 -0
- package/dist/index32.js +23 -0
- package/dist/index33.js +207 -0
- package/dist/index34.js +25 -0
- package/dist/index35.js +102 -0
- package/dist/index36.js +69 -0
- package/dist/index37.js +66 -0
- package/dist/index38.js +113 -0
- package/dist/index39.js +53 -0
- package/dist/index4.js +47 -0
- package/dist/index40.js +35 -0
- package/dist/index41.js +28 -0
- package/dist/index42.js +18 -0
- package/dist/index43.js +27 -0
- package/dist/index44.js +25 -0
- package/dist/index45.js +36 -0
- package/dist/index46.js +78 -0
- package/dist/index47.js +65 -0
- package/dist/index48.js +128 -0
- package/dist/index49.js +19 -0
- package/dist/index5.js +52 -0
- package/dist/index50.js +86 -0
- package/dist/index51.js +6 -0
- package/dist/index52.js +268 -0
- package/dist/index53.js +25 -0
- package/dist/index54.js +207 -0
- package/dist/index55.js +146 -0
- package/dist/index56.js +88 -0
- package/dist/index57.js +29 -0
- package/dist/index58.js +30 -0
- package/dist/index59.js +48 -0
- package/dist/index6.js +93 -0
- package/dist/index60.js +79 -0
- package/dist/index61.js +45 -0
- package/dist/index62.js +46 -0
- package/dist/index63.js +76 -0
- package/dist/index64.js +45 -0
- package/dist/index65.js +22 -0
- package/dist/index66.js +101 -0
- package/dist/index67.js +14 -0
- package/dist/index68.js +6 -0
- package/dist/index69.js +321 -0
- package/dist/index7.js +294 -0
- package/dist/index70.js +24 -0
- package/dist/index71.js +143 -0
- package/dist/index72.js +200 -0
- package/dist/index73.js +43 -0
- package/dist/index74.js +29 -0
- package/dist/index75.js +148 -0
- package/dist/index76.js +32 -0
- package/dist/index77.js +53 -0
- package/dist/index78.js +28 -0
- package/dist/index79.js +15 -0
- package/dist/index8.js +264 -0
- package/dist/index80.js +15 -0
- package/dist/index81.js +135 -0
- package/dist/index82.js +31 -0
- package/dist/index83.js +35 -0
- package/dist/index84.js +17 -0
- package/dist/index85.js +2765 -0
- package/dist/index86.js +57 -0
- package/dist/index87.js +14 -0
- package/dist/index88.js +92 -0
- package/dist/index89.js +98 -0
- package/dist/index9.js +197 -0
- package/dist/index90.js +21 -0
- package/dist/index91.js +18 -0
- package/dist/index92.js +35 -0
- package/dist/index93.js +14 -0
- package/dist/index94.js +7 -0
- package/dist/index95.js +69 -0
- package/dist/index96.js +11 -0
- package/dist/index97.js +16 -0
- package/dist/index98.js +6 -0
- package/dist/index99.js +6 -0
- package/dist/styles.css +1 -1
- package/package.json +3 -2
package/dist/index253.js
ADDED
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
import { evaluate as R, getSide as E, getSideAxis as C, getOppositePlacement as Q, getExpandedPlacements as U, getOppositeAxisPlacements as Z, getAlignmentSides as ee, getAlignment as $, min as z, max as L, getPaddingObject as te, rectToClientRect as X, sides as ne, getAlignmentAxis as ie, getAxisLength as se, clamp as _, getOppositeAxis as J } from "./index212.js";
|
|
2
|
+
function I(t, e, d) {
|
|
3
|
+
let {
|
|
4
|
+
reference: s,
|
|
5
|
+
floating: c
|
|
6
|
+
} = t;
|
|
7
|
+
const n = C(e), a = ie(e), r = se(a), x = E(e), h = n === "y", o = s.x + s.width / 2 - c.width / 2, i = s.y + s.height / 2 - c.height / 2, f = s[r] / 2 - c[r] / 2;
|
|
8
|
+
let l;
|
|
9
|
+
switch (x) {
|
|
10
|
+
case "top":
|
|
11
|
+
l = {
|
|
12
|
+
x: o,
|
|
13
|
+
y: s.y - c.height
|
|
14
|
+
};
|
|
15
|
+
break;
|
|
16
|
+
case "bottom":
|
|
17
|
+
l = {
|
|
18
|
+
x: o,
|
|
19
|
+
y: s.y + s.height
|
|
20
|
+
};
|
|
21
|
+
break;
|
|
22
|
+
case "right":
|
|
23
|
+
l = {
|
|
24
|
+
x: s.x + s.width,
|
|
25
|
+
y: i
|
|
26
|
+
};
|
|
27
|
+
break;
|
|
28
|
+
case "left":
|
|
29
|
+
l = {
|
|
30
|
+
x: s.x - c.width,
|
|
31
|
+
y: i
|
|
32
|
+
};
|
|
33
|
+
break;
|
|
34
|
+
default:
|
|
35
|
+
l = {
|
|
36
|
+
x: s.x,
|
|
37
|
+
y: s.y
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
switch ($(e)) {
|
|
41
|
+
case "start":
|
|
42
|
+
l[a] -= f * (d && h ? -1 : 1);
|
|
43
|
+
break;
|
|
44
|
+
case "end":
|
|
45
|
+
l[a] += f * (d && h ? -1 : 1);
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
return l;
|
|
49
|
+
}
|
|
50
|
+
const le = async (t, e, d) => {
|
|
51
|
+
const {
|
|
52
|
+
placement: s = "bottom",
|
|
53
|
+
strategy: c = "absolute",
|
|
54
|
+
middleware: n = [],
|
|
55
|
+
platform: a
|
|
56
|
+
} = d, r = n.filter(Boolean), x = await (a.isRTL == null ? void 0 : a.isRTL(e));
|
|
57
|
+
let h = await a.getElementRects({
|
|
58
|
+
reference: t,
|
|
59
|
+
floating: e,
|
|
60
|
+
strategy: c
|
|
61
|
+
}), {
|
|
62
|
+
x: o,
|
|
63
|
+
y: i
|
|
64
|
+
} = I(h, s, x), f = s, l = {}, m = 0;
|
|
65
|
+
for (let w = 0; w < r.length; w++) {
|
|
66
|
+
const {
|
|
67
|
+
name: u,
|
|
68
|
+
fn: p
|
|
69
|
+
} = r[w], {
|
|
70
|
+
x: A,
|
|
71
|
+
y: v,
|
|
72
|
+
data: y,
|
|
73
|
+
reset: g
|
|
74
|
+
} = await p({
|
|
75
|
+
x: o,
|
|
76
|
+
y: i,
|
|
77
|
+
initialPlacement: s,
|
|
78
|
+
placement: f,
|
|
79
|
+
strategy: c,
|
|
80
|
+
middlewareData: l,
|
|
81
|
+
rects: h,
|
|
82
|
+
platform: a,
|
|
83
|
+
elements: {
|
|
84
|
+
reference: t,
|
|
85
|
+
floating: e
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
o = A ?? o, i = v ?? i, l = {
|
|
89
|
+
...l,
|
|
90
|
+
[u]: {
|
|
91
|
+
...l[u],
|
|
92
|
+
...y
|
|
93
|
+
}
|
|
94
|
+
}, g && m <= 50 && (m++, typeof g == "object" && (g.placement && (f = g.placement), g.rects && (h = g.rects === !0 ? await a.getElementRects({
|
|
95
|
+
reference: t,
|
|
96
|
+
floating: e,
|
|
97
|
+
strategy: c
|
|
98
|
+
}) : g.rects), {
|
|
99
|
+
x: o,
|
|
100
|
+
y: i
|
|
101
|
+
} = I(h, f, x)), w = -1);
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
x: o,
|
|
105
|
+
y: i,
|
|
106
|
+
placement: f,
|
|
107
|
+
strategy: c,
|
|
108
|
+
middlewareData: l
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
async function W(t, e) {
|
|
112
|
+
var d;
|
|
113
|
+
e === void 0 && (e = {});
|
|
114
|
+
const {
|
|
115
|
+
x: s,
|
|
116
|
+
y: c,
|
|
117
|
+
platform: n,
|
|
118
|
+
rects: a,
|
|
119
|
+
elements: r,
|
|
120
|
+
strategy: x
|
|
121
|
+
} = t, {
|
|
122
|
+
boundary: h = "clippingAncestors",
|
|
123
|
+
rootBoundary: o = "viewport",
|
|
124
|
+
elementContext: i = "floating",
|
|
125
|
+
altBoundary: f = !1,
|
|
126
|
+
padding: l = 0
|
|
127
|
+
} = R(e, t), m = te(l), u = r[f ? i === "floating" ? "reference" : "floating" : i], p = X(await n.getClippingRect({
|
|
128
|
+
element: (d = await (n.isElement == null ? void 0 : n.isElement(u))) == null || d ? u : u.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(r.floating)),
|
|
129
|
+
boundary: h,
|
|
130
|
+
rootBoundary: o,
|
|
131
|
+
strategy: x
|
|
132
|
+
})), A = i === "floating" ? {
|
|
133
|
+
x: s,
|
|
134
|
+
y: c,
|
|
135
|
+
width: a.floating.width,
|
|
136
|
+
height: a.floating.height
|
|
137
|
+
} : a.reference, v = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(r.floating)), y = await (n.isElement == null ? void 0 : n.isElement(v)) ? await (n.getScale == null ? void 0 : n.getScale(v)) || {
|
|
138
|
+
x: 1,
|
|
139
|
+
y: 1
|
|
140
|
+
} : {
|
|
141
|
+
x: 1,
|
|
142
|
+
y: 1
|
|
143
|
+
}, g = X(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
144
|
+
elements: r,
|
|
145
|
+
rect: A,
|
|
146
|
+
offsetParent: v,
|
|
147
|
+
strategy: x
|
|
148
|
+
}) : A);
|
|
149
|
+
return {
|
|
150
|
+
top: (p.top - g.top + m.top) / y.y,
|
|
151
|
+
bottom: (g.bottom - p.bottom + m.bottom) / y.y,
|
|
152
|
+
left: (p.left - g.left + m.left) / y.x,
|
|
153
|
+
right: (g.right - p.right + m.right) / y.x
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
const ce = function(t) {
|
|
157
|
+
return t === void 0 && (t = {}), {
|
|
158
|
+
name: "flip",
|
|
159
|
+
options: t,
|
|
160
|
+
async fn(e) {
|
|
161
|
+
var d, s;
|
|
162
|
+
const {
|
|
163
|
+
placement: c,
|
|
164
|
+
middlewareData: n,
|
|
165
|
+
rects: a,
|
|
166
|
+
initialPlacement: r,
|
|
167
|
+
platform: x,
|
|
168
|
+
elements: h
|
|
169
|
+
} = e, {
|
|
170
|
+
mainAxis: o = !0,
|
|
171
|
+
crossAxis: i = !0,
|
|
172
|
+
fallbackPlacements: f,
|
|
173
|
+
fallbackStrategy: l = "bestFit",
|
|
174
|
+
fallbackAxisSideDirection: m = "none",
|
|
175
|
+
flipAlignment: w = !0,
|
|
176
|
+
...u
|
|
177
|
+
} = R(t, e);
|
|
178
|
+
if ((d = n.arrow) != null && d.alignmentOffset)
|
|
179
|
+
return {};
|
|
180
|
+
const p = E(c), A = C(r), v = E(r) === r, y = await (x.isRTL == null ? void 0 : x.isRTL(h.floating)), g = f || (v || !w ? [Q(r)] : U(r)), P = m !== "none";
|
|
181
|
+
!f && P && g.push(...Z(r, w, m, y));
|
|
182
|
+
const H = [r, ...g], k = await W(e, u), D = [];
|
|
183
|
+
let O = ((s = n.flip) == null ? void 0 : s.overflows) || [];
|
|
184
|
+
if (o && D.push(k[p]), i) {
|
|
185
|
+
const M = ee(c, a, y);
|
|
186
|
+
D.push(k[M[0]], k[M[1]]);
|
|
187
|
+
}
|
|
188
|
+
if (O = [...O, {
|
|
189
|
+
placement: c,
|
|
190
|
+
overflows: D
|
|
191
|
+
}], !D.every((M) => M <= 0)) {
|
|
192
|
+
var F, V;
|
|
193
|
+
const M = (((F = n.flip) == null ? void 0 : F.index) || 0) + 1, Y = H[M];
|
|
194
|
+
if (Y && (!(i === "alignment" ? A !== C(Y) : !1) || // We leave the current main axis only if every placement on that axis
|
|
195
|
+
// overflows the main axis.
|
|
196
|
+
O.every((b) => C(b.placement) === A ? b.overflows[0] > 0 : !0)))
|
|
197
|
+
return {
|
|
198
|
+
data: {
|
|
199
|
+
index: M,
|
|
200
|
+
overflows: O
|
|
201
|
+
},
|
|
202
|
+
reset: {
|
|
203
|
+
placement: Y
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
let j = (V = O.filter((T) => T.overflows[0] <= 0).sort((T, b) => T.overflows[1] - b.overflows[1])[0]) == null ? void 0 : V.placement;
|
|
207
|
+
if (!j)
|
|
208
|
+
switch (l) {
|
|
209
|
+
case "bestFit": {
|
|
210
|
+
var B;
|
|
211
|
+
const T = (B = O.filter((b) => {
|
|
212
|
+
if (P) {
|
|
213
|
+
const S = C(b.placement);
|
|
214
|
+
return S === A || // Create a bias to the `y` side axis due to horizontal
|
|
215
|
+
// reading directions favoring greater width.
|
|
216
|
+
S === "y";
|
|
217
|
+
}
|
|
218
|
+
return !0;
|
|
219
|
+
}).map((b) => [b.placement, b.overflows.filter((S) => S > 0).reduce((S, N) => S + N, 0)]).sort((b, S) => b[1] - S[1])[0]) == null ? void 0 : B[0];
|
|
220
|
+
T && (j = T);
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
case "initialPlacement":
|
|
224
|
+
j = r;
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
if (c !== j)
|
|
228
|
+
return {
|
|
229
|
+
reset: {
|
|
230
|
+
placement: j
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
return {};
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
function q(t, e) {
|
|
239
|
+
return {
|
|
240
|
+
top: t.top - e.height,
|
|
241
|
+
right: t.right - e.width,
|
|
242
|
+
bottom: t.bottom - e.height,
|
|
243
|
+
left: t.left - e.width
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
function G(t) {
|
|
247
|
+
return ne.some((e) => t[e] >= 0);
|
|
248
|
+
}
|
|
249
|
+
const re = function(t) {
|
|
250
|
+
return t === void 0 && (t = {}), {
|
|
251
|
+
name: "hide",
|
|
252
|
+
options: t,
|
|
253
|
+
async fn(e) {
|
|
254
|
+
const {
|
|
255
|
+
rects: d
|
|
256
|
+
} = e, {
|
|
257
|
+
strategy: s = "referenceHidden",
|
|
258
|
+
...c
|
|
259
|
+
} = R(t, e);
|
|
260
|
+
switch (s) {
|
|
261
|
+
case "referenceHidden": {
|
|
262
|
+
const n = await W(e, {
|
|
263
|
+
...c,
|
|
264
|
+
elementContext: "reference"
|
|
265
|
+
}), a = q(n, d.reference);
|
|
266
|
+
return {
|
|
267
|
+
data: {
|
|
268
|
+
referenceHiddenOffsets: a,
|
|
269
|
+
referenceHidden: G(a)
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
case "escaped": {
|
|
274
|
+
const n = await W(e, {
|
|
275
|
+
...c,
|
|
276
|
+
altBoundary: !0
|
|
277
|
+
}), a = q(n, d.floating);
|
|
278
|
+
return {
|
|
279
|
+
data: {
|
|
280
|
+
escapedOffsets: a,
|
|
281
|
+
escaped: G(a)
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
default:
|
|
286
|
+
return {};
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
}, K = /* @__PURE__ */ new Set(["left", "top"]);
|
|
291
|
+
async function oe(t, e) {
|
|
292
|
+
const {
|
|
293
|
+
placement: d,
|
|
294
|
+
platform: s,
|
|
295
|
+
elements: c
|
|
296
|
+
} = t, n = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), a = E(d), r = $(d), x = C(d) === "y", h = K.has(a) ? -1 : 1, o = n && x ? -1 : 1, i = R(e, t);
|
|
297
|
+
let {
|
|
298
|
+
mainAxis: f,
|
|
299
|
+
crossAxis: l,
|
|
300
|
+
alignmentAxis: m
|
|
301
|
+
} = typeof i == "number" ? {
|
|
302
|
+
mainAxis: i,
|
|
303
|
+
crossAxis: 0,
|
|
304
|
+
alignmentAxis: null
|
|
305
|
+
} : {
|
|
306
|
+
mainAxis: i.mainAxis || 0,
|
|
307
|
+
crossAxis: i.crossAxis || 0,
|
|
308
|
+
alignmentAxis: i.alignmentAxis
|
|
309
|
+
};
|
|
310
|
+
return r && typeof m == "number" && (l = r === "end" ? m * -1 : m), x ? {
|
|
311
|
+
x: l * o,
|
|
312
|
+
y: f * h
|
|
313
|
+
} : {
|
|
314
|
+
x: f * h,
|
|
315
|
+
y: l * o
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
const fe = function(t) {
|
|
319
|
+
return t === void 0 && (t = 0), {
|
|
320
|
+
name: "offset",
|
|
321
|
+
options: t,
|
|
322
|
+
async fn(e) {
|
|
323
|
+
var d, s;
|
|
324
|
+
const {
|
|
325
|
+
x: c,
|
|
326
|
+
y: n,
|
|
327
|
+
placement: a,
|
|
328
|
+
middlewareData: r
|
|
329
|
+
} = e, x = await oe(e, t);
|
|
330
|
+
return a === ((d = r.offset) == null ? void 0 : d.placement) && (s = r.arrow) != null && s.alignmentOffset ? {} : {
|
|
331
|
+
x: c + x.x,
|
|
332
|
+
y: n + x.y,
|
|
333
|
+
data: {
|
|
334
|
+
...x,
|
|
335
|
+
placement: a
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
}, me = function(t) {
|
|
341
|
+
return t === void 0 && (t = {}), {
|
|
342
|
+
name: "shift",
|
|
343
|
+
options: t,
|
|
344
|
+
async fn(e) {
|
|
345
|
+
const {
|
|
346
|
+
x: d,
|
|
347
|
+
y: s,
|
|
348
|
+
placement: c
|
|
349
|
+
} = e, {
|
|
350
|
+
mainAxis: n = !0,
|
|
351
|
+
crossAxis: a = !1,
|
|
352
|
+
limiter: r = {
|
|
353
|
+
fn: (u) => {
|
|
354
|
+
let {
|
|
355
|
+
x: p,
|
|
356
|
+
y: A
|
|
357
|
+
} = u;
|
|
358
|
+
return {
|
|
359
|
+
x: p,
|
|
360
|
+
y: A
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
...x
|
|
365
|
+
} = R(t, e), h = {
|
|
366
|
+
x: d,
|
|
367
|
+
y: s
|
|
368
|
+
}, o = await W(e, x), i = C(E(c)), f = J(i);
|
|
369
|
+
let l = h[f], m = h[i];
|
|
370
|
+
if (n) {
|
|
371
|
+
const u = f === "y" ? "top" : "left", p = f === "y" ? "bottom" : "right", A = l + o[u], v = l - o[p];
|
|
372
|
+
l = _(A, l, v);
|
|
373
|
+
}
|
|
374
|
+
if (a) {
|
|
375
|
+
const u = i === "y" ? "top" : "left", p = i === "y" ? "bottom" : "right", A = m + o[u], v = m - o[p];
|
|
376
|
+
m = _(A, m, v);
|
|
377
|
+
}
|
|
378
|
+
const w = r.fn({
|
|
379
|
+
...e,
|
|
380
|
+
[f]: l,
|
|
381
|
+
[i]: m
|
|
382
|
+
});
|
|
383
|
+
return {
|
|
384
|
+
...w,
|
|
385
|
+
data: {
|
|
386
|
+
x: w.x - d,
|
|
387
|
+
y: w.y - s,
|
|
388
|
+
enabled: {
|
|
389
|
+
[f]: n,
|
|
390
|
+
[i]: a
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
}, de = function(t) {
|
|
397
|
+
return t === void 0 && (t = {}), {
|
|
398
|
+
options: t,
|
|
399
|
+
fn(e) {
|
|
400
|
+
const {
|
|
401
|
+
x: d,
|
|
402
|
+
y: s,
|
|
403
|
+
placement: c,
|
|
404
|
+
rects: n,
|
|
405
|
+
middlewareData: a
|
|
406
|
+
} = e, {
|
|
407
|
+
offset: r = 0,
|
|
408
|
+
mainAxis: x = !0,
|
|
409
|
+
crossAxis: h = !0
|
|
410
|
+
} = R(t, e), o = {
|
|
411
|
+
x: d,
|
|
412
|
+
y: s
|
|
413
|
+
}, i = C(c), f = J(i);
|
|
414
|
+
let l = o[f], m = o[i];
|
|
415
|
+
const w = R(r, e), u = typeof w == "number" ? {
|
|
416
|
+
mainAxis: w,
|
|
417
|
+
crossAxis: 0
|
|
418
|
+
} : {
|
|
419
|
+
mainAxis: 0,
|
|
420
|
+
crossAxis: 0,
|
|
421
|
+
...w
|
|
422
|
+
};
|
|
423
|
+
if (x) {
|
|
424
|
+
const v = f === "y" ? "height" : "width", y = n.reference[f] - n.floating[v] + u.mainAxis, g = n.reference[f] + n.reference[v] - u.mainAxis;
|
|
425
|
+
l < y ? l = y : l > g && (l = g);
|
|
426
|
+
}
|
|
427
|
+
if (h) {
|
|
428
|
+
var p, A;
|
|
429
|
+
const v = f === "y" ? "width" : "height", y = K.has(E(c)), g = n.reference[i] - n.floating[v] + (y && ((p = a.offset) == null ? void 0 : p[i]) || 0) + (y ? 0 : u.crossAxis), P = n.reference[i] + n.reference[v] + (y ? 0 : ((A = a.offset) == null ? void 0 : A[i]) || 0) - (y ? u.crossAxis : 0);
|
|
430
|
+
m < g ? m = g : m > P && (m = P);
|
|
431
|
+
}
|
|
432
|
+
return {
|
|
433
|
+
[f]: l,
|
|
434
|
+
[i]: m
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
}, xe = function(t) {
|
|
439
|
+
return t === void 0 && (t = {}), {
|
|
440
|
+
name: "size",
|
|
441
|
+
options: t,
|
|
442
|
+
async fn(e) {
|
|
443
|
+
var d, s;
|
|
444
|
+
const {
|
|
445
|
+
placement: c,
|
|
446
|
+
rects: n,
|
|
447
|
+
platform: a,
|
|
448
|
+
elements: r
|
|
449
|
+
} = e, {
|
|
450
|
+
apply: x = () => {
|
|
451
|
+
},
|
|
452
|
+
...h
|
|
453
|
+
} = R(t, e), o = await W(e, h), i = E(c), f = $(c), l = C(c) === "y", {
|
|
454
|
+
width: m,
|
|
455
|
+
height: w
|
|
456
|
+
} = n.floating;
|
|
457
|
+
let u, p;
|
|
458
|
+
i === "top" || i === "bottom" ? (u = i, p = f === (await (a.isRTL == null ? void 0 : a.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (p = i, u = f === "end" ? "top" : "bottom");
|
|
459
|
+
const A = w - o.top - o.bottom, v = m - o.left - o.right, y = z(w - o[u], A), g = z(m - o[p], v), P = !e.middlewareData.shift;
|
|
460
|
+
let H = y, k = g;
|
|
461
|
+
if ((d = e.middlewareData.shift) != null && d.enabled.x && (k = v), (s = e.middlewareData.shift) != null && s.enabled.y && (H = A), P && !f) {
|
|
462
|
+
const O = L(o.left, 0), F = L(o.right, 0), V = L(o.top, 0), B = L(o.bottom, 0);
|
|
463
|
+
l ? k = m - 2 * (O !== 0 || F !== 0 ? O + F : L(o.left, o.right)) : H = w - 2 * (V !== 0 || B !== 0 ? V + B : L(o.top, o.bottom));
|
|
464
|
+
}
|
|
465
|
+
await x({
|
|
466
|
+
...e,
|
|
467
|
+
availableWidth: k,
|
|
468
|
+
availableHeight: H
|
|
469
|
+
});
|
|
470
|
+
const D = await a.getDimensions(r.floating);
|
|
471
|
+
return m !== D.width || w !== D.height ? {
|
|
472
|
+
reset: {
|
|
473
|
+
rects: !0
|
|
474
|
+
}
|
|
475
|
+
} : {};
|
|
476
|
+
}
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
export {
|
|
480
|
+
le as computePosition,
|
|
481
|
+
W as detectOverflow,
|
|
482
|
+
ce as flip,
|
|
483
|
+
re as hide,
|
|
484
|
+
de as limitShift,
|
|
485
|
+
fe as offset,
|
|
486
|
+
X as rectToClientRect,
|
|
487
|
+
me as shift,
|
|
488
|
+
xe as size
|
|
489
|
+
};
|
package/dist/index254.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { __module as r } from "./index255.js";
|
|
2
|
+
import { __require as o } from "./index256.js";
|
|
3
|
+
import { __require as i } from "./index257.js";
|
|
4
|
+
var e;
|
|
5
|
+
function u() {
|
|
6
|
+
return e ? r.exports : (e = 1, process.env.NODE_ENV === "production" ? r.exports = o() : r.exports = i(), r.exports);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
u as __require
|
|
10
|
+
};
|
package/dist/index255.js
ADDED
package/dist/index256.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { __exports as i } from "./index262.js";
|
|
2
|
+
import h from "react";
|
|
3
|
+
var f;
|
|
4
|
+
function x() {
|
|
5
|
+
if (f) return i;
|
|
6
|
+
f = 1;
|
|
7
|
+
var u = h;
|
|
8
|
+
function s(e, t) {
|
|
9
|
+
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
10
|
+
}
|
|
11
|
+
var S = typeof Object.is == "function" ? Object.is : s, d = u.useState, l = u.useEffect, p = u.useLayoutEffect, E = u.useDebugValue;
|
|
12
|
+
function v(e, t) {
|
|
13
|
+
var r = t(), a = d({ inst: { value: r, getSnapshot: t } }), n = a[0].inst, c = a[1];
|
|
14
|
+
return p(
|
|
15
|
+
function() {
|
|
16
|
+
n.value = r, n.getSnapshot = t, o(n) && c({ inst: n });
|
|
17
|
+
},
|
|
18
|
+
[e, r, t]
|
|
19
|
+
), l(
|
|
20
|
+
function() {
|
|
21
|
+
return o(n) && c({ inst: n }), e(function() {
|
|
22
|
+
o(n) && c({ inst: n });
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
[e]
|
|
26
|
+
), E(r), r;
|
|
27
|
+
}
|
|
28
|
+
function o(e) {
|
|
29
|
+
var t = e.getSnapshot;
|
|
30
|
+
e = e.value;
|
|
31
|
+
try {
|
|
32
|
+
var r = t();
|
|
33
|
+
return !S(e, r);
|
|
34
|
+
} catch {
|
|
35
|
+
return !0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function y(e, t) {
|
|
39
|
+
return t();
|
|
40
|
+
}
|
|
41
|
+
var m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? y : v;
|
|
42
|
+
return i.useSyncExternalStore = u.useSyncExternalStore !== void 0 ? u.useSyncExternalStore : m, i;
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
x as __require
|
|
46
|
+
};
|
package/dist/index257.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { __exports as s } from "./index263.js";
|
|
2
|
+
import h from "react";
|
|
3
|
+
var l;
|
|
4
|
+
function A() {
|
|
5
|
+
return l ? s : (l = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
6
|
+
function d(e, t) {
|
|
7
|
+
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
8
|
+
}
|
|
9
|
+
function S(e, t) {
|
|
10
|
+
f || o.startTransition === void 0 || (f = !0, console.error(
|
|
11
|
+
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
12
|
+
));
|
|
13
|
+
var r = t();
|
|
14
|
+
if (!c) {
|
|
15
|
+
var u = t();
|
|
16
|
+
_(r, u) || (console.error(
|
|
17
|
+
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
18
|
+
), c = !0);
|
|
19
|
+
}
|
|
20
|
+
u = p({
|
|
21
|
+
inst: { value: r, getSnapshot: t }
|
|
22
|
+
});
|
|
23
|
+
var n = u[0].inst, i = u[1];
|
|
24
|
+
return L(
|
|
25
|
+
function() {
|
|
26
|
+
n.value = r, n.getSnapshot = t, a(n) && i({ inst: n });
|
|
27
|
+
},
|
|
28
|
+
[e, r, t]
|
|
29
|
+
), E(
|
|
30
|
+
function() {
|
|
31
|
+
return a(n) && i({ inst: n }), e(function() {
|
|
32
|
+
a(n) && i({ inst: n });
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
[e]
|
|
36
|
+
), y(r), r;
|
|
37
|
+
}
|
|
38
|
+
function a(e) {
|
|
39
|
+
var t = e.getSnapshot;
|
|
40
|
+
e = e.value;
|
|
41
|
+
try {
|
|
42
|
+
var r = t();
|
|
43
|
+
return !_(e, r);
|
|
44
|
+
} catch {
|
|
45
|
+
return !0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function O(e, t) {
|
|
49
|
+
return t();
|
|
50
|
+
}
|
|
51
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
52
|
+
var o = h, _ = typeof Object.is == "function" ? Object.is : d, p = o.useState, E = o.useEffect, L = o.useLayoutEffect, y = o.useDebugValue, f = !1, c = !1, v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? O : S;
|
|
53
|
+
s.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : v, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
54
|
+
})(), s);
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
A as __require
|
|
58
|
+
};
|
package/dist/index258.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { __module as e } from "./index259.js";
|
|
2
|
+
import { __require as o } from "./index260.js";
|
|
3
|
+
import { __require as t } from "./index261.js";
|
|
4
|
+
var r;
|
|
5
|
+
function s() {
|
|
6
|
+
return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
s as __require
|
|
10
|
+
};
|
package/dist/index259.js
ADDED
package/dist/index26.js
ADDED
package/dist/index260.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { __exports as d } from "./index264.js";
|
|
2
|
+
import q from "react";
|
|
3
|
+
import { __require as w } from "./index254.js";
|
|
4
|
+
var V;
|
|
5
|
+
function k() {
|
|
6
|
+
if (V) return d;
|
|
7
|
+
V = 1;
|
|
8
|
+
var a = q, j = w();
|
|
9
|
+
function z(r, u) {
|
|
10
|
+
return r === u && (r !== 0 || 1 / r === 1 / u) || r !== r && u !== u;
|
|
11
|
+
}
|
|
12
|
+
var M = typeof Object.is == "function" ? Object.is : z, W = j.useSyncExternalStore, h = a.useRef, y = a.useEffect, D = a.useMemo, O = a.useDebugValue;
|
|
13
|
+
return d.useSyncExternalStoreWithSelector = function(r, u, m, v, t) {
|
|
14
|
+
var i = h(null);
|
|
15
|
+
if (i.current === null) {
|
|
16
|
+
var f = { hasValue: !1, value: null };
|
|
17
|
+
i.current = f;
|
|
18
|
+
} else f = i.current;
|
|
19
|
+
i = D(
|
|
20
|
+
function() {
|
|
21
|
+
function _(e) {
|
|
22
|
+
if (!s) {
|
|
23
|
+
if (s = !0, c = e, e = v(e), t !== void 0 && f.hasValue) {
|
|
24
|
+
var o = f.value;
|
|
25
|
+
if (t(o, e))
|
|
26
|
+
return n = o;
|
|
27
|
+
}
|
|
28
|
+
return n = e;
|
|
29
|
+
}
|
|
30
|
+
if (o = n, M(c, e)) return o;
|
|
31
|
+
var R = v(e);
|
|
32
|
+
return t !== void 0 && t(o, R) ? (c = e, o) : (c = e, n = R);
|
|
33
|
+
}
|
|
34
|
+
var s = !1, c, n, b = m === void 0 ? null : m;
|
|
35
|
+
return [
|
|
36
|
+
function() {
|
|
37
|
+
return _(u());
|
|
38
|
+
},
|
|
39
|
+
b === null ? void 0 : function() {
|
|
40
|
+
return _(b());
|
|
41
|
+
}
|
|
42
|
+
];
|
|
43
|
+
},
|
|
44
|
+
[u, m, v, t]
|
|
45
|
+
);
|
|
46
|
+
var l = W(r, i[0], i[1]);
|
|
47
|
+
return y(
|
|
48
|
+
function() {
|
|
49
|
+
f.hasValue = !0, f.value = l;
|
|
50
|
+
},
|
|
51
|
+
[l]
|
|
52
|
+
), O(l), l;
|
|
53
|
+
}, d;
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
k as __require
|
|
57
|
+
};
|