@plyaz/ui 0.4.4 → 0.4.6
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/types/components/Flex/Flex.d.ts +2 -2
- package/dist/types/components/Flex/Flex.d.ts.map +1 -1
- package/dist/types/components/Grid/Grid.d.ts +4 -4
- package/dist/types/components/Grid/Grid.d.ts.map +1 -1
- package/dist/types/components/Grid/Grid.stories.d.ts.map +1 -1
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/constants/constant.d.ts +33 -0
- package/dist/types/constants/constant.d.ts.map +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.cjs10.js +4 -1
- package/dist/ui.cjs11.js +1 -1
- package/dist/ui.cjs12.js +1 -1
- package/dist/ui.cjs13.js +1 -19
- package/dist/ui.cjs14.js +19 -7
- package/dist/ui.cjs15.js +7 -53
- package/dist/ui.cjs16.js +53 -1
- package/dist/ui.cjs17.js +1 -1
- package/dist/ui.cjs18.js +1 -31
- package/dist/ui.cjs19.js +31 -1
- package/dist/ui.cjs20.js +1 -1
- package/dist/ui.cjs21.js +1 -1
- package/dist/ui.cjs22.js +1 -6
- package/dist/ui.cjs23.js +2 -2
- package/dist/ui.cjs24.js +2 -2
- package/dist/ui.cjs25.js +6 -1
- package/dist/ui.cjs26.js +1 -1
- package/dist/ui.cjs27.js +1 -9
- package/dist/ui.cjs28.js +3 -8
- package/dist/ui.cjs29.js +14 -1
- package/dist/ui.cjs3.js +1 -5
- package/dist/ui.cjs30.js +1 -1
- package/dist/ui.cjs31.js +1 -1
- package/dist/ui.cjs32.js +1 -1
- package/dist/ui.cjs33.js +1 -1
- package/dist/ui.cjs34.js +1 -1
- package/dist/ui.cjs35.js +1 -1
- package/dist/ui.cjs36.js +1 -1
- package/dist/ui.cjs37.js +1 -1
- package/dist/ui.cjs38.js +1 -1
- package/dist/ui.cjs39.js +1 -1
- package/dist/ui.cjs4.js +5 -1
- package/dist/ui.cjs40.js +1 -1
- package/dist/ui.cjs41.js +1 -1
- package/dist/ui.cjs42.js +1 -1
- package/dist/ui.cjs43.js +1 -1
- package/dist/ui.cjs44.js +1 -1
- package/dist/ui.cjs45.js +1 -1
- package/dist/ui.cjs46.js +1 -1
- package/dist/ui.cjs47.js +1 -1
- package/dist/ui.cjs48.js +1 -1
- package/dist/ui.cjs49.js +1 -1
- package/dist/ui.cjs5.js +1 -1
- package/dist/ui.cjs50.js +1 -1
- package/dist/ui.cjs51.js +1 -1
- package/dist/ui.cjs53.js +1 -1
- package/dist/ui.cjs54.js +6 -1
- package/dist/ui.cjs55.js +6 -1
- package/dist/ui.cjs56.js +6 -1
- package/dist/ui.cjs57.js +6 -1
- package/dist/ui.cjs58.js +1 -6
- package/dist/ui.cjs59.js +1 -6
- package/dist/ui.cjs6.js +1 -1
- package/dist/ui.cjs60.js +1 -6
- package/dist/ui.cjs61.js +1 -6
- package/dist/ui.cjs62.js +1 -1
- package/dist/ui.cjs63.js +1 -1
- package/dist/ui.cjs64.js +1 -1
- package/dist/ui.cjs65.js +1 -1
- package/dist/ui.cjs66.js +1 -1
- package/dist/ui.cjs67.js +1 -1
- package/dist/ui.cjs68.js +1 -4
- package/dist/ui.cjs69.js +4 -1
- package/dist/ui.cjs7.js +1 -7
- package/dist/ui.cjs70.js +1 -1
- package/dist/ui.cjs71.js +1 -1
- package/dist/ui.cjs72.js +1 -1
- package/dist/ui.cjs73.js +1 -1
- package/dist/ui.cjs74.js +1 -1
- package/dist/ui.cjs75.js +1 -1
- package/dist/ui.cjs78.js +1 -1
- package/dist/ui.cjs79.js +1 -1
- package/dist/ui.cjs8.js +7 -1
- package/dist/ui.cjs80.js +1 -1
- package/dist/ui.cjs81.js +1 -1
- package/dist/ui.cjs82.js +1 -1
- package/dist/ui.cjs83.js +1 -1
- package/dist/ui.cjs84.js +1 -0
- package/dist/ui.cjs9.js +1 -4
- package/dist/ui.css +1 -0
- package/dist/ui.es.js +38 -37
- package/dist/ui.es10.js +22 -17
- package/dist/ui.es11.js +16 -29
- package/dist/ui.es12.js +26 -18
- package/dist/ui.es13.js +19 -34
- package/dist/ui.es14.js +37 -43
- package/dist/ui.es15.js +42 -210
- package/dist/ui.es16.js +212 -3
- package/dist/ui.es17.js +3 -15
- package/dist/ui.es18.js +15 -100
- package/dist/ui.es19.js +131 -49
- package/dist/ui.es20.js +50 -5
- package/dist/ui.es21.js +5 -860
- package/dist/ui.es22.js +861 -10
- package/dist/ui.es23.js +3 -3
- package/dist/ui.es24.js +3 -3
- package/dist/ui.es25.js +10 -8
- package/dist/ui.es26.js +8 -2
- package/dist/ui.es27.js +2 -33
- package/dist/ui.es28.js +23 -235
- package/dist/ui.es29.js +245 -33
- package/dist/ui.es3.js +7 -22
- package/dist/ui.es30.js +33 -27
- package/dist/ui.es31.js +22 -2724
- package/dist/ui.es32.js +2728 -3
- package/dist/ui.es33.js +3 -6
- package/dist/ui.es34.js +5 -44
- package/dist/ui.es35.js +43 -50
- package/dist/ui.es36.js +52 -7
- package/dist/ui.es37.js +7 -124
- package/dist/ui.es38.js +122 -12
- package/dist/ui.es39.js +14 -134
- package/dist/ui.es4.js +19 -39
- package/dist/ui.es40.js +134 -10
- package/dist/ui.es41.js +10 -217
- package/dist/ui.es42.js +217 -13
- package/dist/ui.es43.js +14 -34
- package/dist/ui.es44.js +33 -10
- package/dist/ui.es45.js +10 -51
- package/dist/ui.es46.js +52 -4
- package/dist/ui.es47.js +4 -6
- package/dist/ui.es48.js +6 -28
- package/dist/ui.es49.js +28 -50
- package/dist/ui.es5.js +40 -30
- package/dist/ui.es50.js +50 -9
- package/dist/ui.es51.js +9 -2
- package/dist/ui.es52.js +2 -2
- package/dist/ui.es53.js +2 -12
- package/dist/ui.es54.js +25 -206
- package/dist/ui.es55.js +22 -22
- package/dist/ui.es56.js +39 -25
- package/dist/ui.es57.js +17 -397
- package/dist/ui.es58.js +12 -25
- package/dist/ui.es59.js +205 -21
- package/dist/ui.es6.js +32 -23
- package/dist/ui.es60.js +21 -38
- package/dist/ui.es61.js +25 -18
- package/dist/ui.es62.js +395 -22
- package/dist/ui.es63.js +24 -28
- package/dist/ui.es64.js +29 -5
- package/dist/ui.es65.js +5 -5
- package/dist/ui.es66.js +5 -3
- package/dist/ui.es67.js +3 -24
- package/dist/ui.es68.js +22 -108
- package/dist/ui.es69.js +108 -14
- package/dist/ui.es7.js +24 -22
- package/dist/ui.es70.js +14 -523
- package/dist/ui.es71.js +511 -114
- package/dist/ui.es72.js +111 -117
- package/dist/ui.es73.js +130 -61
- package/dist/ui.es74.js +2 -2
- package/dist/ui.es75.js +1 -1
- package/dist/ui.es78.js +64 -3
- package/dist/ui.es79.js +3 -22
- package/dist/ui.es8.js +22 -19
- package/dist/ui.es80.js +23 -23
- package/dist/ui.es81.js +21 -11
- package/dist/ui.es82.js +11 -26
- package/dist/ui.es83.js +27 -4
- package/dist/ui.es84.js +7 -0
- package/dist/ui.es9.js +20 -18
- package/package.json +1 -1
- package/dist/ui.cjs2.js +0 -1
- package/dist/ui.es2.js +0 -9
package/dist/ui.es57.js
CHANGED
|
@@ -1,400 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
function F(t) {
|
|
18
|
-
const e = q(t);
|
|
19
|
-
if (!b(e))
|
|
20
|
-
return m(1);
|
|
21
|
-
const i = e.getBoundingClientRect(), {
|
|
22
|
-
width: n,
|
|
23
|
-
height: o,
|
|
24
|
-
$: r
|
|
25
|
-
} = Z(e);
|
|
26
|
-
let s = (r ? A(i.width) : i.width) / n, c = (r ? A(i.height) : i.height) / o;
|
|
27
|
-
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
28
|
-
x: s,
|
|
29
|
-
y: c
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
const gt = /* @__PURE__ */ m(0);
|
|
33
|
-
function X(t) {
|
|
34
|
-
const e = L(t);
|
|
35
|
-
return !Y() || !e.visualViewport ? gt : {
|
|
36
|
-
x: e.visualViewport.offsetLeft,
|
|
37
|
-
y: e.visualViewport.offsetTop
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function pt(t, e, i) {
|
|
41
|
-
return e === void 0 && (e = !1), !i || e && i !== L(t) ? !1 : e;
|
|
42
|
-
}
|
|
43
|
-
function T(t, e, i, n) {
|
|
44
|
-
e === void 0 && (e = !1), i === void 0 && (i = !1);
|
|
45
|
-
const o = t.getBoundingClientRect(), r = q(t);
|
|
46
|
-
let s = m(1);
|
|
47
|
-
e && (n ? v(n) && (s = F(n)) : s = F(t));
|
|
48
|
-
const c = pt(r, i, n) ? X(r) : m(0);
|
|
49
|
-
let l = (o.left + c.x) / s.x, f = (o.top + c.y) / s.y, u = o.width / s.x, h = o.height / s.y;
|
|
50
|
-
if (r) {
|
|
51
|
-
const p = L(r), a = n && v(n) ? L(n) : n;
|
|
52
|
-
let x = p, g = K(x);
|
|
53
|
-
for (; g && n && a !== x; ) {
|
|
54
|
-
const w = F(g), d = g.getBoundingClientRect(), y = R(g), C = d.left + (g.clientLeft + parseFloat(y.paddingLeft)) * w.x, B = d.top + (g.clientTop + parseFloat(y.paddingTop)) * w.y;
|
|
55
|
-
l *= w.x, f *= w.y, u *= w.x, h *= w.y, l += C, f += B, x = L(g), g = K(x);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return J({
|
|
59
|
-
width: u,
|
|
60
|
-
height: h,
|
|
61
|
-
x: l,
|
|
62
|
-
y: f
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function k(t, e) {
|
|
66
|
-
const i = N(t).scrollLeft;
|
|
67
|
-
return e ? e.left + i : T(O(t)).left + i;
|
|
68
|
-
}
|
|
69
|
-
function tt(t, e, i) {
|
|
70
|
-
i === void 0 && (i = !1);
|
|
71
|
-
const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - (i ? 0 : (
|
|
72
|
-
// RTL <body> scrollbar.
|
|
73
|
-
k(t, n)
|
|
74
|
-
)), r = n.top + e.scrollTop;
|
|
75
|
-
return {
|
|
76
|
-
x: o,
|
|
77
|
-
y: r
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function wt(t) {
|
|
81
|
-
let {
|
|
82
|
-
elements: e,
|
|
83
|
-
rect: i,
|
|
84
|
-
offsetParent: n,
|
|
85
|
-
strategy: o
|
|
86
|
-
} = t;
|
|
87
|
-
const r = o === "fixed", s = O(n), c = e ? $(e.floating) : !1;
|
|
88
|
-
if (n === s || c && r)
|
|
89
|
-
return i;
|
|
90
|
-
let l = {
|
|
91
|
-
scrollLeft: 0,
|
|
92
|
-
scrollTop: 0
|
|
93
|
-
}, f = m(1);
|
|
94
|
-
const u = m(0), h = b(n);
|
|
95
|
-
if ((h || !h && !r) && ((M(n) !== "body" || _(s)) && (l = N(n)), b(n))) {
|
|
96
|
-
const a = T(n);
|
|
97
|
-
f = F(n), u.x = a.x + n.clientLeft, u.y = a.y + n.clientTop;
|
|
98
|
-
}
|
|
99
|
-
const p = s && !h && !r ? tt(s, l, !0) : m(0);
|
|
100
|
-
return {
|
|
101
|
-
width: i.width * f.x,
|
|
102
|
-
height: i.height * f.y,
|
|
103
|
-
x: i.x * f.x - l.scrollLeft * f.x + u.x + p.x,
|
|
104
|
-
y: i.y * f.y - l.scrollTop * f.y + u.y + p.y
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
function mt(t) {
|
|
108
|
-
return Array.from(t.getClientRects());
|
|
109
|
-
}
|
|
110
|
-
function xt(t) {
|
|
111
|
-
const e = O(t), i = N(t), n = t.ownerDocument.body, o = E(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = E(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
112
|
-
let s = -i.scrollLeft + k(t);
|
|
113
|
-
const c = -i.scrollTop;
|
|
114
|
-
return R(n).direction === "rtl" && (s += E(e.clientWidth, n.clientWidth) - o), {
|
|
115
|
-
width: o,
|
|
116
|
-
height: r,
|
|
117
|
-
x: s,
|
|
118
|
-
y: c
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
function yt(t, e) {
|
|
122
|
-
const i = L(t), n = O(t), o = i.visualViewport;
|
|
123
|
-
let r = n.clientWidth, s = n.clientHeight, c = 0, l = 0;
|
|
124
|
-
if (o) {
|
|
125
|
-
r = o.width, s = o.height;
|
|
126
|
-
const f = Y();
|
|
127
|
-
(!f || f && e === "fixed") && (c = o.offsetLeft, l = o.offsetTop);
|
|
128
|
-
}
|
|
129
|
-
return {
|
|
130
|
-
width: r,
|
|
131
|
-
height: s,
|
|
132
|
-
x: c,
|
|
133
|
-
y: l
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
const vt = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
137
|
-
function Rt(t, e) {
|
|
138
|
-
const i = T(t, !0, e === "fixed"), n = i.top + t.clientTop, o = i.left + t.clientLeft, r = b(t) ? F(t) : m(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = o * r.x, f = n * r.y;
|
|
139
|
-
return {
|
|
140
|
-
width: s,
|
|
141
|
-
height: c,
|
|
142
|
-
x: l,
|
|
143
|
-
y: f
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
function j(t, e, i) {
|
|
147
|
-
let n;
|
|
148
|
-
if (e === "viewport")
|
|
149
|
-
n = yt(t, i);
|
|
150
|
-
else if (e === "document")
|
|
151
|
-
n = xt(O(t));
|
|
152
|
-
else if (v(e))
|
|
153
|
-
n = Rt(e, i);
|
|
154
|
-
else {
|
|
155
|
-
const o = X(t);
|
|
156
|
-
n = {
|
|
157
|
-
x: e.x - o.x,
|
|
158
|
-
y: e.y - o.y,
|
|
159
|
-
width: e.width,
|
|
160
|
-
height: e.height
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
return J(n);
|
|
164
|
-
}
|
|
165
|
-
function et(t, e) {
|
|
166
|
-
const i = W(t);
|
|
167
|
-
return i === e || !v(i) || H(i) ? !1 : R(i).position === "fixed" || et(i, e);
|
|
168
|
-
}
|
|
169
|
-
function Ot(t, e) {
|
|
170
|
-
const i = e.get(t);
|
|
171
|
-
if (i)
|
|
172
|
-
return i;
|
|
173
|
-
let n = V(t, [], !1).filter((c) => v(c) && M(c) !== "body"), o = null;
|
|
174
|
-
const r = R(t).position === "fixed";
|
|
175
|
-
let s = r ? W(t) : t;
|
|
176
|
-
for (; v(s) && !H(s); ) {
|
|
177
|
-
const c = R(s), l = Q(s);
|
|
178
|
-
!l && c.position === "fixed" && (o = null), (r ? !l && !o : !l && c.position === "static" && !!o && vt.has(o.position) || _(s) && !l && et(t, s)) ? n = n.filter((u) => u !== s) : o = c, s = W(s);
|
|
179
|
-
}
|
|
180
|
-
return e.set(t, n), n;
|
|
181
|
-
}
|
|
182
|
-
function bt(t) {
|
|
183
|
-
let {
|
|
184
|
-
element: e,
|
|
185
|
-
boundary: i,
|
|
186
|
-
rootBoundary: n,
|
|
187
|
-
strategy: o
|
|
188
|
-
} = t;
|
|
189
|
-
const s = [...i === "clippingAncestors" ? $(e) ? [] : Ot(e, this._c) : [].concat(i), n], c = s[0], l = s.reduce((f, u) => {
|
|
190
|
-
const h = j(e, u, o);
|
|
191
|
-
return f.top = E(h.top, f.top), f.right = S(h.right, f.right), f.bottom = S(h.bottom, f.bottom), f.left = E(h.left, f.left), f;
|
|
192
|
-
}, j(e, c, o));
|
|
193
|
-
return {
|
|
194
|
-
width: l.right - l.left,
|
|
195
|
-
height: l.bottom - l.top,
|
|
196
|
-
x: l.left,
|
|
197
|
-
y: l.top
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
function Ct(t) {
|
|
201
|
-
const {
|
|
202
|
-
width: e,
|
|
203
|
-
height: i
|
|
204
|
-
} = Z(t);
|
|
205
|
-
return {
|
|
206
|
-
width: e,
|
|
207
|
-
height: i
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
function Lt(t, e, i) {
|
|
211
|
-
const n = b(e), o = O(e), r = i === "fixed", s = T(t, !0, r, e);
|
|
212
|
-
let c = {
|
|
213
|
-
scrollLeft: 0,
|
|
214
|
-
scrollTop: 0
|
|
215
|
-
};
|
|
216
|
-
const l = m(0);
|
|
217
|
-
function f() {
|
|
218
|
-
l.x = k(o);
|
|
219
|
-
}
|
|
220
|
-
if (n || !n && !r)
|
|
221
|
-
if ((M(e) !== "body" || _(o)) && (c = N(e)), n) {
|
|
222
|
-
const a = T(e, !0, r, e);
|
|
223
|
-
l.x = a.x + e.clientLeft, l.y = a.y + e.clientTop;
|
|
224
|
-
} else o && f();
|
|
225
|
-
r && !n && o && f();
|
|
226
|
-
const u = o && !n && !r ? tt(o, c) : m(0), h = s.left + c.scrollLeft - l.x - u.x, p = s.top + c.scrollTop - l.y - u.y;
|
|
227
|
-
return {
|
|
228
|
-
x: h,
|
|
229
|
-
y: p,
|
|
230
|
-
width: s.width,
|
|
231
|
-
height: s.height
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
function I(t) {
|
|
235
|
-
return R(t).position === "static";
|
|
236
|
-
}
|
|
237
|
-
function G(t, e) {
|
|
238
|
-
if (!b(t) || R(t).position === "fixed")
|
|
239
|
-
return null;
|
|
240
|
-
if (e)
|
|
241
|
-
return e(t);
|
|
242
|
-
let i = t.offsetParent;
|
|
243
|
-
return O(t) === i && (i = i.ownerDocument.body), i;
|
|
244
|
-
}
|
|
245
|
-
function it(t, e) {
|
|
246
|
-
const i = L(t);
|
|
247
|
-
if ($(t))
|
|
248
|
-
return i;
|
|
249
|
-
if (!b(t)) {
|
|
250
|
-
let o = W(t);
|
|
251
|
-
for (; o && !H(o); ) {
|
|
252
|
-
if (v(o) && !I(o))
|
|
253
|
-
return o;
|
|
254
|
-
o = W(o);
|
|
255
|
-
}
|
|
256
|
-
return i;
|
|
257
|
-
}
|
|
258
|
-
let n = G(t, e);
|
|
259
|
-
for (; n && at(n) && I(n); )
|
|
260
|
-
n = G(n, e);
|
|
261
|
-
return n && H(n) && I(n) && !Q(n) ? i : n || dt(t) || i;
|
|
262
|
-
}
|
|
263
|
-
const Tt = async function(t) {
|
|
264
|
-
const e = this.getOffsetParent || it, i = this.getDimensions, n = await i(t.floating);
|
|
265
|
-
return {
|
|
266
|
-
reference: Lt(t.reference, await e(t.floating), t.strategy),
|
|
267
|
-
floating: {
|
|
268
|
-
x: 0,
|
|
269
|
-
y: 0,
|
|
270
|
-
width: n.width,
|
|
271
|
-
height: n.height
|
|
272
|
-
}
|
|
273
|
-
};
|
|
274
|
-
};
|
|
275
|
-
function Et(t) {
|
|
276
|
-
return R(t).direction === "rtl";
|
|
277
|
-
}
|
|
278
|
-
const Ft = {
|
|
279
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: wt,
|
|
280
|
-
getDocumentElement: O,
|
|
281
|
-
getClippingRect: bt,
|
|
282
|
-
getOffsetParent: it,
|
|
283
|
-
getElementRects: Tt,
|
|
284
|
-
getClientRects: mt,
|
|
285
|
-
getDimensions: Ct,
|
|
286
|
-
getScale: F,
|
|
287
|
-
isElement: v,
|
|
288
|
-
isRTL: Et
|
|
289
|
-
};
|
|
290
|
-
function nt(t, e) {
|
|
291
|
-
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
292
|
-
}
|
|
293
|
-
function Wt(t, e) {
|
|
294
|
-
let i = null, n;
|
|
295
|
-
const o = O(t);
|
|
296
|
-
function r() {
|
|
297
|
-
var c;
|
|
298
|
-
clearTimeout(n), (c = i) == null || c.disconnect(), i = null;
|
|
299
|
-
}
|
|
300
|
-
function s(c, l) {
|
|
301
|
-
c === void 0 && (c = !1), l === void 0 && (l = 1), r();
|
|
302
|
-
const f = t.getBoundingClientRect(), {
|
|
303
|
-
left: u,
|
|
304
|
-
top: h,
|
|
305
|
-
width: p,
|
|
306
|
-
height: a
|
|
307
|
-
} = f;
|
|
308
|
-
if (c || e(), !p || !a)
|
|
309
|
-
return;
|
|
310
|
-
const x = D(h), g = D(o.clientWidth - (u + p)), w = D(o.clientHeight - (h + a)), d = D(u), C = {
|
|
311
|
-
rootMargin: -x + "px " + -g + "px " + -w + "px " + -d + "px",
|
|
312
|
-
threshold: E(0, S(1, l)) || 1
|
|
313
|
-
};
|
|
314
|
-
let B = !0;
|
|
315
|
-
function P(U) {
|
|
316
|
-
const z = U[0].intersectionRatio;
|
|
317
|
-
if (z !== l) {
|
|
318
|
-
if (!B)
|
|
319
|
-
return s();
|
|
320
|
-
z ? s(!1, z) : n = setTimeout(() => {
|
|
321
|
-
s(!1, 1e-7);
|
|
322
|
-
}, 1e3);
|
|
323
|
-
}
|
|
324
|
-
z === 1 && !nt(f, t.getBoundingClientRect()) && s(), B = !1;
|
|
325
|
-
}
|
|
326
|
-
try {
|
|
327
|
-
i = new IntersectionObserver(P, {
|
|
328
|
-
...C,
|
|
329
|
-
// Handle <iframe>s
|
|
330
|
-
root: o.ownerDocument
|
|
331
|
-
});
|
|
332
|
-
} catch {
|
|
333
|
-
i = new IntersectionObserver(P, C);
|
|
334
|
-
}
|
|
335
|
-
i.observe(t);
|
|
336
|
-
}
|
|
337
|
-
return s(!0), r;
|
|
338
|
-
}
|
|
339
|
-
function At(t, e, i, n) {
|
|
340
|
-
n === void 0 && (n = {});
|
|
341
|
-
const {
|
|
342
|
-
ancestorScroll: o = !0,
|
|
343
|
-
ancestorResize: r = !0,
|
|
344
|
-
elementResize: s = typeof ResizeObserver == "function",
|
|
345
|
-
layoutShift: c = typeof IntersectionObserver == "function",
|
|
346
|
-
animationFrame: l = !1
|
|
347
|
-
} = n, f = q(t), u = o || r ? [...f ? V(f) : [], ...V(e)] : [];
|
|
348
|
-
u.forEach((d) => {
|
|
349
|
-
o && d.addEventListener("scroll", i, {
|
|
350
|
-
passive: !0
|
|
351
|
-
}), r && d.addEventListener("resize", i);
|
|
352
|
-
});
|
|
353
|
-
const h = f && c ? Wt(f, i) : null;
|
|
354
|
-
let p = -1, a = null;
|
|
355
|
-
s && (a = new ResizeObserver((d) => {
|
|
356
|
-
let [y] = d;
|
|
357
|
-
y && y.target === f && a && (a.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
358
|
-
var C;
|
|
359
|
-
(C = a) == null || C.observe(e);
|
|
360
|
-
})), i();
|
|
361
|
-
}), f && !l && a.observe(f), a.observe(e));
|
|
362
|
-
let x, g = l ? T(t) : null;
|
|
363
|
-
l && w();
|
|
364
|
-
function w() {
|
|
365
|
-
const d = T(t);
|
|
366
|
-
g && !nt(g, d) && i(), g = d, x = requestAnimationFrame(w);
|
|
367
|
-
}
|
|
368
|
-
return i(), () => {
|
|
369
|
-
var d;
|
|
370
|
-
u.forEach((y) => {
|
|
371
|
-
o && y.removeEventListener("scroll", i), r && y.removeEventListener("resize", i);
|
|
372
|
-
}), h == null || h(), (d = a) == null || d.disconnect(), a = null, l && cancelAnimationFrame(x);
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
const Ht = ot, Nt = st, It = rt, St = ct, Vt = lt, $t = ht, Mt = ft, _t = (t, e, i) => {
|
|
376
|
-
const n = /* @__PURE__ */ new Map(), o = {
|
|
377
|
-
platform: Ft,
|
|
378
|
-
...i
|
|
379
|
-
}, r = {
|
|
380
|
-
...o.platform,
|
|
381
|
-
_c: n
|
|
382
|
-
};
|
|
383
|
-
return ut(t, e, {
|
|
384
|
-
...o,
|
|
385
|
-
platform: r
|
|
386
|
-
});
|
|
1
|
+
/**
|
|
2
|
+
* @license lucide-react v0.525.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
var t = {
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
width: 24,
|
|
10
|
+
height: 24,
|
|
11
|
+
viewBox: "0 0 24 24",
|
|
12
|
+
fill: "none",
|
|
13
|
+
stroke: "currentColor",
|
|
14
|
+
strokeWidth: 2,
|
|
15
|
+
strokeLinecap: "round",
|
|
16
|
+
strokeLinejoin: "round"
|
|
387
17
|
};
|
|
388
18
|
export {
|
|
389
|
-
|
|
390
|
-
At as autoUpdate,
|
|
391
|
-
_t as computePosition,
|
|
392
|
-
It as flip,
|
|
393
|
-
V as getOverflowAncestors,
|
|
394
|
-
Vt as hide,
|
|
395
|
-
Mt as limitShift,
|
|
396
|
-
Ht as offset,
|
|
397
|
-
Ft as platform,
|
|
398
|
-
Nt as shift,
|
|
399
|
-
St as size
|
|
19
|
+
t as default
|
|
400
20
|
};
|
package/dist/ui.es58.js
CHANGED
|
@@ -1,27 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
({ className: a, ...s }, c) => l(n, {
|
|
13
|
-
ref: c,
|
|
14
|
-
iconNode: t,
|
|
15
|
-
className: d(
|
|
16
|
-
`lucide-${f(r(e))}`,
|
|
17
|
-
`lucide-${e}`,
|
|
18
|
-
a
|
|
19
|
-
),
|
|
20
|
-
...s
|
|
21
|
-
})
|
|
22
|
-
);
|
|
23
|
-
return o.displayName = r(e), o;
|
|
24
|
-
};
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import { useCallbackRef as s } from "./ui.es45.js";
|
|
3
|
+
function p(n, e = globalThis == null ? void 0 : globalThis.document) {
|
|
4
|
+
const t = s(n);
|
|
5
|
+
r.useEffect(() => {
|
|
6
|
+
const o = (a) => {
|
|
7
|
+
a.key === "Escape" && t(a);
|
|
8
|
+
};
|
|
9
|
+
return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
|
|
10
|
+
}, [t, e]);
|
|
11
|
+
}
|
|
25
12
|
export {
|
|
26
|
-
|
|
13
|
+
p as useEscapeKeydown
|
|
27
14
|
};
|
package/dist/ui.es59.js
CHANGED
|
@@ -1,24 +1,208 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
(e
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { computePosition as I, offset as J, shift as K, flip as N, size as Q, hide as T, limitShift as X, arrow as z } from "./ui.es62.js";
|
|
2
|
+
import { autoUpdate as pe, platform as ge } from "./ui.es62.js";
|
|
3
|
+
import * as o from "react";
|
|
4
|
+
import { useLayoutEffect as Y } from "react";
|
|
5
|
+
import * as Z from "react-dom";
|
|
6
|
+
var b = typeof document < "u", ee = function() {
|
|
7
|
+
}, w = b ? Y : ee;
|
|
8
|
+
function R(e, t) {
|
|
9
|
+
if (e === t)
|
|
10
|
+
return !0;
|
|
11
|
+
if (typeof e != typeof t)
|
|
12
|
+
return !1;
|
|
13
|
+
if (typeof e == "function" && e.toString() === t.toString())
|
|
14
|
+
return !0;
|
|
15
|
+
let n, r, i;
|
|
16
|
+
if (e && t && typeof e == "object") {
|
|
17
|
+
if (Array.isArray(e)) {
|
|
18
|
+
if (n = e.length, n !== t.length) return !1;
|
|
19
|
+
for (r = n; r-- !== 0; )
|
|
20
|
+
if (!R(e[r], t[r]))
|
|
21
|
+
return !1;
|
|
16
22
|
return !0;
|
|
17
|
-
}
|
|
23
|
+
}
|
|
24
|
+
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length)
|
|
25
|
+
return !1;
|
|
26
|
+
for (r = n; r-- !== 0; )
|
|
27
|
+
if (!{}.hasOwnProperty.call(t, i[r]))
|
|
28
|
+
return !1;
|
|
29
|
+
for (r = n; r-- !== 0; ) {
|
|
30
|
+
const p = i[r];
|
|
31
|
+
if (!(p === "_owner" && e.$$typeof) && !R(e[p], t[p]))
|
|
32
|
+
return !1;
|
|
33
|
+
}
|
|
34
|
+
return !0;
|
|
35
|
+
}
|
|
36
|
+
return e !== e && t !== t;
|
|
37
|
+
}
|
|
38
|
+
function A(e) {
|
|
39
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
40
|
+
}
|
|
41
|
+
function L(e, t) {
|
|
42
|
+
const n = A(e);
|
|
43
|
+
return Math.round(t * n) / n;
|
|
44
|
+
}
|
|
45
|
+
function k(e) {
|
|
46
|
+
const t = o.useRef(e);
|
|
47
|
+
return w(() => {
|
|
48
|
+
t.current = e;
|
|
49
|
+
}), t;
|
|
50
|
+
}
|
|
51
|
+
function oe(e) {
|
|
52
|
+
e === void 0 && (e = {});
|
|
53
|
+
const {
|
|
54
|
+
placement: t = "bottom",
|
|
55
|
+
strategy: n = "absolute",
|
|
56
|
+
middleware: r = [],
|
|
57
|
+
platform: i,
|
|
58
|
+
elements: {
|
|
59
|
+
reference: p,
|
|
60
|
+
floating: q
|
|
61
|
+
} = {},
|
|
62
|
+
transform: D = !0,
|
|
63
|
+
whileElementsMounted: E,
|
|
64
|
+
open: x
|
|
65
|
+
} = e, [s, C] = o.useState({
|
|
66
|
+
x: 0,
|
|
67
|
+
y: 0,
|
|
68
|
+
strategy: n,
|
|
69
|
+
placement: t,
|
|
70
|
+
middlewareData: {},
|
|
71
|
+
isPositioned: !1
|
|
72
|
+
}), [M, B] = o.useState(r);
|
|
73
|
+
R(M, r) || B(r);
|
|
74
|
+
const [U, V] = o.useState(null), [W, G] = o.useState(null), O = o.useCallback((f) => {
|
|
75
|
+
f !== a.current && (a.current = f, V(f));
|
|
76
|
+
}, []), _ = o.useCallback((f) => {
|
|
77
|
+
f !== d.current && (d.current = f, G(f));
|
|
78
|
+
}, []), u = p || U, l = q || W, a = o.useRef(null), d = o.useRef(null), y = o.useRef(s), H = E != null, S = k(E), P = k(i), v = k(x), g = o.useCallback(() => {
|
|
79
|
+
if (!a.current || !d.current)
|
|
80
|
+
return;
|
|
81
|
+
const f = {
|
|
82
|
+
placement: t,
|
|
83
|
+
strategy: n,
|
|
84
|
+
middleware: M
|
|
85
|
+
};
|
|
86
|
+
P.current && (f.platform = P.current), I(a.current, d.current, f).then((h) => {
|
|
87
|
+
const m = {
|
|
88
|
+
...h,
|
|
89
|
+
// The floating element's position may be recomputed while it's closed
|
|
90
|
+
// but still mounted (such as when transitioning out). To ensure
|
|
91
|
+
// `isPositioned` will be `false` initially on the next open, avoid
|
|
92
|
+
// setting it to `true` when `open === false` (must be specified).
|
|
93
|
+
isPositioned: v.current !== !1
|
|
94
|
+
};
|
|
95
|
+
$.current && !R(y.current, m) && (y.current = m, Z.flushSync(() => {
|
|
96
|
+
C(m);
|
|
97
|
+
}));
|
|
98
|
+
});
|
|
99
|
+
}, [M, t, n, P, v]);
|
|
100
|
+
w(() => {
|
|
101
|
+
x === !1 && y.current.isPositioned && (y.current.isPositioned = !1, C((f) => ({
|
|
102
|
+
...f,
|
|
103
|
+
isPositioned: !1
|
|
104
|
+
})));
|
|
105
|
+
}, [x]);
|
|
106
|
+
const $ = o.useRef(!1);
|
|
107
|
+
w(() => ($.current = !0, () => {
|
|
108
|
+
$.current = !1;
|
|
109
|
+
}), []), w(() => {
|
|
110
|
+
if (u && (a.current = u), l && (d.current = l), u && l) {
|
|
111
|
+
if (S.current)
|
|
112
|
+
return S.current(u, l, g);
|
|
113
|
+
g();
|
|
114
|
+
}
|
|
115
|
+
}, [u, l, g, S, H]);
|
|
116
|
+
const F = o.useMemo(() => ({
|
|
117
|
+
reference: a,
|
|
118
|
+
floating: d,
|
|
119
|
+
setReference: O,
|
|
120
|
+
setFloating: _
|
|
121
|
+
}), [O, _]), c = o.useMemo(() => ({
|
|
122
|
+
reference: u,
|
|
123
|
+
floating: l
|
|
124
|
+
}), [u, l]), j = o.useMemo(() => {
|
|
125
|
+
const f = {
|
|
126
|
+
position: n,
|
|
127
|
+
left: 0,
|
|
128
|
+
top: 0
|
|
129
|
+
};
|
|
130
|
+
if (!c.floating)
|
|
131
|
+
return f;
|
|
132
|
+
const h = L(c.floating, s.x), m = L(c.floating, s.y);
|
|
133
|
+
return D ? {
|
|
134
|
+
...f,
|
|
135
|
+
transform: "translate(" + h + "px, " + m + "px)",
|
|
136
|
+
...A(c.floating) >= 1.5 && {
|
|
137
|
+
willChange: "transform"
|
|
138
|
+
}
|
|
139
|
+
} : {
|
|
140
|
+
position: n,
|
|
141
|
+
left: h,
|
|
142
|
+
top: m
|
|
143
|
+
};
|
|
144
|
+
}, [n, D, c.floating, s.x, s.y]);
|
|
145
|
+
return o.useMemo(() => ({
|
|
146
|
+
...s,
|
|
147
|
+
update: g,
|
|
148
|
+
refs: F,
|
|
149
|
+
elements: c,
|
|
150
|
+
floatingStyles: j
|
|
151
|
+
}), [s, g, F, c, j]);
|
|
152
|
+
}
|
|
153
|
+
const te = (e) => {
|
|
154
|
+
function t(n) {
|
|
155
|
+
return {}.hasOwnProperty.call(n, "current");
|
|
156
|
+
}
|
|
157
|
+
return {
|
|
158
|
+
name: "arrow",
|
|
159
|
+
options: e,
|
|
160
|
+
fn(n) {
|
|
161
|
+
const {
|
|
162
|
+
element: r,
|
|
163
|
+
padding: i
|
|
164
|
+
} = typeof e == "function" ? e(n) : e;
|
|
165
|
+
return r && t(r) ? r.current != null ? z({
|
|
166
|
+
element: r.current,
|
|
167
|
+
padding: i
|
|
168
|
+
}).fn(n) : {} : r ? z({
|
|
169
|
+
element: r,
|
|
170
|
+
padding: i
|
|
171
|
+
}).fn(n) : {};
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
}, fe = (e, t) => ({
|
|
175
|
+
...J(e),
|
|
176
|
+
options: [e, t]
|
|
177
|
+
}), ie = (e, t) => ({
|
|
178
|
+
...K(e),
|
|
179
|
+
options: [e, t]
|
|
180
|
+
}), se = (e, t) => ({
|
|
181
|
+
...X(e),
|
|
182
|
+
options: [e, t]
|
|
183
|
+
}), ue = (e, t) => ({
|
|
184
|
+
...N(e),
|
|
185
|
+
options: [e, t]
|
|
186
|
+
}), le = (e, t) => ({
|
|
187
|
+
...Q(e),
|
|
188
|
+
options: [e, t]
|
|
189
|
+
}), ce = (e, t) => ({
|
|
190
|
+
...T(e),
|
|
191
|
+
options: [e, t]
|
|
192
|
+
}), ae = (e, t) => ({
|
|
193
|
+
...te(e),
|
|
194
|
+
options: [e, t]
|
|
195
|
+
});
|
|
18
196
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
197
|
+
ae as arrow,
|
|
198
|
+
pe as autoUpdate,
|
|
199
|
+
I as computePosition,
|
|
200
|
+
ue as flip,
|
|
201
|
+
ce as hide,
|
|
202
|
+
se as limitShift,
|
|
203
|
+
fe as offset,
|
|
204
|
+
ge as platform,
|
|
205
|
+
ie as shift,
|
|
206
|
+
le as size,
|
|
207
|
+
oe as useFloating
|
|
24
208
|
};
|