@wrdagency/blockout 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{2NBKRL7C-DnAMmXv4.js → 2NBKRL7C-raj2vrMY.js} +3 -3
- package/dist/{P7GR5CS5-BryEvRCz.js → P7GR5CS5-PkUYC6hd.js} +199 -180
- package/dist/{T7VMP3TM--1s529fr.js → T7VMP3TM-BeJUiw28.js} +683 -679
- package/dist/{UQQRIHDV-Bfi_RJby.js → UQQRIHDV-xtNCxi0H.js} +115 -115
- package/dist/{VIIRIBF3-XWA2y8Hu.js → VIIRIBF3-B3f0V2Nc.js} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/style.css +1 -0
- package/dist/assets/styles.css +1 -0
- package/dist/components/button/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/controls/base-control/index.d.ts +4 -2
- package/dist/components/controls/base-control/index.js +26 -22
- package/dist/components/controls/choice-control/choice.d.ts +8 -0
- package/dist/components/controls/choice-control/choice.js +54 -0
- package/dist/components/controls/choice-control/index.d.ts +9 -0
- package/dist/components/controls/choice-control/index.js +31 -0
- package/dist/components/controls/index.d.ts +1 -0
- package/dist/components/controls/index.js +12 -10
- package/dist/components/controls/number-control/index.js +1 -1
- package/dist/components/controls/ranked-choice-control/index.d.ts +1 -0
- package/dist/components/controls/ranked-choice-control/index.js +1 -0
- package/dist/components/controls/select-control/index.d.ts +2 -1
- package/dist/components/controls/select-control/index.js +1642 -374
- package/dist/components/controls/textarea-control/index.js +1 -1
- package/dist/components/controls/toggle-control/index.js +10 -9
- package/dist/components/data-table/header.js +9 -8
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +17 -13
- package/dist/components/menu/index.js +4 -4
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/items/action.js +1 -1
- package/dist/components/menu/items/spacer.js +2 -2
- package/dist/components/menu/items/submenu.js +2 -2
- package/dist/components/menu/items/toggle.js +1 -1
- package/dist/components/progress/index.d.ts +7 -0
- package/dist/components/progress/index.js +28 -0
- package/dist/index.js +25 -17
- package/dist/{item-CPVd5mKo.js → item-Bcbx6pI-.js} +87 -87
- package/dist/primitives/index.d.ts +2 -0
- package/dist/primitives/index.js +6 -2
- package/dist/primitives/resizable/index.js +7 -6
- package/dist/primitives/visually-hidden/index.js +6 -0
- package/package.json +2 -1
- package/dist/components/visually-hidden/index.js +0 -5
- /package/dist/{components → primitives}/visually-hidden/index.d.ts +0 -0
- /package/dist/{components/controls/select-control → types}/options.d.ts +0 -0
- /package/dist/{components/controls/select-control → types}/options.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as _ } from "./VIIRIBF3-
|
|
2
|
-
import { c as H, C as T, a as k, m as y, f as P, b as w, d as A, _ as D, i as N, u as F, e as R, g as j, h as C, j as d, k as B, l as K, n as V } from "./P7GR5CS5-
|
|
1
|
+
import { u as _ } from "./VIIRIBF3-B3f0V2Nc.js";
|
|
2
|
+
import { c as H, C as T, a as k, m as y, f as P, b as w, d as A, _ as D, i as N, u as F, e as R, g as j, h as C, j as d, k as B, l as K, n as V } from "./P7GR5CS5-PkUYC6hd.js";
|
|
3
3
|
import { createContext as W } from "react";
|
|
4
|
-
import { u as q, a as L, b as z, h as x } from "./UQQRIHDV-
|
|
4
|
+
import { u as q, a as L, b as z, h as x } from "./UQQRIHDV-xtNCxi0H.js";
|
|
5
5
|
var b = H(
|
|
6
6
|
[k],
|
|
7
7
|
[T]
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
import { isValidElement as tt, useLayoutEffect as et, useEffect as
|
|
2
|
+
import { isValidElement as tt, useLayoutEffect as et, useEffect as y, useMemo as X, useReducer as rt, useRef as O, useCallback as K, useState as C, createContext as R } from "react";
|
|
3
3
|
import { jsx as p } from "react/jsx-runtime";
|
|
4
|
-
var nt = Object.defineProperty, ot = Object.defineProperties, it = Object.getOwnPropertyDescriptors,
|
|
4
|
+
var nt = Object.defineProperty, ot = Object.defineProperties, it = Object.getOwnPropertyDescriptors, _ = Object.getOwnPropertySymbols, Y = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable, F = (t, e, r) => e in t ? nt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, c = (t, e) => {
|
|
5
5
|
for (var r in e || (e = {}))
|
|
6
6
|
Y.call(e, r) && F(t, r, e[r]);
|
|
7
|
-
if (
|
|
8
|
-
for (var r of
|
|
9
|
-
|
|
7
|
+
if (_)
|
|
8
|
+
for (var r of _(e))
|
|
9
|
+
z.call(e, r) && F(t, r, e[r]);
|
|
10
10
|
return t;
|
|
11
11
|
}, v = (t, e) => ot(t, it(e)), st = (t, e) => {
|
|
12
12
|
var r = {};
|
|
13
13
|
for (var n in t)
|
|
14
14
|
Y.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
|
|
15
|
-
if (t != null &&
|
|
16
|
-
for (var n of
|
|
17
|
-
e.indexOf(n) < 0 &&
|
|
15
|
+
if (t != null && _)
|
|
16
|
+
for (var n of _(t))
|
|
17
|
+
e.indexOf(n) < 0 && z.call(t, n) && (r[n] = t[n]);
|
|
18
18
|
return r;
|
|
19
|
-
}, at = Object.defineProperty, ut = Object.defineProperties, ct = Object.getOwnPropertyDescriptors,
|
|
19
|
+
}, at = Object.defineProperty, ut = Object.defineProperties, ct = Object.getOwnPropertyDescriptors, S = Object.getOwnPropertySymbols, k = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable, j = (t, e, r) => e in t ? at(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, G = (t, e) => {
|
|
20
20
|
for (var r in e || (e = {}))
|
|
21
|
-
|
|
22
|
-
if (
|
|
23
|
-
for (var r of
|
|
24
|
-
|
|
21
|
+
k.call(e, r) && j(t, r, e[r]);
|
|
22
|
+
if (S)
|
|
23
|
+
for (var r of S(e))
|
|
24
|
+
q.call(e, r) && j(t, r, e[r]);
|
|
25
25
|
return t;
|
|
26
26
|
}, ft = (t, e) => ut(t, ct(e)), Vt = (t, e) => {
|
|
27
27
|
var r = {};
|
|
28
28
|
for (var n in t)
|
|
29
|
-
|
|
30
|
-
if (t != null &&
|
|
31
|
-
for (var n of
|
|
32
|
-
e.indexOf(n) < 0 &&
|
|
29
|
+
k.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
|
|
30
|
+
if (t != null && S)
|
|
31
|
+
for (var n of S(t))
|
|
32
|
+
e.indexOf(n) < 0 && q.call(t, n) && (r[n] = t[n]);
|
|
33
33
|
return r;
|
|
34
34
|
};
|
|
35
35
|
function $t(...t) {
|
|
@@ -65,13 +65,13 @@ function Wt(t, e) {
|
|
|
65
65
|
D(r, n) && delete r[n];
|
|
66
66
|
return r;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Ut(t, e) {
|
|
69
69
|
const r = {};
|
|
70
70
|
for (const n of e)
|
|
71
71
|
D(t, n) && (r[n] = t[n]);
|
|
72
72
|
return r;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Ht(t) {
|
|
75
75
|
return t;
|
|
76
76
|
}
|
|
77
77
|
function Xt(t, e) {
|
|
@@ -85,16 +85,16 @@ function Yt(t, ...e) {
|
|
|
85
85
|
const r = typeof t == "function" ? t(...e) : t;
|
|
86
86
|
return r == null ? !1 : !r;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function zt(t) {
|
|
89
89
|
return t.disabled || t["aria-disabled"] === !0 || t["aria-disabled"] === "true";
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function kt(t) {
|
|
92
92
|
const e = {};
|
|
93
93
|
for (const r in t)
|
|
94
94
|
t[r] !== void 0 && (e[r] = t[r]);
|
|
95
95
|
return e;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function qt(...t) {
|
|
98
98
|
for (const e of t)
|
|
99
99
|
if (e !== void 0) return e;
|
|
100
100
|
}
|
|
@@ -135,19 +135,19 @@ function gt(t, e) {
|
|
|
135
135
|
}
|
|
136
136
|
return r;
|
|
137
137
|
}
|
|
138
|
-
var
|
|
138
|
+
var P = Ct();
|
|
139
139
|
function Ct() {
|
|
140
140
|
var t;
|
|
141
141
|
return typeof window < "u" && !!((t = window.document) != null && t.createElement);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function E(t) {
|
|
144
144
|
return t ? "self" in t ? t.document : t.ownerDocument || document : document;
|
|
145
145
|
}
|
|
146
146
|
function Gt(t) {
|
|
147
|
-
return t ? "self" in t ? t.self :
|
|
147
|
+
return t ? "self" in t ? t.self : E(t).defaultView || window : self;
|
|
148
148
|
}
|
|
149
149
|
function Pt(t, e = !1) {
|
|
150
|
-
const { activeElement: r } =
|
|
150
|
+
const { activeElement: r } = E(t);
|
|
151
151
|
if (!(r != null && r.nodeName))
|
|
152
152
|
return null;
|
|
153
153
|
if (xt(r) && r.contentDocument)
|
|
@@ -158,7 +158,7 @@ function Pt(t, e = !1) {
|
|
|
158
158
|
if (e) {
|
|
159
159
|
const n = r.getAttribute("aria-activedescendant");
|
|
160
160
|
if (n) {
|
|
161
|
-
const o =
|
|
161
|
+
const o = E(r).getElementById(n);
|
|
162
162
|
if (o)
|
|
163
163
|
return o;
|
|
164
164
|
}
|
|
@@ -204,7 +204,7 @@ function te(t) {
|
|
|
204
204
|
if (M(t))
|
|
205
205
|
return t.value;
|
|
206
206
|
if (t.isContentEditable) {
|
|
207
|
-
const e =
|
|
207
|
+
const e = E(t).createRange();
|
|
208
208
|
return e.selectNodeContents(t), e.toString();
|
|
209
209
|
}
|
|
210
210
|
return "";
|
|
@@ -214,7 +214,7 @@ function ee(t) {
|
|
|
214
214
|
if (M(t))
|
|
215
215
|
e = t.selectionStart || 0, r = t.selectionEnd || 0;
|
|
216
216
|
else if (t.isContentEditable) {
|
|
217
|
-
const n =
|
|
217
|
+
const n = E(t).getSelection();
|
|
218
218
|
if (n != null && n.rangeCount && n.anchorNode && b(t, n.anchorNode) && n.focusNode && b(t, n.focusNode)) {
|
|
219
219
|
const o = n.getRangeAt(0), i = o.cloneRange();
|
|
220
220
|
i.selectNodeContents(t), i.setEnd(o.startContainer, o.startOffset), e = i.toString().length, i.setEnd(o.endContainer, o.endOffset), r = i.toString().length;
|
|
@@ -247,7 +247,10 @@ function wt(t) {
|
|
|
247
247
|
}
|
|
248
248
|
return wt(t.parentElement) || document.scrollingElement || document.body;
|
|
249
249
|
}
|
|
250
|
-
function ne(t, e) {
|
|
250
|
+
function ne(t, ...e) {
|
|
251
|
+
/text|search|password|tel|url/i.test(t.type) && t.setSelectionRange(...e);
|
|
252
|
+
}
|
|
253
|
+
function oe(t, e) {
|
|
251
254
|
const r = t.map((o, i) => [i, o]);
|
|
252
255
|
let n = !1;
|
|
253
256
|
return r.sort(([o, i], [s, u]) => {
|
|
@@ -259,27 +262,27 @@ function ht(t, e) {
|
|
|
259
262
|
return !!(e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_PRECEDING);
|
|
260
263
|
}
|
|
261
264
|
function _t() {
|
|
262
|
-
return
|
|
265
|
+
return P && !!navigator.maxTouchPoints;
|
|
263
266
|
}
|
|
264
267
|
function J() {
|
|
265
|
-
return
|
|
266
|
-
}
|
|
267
|
-
function oe() {
|
|
268
|
-
return C && J() && /apple/i.test(navigator.vendor);
|
|
268
|
+
return P ? /mac|iphone|ipad|ipod/i.test(navigator.platform) : !1;
|
|
269
269
|
}
|
|
270
270
|
function ie() {
|
|
271
|
-
return
|
|
271
|
+
return P && J() && /apple/i.test(navigator.vendor);
|
|
272
272
|
}
|
|
273
273
|
function se() {
|
|
274
|
-
return
|
|
274
|
+
return P && /firefox\//i.test(navigator.userAgent);
|
|
275
275
|
}
|
|
276
|
-
function ae(
|
|
277
|
-
return
|
|
276
|
+
function ae() {
|
|
277
|
+
return P && navigator.platform.startsWith("Mac") && !_t();
|
|
278
278
|
}
|
|
279
279
|
function ue(t) {
|
|
280
|
-
return t.
|
|
280
|
+
return !!(t.currentTarget && !b(t.currentTarget, t.target));
|
|
281
281
|
}
|
|
282
282
|
function ce(t) {
|
|
283
|
+
return t.target === t.currentTarget;
|
|
284
|
+
}
|
|
285
|
+
function fe(t) {
|
|
283
286
|
const e = t.currentTarget;
|
|
284
287
|
if (!e) return !1;
|
|
285
288
|
const r = J();
|
|
@@ -287,33 +290,33 @@ function ce(t) {
|
|
|
287
290
|
const n = e.tagName.toLowerCase();
|
|
288
291
|
return n === "a" || n === "button" && e.type === "submit" || n === "input" && e.type === "submit";
|
|
289
292
|
}
|
|
290
|
-
function
|
|
293
|
+
function le(t) {
|
|
291
294
|
const e = t.currentTarget;
|
|
292
295
|
if (!e) return !1;
|
|
293
296
|
const r = e.tagName.toLowerCase();
|
|
294
297
|
return t.altKey ? r === "a" || r === "button" && e.type === "submit" || r === "input" && e.type === "submit" : !1;
|
|
295
298
|
}
|
|
296
|
-
function
|
|
299
|
+
function de(t, e, r) {
|
|
297
300
|
const n = new Event(e, r);
|
|
298
301
|
return t.dispatchEvent(n);
|
|
299
302
|
}
|
|
300
|
-
function
|
|
303
|
+
function ve(t, e) {
|
|
301
304
|
const r = new FocusEvent("blur", e), n = t.dispatchEvent(r), o = ft(G({}, e), { bubbles: !0 });
|
|
302
305
|
return t.dispatchEvent(new FocusEvent("focusout", o)), n;
|
|
303
306
|
}
|
|
304
|
-
function
|
|
307
|
+
function pe(t, e, r) {
|
|
305
308
|
const n = new KeyboardEvent(e, r);
|
|
306
309
|
return t.dispatchEvent(n);
|
|
307
310
|
}
|
|
308
|
-
function
|
|
311
|
+
function me(t, e) {
|
|
309
312
|
const r = new MouseEvent("click", e);
|
|
310
313
|
return t.dispatchEvent(r);
|
|
311
314
|
}
|
|
312
|
-
function
|
|
315
|
+
function ge(t, e) {
|
|
313
316
|
const r = e || t.currentTarget, n = t.relatedTarget;
|
|
314
317
|
return !n || !b(r, n);
|
|
315
318
|
}
|
|
316
|
-
function
|
|
319
|
+
function Ce(t, e, r, n) {
|
|
317
320
|
const i = ((u) => {
|
|
318
321
|
const f = requestAnimationFrame(u);
|
|
319
322
|
return () => cancelAnimationFrame(f);
|
|
@@ -343,19 +346,19 @@ function m(t, e, r, n = window) {
|
|
|
343
346
|
}
|
|
344
347
|
var I = c({}, l), B = I.useId;
|
|
345
348
|
I.useDeferredValue;
|
|
346
|
-
var W = I.useInsertionEffect,
|
|
347
|
-
function
|
|
348
|
-
const [e] =
|
|
349
|
+
var W = I.useInsertionEffect, g = P ? et : y;
|
|
350
|
+
function St(t) {
|
|
351
|
+
const [e] = C(t);
|
|
349
352
|
return e;
|
|
350
353
|
}
|
|
351
|
-
function
|
|
352
|
-
const e =
|
|
353
|
-
return
|
|
354
|
+
function Pe(t) {
|
|
355
|
+
const e = O(t);
|
|
356
|
+
return g(() => {
|
|
354
357
|
e.current = t;
|
|
355
358
|
}), e;
|
|
356
359
|
}
|
|
357
360
|
function Q(t) {
|
|
358
|
-
const e =
|
|
361
|
+
const e = O(() => {
|
|
359
362
|
throw new Error("Cannot call an event handler while rendering.");
|
|
360
363
|
});
|
|
361
364
|
return W ? W(() => {
|
|
@@ -365,9 +368,9 @@ function Q(t) {
|
|
|
365
368
|
return (n = e.current) == null ? void 0 : n.call(e, ...r);
|
|
366
369
|
}, []);
|
|
367
370
|
}
|
|
368
|
-
function
|
|
369
|
-
const [e, r] =
|
|
370
|
-
return
|
|
371
|
+
function xe(t) {
|
|
372
|
+
const [e, r] = C(null);
|
|
373
|
+
return g(() => {
|
|
371
374
|
if (e == null || !t) return;
|
|
372
375
|
let n = null;
|
|
373
376
|
return t((o) => (n = o, e)), () => {
|
|
@@ -384,31 +387,31 @@ function Z(...t) {
|
|
|
384
387
|
};
|
|
385
388
|
}, t);
|
|
386
389
|
}
|
|
387
|
-
function
|
|
390
|
+
function ye(t) {
|
|
388
391
|
if (B) {
|
|
389
392
|
const n = B();
|
|
390
393
|
return t || n;
|
|
391
394
|
}
|
|
392
|
-
const [e, r] =
|
|
393
|
-
return
|
|
395
|
+
const [e, r] = C(t);
|
|
396
|
+
return g(() => {
|
|
394
397
|
if (t || e) return;
|
|
395
398
|
const n = Math.random().toString(36).slice(2, 8);
|
|
396
399
|
r(`id-${n}`);
|
|
397
400
|
}, [t, e]), t || e;
|
|
398
401
|
}
|
|
399
|
-
function
|
|
402
|
+
function Ee(t, e) {
|
|
400
403
|
const r = (i) => {
|
|
401
404
|
if (typeof i == "string")
|
|
402
405
|
return i;
|
|
403
|
-
}, [n, o] =
|
|
404
|
-
return
|
|
406
|
+
}, [n, o] = C(() => r(e));
|
|
407
|
+
return g(() => {
|
|
405
408
|
const i = t && "current" in t ? t.current : t;
|
|
406
409
|
o((i == null ? void 0 : i.tagName.toLowerCase()) || r(e));
|
|
407
410
|
}, [t, e]), n;
|
|
408
411
|
}
|
|
409
|
-
function
|
|
410
|
-
const n =
|
|
411
|
-
return
|
|
412
|
+
function we(t, e, r) {
|
|
413
|
+
const n = St(r), [o, i] = C(n);
|
|
414
|
+
return y(() => {
|
|
412
415
|
const s = t && "current" in t ? t.current : t;
|
|
413
416
|
if (!s) return;
|
|
414
417
|
const u = () => {
|
|
@@ -418,67 +421,80 @@ function Ee(t, e, r) {
|
|
|
418
421
|
return f.observe(s, { attributeFilter: [e] }), u(), () => f.disconnect();
|
|
419
422
|
}, [t, e, n]), o;
|
|
420
423
|
}
|
|
421
|
-
function
|
|
422
|
-
const r =
|
|
423
|
-
|
|
424
|
+
function he(t, e) {
|
|
425
|
+
const r = O(!1);
|
|
426
|
+
y(() => {
|
|
427
|
+
if (r.current)
|
|
428
|
+
return t();
|
|
429
|
+
r.current = !0;
|
|
430
|
+
}, e), y(
|
|
431
|
+
() => () => {
|
|
432
|
+
r.current = !1;
|
|
433
|
+
},
|
|
434
|
+
[]
|
|
435
|
+
);
|
|
436
|
+
}
|
|
437
|
+
function _e(t, e) {
|
|
438
|
+
const r = O(!1);
|
|
439
|
+
g(() => {
|
|
424
440
|
if (r.current)
|
|
425
441
|
return t();
|
|
426
442
|
r.current = !0;
|
|
427
|
-
}, e),
|
|
443
|
+
}, e), g(
|
|
428
444
|
() => () => {
|
|
429
445
|
r.current = !1;
|
|
430
446
|
},
|
|
431
447
|
[]
|
|
432
448
|
);
|
|
433
449
|
}
|
|
434
|
-
function
|
|
450
|
+
function Se() {
|
|
435
451
|
return rt(() => [], []);
|
|
436
452
|
}
|
|
437
|
-
function
|
|
453
|
+
function be(t) {
|
|
438
454
|
return Q(
|
|
439
455
|
typeof t == "function" ? t : () => t
|
|
440
456
|
);
|
|
441
457
|
}
|
|
442
|
-
function
|
|
458
|
+
function Oe(t, e, r = []) {
|
|
443
459
|
const n = K(
|
|
444
460
|
(o) => (t.wrapElement && (o = t.wrapElement(o)), e(o)),
|
|
445
461
|
[...r, t.wrapElement]
|
|
446
462
|
);
|
|
447
463
|
return v(c({}, t), { wrapElement: n });
|
|
448
464
|
}
|
|
449
|
-
function
|
|
450
|
-
const [r, n] =
|
|
465
|
+
function Re(t = !1, e) {
|
|
466
|
+
const [r, n] = C(null);
|
|
451
467
|
return { portalRef: Z(n, e), portalNode: r, domReady: !t || r };
|
|
452
468
|
}
|
|
453
|
-
function
|
|
469
|
+
function Ne(t, e, r) {
|
|
454
470
|
const n = t.onLoadedMetadataCapture, o = X(() => Object.assign(() => {
|
|
455
471
|
}, v(c({}, n), { [e]: r })), [n, e, r]);
|
|
456
472
|
return [n == null ? void 0 : n[e], { onLoadedMetadataCapture: o }];
|
|
457
473
|
}
|
|
458
|
-
function
|
|
459
|
-
return
|
|
460
|
-
m("mousemove", Ot, !0), m("mousedown",
|
|
461
|
-
}, []), Q(() =>
|
|
474
|
+
function Te() {
|
|
475
|
+
return y(() => {
|
|
476
|
+
m("mousemove", Ot, !0), m("mousedown", h, !0), m("mouseup", h, !0), m("keydown", h, !0), m("scroll", h, !0);
|
|
477
|
+
}, []), Q(() => L);
|
|
462
478
|
}
|
|
463
|
-
var
|
|
464
|
-
function
|
|
465
|
-
const e = t.movementX || t.screenX -
|
|
466
|
-
return
|
|
479
|
+
var L = !1, U = 0, H = 0;
|
|
480
|
+
function bt(t) {
|
|
481
|
+
const e = t.movementX || t.screenX - U, r = t.movementY || t.screenY - H;
|
|
482
|
+
return U = t.screenX, H = t.screenY, e || r || process.env.NODE_ENV === "test";
|
|
467
483
|
}
|
|
468
484
|
function Ot(t) {
|
|
469
|
-
|
|
485
|
+
bt(t) && (L = !0);
|
|
470
486
|
}
|
|
471
|
-
function
|
|
472
|
-
|
|
487
|
+
function h() {
|
|
488
|
+
L = !1;
|
|
473
489
|
}
|
|
474
|
-
function
|
|
490
|
+
function De(t) {
|
|
475
491
|
const e = l.forwardRef((r, n) => t(v(c({}, r), { ref: n })));
|
|
476
492
|
return e.displayName = t.displayName || t.name, e;
|
|
477
493
|
}
|
|
478
|
-
function
|
|
494
|
+
function Me(t, e) {
|
|
479
495
|
return l.memo(t, e);
|
|
480
496
|
}
|
|
481
|
-
function
|
|
497
|
+
function Ie(t, e) {
|
|
482
498
|
const r = e, { wrapElement: n, render: o } = r, i = st(r, ["wrapElement", "render"]), s = Z(e.ref, mt(o));
|
|
483
499
|
let u;
|
|
484
500
|
if (l.isValidElement(o)) {
|
|
@@ -487,20 +503,20 @@ function De(t, e) {
|
|
|
487
503
|
} else o ? u = o(i) : u = /* @__PURE__ */ p(t, c({}, i));
|
|
488
504
|
return n ? n(u) : u;
|
|
489
505
|
}
|
|
490
|
-
function
|
|
506
|
+
function Le(t) {
|
|
491
507
|
const e = (r = {}) => t(r);
|
|
492
508
|
return e.displayName = t.name, e;
|
|
493
509
|
}
|
|
494
|
-
function
|
|
510
|
+
function w(t = [], e = []) {
|
|
495
511
|
const r = l.createContext(void 0), n = l.createContext(void 0), o = () => l.useContext(r), i = (a = !1) => {
|
|
496
|
-
const d = l.useContext(n),
|
|
497
|
-
return a ? d : d ||
|
|
512
|
+
const d = l.useContext(n), x = o();
|
|
513
|
+
return a ? d : d || x;
|
|
498
514
|
}, s = () => {
|
|
499
515
|
const a = l.useContext(n), d = o();
|
|
500
516
|
if (!(a && a === d))
|
|
501
517
|
return d;
|
|
502
518
|
}, u = (a) => t.reduceRight(
|
|
503
|
-
(d,
|
|
519
|
+
(d, x) => /* @__PURE__ */ p(x, v(c({}, a), { children: d })),
|
|
504
520
|
/* @__PURE__ */ p(r.Provider, c({}, a))
|
|
505
521
|
);
|
|
506
522
|
return {
|
|
@@ -511,111 +527,114 @@ function E(t = [], e = []) {
|
|
|
511
527
|
useProviderContext: s,
|
|
512
528
|
ContextProvider: u,
|
|
513
529
|
ScopedContextProvider: (a) => /* @__PURE__ */ p(u, v(c({}, a), { children: e.reduceRight(
|
|
514
|
-
(d,
|
|
530
|
+
(d, x) => /* @__PURE__ */ p(x, v(c({}, a), { children: d })),
|
|
515
531
|
/* @__PURE__ */ p(n.Provider, c({}, a))
|
|
516
532
|
) }))
|
|
517
533
|
};
|
|
518
534
|
}
|
|
519
|
-
var
|
|
535
|
+
var A = w(), Ae = A.useProviderContext, Rt = A.ContextProvider, Nt = A.ScopedContextProvider, V = w(
|
|
520
536
|
[Rt],
|
|
521
537
|
[Nt]
|
|
522
|
-
),
|
|
538
|
+
), Ve = V.useProviderContext, Tt = V.ContextProvider, Dt = V.ScopedContextProvider, $e = R(void 0), Fe = R(void 0), N = w(
|
|
523
539
|
[Tt],
|
|
524
540
|
[Dt]
|
|
525
|
-
),
|
|
541
|
+
), je = N.useContext, Be = N.useProviderContext, We = N.ContextProvider, Ue = N.ScopedContextProvider, $ = w(), He = $.useContext, Mt = $.ContextProvider, It = $.ScopedContextProvider, T = w(
|
|
526
542
|
[Mt],
|
|
527
543
|
[It]
|
|
528
|
-
),
|
|
544
|
+
), Xe = T.useContext, Ke = T.useProviderContext, Ye = T.ContextProvider, ze = T.ScopedContextProvider, ke = R(
|
|
529
545
|
void 0
|
|
530
|
-
),
|
|
546
|
+
), qe = R(
|
|
531
547
|
void 0
|
|
532
548
|
);
|
|
533
549
|
export {
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
550
|
+
xt as $,
|
|
551
|
+
Re as A,
|
|
552
|
+
Te as B,
|
|
553
|
+
ze as C,
|
|
554
|
+
jt as D,
|
|
555
|
+
m as E,
|
|
556
|
+
Pe as F,
|
|
557
|
+
Oe as G,
|
|
558
|
+
Yt as H,
|
|
559
|
+
b as I,
|
|
560
|
+
zt as J,
|
|
561
|
+
Vt as K,
|
|
562
|
+
Ft as L,
|
|
563
|
+
he as M,
|
|
564
|
+
de as N,
|
|
565
|
+
Et as O,
|
|
566
|
+
Ue as P,
|
|
567
|
+
D as Q,
|
|
568
|
+
Wt as R,
|
|
569
|
+
Ut as S,
|
|
570
|
+
Kt as T,
|
|
571
|
+
$t as U,
|
|
572
|
+
Ht as V,
|
|
573
|
+
M as W,
|
|
574
|
+
He as X,
|
|
575
|
+
Pt as Y,
|
|
576
|
+
Qt as Z,
|
|
561
577
|
st as _,
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
578
|
+
Ye as a,
|
|
579
|
+
ue as a0,
|
|
580
|
+
Jt as a1,
|
|
581
|
+
Ce as a2,
|
|
582
|
+
ce as a3,
|
|
583
|
+
ge as a4,
|
|
584
|
+
Ee as a5,
|
|
585
|
+
ie as a6,
|
|
586
|
+
Ne as a7,
|
|
587
|
+
se as a8,
|
|
588
|
+
me as a9,
|
|
589
|
+
qe as aa,
|
|
590
|
+
Zt as ab,
|
|
591
|
+
ee as ac,
|
|
592
|
+
te as ad,
|
|
593
|
+
ke as ae,
|
|
594
|
+
wt as af,
|
|
595
|
+
xe as ag,
|
|
596
|
+
we as ah,
|
|
597
|
+
_t as ai,
|
|
598
|
+
Se as aj,
|
|
599
|
+
_e as ak,
|
|
600
|
+
ne as al,
|
|
601
|
+
Bt as am,
|
|
602
|
+
oe as an,
|
|
603
|
+
Ke as ao,
|
|
604
|
+
ve as ap,
|
|
605
|
+
pe as aq,
|
|
606
|
+
Ae as ar,
|
|
607
|
+
Dt as as,
|
|
608
|
+
vt as at,
|
|
609
|
+
J as au,
|
|
610
|
+
ae as av,
|
|
611
|
+
Ve as aw,
|
|
612
|
+
$e as ax,
|
|
613
|
+
Fe as ay,
|
|
614
|
+
Be as az,
|
|
615
|
+
Le as b,
|
|
616
|
+
w as c,
|
|
617
|
+
Ie as d,
|
|
599
618
|
Q as e,
|
|
600
|
-
|
|
619
|
+
De as f,
|
|
601
620
|
re as g,
|
|
602
621
|
v as h,
|
|
603
622
|
Xt as i,
|
|
604
623
|
c as j,
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
624
|
+
le as k,
|
|
625
|
+
fe as l,
|
|
626
|
+
Me as m,
|
|
627
|
+
E as n,
|
|
628
|
+
We as o,
|
|
629
|
+
Xe as p,
|
|
630
|
+
je as q,
|
|
631
|
+
ye as r,
|
|
613
632
|
Z as s,
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
633
|
+
kt as t,
|
|
634
|
+
be as u,
|
|
635
|
+
g as v,
|
|
617
636
|
Gt as w,
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
637
|
+
ft as x,
|
|
638
|
+
qt as y,
|
|
639
|
+
G as z
|
|
621
640
|
};
|