@wrdagency/blockout 0.0.0
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 +81 -0
- package/dist/CaretDown.es-eySGHzTJ.js +32 -0
- package/dist/CaretUp.es-Cy8czlHG.js +32 -0
- package/dist/P7GR5CS5-BryEvRCz.js +621 -0
- package/dist/SSRBase.es-BUXS72ra.js +33 -0
- package/dist/T7VMP3TM--1s529fr.js +3544 -0
- package/dist/UQQRIHDV-Bfi_RJby.js +1046 -0
- package/dist/VIIRIBF3-XWA2y8Hu.js +21 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/assets/index.css +1 -0
- package/dist/assets/index10.css +1 -0
- package/dist/assets/index11.css +1 -0
- package/dist/assets/index2.css +1 -0
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/assets/index5.css +1 -0
- package/dist/assets/index6.css +1 -0
- package/dist/assets/index7.css +1 -0
- package/dist/assets/index8.css +1 -0
- package/dist/assets/index9.css +1 -0
- package/dist/components/button/index.d.ts +9 -0
- package/dist/components/button/index.js +28 -0
- package/dist/components/button-group/index.d.ts +6 -0
- package/dist/components/button-group/index.js +6 -0
- package/dist/components/controls/base-control/index.d.ts +3 -0
- package/dist/components/controls/base-control/index.js +26 -0
- package/dist/components/controls/base-control/props.d.ts +23 -0
- package/dist/components/controls/base-control/props.js +21 -0
- package/dist/components/controls/index.d.ts +6 -0
- package/dist/components/controls/index.js +14 -0
- package/dist/components/controls/number-control/index.d.ts +6 -0
- package/dist/components/controls/number-control/index.js +52 -0
- package/dist/components/controls/select-control/index.d.ts +9 -0
- package/dist/components/controls/select-control/index.js +591 -0
- package/dist/components/controls/select-control/options.d.ts +11 -0
- package/dist/components/controls/select-control/options.js +12 -0
- package/dist/components/controls/text-control/index.d.ts +6 -0
- package/dist/components/controls/text-control/index.js +12 -0
- package/dist/components/controls/textarea-control/index.d.ts +6 -0
- package/dist/components/controls/textarea-control/index.js +18 -0
- package/dist/components/controls/toggle-control/index.d.ts +8 -0
- package/dist/components/controls/toggle-control/index.js +46 -0
- package/dist/components/data-table/column.d.ts +4 -0
- package/dist/components/data-table/column.js +874 -0
- package/dist/components/data-table/context.d.ts +7 -0
- package/dist/components/data-table/context.js +36 -0
- package/dist/components/data-table/example.d.ts +1 -0
- package/dist/components/data-table/example.js +5 -0
- package/dist/components/data-table/footer.d.ts +2 -0
- package/dist/components/data-table/footer.js +23 -0
- package/dist/components/data-table/header.d.ts +7 -0
- package/dist/components/data-table/header.js +408 -0
- package/dist/components/data-table/index.d.ts +10 -0
- package/dist/components/data-table/index.js +86 -0
- package/dist/components/data-table/types.d.ts +75 -0
- package/dist/components/data-table/types.js +1 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +23 -0
- package/dist/components/menu/icon.d.ts +4 -0
- package/dist/components/menu/icon.js +6 -0
- package/dist/components/menu/index.d.ts +8 -0
- package/dist/components/menu/index.js +131 -0
- package/dist/components/menu/item.d.ts +7 -0
- package/dist/components/menu/item.js +8 -0
- package/dist/components/menu/items/action.d.ts +7 -0
- package/dist/components/menu/items/action.js +23 -0
- package/dist/components/menu/items/spacer.d.ts +2 -0
- package/dist/components/menu/items/spacer.js +46 -0
- package/dist/components/menu/items/submenu.d.ts +7 -0
- package/dist/components/menu/items/submenu.js +7 -0
- package/dist/components/menu/items/toggle.d.ts +7 -0
- package/dist/components/menu/items/toggle.js +109 -0
- package/dist/components/menu/types.d.ts +28 -0
- package/dist/components/menu/types.js +1 -0
- package/dist/components/visually-hidden/index.d.ts +2 -0
- package/dist/components/visually-hidden/index.js +5 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +25 -0
- package/dist/item-CPVd5mKo.js +758 -0
- package/dist/primitives/draggable/index.d.ts +17 -0
- package/dist/primitives/draggable/index.js +52 -0
- package/dist/primitives/index.d.ts +1 -0
- package/dist/primitives/index.js +4 -0
- package/dist/primitives/resizable/index.d.ts +7 -0
- package/dist/primitives/resizable/index.js +76 -0
- package/dist/types/component.d.ts +4 -0
- package/dist/types/component.js +1 -0
- package/dist/types/math.d.ts +10 -0
- package/dist/types/math.js +1 -0
- package/dist/utils/css.d.ts +1 -0
- package/dist/utils/css.js +6 -0
- package/dist/utils/noop.d.ts +1 -0
- package/dist/utils/noop.js +5 -0
- package/package.json +61 -0
- package/readme.md +3 -0
|
@@ -0,0 +1,621 @@
|
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { isValidElement as tt, useLayoutEffect as et, useEffect as x, useMemo as X, useState as g, useRef as T, useCallback as K, useReducer as rt, createContext as S } from "react";
|
|
3
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
4
|
+
var nt = Object.defineProperty, ot = Object.defineProperties, it = Object.getOwnPropertyDescriptors, h = Object.getOwnPropertySymbols, Y = Object.prototype.hasOwnProperty, k = 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
|
+
for (var r in e || (e = {}))
|
|
6
|
+
Y.call(e, r) && F(t, r, e[r]);
|
|
7
|
+
if (h)
|
|
8
|
+
for (var r of h(e))
|
|
9
|
+
k.call(e, r) && F(t, r, e[r]);
|
|
10
|
+
return t;
|
|
11
|
+
}, v = (t, e) => ot(t, it(e)), st = (t, e) => {
|
|
12
|
+
var r = {};
|
|
13
|
+
for (var n in t)
|
|
14
|
+
Y.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
|
|
15
|
+
if (t != null && h)
|
|
16
|
+
for (var n of h(t))
|
|
17
|
+
e.indexOf(n) < 0 && k.call(t, n) && (r[n] = t[n]);
|
|
18
|
+
return r;
|
|
19
|
+
}, at = Object.defineProperty, ut = Object.defineProperties, ct = Object.getOwnPropertyDescriptors, _ = Object.getOwnPropertySymbols, q = Object.prototype.hasOwnProperty, z = 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
|
+
for (var r in e || (e = {}))
|
|
21
|
+
q.call(e, r) && j(t, r, e[r]);
|
|
22
|
+
if (_)
|
|
23
|
+
for (var r of _(e))
|
|
24
|
+
z.call(e, r) && j(t, r, e[r]);
|
|
25
|
+
return t;
|
|
26
|
+
}, ft = (t, e) => ut(t, ct(e)), Vt = (t, e) => {
|
|
27
|
+
var r = {};
|
|
28
|
+
for (var n in t)
|
|
29
|
+
q.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
|
|
30
|
+
if (t != null && _)
|
|
31
|
+
for (var n of _(t))
|
|
32
|
+
e.indexOf(n) < 0 && z.call(t, n) && (r[n] = t[n]);
|
|
33
|
+
return r;
|
|
34
|
+
};
|
|
35
|
+
function $t(...t) {
|
|
36
|
+
}
|
|
37
|
+
function Ft(t, e) {
|
|
38
|
+
if (lt(t)) {
|
|
39
|
+
const r = dt(e) ? e() : e;
|
|
40
|
+
return t(r);
|
|
41
|
+
}
|
|
42
|
+
return t;
|
|
43
|
+
}
|
|
44
|
+
function lt(t) {
|
|
45
|
+
return typeof t == "function";
|
|
46
|
+
}
|
|
47
|
+
function dt(t) {
|
|
48
|
+
return typeof t == "function";
|
|
49
|
+
}
|
|
50
|
+
function D(t, e) {
|
|
51
|
+
return typeof Object.hasOwn == "function" ? Object.hasOwn(t, e) : Object.prototype.hasOwnProperty.call(t, e);
|
|
52
|
+
}
|
|
53
|
+
function jt(...t) {
|
|
54
|
+
return (...e) => {
|
|
55
|
+
for (const r of t)
|
|
56
|
+
typeof r == "function" && r(...e);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function Bt(t) {
|
|
60
|
+
return t.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
61
|
+
}
|
|
62
|
+
function Wt(t, e) {
|
|
63
|
+
const r = G({}, t);
|
|
64
|
+
for (const n of e)
|
|
65
|
+
D(r, n) && delete r[n];
|
|
66
|
+
return r;
|
|
67
|
+
}
|
|
68
|
+
function Ht(t, e) {
|
|
69
|
+
const r = {};
|
|
70
|
+
for (const n of e)
|
|
71
|
+
D(t, n) && (r[n] = t[n]);
|
|
72
|
+
return r;
|
|
73
|
+
}
|
|
74
|
+
function Ut(t) {
|
|
75
|
+
return t;
|
|
76
|
+
}
|
|
77
|
+
function Xt(t, e) {
|
|
78
|
+
if (!t)
|
|
79
|
+
throw typeof e != "string" ? new Error("Invariant failed") : new Error(e);
|
|
80
|
+
}
|
|
81
|
+
function Kt(t) {
|
|
82
|
+
return Object.keys(t);
|
|
83
|
+
}
|
|
84
|
+
function Yt(t, ...e) {
|
|
85
|
+
const r = typeof t == "function" ? t(...e) : t;
|
|
86
|
+
return r == null ? !1 : !r;
|
|
87
|
+
}
|
|
88
|
+
function kt(t) {
|
|
89
|
+
return t.disabled || t["aria-disabled"] === !0 || t["aria-disabled"] === "true";
|
|
90
|
+
}
|
|
91
|
+
function qt(t) {
|
|
92
|
+
const e = {};
|
|
93
|
+
for (const r in t)
|
|
94
|
+
t[r] !== void 0 && (e[r] = t[r]);
|
|
95
|
+
return e;
|
|
96
|
+
}
|
|
97
|
+
function zt(...t) {
|
|
98
|
+
for (const e of t)
|
|
99
|
+
if (e !== void 0) return e;
|
|
100
|
+
}
|
|
101
|
+
function vt(t, e) {
|
|
102
|
+
typeof t == "function" ? t(e) : t && (t.current = e);
|
|
103
|
+
}
|
|
104
|
+
function pt(t) {
|
|
105
|
+
return !t || !tt(t) ? !1 : "ref" in t.props || "ref" in t;
|
|
106
|
+
}
|
|
107
|
+
function mt(t) {
|
|
108
|
+
return pt(t) ? c({}, t.props).ref || t.ref : null;
|
|
109
|
+
}
|
|
110
|
+
function gt(t, e) {
|
|
111
|
+
const r = c({}, t);
|
|
112
|
+
for (const n in e) {
|
|
113
|
+
if (!D(e, n)) continue;
|
|
114
|
+
if (n === "className") {
|
|
115
|
+
const i = "className";
|
|
116
|
+
r[i] = t[i] ? `${t[i]} ${e[i]}` : e[i];
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
if (n === "style") {
|
|
120
|
+
const i = "style";
|
|
121
|
+
r[i] = t[i] ? c(c({}, t[i]), e[i]) : e[i];
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
const o = e[n];
|
|
125
|
+
if (typeof o == "function" && n.startsWith("on")) {
|
|
126
|
+
const i = t[n];
|
|
127
|
+
if (typeof i == "function") {
|
|
128
|
+
r[n] = (...s) => {
|
|
129
|
+
o(...s), i(...s);
|
|
130
|
+
};
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
r[n] = o;
|
|
135
|
+
}
|
|
136
|
+
return r;
|
|
137
|
+
}
|
|
138
|
+
var C = Ct();
|
|
139
|
+
function Ct() {
|
|
140
|
+
var t;
|
|
141
|
+
return typeof window < "u" && !!((t = window.document) != null && t.createElement);
|
|
142
|
+
}
|
|
143
|
+
function y(t) {
|
|
144
|
+
return t ? "self" in t ? t.document : t.ownerDocument || document : document;
|
|
145
|
+
}
|
|
146
|
+
function Gt(t) {
|
|
147
|
+
return t ? "self" in t ? t.self : y(t).defaultView || window : self;
|
|
148
|
+
}
|
|
149
|
+
function Pt(t, e = !1) {
|
|
150
|
+
const { activeElement: r } = y(t);
|
|
151
|
+
if (!(r != null && r.nodeName))
|
|
152
|
+
return null;
|
|
153
|
+
if (xt(r) && r.contentDocument)
|
|
154
|
+
return Pt(
|
|
155
|
+
r.contentDocument.body,
|
|
156
|
+
e
|
|
157
|
+
);
|
|
158
|
+
if (e) {
|
|
159
|
+
const n = r.getAttribute("aria-activedescendant");
|
|
160
|
+
if (n) {
|
|
161
|
+
const o = y(r).getElementById(n);
|
|
162
|
+
if (o)
|
|
163
|
+
return o;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
return r;
|
|
167
|
+
}
|
|
168
|
+
function b(t, e) {
|
|
169
|
+
return t === e || t.contains(e);
|
|
170
|
+
}
|
|
171
|
+
function xt(t) {
|
|
172
|
+
return t.tagName === "IFRAME";
|
|
173
|
+
}
|
|
174
|
+
function Jt(t) {
|
|
175
|
+
const e = t.tagName.toLowerCase();
|
|
176
|
+
return e === "button" ? !0 : e === "input" && t.type ? yt.indexOf(t.type) !== -1 : !1;
|
|
177
|
+
}
|
|
178
|
+
var yt = [
|
|
179
|
+
"button",
|
|
180
|
+
"color",
|
|
181
|
+
"file",
|
|
182
|
+
"image",
|
|
183
|
+
"reset",
|
|
184
|
+
"submit"
|
|
185
|
+
];
|
|
186
|
+
function Qt(t) {
|
|
187
|
+
if (typeof t.checkVisibility == "function")
|
|
188
|
+
return t.checkVisibility();
|
|
189
|
+
const e = t;
|
|
190
|
+
return e.offsetWidth > 0 || e.offsetHeight > 0 || t.getClientRects().length > 0;
|
|
191
|
+
}
|
|
192
|
+
function M(t) {
|
|
193
|
+
try {
|
|
194
|
+
const e = t instanceof HTMLInputElement && t.selectionStart !== null, r = t.tagName === "TEXTAREA";
|
|
195
|
+
return e || r || !1;
|
|
196
|
+
} catch {
|
|
197
|
+
return !1;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
function Zt(t) {
|
|
201
|
+
return t.isContentEditable || M(t);
|
|
202
|
+
}
|
|
203
|
+
function te(t) {
|
|
204
|
+
if (M(t))
|
|
205
|
+
return t.value;
|
|
206
|
+
if (t.isContentEditable) {
|
|
207
|
+
const e = y(t).createRange();
|
|
208
|
+
return e.selectNodeContents(t), e.toString();
|
|
209
|
+
}
|
|
210
|
+
return "";
|
|
211
|
+
}
|
|
212
|
+
function ee(t) {
|
|
213
|
+
let e = 0, r = 0;
|
|
214
|
+
if (M(t))
|
|
215
|
+
e = t.selectionStart || 0, r = t.selectionEnd || 0;
|
|
216
|
+
else if (t.isContentEditable) {
|
|
217
|
+
const n = y(t).getSelection();
|
|
218
|
+
if (n != null && n.rangeCount && n.anchorNode && b(t, n.anchorNode) && n.focusNode && b(t, n.focusNode)) {
|
|
219
|
+
const o = n.getRangeAt(0), i = o.cloneRange();
|
|
220
|
+
i.selectNodeContents(t), i.setEnd(o.startContainer, o.startOffset), e = i.toString().length, i.setEnd(o.endContainer, o.endOffset), r = i.toString().length;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
return { start: e, end: r };
|
|
224
|
+
}
|
|
225
|
+
function Et(t, e) {
|
|
226
|
+
const r = ["dialog", "menu", "listbox", "tree", "grid"], n = t == null ? void 0 : t.getAttribute("role");
|
|
227
|
+
return n && r.indexOf(n) !== -1 ? n : e;
|
|
228
|
+
}
|
|
229
|
+
function re(t, e) {
|
|
230
|
+
var r;
|
|
231
|
+
const n = {
|
|
232
|
+
menu: "menuitem",
|
|
233
|
+
listbox: "option",
|
|
234
|
+
tree: "treeitem"
|
|
235
|
+
}, o = Et(t);
|
|
236
|
+
return o && (r = n[o]) != null ? r : e;
|
|
237
|
+
}
|
|
238
|
+
function wt(t) {
|
|
239
|
+
if (!t) return null;
|
|
240
|
+
const e = (r) => r === "auto" || r === "scroll";
|
|
241
|
+
if (t.clientHeight && t.scrollHeight > t.clientHeight) {
|
|
242
|
+
const { overflowY: r } = getComputedStyle(t);
|
|
243
|
+
if (e(r)) return t;
|
|
244
|
+
} else if (t.clientWidth && t.scrollWidth > t.clientWidth) {
|
|
245
|
+
const { overflowX: r } = getComputedStyle(t);
|
|
246
|
+
if (e(r)) return t;
|
|
247
|
+
}
|
|
248
|
+
return wt(t.parentElement) || document.scrollingElement || document.body;
|
|
249
|
+
}
|
|
250
|
+
function ne(t, e) {
|
|
251
|
+
const r = t.map((o, i) => [i, o]);
|
|
252
|
+
let n = !1;
|
|
253
|
+
return r.sort(([o, i], [s, u]) => {
|
|
254
|
+
const f = e(i), a = e(u);
|
|
255
|
+
return f === a || !f || !a ? 0 : ht(f, a) ? (o > s && (n = !0), -1) : (o < s && (n = !0), 1);
|
|
256
|
+
}), n ? r.map(([o, i]) => i) : t;
|
|
257
|
+
}
|
|
258
|
+
function ht(t, e) {
|
|
259
|
+
return !!(e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_PRECEDING);
|
|
260
|
+
}
|
|
261
|
+
function _t() {
|
|
262
|
+
return C && !!navigator.maxTouchPoints;
|
|
263
|
+
}
|
|
264
|
+
function J() {
|
|
265
|
+
return C ? /mac|iphone|ipad|ipod/i.test(navigator.platform) : !1;
|
|
266
|
+
}
|
|
267
|
+
function oe() {
|
|
268
|
+
return C && J() && /apple/i.test(navigator.vendor);
|
|
269
|
+
}
|
|
270
|
+
function ie() {
|
|
271
|
+
return C && /firefox\//i.test(navigator.userAgent);
|
|
272
|
+
}
|
|
273
|
+
function se() {
|
|
274
|
+
return C && navigator.platform.startsWith("Mac") && !_t();
|
|
275
|
+
}
|
|
276
|
+
function ae(t) {
|
|
277
|
+
return !!(t.currentTarget && !b(t.currentTarget, t.target));
|
|
278
|
+
}
|
|
279
|
+
function ue(t) {
|
|
280
|
+
return t.target === t.currentTarget;
|
|
281
|
+
}
|
|
282
|
+
function ce(t) {
|
|
283
|
+
const e = t.currentTarget;
|
|
284
|
+
if (!e) return !1;
|
|
285
|
+
const r = J();
|
|
286
|
+
if (r && !t.metaKey || !r && !t.ctrlKey) return !1;
|
|
287
|
+
const n = e.tagName.toLowerCase();
|
|
288
|
+
return n === "a" || n === "button" && e.type === "submit" || n === "input" && e.type === "submit";
|
|
289
|
+
}
|
|
290
|
+
function fe(t) {
|
|
291
|
+
const e = t.currentTarget;
|
|
292
|
+
if (!e) return !1;
|
|
293
|
+
const r = e.tagName.toLowerCase();
|
|
294
|
+
return t.altKey ? r === "a" || r === "button" && e.type === "submit" || r === "input" && e.type === "submit" : !1;
|
|
295
|
+
}
|
|
296
|
+
function le(t, e, r) {
|
|
297
|
+
const n = new Event(e, r);
|
|
298
|
+
return t.dispatchEvent(n);
|
|
299
|
+
}
|
|
300
|
+
function de(t, e) {
|
|
301
|
+
const r = new FocusEvent("blur", e), n = t.dispatchEvent(r), o = ft(G({}, e), { bubbles: !0 });
|
|
302
|
+
return t.dispatchEvent(new FocusEvent("focusout", o)), n;
|
|
303
|
+
}
|
|
304
|
+
function ve(t, e, r) {
|
|
305
|
+
const n = new KeyboardEvent(e, r);
|
|
306
|
+
return t.dispatchEvent(n);
|
|
307
|
+
}
|
|
308
|
+
function pe(t, e) {
|
|
309
|
+
const r = new MouseEvent("click", e);
|
|
310
|
+
return t.dispatchEvent(r);
|
|
311
|
+
}
|
|
312
|
+
function me(t, e) {
|
|
313
|
+
const r = e || t.currentTarget, n = t.relatedTarget;
|
|
314
|
+
return !n || !b(r, n);
|
|
315
|
+
}
|
|
316
|
+
function ge(t, e, r, n) {
|
|
317
|
+
const i = ((u) => {
|
|
318
|
+
const f = requestAnimationFrame(u);
|
|
319
|
+
return () => cancelAnimationFrame(f);
|
|
320
|
+
})(() => {
|
|
321
|
+
t.removeEventListener(e, s, !0), r();
|
|
322
|
+
}), s = () => {
|
|
323
|
+
i(), r();
|
|
324
|
+
};
|
|
325
|
+
return t.addEventListener(e, s, { once: !0, capture: !0 }), i;
|
|
326
|
+
}
|
|
327
|
+
function m(t, e, r, n = window) {
|
|
328
|
+
const o = [];
|
|
329
|
+
try {
|
|
330
|
+
n.document.addEventListener(t, e, r);
|
|
331
|
+
for (const s of Array.from(n.frames))
|
|
332
|
+
o.push(m(t, e, r, s));
|
|
333
|
+
} catch {
|
|
334
|
+
}
|
|
335
|
+
return () => {
|
|
336
|
+
try {
|
|
337
|
+
n.document.removeEventListener(t, e, r);
|
|
338
|
+
} catch {
|
|
339
|
+
}
|
|
340
|
+
for (const s of o)
|
|
341
|
+
s();
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
var I = c({}, l), B = I.useId;
|
|
345
|
+
I.useDeferredValue;
|
|
346
|
+
var W = I.useInsertionEffect, O = C ? et : x;
|
|
347
|
+
function bt(t) {
|
|
348
|
+
const [e] = g(t);
|
|
349
|
+
return e;
|
|
350
|
+
}
|
|
351
|
+
function Ce(t) {
|
|
352
|
+
const e = T(t);
|
|
353
|
+
return O(() => {
|
|
354
|
+
e.current = t;
|
|
355
|
+
}), e;
|
|
356
|
+
}
|
|
357
|
+
function Q(t) {
|
|
358
|
+
const e = T(() => {
|
|
359
|
+
throw new Error("Cannot call an event handler while rendering.");
|
|
360
|
+
});
|
|
361
|
+
return W ? W(() => {
|
|
362
|
+
e.current = t;
|
|
363
|
+
}) : e.current = t, K((...r) => {
|
|
364
|
+
var n;
|
|
365
|
+
return (n = e.current) == null ? void 0 : n.call(e, ...r);
|
|
366
|
+
}, []);
|
|
367
|
+
}
|
|
368
|
+
function Pe(t) {
|
|
369
|
+
const [e, r] = g(null);
|
|
370
|
+
return O(() => {
|
|
371
|
+
if (e == null || !t) return;
|
|
372
|
+
let n = null;
|
|
373
|
+
return t((o) => (n = o, e)), () => {
|
|
374
|
+
t(n);
|
|
375
|
+
};
|
|
376
|
+
}, [e, t]), [e, r];
|
|
377
|
+
}
|
|
378
|
+
function Z(...t) {
|
|
379
|
+
return X(() => {
|
|
380
|
+
if (t.some(Boolean))
|
|
381
|
+
return (e) => {
|
|
382
|
+
for (const r of t)
|
|
383
|
+
vt(r, e);
|
|
384
|
+
};
|
|
385
|
+
}, t);
|
|
386
|
+
}
|
|
387
|
+
function xe(t) {
|
|
388
|
+
if (B) {
|
|
389
|
+
const n = B();
|
|
390
|
+
return t || n;
|
|
391
|
+
}
|
|
392
|
+
const [e, r] = g(t);
|
|
393
|
+
return O(() => {
|
|
394
|
+
if (t || e) return;
|
|
395
|
+
const n = Math.random().toString(36).slice(2, 8);
|
|
396
|
+
r(`id-${n}`);
|
|
397
|
+
}, [t, e]), t || e;
|
|
398
|
+
}
|
|
399
|
+
function ye(t, e) {
|
|
400
|
+
const r = (i) => {
|
|
401
|
+
if (typeof i == "string")
|
|
402
|
+
return i;
|
|
403
|
+
}, [n, o] = g(() => r(e));
|
|
404
|
+
return O(() => {
|
|
405
|
+
const i = t && "current" in t ? t.current : t;
|
|
406
|
+
o((i == null ? void 0 : i.tagName.toLowerCase()) || r(e));
|
|
407
|
+
}, [t, e]), n;
|
|
408
|
+
}
|
|
409
|
+
function Ee(t, e, r) {
|
|
410
|
+
const n = bt(r), [o, i] = g(n);
|
|
411
|
+
return x(() => {
|
|
412
|
+
const s = t && "current" in t ? t.current : t;
|
|
413
|
+
if (!s) return;
|
|
414
|
+
const u = () => {
|
|
415
|
+
const a = s.getAttribute(e);
|
|
416
|
+
i(a ?? n);
|
|
417
|
+
}, f = new MutationObserver(u);
|
|
418
|
+
return f.observe(s, { attributeFilter: [e] }), u(), () => f.disconnect();
|
|
419
|
+
}, [t, e, n]), o;
|
|
420
|
+
}
|
|
421
|
+
function we(t, e) {
|
|
422
|
+
const r = T(!1);
|
|
423
|
+
x(() => {
|
|
424
|
+
if (r.current)
|
|
425
|
+
return t();
|
|
426
|
+
r.current = !0;
|
|
427
|
+
}, e), x(
|
|
428
|
+
() => () => {
|
|
429
|
+
r.current = !1;
|
|
430
|
+
},
|
|
431
|
+
[]
|
|
432
|
+
);
|
|
433
|
+
}
|
|
434
|
+
function he() {
|
|
435
|
+
return rt(() => [], []);
|
|
436
|
+
}
|
|
437
|
+
function _e(t) {
|
|
438
|
+
return Q(
|
|
439
|
+
typeof t == "function" ? t : () => t
|
|
440
|
+
);
|
|
441
|
+
}
|
|
442
|
+
function be(t, e, r = []) {
|
|
443
|
+
const n = K(
|
|
444
|
+
(o) => (t.wrapElement && (o = t.wrapElement(o)), e(o)),
|
|
445
|
+
[...r, t.wrapElement]
|
|
446
|
+
);
|
|
447
|
+
return v(c({}, t), { wrapElement: n });
|
|
448
|
+
}
|
|
449
|
+
function Se(t = !1, e) {
|
|
450
|
+
const [r, n] = g(null);
|
|
451
|
+
return { portalRef: Z(n, e), portalNode: r, domReady: !t || r };
|
|
452
|
+
}
|
|
453
|
+
function Oe(t, e, r) {
|
|
454
|
+
const n = t.onLoadedMetadataCapture, o = X(() => Object.assign(() => {
|
|
455
|
+
}, v(c({}, n), { [e]: r })), [n, e, r]);
|
|
456
|
+
return [n == null ? void 0 : n[e], { onLoadedMetadataCapture: o }];
|
|
457
|
+
}
|
|
458
|
+
function Re() {
|
|
459
|
+
return x(() => {
|
|
460
|
+
m("mousemove", Ot, !0), m("mousedown", w, !0), m("mouseup", w, !0), m("keydown", w, !0), m("scroll", w, !0);
|
|
461
|
+
}, []), Q(() => A);
|
|
462
|
+
}
|
|
463
|
+
var A = !1, H = 0, U = 0;
|
|
464
|
+
function St(t) {
|
|
465
|
+
const e = t.movementX || t.screenX - H, r = t.movementY || t.screenY - U;
|
|
466
|
+
return H = t.screenX, U = t.screenY, e || r || process.env.NODE_ENV === "test";
|
|
467
|
+
}
|
|
468
|
+
function Ot(t) {
|
|
469
|
+
St(t) && (A = !0);
|
|
470
|
+
}
|
|
471
|
+
function w() {
|
|
472
|
+
A = !1;
|
|
473
|
+
}
|
|
474
|
+
function Ne(t) {
|
|
475
|
+
const e = l.forwardRef((r, n) => t(v(c({}, r), { ref: n })));
|
|
476
|
+
return e.displayName = t.displayName || t.name, e;
|
|
477
|
+
}
|
|
478
|
+
function Te(t, e) {
|
|
479
|
+
return l.memo(t, e);
|
|
480
|
+
}
|
|
481
|
+
function De(t, e) {
|
|
482
|
+
const r = e, { wrapElement: n, render: o } = r, i = st(r, ["wrapElement", "render"]), s = Z(e.ref, mt(o));
|
|
483
|
+
let u;
|
|
484
|
+
if (l.isValidElement(o)) {
|
|
485
|
+
const f = v(c({}, o.props), { ref: s });
|
|
486
|
+
u = l.cloneElement(o, gt(i, f));
|
|
487
|
+
} else o ? u = o(i) : u = /* @__PURE__ */ p(t, c({}, i));
|
|
488
|
+
return n ? n(u) : u;
|
|
489
|
+
}
|
|
490
|
+
function Me(t) {
|
|
491
|
+
const e = (r = {}) => t(r);
|
|
492
|
+
return e.displayName = t.name, e;
|
|
493
|
+
}
|
|
494
|
+
function E(t = [], e = []) {
|
|
495
|
+
const r = l.createContext(void 0), n = l.createContext(void 0), o = () => l.useContext(r), i = (a = !1) => {
|
|
496
|
+
const d = l.useContext(n), P = o();
|
|
497
|
+
return a ? d : d || P;
|
|
498
|
+
}, s = () => {
|
|
499
|
+
const a = l.useContext(n), d = o();
|
|
500
|
+
if (!(a && a === d))
|
|
501
|
+
return d;
|
|
502
|
+
}, u = (a) => t.reduceRight(
|
|
503
|
+
(d, P) => /* @__PURE__ */ p(P, v(c({}, a), { children: d })),
|
|
504
|
+
/* @__PURE__ */ p(r.Provider, c({}, a))
|
|
505
|
+
);
|
|
506
|
+
return {
|
|
507
|
+
context: r,
|
|
508
|
+
scopedContext: n,
|
|
509
|
+
useContext: o,
|
|
510
|
+
useScopedContext: i,
|
|
511
|
+
useProviderContext: s,
|
|
512
|
+
ContextProvider: u,
|
|
513
|
+
ScopedContextProvider: (a) => /* @__PURE__ */ p(u, v(c({}, a), { children: e.reduceRight(
|
|
514
|
+
(d, P) => /* @__PURE__ */ p(P, v(c({}, a), { children: d })),
|
|
515
|
+
/* @__PURE__ */ p(n.Provider, c({}, a))
|
|
516
|
+
) }))
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
var L = E(), Ie = L.useProviderContext, Rt = L.ContextProvider, Nt = L.ScopedContextProvider, V = E(
|
|
520
|
+
[Rt],
|
|
521
|
+
[Nt]
|
|
522
|
+
), Ae = V.useProviderContext, Tt = V.ContextProvider, Dt = V.ScopedContextProvider, Le = S(void 0), Ve = S(void 0), R = E(
|
|
523
|
+
[Tt],
|
|
524
|
+
[Dt]
|
|
525
|
+
), $e = R.useContext, Fe = R.useProviderContext, je = R.ContextProvider, Be = R.ScopedContextProvider, $ = E(), We = $.useContext, Mt = $.ContextProvider, It = $.ScopedContextProvider, N = E(
|
|
526
|
+
[Mt],
|
|
527
|
+
[It]
|
|
528
|
+
), He = N.useContext, Ue = N.useProviderContext, Xe = N.ContextProvider, Ke = N.ScopedContextProvider, Ye = S(
|
|
529
|
+
void 0
|
|
530
|
+
), ke = S(
|
|
531
|
+
void 0
|
|
532
|
+
);
|
|
533
|
+
export {
|
|
534
|
+
M as $,
|
|
535
|
+
G as A,
|
|
536
|
+
we as B,
|
|
537
|
+
Ke as C,
|
|
538
|
+
ge as D,
|
|
539
|
+
be as E,
|
|
540
|
+
Et as F,
|
|
541
|
+
kt as G,
|
|
542
|
+
ue as H,
|
|
543
|
+
Pe as I,
|
|
544
|
+
Ee as J,
|
|
545
|
+
Se as K,
|
|
546
|
+
Re as L,
|
|
547
|
+
jt as M,
|
|
548
|
+
m as N,
|
|
549
|
+
Ce as O,
|
|
550
|
+
Be as P,
|
|
551
|
+
Yt as Q,
|
|
552
|
+
b as R,
|
|
553
|
+
Ft as S,
|
|
554
|
+
le as T,
|
|
555
|
+
D as U,
|
|
556
|
+
Wt as V,
|
|
557
|
+
Ht as W,
|
|
558
|
+
Kt as X,
|
|
559
|
+
$t as Y,
|
|
560
|
+
Ut as Z,
|
|
561
|
+
st as _,
|
|
562
|
+
Xe as a,
|
|
563
|
+
We as a0,
|
|
564
|
+
Pt as a1,
|
|
565
|
+
Qt as a2,
|
|
566
|
+
xt as a3,
|
|
567
|
+
ae as a4,
|
|
568
|
+
Jt as a5,
|
|
569
|
+
me as a6,
|
|
570
|
+
ye as a7,
|
|
571
|
+
oe as a8,
|
|
572
|
+
Oe as a9,
|
|
573
|
+
ie as aa,
|
|
574
|
+
pe as ab,
|
|
575
|
+
ke as ac,
|
|
576
|
+
Zt as ad,
|
|
577
|
+
ee as ae,
|
|
578
|
+
te as af,
|
|
579
|
+
Ye as ag,
|
|
580
|
+
wt as ah,
|
|
581
|
+
ne as ai,
|
|
582
|
+
Ue as aj,
|
|
583
|
+
de as ak,
|
|
584
|
+
ve as al,
|
|
585
|
+
Ie as am,
|
|
586
|
+
Dt as an,
|
|
587
|
+
vt as ao,
|
|
588
|
+
he as ap,
|
|
589
|
+
J as aq,
|
|
590
|
+
se as ar,
|
|
591
|
+
Ae as as,
|
|
592
|
+
Le as at,
|
|
593
|
+
Ve as au,
|
|
594
|
+
Fe as av,
|
|
595
|
+
Bt as aw,
|
|
596
|
+
Me as b,
|
|
597
|
+
E as c,
|
|
598
|
+
De as d,
|
|
599
|
+
Q as e,
|
|
600
|
+
Ne as f,
|
|
601
|
+
re as g,
|
|
602
|
+
v as h,
|
|
603
|
+
Xt as i,
|
|
604
|
+
c as j,
|
|
605
|
+
fe as k,
|
|
606
|
+
ce as l,
|
|
607
|
+
Te as m,
|
|
608
|
+
y as n,
|
|
609
|
+
je as o,
|
|
610
|
+
He as p,
|
|
611
|
+
$e as q,
|
|
612
|
+
xe as r,
|
|
613
|
+
Z as s,
|
|
614
|
+
qt as t,
|
|
615
|
+
_e as u,
|
|
616
|
+
O as v,
|
|
617
|
+
Gt as w,
|
|
618
|
+
Vt as x,
|
|
619
|
+
ft as y,
|
|
620
|
+
zt as z
|
|
621
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const c = e.forwardRef((l, o) => {
|
|
3
|
+
const {
|
|
4
|
+
alt: r,
|
|
5
|
+
color: a = "currentColor",
|
|
6
|
+
size: t = "1em",
|
|
7
|
+
weight: i = "regular",
|
|
8
|
+
mirrored: s = !1,
|
|
9
|
+
children: n,
|
|
10
|
+
weights: m,
|
|
11
|
+
...w
|
|
12
|
+
} = l;
|
|
13
|
+
return /* @__PURE__ */ e.createElement(
|
|
14
|
+
"svg",
|
|
15
|
+
{
|
|
16
|
+
ref: o,
|
|
17
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
+
width: t,
|
|
19
|
+
height: t,
|
|
20
|
+
fill: a,
|
|
21
|
+
viewBox: "0 0 256 256",
|
|
22
|
+
transform: s ? "scale(-1, 1)" : void 0,
|
|
23
|
+
...w
|
|
24
|
+
},
|
|
25
|
+
!!r && /* @__PURE__ */ e.createElement("title", null, r),
|
|
26
|
+
n,
|
|
27
|
+
m.get(i)
|
|
28
|
+
);
|
|
29
|
+
});
|
|
30
|
+
c.displayName = "SSRBase";
|
|
31
|
+
export {
|
|
32
|
+
c as w
|
|
33
|
+
};
|