@coinloger/dev-ui 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/index.js +306 -931
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,879 +1,254 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
var Pe;
|
|
14
|
-
function Tr() {
|
|
15
|
-
if (Pe) return Y;
|
|
16
|
-
Pe = 1;
|
|
17
|
-
var t = $, n = Symbol.for("react.element"), s = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, u = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
-
function f(d, p, j) {
|
|
19
|
-
var g, x = {}, C = null, S = null;
|
|
20
|
-
j !== void 0 && (C = "" + j), p.key !== void 0 && (C = "" + p.key), p.ref !== void 0 && (S = p.ref);
|
|
21
|
-
for (g in p) a.call(p, g) && !l.hasOwnProperty(g) && (x[g] = p[g]);
|
|
22
|
-
if (d && d.defaultProps) for (g in p = d.defaultProps, p) x[g] === void 0 && (x[g] = p[g]);
|
|
23
|
-
return { $$typeof: n, type: d, key: C, ref: S, props: x, _owner: u.current };
|
|
24
|
-
}
|
|
25
|
-
return Y.Fragment = s, Y.jsx = f, Y.jsxs = f, Y;
|
|
1
|
+
import { jsx as a, jsxs as b, Fragment as A } from "react/jsx-runtime";
|
|
2
|
+
import y, { createContext as $, useRef as C, useEffect as v, useContext as w, useState as I, forwardRef as g, useId as _, useMemo as F } from "react";
|
|
3
|
+
import { createPortal as P } from "react-dom";
|
|
4
|
+
function T(e) {
|
|
5
|
+
var t, i, s = "";
|
|
6
|
+
if (typeof e == "string" || typeof e == "number") s += e;
|
|
7
|
+
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
8
|
+
var r = e.length;
|
|
9
|
+
for (t = 0; t < r; t++) e[t] && (i = T(e[t])) && (s && (s += " "), s += i);
|
|
10
|
+
} else for (i in e) e[i] && (s && (s += " "), s += i);
|
|
11
|
+
return s;
|
|
26
12
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
* react-jsx-runtime.development.js
|
|
31
|
-
*
|
|
32
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the MIT license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/
|
|
37
|
-
var $e;
|
|
38
|
-
function kr() {
|
|
39
|
-
return $e || ($e = 1, process.env.NODE_ENV !== "production" && function() {
|
|
40
|
-
var t = $, n = Symbol.for("react.element"), s = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), d = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), N = Symbol.iterator, q = "@@iterator";
|
|
41
|
-
function G(e) {
|
|
42
|
-
if (e === null || typeof e != "object")
|
|
43
|
-
return null;
|
|
44
|
-
var r = N && e[N] || e[q];
|
|
45
|
-
return typeof r == "function" ? r : null;
|
|
46
|
-
}
|
|
47
|
-
var _ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
48
|
-
function w(e) {
|
|
49
|
-
{
|
|
50
|
-
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), c = 1; c < r; c++)
|
|
51
|
-
i[c - 1] = arguments[c];
|
|
52
|
-
Be("error", e, i);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
function Be(e, r, i) {
|
|
56
|
-
{
|
|
57
|
-
var c = _.ReactDebugCurrentFrame, b = c.getStackAddendum();
|
|
58
|
-
b !== "" && (r += "%s", i = i.concat([b]));
|
|
59
|
-
var h = i.map(function(m) {
|
|
60
|
-
return String(m);
|
|
61
|
-
});
|
|
62
|
-
h.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, h);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
var Ve = !1, Ue = !1, Je = !1, Ke = !1, qe = !1, se;
|
|
66
|
-
se = Symbol.for("react.module.reference");
|
|
67
|
-
function Ge(e) {
|
|
68
|
-
return !!(typeof e == "string" || typeof e == "function" || e === a || e === l || qe || e === u || e === j || e === g || Ke || e === S || Ve || Ue || Je || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === x || e.$$typeof === f || e.$$typeof === d || e.$$typeof === p || // This needs to include all possible module reference object
|
|
69
|
-
// types supported by any Flight configuration anywhere since
|
|
70
|
-
// we don't know which Flight build this will end up being used
|
|
71
|
-
// with.
|
|
72
|
-
e.$$typeof === se || e.getModuleId !== void 0));
|
|
73
|
-
}
|
|
74
|
-
function He(e, r, i) {
|
|
75
|
-
var c = e.displayName;
|
|
76
|
-
if (c)
|
|
77
|
-
return c;
|
|
78
|
-
var b = r.displayName || r.name || "";
|
|
79
|
-
return b !== "" ? i + "(" + b + ")" : i;
|
|
80
|
-
}
|
|
81
|
-
function ue(e) {
|
|
82
|
-
return e.displayName || "Context";
|
|
83
|
-
}
|
|
84
|
-
function P(e) {
|
|
85
|
-
if (e == null)
|
|
86
|
-
return null;
|
|
87
|
-
if (typeof e.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
88
|
-
return e.displayName || e.name || null;
|
|
89
|
-
if (typeof e == "string")
|
|
90
|
-
return e;
|
|
91
|
-
switch (e) {
|
|
92
|
-
case a:
|
|
93
|
-
return "Fragment";
|
|
94
|
-
case s:
|
|
95
|
-
return "Portal";
|
|
96
|
-
case l:
|
|
97
|
-
return "Profiler";
|
|
98
|
-
case u:
|
|
99
|
-
return "StrictMode";
|
|
100
|
-
case j:
|
|
101
|
-
return "Suspense";
|
|
102
|
-
case g:
|
|
103
|
-
return "SuspenseList";
|
|
104
|
-
}
|
|
105
|
-
if (typeof e == "object")
|
|
106
|
-
switch (e.$$typeof) {
|
|
107
|
-
case d:
|
|
108
|
-
var r = e;
|
|
109
|
-
return ue(r) + ".Consumer";
|
|
110
|
-
case f:
|
|
111
|
-
var i = e;
|
|
112
|
-
return ue(i._context) + ".Provider";
|
|
113
|
-
case p:
|
|
114
|
-
return He(e, e.render, "ForwardRef");
|
|
115
|
-
case x:
|
|
116
|
-
var c = e.displayName || null;
|
|
117
|
-
return c !== null ? c : P(e.type) || "Memo";
|
|
118
|
-
case C: {
|
|
119
|
-
var b = e, h = b._payload, m = b._init;
|
|
120
|
-
try {
|
|
121
|
-
return P(m(h));
|
|
122
|
-
} catch {
|
|
123
|
-
return null;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
return null;
|
|
128
|
-
}
|
|
129
|
-
var I = Object.assign, M = 0, ce, le, fe, de, ve, pe, me;
|
|
130
|
-
function be() {
|
|
131
|
-
}
|
|
132
|
-
be.__reactDisabledLog = !0;
|
|
133
|
-
function ze() {
|
|
134
|
-
{
|
|
135
|
-
if (M === 0) {
|
|
136
|
-
ce = console.log, le = console.info, fe = console.warn, de = console.error, ve = console.group, pe = console.groupCollapsed, me = console.groupEnd;
|
|
137
|
-
var e = {
|
|
138
|
-
configurable: !0,
|
|
139
|
-
enumerable: !0,
|
|
140
|
-
value: be,
|
|
141
|
-
writable: !0
|
|
142
|
-
};
|
|
143
|
-
Object.defineProperties(console, {
|
|
144
|
-
info: e,
|
|
145
|
-
log: e,
|
|
146
|
-
warn: e,
|
|
147
|
-
error: e,
|
|
148
|
-
group: e,
|
|
149
|
-
groupCollapsed: e,
|
|
150
|
-
groupEnd: e
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
M++;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
function Xe() {
|
|
157
|
-
{
|
|
158
|
-
if (M--, M === 0) {
|
|
159
|
-
var e = {
|
|
160
|
-
configurable: !0,
|
|
161
|
-
enumerable: !0,
|
|
162
|
-
writable: !0
|
|
163
|
-
};
|
|
164
|
-
Object.defineProperties(console, {
|
|
165
|
-
log: I({}, e, {
|
|
166
|
-
value: ce
|
|
167
|
-
}),
|
|
168
|
-
info: I({}, e, {
|
|
169
|
-
value: le
|
|
170
|
-
}),
|
|
171
|
-
warn: I({}, e, {
|
|
172
|
-
value: fe
|
|
173
|
-
}),
|
|
174
|
-
error: I({}, e, {
|
|
175
|
-
value: de
|
|
176
|
-
}),
|
|
177
|
-
group: I({}, e, {
|
|
178
|
-
value: ve
|
|
179
|
-
}),
|
|
180
|
-
groupCollapsed: I({}, e, {
|
|
181
|
-
value: pe
|
|
182
|
-
}),
|
|
183
|
-
groupEnd: I({}, e, {
|
|
184
|
-
value: me
|
|
185
|
-
})
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
M < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
var H = _.ReactCurrentDispatcher, z;
|
|
192
|
-
function V(e, r, i) {
|
|
193
|
-
{
|
|
194
|
-
if (z === void 0)
|
|
195
|
-
try {
|
|
196
|
-
throw Error();
|
|
197
|
-
} catch (b) {
|
|
198
|
-
var c = b.stack.trim().match(/\n( *(at )?)/);
|
|
199
|
-
z = c && c[1] || "";
|
|
200
|
-
}
|
|
201
|
-
return `
|
|
202
|
-
` + z + e;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
var X = !1, U;
|
|
206
|
-
{
|
|
207
|
-
var Ze = typeof WeakMap == "function" ? WeakMap : Map;
|
|
208
|
-
U = new Ze();
|
|
209
|
-
}
|
|
210
|
-
function he(e, r) {
|
|
211
|
-
if (!e || X)
|
|
212
|
-
return "";
|
|
213
|
-
{
|
|
214
|
-
var i = U.get(e);
|
|
215
|
-
if (i !== void 0)
|
|
216
|
-
return i;
|
|
217
|
-
}
|
|
218
|
-
var c;
|
|
219
|
-
X = !0;
|
|
220
|
-
var b = Error.prepareStackTrace;
|
|
221
|
-
Error.prepareStackTrace = void 0;
|
|
222
|
-
var h;
|
|
223
|
-
h = H.current, H.current = null, ze();
|
|
224
|
-
try {
|
|
225
|
-
if (r) {
|
|
226
|
-
var m = function() {
|
|
227
|
-
throw Error();
|
|
228
|
-
};
|
|
229
|
-
if (Object.defineProperty(m.prototype, "props", {
|
|
230
|
-
set: function() {
|
|
231
|
-
throw Error();
|
|
232
|
-
}
|
|
233
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
234
|
-
try {
|
|
235
|
-
Reflect.construct(m, []);
|
|
236
|
-
} catch (k) {
|
|
237
|
-
c = k;
|
|
238
|
-
}
|
|
239
|
-
Reflect.construct(e, [], m);
|
|
240
|
-
} else {
|
|
241
|
-
try {
|
|
242
|
-
m.call();
|
|
243
|
-
} catch (k) {
|
|
244
|
-
c = k;
|
|
245
|
-
}
|
|
246
|
-
e.call(m.prototype);
|
|
247
|
-
}
|
|
248
|
-
} else {
|
|
249
|
-
try {
|
|
250
|
-
throw Error();
|
|
251
|
-
} catch (k) {
|
|
252
|
-
c = k;
|
|
253
|
-
}
|
|
254
|
-
e();
|
|
255
|
-
}
|
|
256
|
-
} catch (k) {
|
|
257
|
-
if (k && c && typeof k.stack == "string") {
|
|
258
|
-
for (var v = k.stack.split(`
|
|
259
|
-
`), T = c.stack.split(`
|
|
260
|
-
`), E = v.length - 1, R = T.length - 1; E >= 1 && R >= 0 && v[E] !== T[R]; )
|
|
261
|
-
R--;
|
|
262
|
-
for (; E >= 1 && R >= 0; E--, R--)
|
|
263
|
-
if (v[E] !== T[R]) {
|
|
264
|
-
if (E !== 1 || R !== 1)
|
|
265
|
-
do
|
|
266
|
-
if (E--, R--, R < 0 || v[E] !== T[R]) {
|
|
267
|
-
var O = `
|
|
268
|
-
` + v[E].replace(" at new ", " at ");
|
|
269
|
-
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, O), O;
|
|
270
|
-
}
|
|
271
|
-
while (E >= 1 && R >= 0);
|
|
272
|
-
break;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
} finally {
|
|
276
|
-
X = !1, H.current = h, Xe(), Error.prepareStackTrace = b;
|
|
277
|
-
}
|
|
278
|
-
var D = e ? e.displayName || e.name : "", A = D ? V(D) : "";
|
|
279
|
-
return typeof e == "function" && U.set(e, A), A;
|
|
280
|
-
}
|
|
281
|
-
function Qe(e, r, i) {
|
|
282
|
-
return he(e, !1);
|
|
283
|
-
}
|
|
284
|
-
function er(e) {
|
|
285
|
-
var r = e.prototype;
|
|
286
|
-
return !!(r && r.isReactComponent);
|
|
287
|
-
}
|
|
288
|
-
function J(e, r, i) {
|
|
289
|
-
if (e == null)
|
|
290
|
-
return "";
|
|
291
|
-
if (typeof e == "function")
|
|
292
|
-
return he(e, er(e));
|
|
293
|
-
if (typeof e == "string")
|
|
294
|
-
return V(e);
|
|
295
|
-
switch (e) {
|
|
296
|
-
case j:
|
|
297
|
-
return V("Suspense");
|
|
298
|
-
case g:
|
|
299
|
-
return V("SuspenseList");
|
|
300
|
-
}
|
|
301
|
-
if (typeof e == "object")
|
|
302
|
-
switch (e.$$typeof) {
|
|
303
|
-
case p:
|
|
304
|
-
return Qe(e.render);
|
|
305
|
-
case x:
|
|
306
|
-
return J(e.type, r, i);
|
|
307
|
-
case C: {
|
|
308
|
-
var c = e, b = c._payload, h = c._init;
|
|
309
|
-
try {
|
|
310
|
-
return J(h(b), r, i);
|
|
311
|
-
} catch {
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
return "";
|
|
316
|
-
}
|
|
317
|
-
var W = Object.prototype.hasOwnProperty, ye = {}, ge = _.ReactDebugCurrentFrame;
|
|
318
|
-
function K(e) {
|
|
319
|
-
if (e) {
|
|
320
|
-
var r = e._owner, i = J(e.type, e._source, r ? r.type : null);
|
|
321
|
-
ge.setExtraStackFrame(i);
|
|
322
|
-
} else
|
|
323
|
-
ge.setExtraStackFrame(null);
|
|
324
|
-
}
|
|
325
|
-
function rr(e, r, i, c, b) {
|
|
326
|
-
{
|
|
327
|
-
var h = Function.call.bind(W);
|
|
328
|
-
for (var m in e)
|
|
329
|
-
if (h(e, m)) {
|
|
330
|
-
var v = void 0;
|
|
331
|
-
try {
|
|
332
|
-
if (typeof e[m] != "function") {
|
|
333
|
-
var T = Error((c || "React class") + ": " + i + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
334
|
-
throw T.name = "Invariant Violation", T;
|
|
335
|
-
}
|
|
336
|
-
v = e[m](r, m, c, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
337
|
-
} catch (E) {
|
|
338
|
-
v = E;
|
|
339
|
-
}
|
|
340
|
-
v && !(v instanceof Error) && (K(b), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", i, m, typeof v), K(null)), v instanceof Error && !(v.message in ye) && (ye[v.message] = !0, K(b), w("Failed %s type: %s", i, v.message), K(null));
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
var tr = Array.isArray;
|
|
345
|
-
function Z(e) {
|
|
346
|
-
return tr(e);
|
|
347
|
-
}
|
|
348
|
-
function nr(e) {
|
|
349
|
-
{
|
|
350
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, i = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
351
|
-
return i;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
function ar(e) {
|
|
355
|
-
try {
|
|
356
|
-
return xe(e), !1;
|
|
357
|
-
} catch {
|
|
358
|
-
return !0;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
function xe(e) {
|
|
362
|
-
return "" + e;
|
|
363
|
-
}
|
|
364
|
-
function je(e) {
|
|
365
|
-
if (ar(e))
|
|
366
|
-
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nr(e)), xe(e);
|
|
367
|
-
}
|
|
368
|
-
var Ee = _.ReactCurrentOwner, ir = {
|
|
369
|
-
key: !0,
|
|
370
|
-
ref: !0,
|
|
371
|
-
__self: !0,
|
|
372
|
-
__source: !0
|
|
373
|
-
}, Re, _e;
|
|
374
|
-
function or(e) {
|
|
375
|
-
if (W.call(e, "ref")) {
|
|
376
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
377
|
-
if (r && r.isReactWarning)
|
|
378
|
-
return !1;
|
|
379
|
-
}
|
|
380
|
-
return e.ref !== void 0;
|
|
381
|
-
}
|
|
382
|
-
function sr(e) {
|
|
383
|
-
if (W.call(e, "key")) {
|
|
384
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
385
|
-
if (r && r.isReactWarning)
|
|
386
|
-
return !1;
|
|
387
|
-
}
|
|
388
|
-
return e.key !== void 0;
|
|
389
|
-
}
|
|
390
|
-
function ur(e, r) {
|
|
391
|
-
typeof e.ref == "string" && Ee.current;
|
|
392
|
-
}
|
|
393
|
-
function cr(e, r) {
|
|
394
|
-
{
|
|
395
|
-
var i = function() {
|
|
396
|
-
Re || (Re = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
397
|
-
};
|
|
398
|
-
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
399
|
-
get: i,
|
|
400
|
-
configurable: !0
|
|
401
|
-
});
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
function lr(e, r) {
|
|
405
|
-
{
|
|
406
|
-
var i = function() {
|
|
407
|
-
_e || (_e = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
408
|
-
};
|
|
409
|
-
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
410
|
-
get: i,
|
|
411
|
-
configurable: !0
|
|
412
|
-
});
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
var fr = function(e, r, i, c, b, h, m) {
|
|
416
|
-
var v = {
|
|
417
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
418
|
-
$$typeof: n,
|
|
419
|
-
// Built-in properties that belong on the element
|
|
420
|
-
type: e,
|
|
421
|
-
key: r,
|
|
422
|
-
ref: i,
|
|
423
|
-
props: m,
|
|
424
|
-
// Record the component responsible for creating this element.
|
|
425
|
-
_owner: h
|
|
426
|
-
};
|
|
427
|
-
return v._store = {}, Object.defineProperty(v._store, "validated", {
|
|
428
|
-
configurable: !1,
|
|
429
|
-
enumerable: !1,
|
|
430
|
-
writable: !0,
|
|
431
|
-
value: !1
|
|
432
|
-
}), Object.defineProperty(v, "_self", {
|
|
433
|
-
configurable: !1,
|
|
434
|
-
enumerable: !1,
|
|
435
|
-
writable: !1,
|
|
436
|
-
value: c
|
|
437
|
-
}), Object.defineProperty(v, "_source", {
|
|
438
|
-
configurable: !1,
|
|
439
|
-
enumerable: !1,
|
|
440
|
-
writable: !1,
|
|
441
|
-
value: b
|
|
442
|
-
}), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
|
|
443
|
-
};
|
|
444
|
-
function dr(e, r, i, c, b) {
|
|
445
|
-
{
|
|
446
|
-
var h, m = {}, v = null, T = null;
|
|
447
|
-
i !== void 0 && (je(i), v = "" + i), sr(r) && (je(r.key), v = "" + r.key), or(r) && (T = r.ref, ur(r, b));
|
|
448
|
-
for (h in r)
|
|
449
|
-
W.call(r, h) && !ir.hasOwnProperty(h) && (m[h] = r[h]);
|
|
450
|
-
if (e && e.defaultProps) {
|
|
451
|
-
var E = e.defaultProps;
|
|
452
|
-
for (h in E)
|
|
453
|
-
m[h] === void 0 && (m[h] = E[h]);
|
|
454
|
-
}
|
|
455
|
-
if (v || T) {
|
|
456
|
-
var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
457
|
-
v && cr(m, R), T && lr(m, R);
|
|
458
|
-
}
|
|
459
|
-
return fr(e, v, T, b, c, Ee.current, m);
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
var Q = _.ReactCurrentOwner, we = _.ReactDebugCurrentFrame;
|
|
463
|
-
function F(e) {
|
|
464
|
-
if (e) {
|
|
465
|
-
var r = e._owner, i = J(e.type, e._source, r ? r.type : null);
|
|
466
|
-
we.setExtraStackFrame(i);
|
|
467
|
-
} else
|
|
468
|
-
we.setExtraStackFrame(null);
|
|
469
|
-
}
|
|
470
|
-
var ee;
|
|
471
|
-
ee = !1;
|
|
472
|
-
function re(e) {
|
|
473
|
-
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
474
|
-
}
|
|
475
|
-
function Te() {
|
|
476
|
-
{
|
|
477
|
-
if (Q.current) {
|
|
478
|
-
var e = P(Q.current.type);
|
|
479
|
-
if (e)
|
|
480
|
-
return `
|
|
481
|
-
|
|
482
|
-
Check the render method of \`` + e + "`.";
|
|
483
|
-
}
|
|
484
|
-
return "";
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
function vr(e) {
|
|
488
|
-
return "";
|
|
489
|
-
}
|
|
490
|
-
var ke = {};
|
|
491
|
-
function pr(e) {
|
|
492
|
-
{
|
|
493
|
-
var r = Te();
|
|
494
|
-
if (!r) {
|
|
495
|
-
var i = typeof e == "string" ? e : e.displayName || e.name;
|
|
496
|
-
i && (r = `
|
|
497
|
-
|
|
498
|
-
Check the top-level render call using <` + i + ">.");
|
|
499
|
-
}
|
|
500
|
-
return r;
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
function Ce(e, r) {
|
|
504
|
-
{
|
|
505
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
506
|
-
return;
|
|
507
|
-
e._store.validated = !0;
|
|
508
|
-
var i = pr(r);
|
|
509
|
-
if (ke[i])
|
|
510
|
-
return;
|
|
511
|
-
ke[i] = !0;
|
|
512
|
-
var c = "";
|
|
513
|
-
e && e._owner && e._owner !== Q.current && (c = " It was passed a child from " + P(e._owner.type) + "."), F(e), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, c), F(null);
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
function Se(e, r) {
|
|
517
|
-
{
|
|
518
|
-
if (typeof e != "object")
|
|
519
|
-
return;
|
|
520
|
-
if (Z(e))
|
|
521
|
-
for (var i = 0; i < e.length; i++) {
|
|
522
|
-
var c = e[i];
|
|
523
|
-
re(c) && Ce(c, r);
|
|
524
|
-
}
|
|
525
|
-
else if (re(e))
|
|
526
|
-
e._store && (e._store.validated = !0);
|
|
527
|
-
else if (e) {
|
|
528
|
-
var b = G(e);
|
|
529
|
-
if (typeof b == "function" && b !== e.entries)
|
|
530
|
-
for (var h = b.call(e), m; !(m = h.next()).done; )
|
|
531
|
-
re(m.value) && Ce(m.value, r);
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
function mr(e) {
|
|
536
|
-
{
|
|
537
|
-
var r = e.type;
|
|
538
|
-
if (r == null || typeof r == "string")
|
|
539
|
-
return;
|
|
540
|
-
var i;
|
|
541
|
-
if (typeof r == "function")
|
|
542
|
-
i = r.propTypes;
|
|
543
|
-
else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
|
|
544
|
-
// Inner props are checked in the reconciler.
|
|
545
|
-
r.$$typeof === x))
|
|
546
|
-
i = r.propTypes;
|
|
547
|
-
else
|
|
548
|
-
return;
|
|
549
|
-
if (i) {
|
|
550
|
-
var c = P(r);
|
|
551
|
-
rr(i, e.props, "prop", c, e);
|
|
552
|
-
} else if (r.PropTypes !== void 0 && !ee) {
|
|
553
|
-
ee = !0;
|
|
554
|
-
var b = P(r);
|
|
555
|
-
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", b || "Unknown");
|
|
556
|
-
}
|
|
557
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
function br(e) {
|
|
561
|
-
{
|
|
562
|
-
for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
|
|
563
|
-
var c = r[i];
|
|
564
|
-
if (c !== "children" && c !== "key") {
|
|
565
|
-
F(e), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), F(null);
|
|
566
|
-
break;
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
e.ref !== null && (F(e), w("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
var Oe = {};
|
|
573
|
-
function Ne(e, r, i, c, b, h) {
|
|
574
|
-
{
|
|
575
|
-
var m = Ge(e);
|
|
576
|
-
if (!m) {
|
|
577
|
-
var v = "";
|
|
578
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
579
|
-
var T = vr();
|
|
580
|
-
T ? v += T : v += Te();
|
|
581
|
-
var E;
|
|
582
|
-
e === null ? E = "null" : Z(e) ? E = "array" : e !== void 0 && e.$$typeof === n ? (E = "<" + (P(e.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, v);
|
|
583
|
-
}
|
|
584
|
-
var R = dr(e, r, i, b, h);
|
|
585
|
-
if (R == null)
|
|
586
|
-
return R;
|
|
587
|
-
if (m) {
|
|
588
|
-
var O = r.children;
|
|
589
|
-
if (O !== void 0)
|
|
590
|
-
if (c)
|
|
591
|
-
if (Z(O)) {
|
|
592
|
-
for (var D = 0; D < O.length; D++)
|
|
593
|
-
Se(O[D], e);
|
|
594
|
-
Object.freeze && Object.freeze(O);
|
|
595
|
-
} else
|
|
596
|
-
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
597
|
-
else
|
|
598
|
-
Se(O, e);
|
|
599
|
-
}
|
|
600
|
-
if (W.call(r, "key")) {
|
|
601
|
-
var A = P(e), k = Object.keys(r).filter(function(Er) {
|
|
602
|
-
return Er !== "key";
|
|
603
|
-
}), te = k.length > 0 ? "{key: someKey, " + k.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
604
|
-
if (!Oe[A + te]) {
|
|
605
|
-
var jr = k.length > 0 ? "{" + k.join(": ..., ") + ": ...}" : "{}";
|
|
606
|
-
w(`A props object containing a "key" prop is being spread into JSX:
|
|
607
|
-
let props = %s;
|
|
608
|
-
<%s {...props} />
|
|
609
|
-
React keys must be passed directly to JSX without using spread:
|
|
610
|
-
let props = %s;
|
|
611
|
-
<%s key={someKey} {...props} />`, te, A, jr, A), Oe[A + te] = !0;
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
return e === a ? br(R) : mr(R), R;
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
function hr(e, r, i) {
|
|
618
|
-
return Ne(e, r, i, !0);
|
|
619
|
-
}
|
|
620
|
-
function yr(e, r, i) {
|
|
621
|
-
return Ne(e, r, i, !1);
|
|
622
|
-
}
|
|
623
|
-
var gr = yr, xr = hr;
|
|
624
|
-
B.Fragment = a, B.jsx = gr, B.jsxs = xr;
|
|
625
|
-
}()), B;
|
|
626
|
-
}
|
|
627
|
-
process.env.NODE_ENV === "production" ? ae.exports = Tr() : ae.exports = kr();
|
|
628
|
-
var o = ae.exports;
|
|
629
|
-
function De(t) {
|
|
630
|
-
var n, s, a = "";
|
|
631
|
-
if (typeof t == "string" || typeof t == "number") a += t;
|
|
632
|
-
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
633
|
-
var u = t.length;
|
|
634
|
-
for (n = 0; n < u; n++) t[n] && (s = De(t[n])) && (a && (a += " "), a += s);
|
|
635
|
-
} else for (s in t) t[s] && (a && (a += " "), a += s);
|
|
636
|
-
return a;
|
|
13
|
+
function l() {
|
|
14
|
+
for (var e, t, i = 0, s = "", r = arguments.length; i < r; i++) (e = arguments[i]) && (t = T(e)) && (s && (s += " "), s += t);
|
|
15
|
+
return s;
|
|
637
16
|
}
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
}
|
|
642
|
-
const Cr = $.forwardRef(
|
|
643
|
-
({ className: t, variant: n = "primary", size: s = "md", ...a }, u) => {
|
|
644
|
-
const l = y(
|
|
17
|
+
const H = y.forwardRef(
|
|
18
|
+
({ className: e, variant: t = "primary", size: i = "md", ...s }, r) => {
|
|
19
|
+
const n = l(
|
|
645
20
|
"ui-btn",
|
|
646
|
-
`ui-btn-${
|
|
647
|
-
`ui-btn-${
|
|
648
|
-
|
|
21
|
+
`ui-btn-${t}`,
|
|
22
|
+
`ui-btn-${i}`,
|
|
23
|
+
e
|
|
649
24
|
);
|
|
650
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ a("button", { ref: r, className: n, ...s });
|
|
651
26
|
}
|
|
652
27
|
);
|
|
653
|
-
|
|
654
|
-
const
|
|
655
|
-
({ className:
|
|
656
|
-
const
|
|
657
|
-
return /* @__PURE__ */
|
|
658
|
-
|
|
659
|
-
/* @__PURE__ */
|
|
28
|
+
H.displayName = "Button";
|
|
29
|
+
const O = y.forwardRef(
|
|
30
|
+
({ className: e, label: t, error: i, helperText: s, fullWidth: r, size: n = "md", id: o, ...c }, u) => {
|
|
31
|
+
const d = o || y.useId();
|
|
32
|
+
return /* @__PURE__ */ b("div", { className: l("ui-input-wrapper", r && "ui-input-wrapper-full"), children: [
|
|
33
|
+
t && /* @__PURE__ */ a("label", { htmlFor: d, className: "ui-label", children: t }),
|
|
34
|
+
/* @__PURE__ */ a(
|
|
660
35
|
"input",
|
|
661
36
|
{
|
|
662
|
-
ref:
|
|
663
|
-
id:
|
|
664
|
-
className:
|
|
37
|
+
ref: u,
|
|
38
|
+
id: d,
|
|
39
|
+
className: l(
|
|
665
40
|
"ui-input",
|
|
666
|
-
`ui-input-${
|
|
667
|
-
|
|
668
|
-
|
|
41
|
+
`ui-input-${n}`,
|
|
42
|
+
i && "ui-input-error",
|
|
43
|
+
e
|
|
669
44
|
),
|
|
670
|
-
...
|
|
45
|
+
...c
|
|
671
46
|
}
|
|
672
47
|
),
|
|
673
|
-
|
|
48
|
+
s && /* @__PURE__ */ a("span", { className: l("ui-helper-text", i && "ui-helper-text-error"), children: s })
|
|
674
49
|
] });
|
|
675
50
|
}
|
|
676
51
|
);
|
|
677
|
-
|
|
678
|
-
const
|
|
679
|
-
({ className:
|
|
680
|
-
|
|
681
|
-
/* @__PURE__ */
|
|
682
|
-
|
|
52
|
+
O.displayName = "Input";
|
|
53
|
+
const V = y.forwardRef(
|
|
54
|
+
({ className: e, title: t, footer: i, children: s, ...r }, n) => /* @__PURE__ */ b("div", { ref: n, className: l("ui-card", e), ...r, children: [
|
|
55
|
+
t && /* @__PURE__ */ a("div", { className: "ui-card__header", children: t }),
|
|
56
|
+
/* @__PURE__ */ a("div", { className: "ui-card__body", children: s }),
|
|
57
|
+
i && /* @__PURE__ */ a("div", { className: "ui-card__footer", children: i })
|
|
683
58
|
] })
|
|
684
59
|
);
|
|
685
|
-
|
|
686
|
-
const
|
|
687
|
-
const
|
|
688
|
-
if (!
|
|
60
|
+
V.displayName = "Card";
|
|
61
|
+
const E = $(void 0), K = () => {
|
|
62
|
+
const e = w(E);
|
|
63
|
+
if (!e)
|
|
689
64
|
throw new Error("Modal compound components must be used within a Modal");
|
|
690
|
-
return
|
|
691
|
-
},
|
|
692
|
-
const { onClose:
|
|
693
|
-
return /* @__PURE__ */
|
|
694
|
-
/* @__PURE__ */
|
|
695
|
-
/* @__PURE__ */
|
|
65
|
+
return e;
|
|
66
|
+
}, j = ({ children: e, className: t }) => {
|
|
67
|
+
const { onClose: i } = K();
|
|
68
|
+
return /* @__PURE__ */ b("div", { className: l("ui-modal-header", t), children: [
|
|
69
|
+
/* @__PURE__ */ a("h3", { className: "ui-modal-title", children: e }),
|
|
70
|
+
/* @__PURE__ */ a(
|
|
696
71
|
"button",
|
|
697
72
|
{
|
|
698
73
|
className: "ui-modal-close",
|
|
699
|
-
onClick:
|
|
74
|
+
onClick: i,
|
|
700
75
|
"aria-label": "Close modal",
|
|
701
|
-
children: /* @__PURE__ */
|
|
702
|
-
/* @__PURE__ */
|
|
703
|
-
/* @__PURE__ */
|
|
76
|
+
children: /* @__PURE__ */ b("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
77
|
+
/* @__PURE__ */ a("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
78
|
+
/* @__PURE__ */ a("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
704
79
|
] })
|
|
705
80
|
}
|
|
706
81
|
)
|
|
707
82
|
] });
|
|
708
|
-
},
|
|
709
|
-
isOpen:
|
|
710
|
-
onClose:
|
|
711
|
-
title:
|
|
712
|
-
children:
|
|
713
|
-
footer:
|
|
714
|
-
size:
|
|
715
|
-
className:
|
|
716
|
-
closeOnBackdropClick:
|
|
83
|
+
}, L = ({ children: e, className: t }) => /* @__PURE__ */ a("div", { className: l("ui-modal-body", t), children: e }), R = ({ children: e, className: t }) => /* @__PURE__ */ a("div", { className: l("ui-modal-footer", t), children: e }), W = ({
|
|
84
|
+
isOpen: e,
|
|
85
|
+
onClose: t,
|
|
86
|
+
title: i,
|
|
87
|
+
children: s,
|
|
88
|
+
footer: r,
|
|
89
|
+
size: n = "md",
|
|
90
|
+
className: o,
|
|
91
|
+
closeOnBackdropClick: c = !0
|
|
717
92
|
}) => {
|
|
718
|
-
const
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
}, [
|
|
722
|
-
const
|
|
723
|
-
|
|
93
|
+
const u = C(null), [d, h] = y.useState(e);
|
|
94
|
+
v(() => {
|
|
95
|
+
e && h(!0);
|
|
96
|
+
}, [e]);
|
|
97
|
+
const m = () => {
|
|
98
|
+
e || h(!1);
|
|
724
99
|
};
|
|
725
|
-
if (
|
|
726
|
-
const
|
|
727
|
-
|
|
100
|
+
if (v(() => {
|
|
101
|
+
const f = (x) => {
|
|
102
|
+
x.key === "Escape" && t();
|
|
728
103
|
};
|
|
729
|
-
return
|
|
730
|
-
document.removeEventListener("keydown",
|
|
104
|
+
return e && (document.addEventListener("keydown", f), document.body.style.overflow = "hidden"), () => {
|
|
105
|
+
document.removeEventListener("keydown", f), document.body.style.overflow = "";
|
|
731
106
|
};
|
|
732
|
-
}, [
|
|
733
|
-
const
|
|
734
|
-
|
|
107
|
+
}, [e, t]), !d) return null;
|
|
108
|
+
const N = (f) => {
|
|
109
|
+
c && f.target === u.current && t();
|
|
735
110
|
};
|
|
736
|
-
return
|
|
737
|
-
/* @__PURE__ */
|
|
111
|
+
return P(
|
|
112
|
+
/* @__PURE__ */ a(E.Provider, { value: { onClose: t }, children: /* @__PURE__ */ a(
|
|
738
113
|
"div",
|
|
739
114
|
{
|
|
740
|
-
className:
|
|
741
|
-
ref:
|
|
742
|
-
onClick:
|
|
743
|
-
onAnimationEnd:
|
|
744
|
-
children: /* @__PURE__ */
|
|
115
|
+
className: l("ui-modal-overlay", !e && "ui-modal-closing"),
|
|
116
|
+
ref: u,
|
|
117
|
+
onClick: N,
|
|
118
|
+
onAnimationEnd: m,
|
|
119
|
+
children: /* @__PURE__ */ a(
|
|
745
120
|
"div",
|
|
746
121
|
{
|
|
747
|
-
className:
|
|
122
|
+
className: l(
|
|
748
123
|
"ui-modal",
|
|
749
|
-
`ui-modal-${
|
|
750
|
-
!
|
|
751
|
-
|
|
124
|
+
`ui-modal-${n}`,
|
|
125
|
+
!e && "ui-modal-closing",
|
|
126
|
+
o
|
|
752
127
|
),
|
|
753
128
|
role: "dialog",
|
|
754
129
|
"aria-modal": "true",
|
|
755
|
-
children:
|
|
756
|
-
/* @__PURE__ */
|
|
757
|
-
/* @__PURE__ */
|
|
758
|
-
|
|
759
|
-
] }) :
|
|
130
|
+
children: i ? /* @__PURE__ */ b(A, { children: [
|
|
131
|
+
/* @__PURE__ */ a(j, { children: i }),
|
|
132
|
+
/* @__PURE__ */ a(L, { children: s }),
|
|
133
|
+
r && /* @__PURE__ */ a(R, { children: r })
|
|
134
|
+
] }) : s
|
|
760
135
|
}
|
|
761
136
|
)
|
|
762
137
|
}
|
|
763
138
|
) }),
|
|
764
139
|
document.body
|
|
765
140
|
);
|
|
766
|
-
},
|
|
767
|
-
Header:
|
|
768
|
-
Body:
|
|
769
|
-
Footer:
|
|
770
|
-
}),
|
|
771
|
-
options:
|
|
772
|
-
value:
|
|
773
|
-
onChange:
|
|
774
|
-
placeholder:
|
|
775
|
-
label:
|
|
776
|
-
error:
|
|
777
|
-
helperText:
|
|
778
|
-
disabled:
|
|
779
|
-
fullWidth:
|
|
780
|
-
size:
|
|
781
|
-
className:
|
|
141
|
+
}, ee = Object.assign(W, {
|
|
142
|
+
Header: j,
|
|
143
|
+
Body: L,
|
|
144
|
+
Footer: R
|
|
145
|
+
}), te = ({
|
|
146
|
+
options: e,
|
|
147
|
+
value: t,
|
|
148
|
+
onChange: i,
|
|
149
|
+
placeholder: s = "Select an option",
|
|
150
|
+
label: r,
|
|
151
|
+
error: n,
|
|
152
|
+
helperText: o,
|
|
153
|
+
disabled: c,
|
|
154
|
+
fullWidth: u,
|
|
155
|
+
size: d = "md",
|
|
156
|
+
className: h
|
|
782
157
|
}) => {
|
|
783
|
-
const [
|
|
784
|
-
|
|
785
|
-
},
|
|
786
|
-
|
|
158
|
+
const [m, N] = I(!1), f = C(null), x = e.find((p) => p.value === t), B = () => {
|
|
159
|
+
c || N(!m);
|
|
160
|
+
}, M = (p) => {
|
|
161
|
+
i && i(p), N(!1);
|
|
787
162
|
};
|
|
788
|
-
return
|
|
789
|
-
const
|
|
790
|
-
|
|
163
|
+
return v(() => {
|
|
164
|
+
const p = (S) => {
|
|
165
|
+
f.current && !f.current.contains(S.target) && N(!1);
|
|
791
166
|
};
|
|
792
|
-
return
|
|
793
|
-
document.removeEventListener("mousedown",
|
|
167
|
+
return m && document.addEventListener("mousedown", p), () => {
|
|
168
|
+
document.removeEventListener("mousedown", p);
|
|
794
169
|
};
|
|
795
|
-
}, [
|
|
170
|
+
}, [m]), /* @__PURE__ */ b(
|
|
796
171
|
"div",
|
|
797
172
|
{
|
|
798
|
-
className:
|
|
799
|
-
ref:
|
|
800
|
-
style: { width:
|
|
173
|
+
className: l("ui-select-wrapper", u && "ui-w-full", h),
|
|
174
|
+
ref: f,
|
|
175
|
+
style: { width: u ? "100%" : "auto" },
|
|
801
176
|
children: [
|
|
802
|
-
|
|
803
|
-
/* @__PURE__ */
|
|
177
|
+
r && /* @__PURE__ */ a("label", { className: "ui-label", style: { marginBottom: "0.375rem", display: "block" }, children: r }),
|
|
178
|
+
/* @__PURE__ */ b(
|
|
804
179
|
"button",
|
|
805
180
|
{
|
|
806
181
|
type: "button",
|
|
807
|
-
className:
|
|
182
|
+
className: l(
|
|
808
183
|
"ui-select-trigger",
|
|
809
|
-
`ui-select-${
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
184
|
+
`ui-select-${d}`,
|
|
185
|
+
n && "ui-select-error",
|
|
186
|
+
c && "ui-select-disabled",
|
|
187
|
+
m && "ui-select-open"
|
|
813
188
|
),
|
|
814
|
-
onClick:
|
|
815
|
-
disabled:
|
|
189
|
+
onClick: B,
|
|
190
|
+
disabled: c,
|
|
816
191
|
"aria-haspopup": "listbox",
|
|
817
|
-
"aria-expanded":
|
|
192
|
+
"aria-expanded": m,
|
|
818
193
|
children: [
|
|
819
|
-
/* @__PURE__ */
|
|
820
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ a("span", { className: l(!x && "ui-select-placeholder"), children: x ? x.label : s }),
|
|
195
|
+
/* @__PURE__ */ a(
|
|
821
196
|
"svg",
|
|
822
197
|
{
|
|
823
198
|
className: "ui-select-icon",
|
|
824
199
|
fill: "none",
|
|
825
200
|
stroke: "currentColor",
|
|
826
201
|
viewBox: "0 0 24 24",
|
|
827
|
-
children: /* @__PURE__ */
|
|
202
|
+
children: /* @__PURE__ */ a("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" })
|
|
828
203
|
}
|
|
829
204
|
)
|
|
830
205
|
]
|
|
831
206
|
}
|
|
832
207
|
),
|
|
833
|
-
|
|
834
|
-
|
|
208
|
+
m && /* @__PURE__ */ b("ul", { className: "ui-select-menu", role: "listbox", children: [
|
|
209
|
+
e.map((p) => /* @__PURE__ */ a(
|
|
835
210
|
"li",
|
|
836
211
|
{
|
|
837
|
-
className:
|
|
212
|
+
className: l(
|
|
838
213
|
"ui-select-option",
|
|
839
|
-
|
|
214
|
+
p.value === t && "ui-select-selected"
|
|
840
215
|
),
|
|
841
|
-
onClick: () =>
|
|
216
|
+
onClick: () => M(p.value),
|
|
842
217
|
role: "option",
|
|
843
|
-
"aria-selected":
|
|
844
|
-
children:
|
|
218
|
+
"aria-selected": p.value === t,
|
|
219
|
+
children: p.label
|
|
845
220
|
},
|
|
846
|
-
|
|
221
|
+
p.value
|
|
847
222
|
)),
|
|
848
|
-
|
|
223
|
+
e.length === 0 && /* @__PURE__ */ a("li", { className: "ui-select-option", style: { color: "var(--ui-text-muted)", cursor: "default" }, children: "No options" })
|
|
849
224
|
] }),
|
|
850
|
-
|
|
225
|
+
o && /* @__PURE__ */ a("span", { className: l("ui-helper-text", n && "ui-helper-text-error"), style: { marginTop: "0.375rem", display: "block" }, children: o })
|
|
851
226
|
]
|
|
852
227
|
}
|
|
853
228
|
);
|
|
854
|
-
},
|
|
855
|
-
({ className:
|
|
229
|
+
}, se = g(
|
|
230
|
+
({ className: e, label: t, error: i, disabled: s, size: r = "md", variant: n = "primary", ...o }, c) => /* @__PURE__ */ b(
|
|
856
231
|
"label",
|
|
857
232
|
{
|
|
858
|
-
className:
|
|
233
|
+
className: l(
|
|
859
234
|
"ui-checkbox-label",
|
|
860
|
-
`ui-checkbox-${
|
|
861
|
-
`ui-checkbox-${
|
|
862
|
-
|
|
863
|
-
|
|
235
|
+
`ui-checkbox-${r}`,
|
|
236
|
+
`ui-checkbox-${n}`,
|
|
237
|
+
s && "ui-checkbox-disabled",
|
|
238
|
+
e
|
|
864
239
|
),
|
|
865
240
|
children: [
|
|
866
|
-
/* @__PURE__ */
|
|
241
|
+
/* @__PURE__ */ a(
|
|
867
242
|
"input",
|
|
868
243
|
{
|
|
869
244
|
type: "checkbox",
|
|
870
245
|
className: "ui-checkbox-input",
|
|
871
|
-
disabled:
|
|
872
|
-
ref:
|
|
873
|
-
...
|
|
246
|
+
disabled: s,
|
|
247
|
+
ref: c,
|
|
248
|
+
...o
|
|
874
249
|
}
|
|
875
250
|
),
|
|
876
|
-
/* @__PURE__ */
|
|
251
|
+
/* @__PURE__ */ a("span", { className: "ui-checkbox-custom", children: /* @__PURE__ */ a(
|
|
877
252
|
"svg",
|
|
878
253
|
{
|
|
879
254
|
className: "ui-checkbox-icon",
|
|
@@ -882,232 +257,232 @@ const Le = Ie(void 0), Nr = () => {
|
|
|
882
257
|
stroke: "currentColor",
|
|
883
258
|
strokeLinecap: "round",
|
|
884
259
|
strokeLinejoin: "round",
|
|
885
|
-
children: /* @__PURE__ */
|
|
260
|
+
children: /* @__PURE__ */ a("polyline", { points: "20 6 9 17 4 12" })
|
|
886
261
|
}
|
|
887
262
|
) }),
|
|
888
|
-
|
|
263
|
+
t && /* @__PURE__ */ a("span", { className: "ui-checkbox-text", children: t })
|
|
889
264
|
]
|
|
890
265
|
}
|
|
891
266
|
)
|
|
892
|
-
),
|
|
893
|
-
({ className:
|
|
267
|
+
), ie = g(
|
|
268
|
+
({ className: e, label: t, error: i, disabled: s, size: r = "md", variant: n = "primary", ...o }, c) => /* @__PURE__ */ b(
|
|
894
269
|
"label",
|
|
895
270
|
{
|
|
896
|
-
className:
|
|
271
|
+
className: l(
|
|
897
272
|
"ui-radio-label",
|
|
898
|
-
`ui-radio-${
|
|
899
|
-
`ui-radio-${
|
|
900
|
-
|
|
901
|
-
|
|
273
|
+
`ui-radio-${r}`,
|
|
274
|
+
`ui-radio-${n}`,
|
|
275
|
+
s && "ui-radio-disabled",
|
|
276
|
+
e
|
|
902
277
|
),
|
|
903
278
|
children: [
|
|
904
|
-
/* @__PURE__ */
|
|
279
|
+
/* @__PURE__ */ a(
|
|
905
280
|
"input",
|
|
906
281
|
{
|
|
907
282
|
type: "radio",
|
|
908
283
|
className: "ui-radio-input",
|
|
909
|
-
disabled:
|
|
910
|
-
ref:
|
|
911
|
-
...
|
|
284
|
+
disabled: s,
|
|
285
|
+
ref: c,
|
|
286
|
+
...o
|
|
912
287
|
}
|
|
913
288
|
),
|
|
914
|
-
/* @__PURE__ */
|
|
915
|
-
|
|
289
|
+
/* @__PURE__ */ a("span", { className: "ui-radio-custom", children: /* @__PURE__ */ a("span", { className: "ui-radio-dot" }) }),
|
|
290
|
+
t && /* @__PURE__ */ a("span", { className: "ui-radio-text", children: t })
|
|
916
291
|
]
|
|
917
292
|
}
|
|
918
293
|
)
|
|
919
|
-
),
|
|
920
|
-
({ className:
|
|
294
|
+
), ae = g(
|
|
295
|
+
({ className: e, label: t, error: i, disabled: s, size: r = "md", variant: n = "primary", ...o }, c) => /* @__PURE__ */ b(
|
|
921
296
|
"label",
|
|
922
297
|
{
|
|
923
|
-
className:
|
|
298
|
+
className: l(
|
|
924
299
|
"ui-switch-label",
|
|
925
|
-
`ui-switch-${
|
|
926
|
-
`ui-switch-${
|
|
927
|
-
|
|
928
|
-
|
|
300
|
+
`ui-switch-${r}`,
|
|
301
|
+
`ui-switch-${n}`,
|
|
302
|
+
s && "ui-switch-disabled",
|
|
303
|
+
e
|
|
929
304
|
),
|
|
930
305
|
children: [
|
|
931
|
-
/* @__PURE__ */
|
|
306
|
+
/* @__PURE__ */ a(
|
|
932
307
|
"input",
|
|
933
308
|
{
|
|
934
309
|
type: "checkbox",
|
|
935
310
|
className: "ui-switch-input",
|
|
936
|
-
disabled:
|
|
937
|
-
ref:
|
|
311
|
+
disabled: s,
|
|
312
|
+
ref: c,
|
|
938
313
|
role: "switch",
|
|
939
|
-
...
|
|
314
|
+
...o
|
|
940
315
|
}
|
|
941
316
|
),
|
|
942
|
-
/* @__PURE__ */
|
|
943
|
-
|
|
317
|
+
/* @__PURE__ */ a("span", { className: "ui-switch-track", children: /* @__PURE__ */ a("span", { className: "ui-switch-thumb" }) }),
|
|
318
|
+
t && /* @__PURE__ */ a("span", { className: "ui-switch-text", children: t })
|
|
944
319
|
]
|
|
945
320
|
}
|
|
946
321
|
)
|
|
947
|
-
),
|
|
948
|
-
({ className:
|
|
322
|
+
), re = g(
|
|
323
|
+
({ className: e, children: t, variant: i = "primary", size: s = "md", shape: r = "rounded", ...n }, o) => /* @__PURE__ */ a(
|
|
949
324
|
"span",
|
|
950
325
|
{
|
|
951
|
-
ref:
|
|
952
|
-
className:
|
|
326
|
+
ref: o,
|
|
327
|
+
className: l(
|
|
953
328
|
"ui-badge",
|
|
329
|
+
`ui-badge-${i}`,
|
|
954
330
|
`ui-badge-${s}`,
|
|
955
|
-
`ui-badge-${
|
|
956
|
-
|
|
957
|
-
t
|
|
331
|
+
`ui-badge-${r}`,
|
|
332
|
+
e
|
|
958
333
|
),
|
|
959
|
-
...
|
|
960
|
-
children:
|
|
334
|
+
...n,
|
|
335
|
+
children: t
|
|
961
336
|
}
|
|
962
337
|
)
|
|
963
|
-
),
|
|
964
|
-
({ className:
|
|
965
|
-
const
|
|
966
|
-
return /* @__PURE__ */
|
|
967
|
-
|
|
338
|
+
), ne = g(
|
|
339
|
+
({ className: e, children: t, level: i = 1, truncate: s, lines: r, style: n, ...o }, c) => {
|
|
340
|
+
const u = `h${i}`, d = r ? { ...n, "--ui-line-clamp": r } : n;
|
|
341
|
+
return /* @__PURE__ */ a(
|
|
342
|
+
u,
|
|
968
343
|
{
|
|
969
|
-
ref:
|
|
970
|
-
className:
|
|
344
|
+
ref: c,
|
|
345
|
+
className: l(
|
|
971
346
|
"ui-heading",
|
|
972
|
-
`ui-heading-h${
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
347
|
+
`ui-heading-h${i}`,
|
|
348
|
+
s && "ui-text-truncate",
|
|
349
|
+
r && "ui-text-clamp",
|
|
350
|
+
e
|
|
976
351
|
),
|
|
977
|
-
style:
|
|
978
|
-
...
|
|
979
|
-
children:
|
|
352
|
+
style: d,
|
|
353
|
+
...o,
|
|
354
|
+
children: t
|
|
980
355
|
}
|
|
981
356
|
);
|
|
982
357
|
}
|
|
983
|
-
),
|
|
984
|
-
({ className:
|
|
985
|
-
const
|
|
986
|
-
return /* @__PURE__ */
|
|
987
|
-
|
|
358
|
+
), oe = g(
|
|
359
|
+
({ className: e, children: t, variant: i = "body", weight: s, muted: r, truncate: n, lines: o, as: c = "p", style: u, ...d }, h) => {
|
|
360
|
+
const m = o ? { ...u, "--ui-line-clamp": o } : u;
|
|
361
|
+
return /* @__PURE__ */ a(
|
|
362
|
+
c,
|
|
988
363
|
{
|
|
989
|
-
ref:
|
|
990
|
-
className:
|
|
364
|
+
ref: h,
|
|
365
|
+
className: l(
|
|
991
366
|
"ui-text",
|
|
992
|
-
`ui-text-${
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
367
|
+
`ui-text-${i}`,
|
|
368
|
+
s && `ui-text-weight-${s}`,
|
|
369
|
+
r && "ui-text-muted",
|
|
370
|
+
n && "ui-text-truncate",
|
|
371
|
+
o && "ui-text-clamp",
|
|
372
|
+
e
|
|
998
373
|
),
|
|
999
|
-
style:
|
|
1000
|
-
...
|
|
1001
|
-
children:
|
|
374
|
+
style: m,
|
|
375
|
+
...d,
|
|
376
|
+
children: t
|
|
1002
377
|
}
|
|
1003
378
|
);
|
|
1004
379
|
}
|
|
1005
|
-
),
|
|
1006
|
-
const [
|
|
1007
|
-
|
|
380
|
+
), k = $(null), q = ({ defaultValue: e, value: t, onValueChange: i, children: s, className: r }) => {
|
|
381
|
+
const [n, o] = I(e || ""), c = t !== void 0, u = c ? t : n, d = _(), h = (m) => {
|
|
382
|
+
c || o(m), i == null || i(m);
|
|
1008
383
|
};
|
|
1009
|
-
return /* @__PURE__ */
|
|
1010
|
-
},
|
|
384
|
+
return /* @__PURE__ */ a(k.Provider, { value: { value: u, onChange: h, baseId: d }, children: /* @__PURE__ */ a("div", { className: l("ui-tabs", r), children: s }) });
|
|
385
|
+
}, z = ({ className: e, children: t, variant: i = "line", ...s }) => /* @__PURE__ */ a(
|
|
1011
386
|
"div",
|
|
1012
387
|
{
|
|
1013
388
|
role: "tablist",
|
|
1014
|
-
className:
|
|
1015
|
-
...
|
|
1016
|
-
children:
|
|
389
|
+
className: l("ui-tabs-list", `ui-tabs-list-${i}`, e),
|
|
390
|
+
...s,
|
|
391
|
+
children: t
|
|
1017
392
|
}
|
|
1018
|
-
),
|
|
1019
|
-
const
|
|
1020
|
-
if (!
|
|
1021
|
-
const
|
|
1022
|
-
|
|
393
|
+
), D = ({ value: e, className: t, children: i, onClick: s, ...r }) => {
|
|
394
|
+
const n = w(k);
|
|
395
|
+
if (!n) throw new Error("TabsTrigger must be used within Tabs");
|
|
396
|
+
const o = n.value === e, c = `${n.baseId}-trigger-${e}`, u = `${n.baseId}-content-${e}`, d = (h) => {
|
|
397
|
+
n.onChange(e), s == null || s(h);
|
|
1023
398
|
};
|
|
1024
|
-
return /* @__PURE__ */
|
|
399
|
+
return /* @__PURE__ */ a(
|
|
1025
400
|
"button",
|
|
1026
401
|
{
|
|
1027
402
|
type: "button",
|
|
1028
403
|
role: "tab",
|
|
1029
|
-
"aria-selected":
|
|
1030
|
-
"aria-controls":
|
|
1031
|
-
id:
|
|
1032
|
-
tabIndex:
|
|
1033
|
-
"data-state":
|
|
1034
|
-
className:
|
|
1035
|
-
onClick:
|
|
1036
|
-
...
|
|
1037
|
-
children:
|
|
404
|
+
"aria-selected": o,
|
|
405
|
+
"aria-controls": u,
|
|
406
|
+
id: c,
|
|
407
|
+
tabIndex: o ? 0 : -1,
|
|
408
|
+
"data-state": o ? "active" : "inactive",
|
|
409
|
+
className: l("ui-tabs-trigger", t),
|
|
410
|
+
onClick: d,
|
|
411
|
+
...r,
|
|
412
|
+
children: i
|
|
1038
413
|
}
|
|
1039
414
|
);
|
|
1040
|
-
},
|
|
1041
|
-
const
|
|
1042
|
-
if (!
|
|
1043
|
-
const
|
|
1044
|
-
return
|
|
415
|
+
}, G = ({ value: e, className: t, children: i, ...s }) => {
|
|
416
|
+
const r = w(k);
|
|
417
|
+
if (!r) throw new Error("TabsContent must be used within Tabs");
|
|
418
|
+
const n = r.value === e, o = `${r.baseId}-trigger-${e}`, c = `${r.baseId}-content-${e}`;
|
|
419
|
+
return n ? /* @__PURE__ */ a(
|
|
1045
420
|
"div",
|
|
1046
421
|
{
|
|
1047
422
|
role: "tabpanel",
|
|
1048
|
-
id:
|
|
1049
|
-
"aria-labelledby":
|
|
423
|
+
id: c,
|
|
424
|
+
"aria-labelledby": o,
|
|
1050
425
|
tabIndex: 0,
|
|
1051
|
-
className:
|
|
1052
|
-
...
|
|
1053
|
-
children:
|
|
426
|
+
className: l("ui-tabs-content", t),
|
|
427
|
+
...s,
|
|
428
|
+
children: i
|
|
1054
429
|
}
|
|
1055
430
|
) : null;
|
|
1056
|
-
},
|
|
1057
|
-
List:
|
|
1058
|
-
Trigger:
|
|
1059
|
-
Content:
|
|
1060
|
-
}),
|
|
1061
|
-
({ className:
|
|
1062
|
-
const
|
|
431
|
+
}, ce = Object.assign(q, {
|
|
432
|
+
List: z,
|
|
433
|
+
Trigger: D,
|
|
434
|
+
Content: G
|
|
435
|
+
}), J = y.forwardRef(
|
|
436
|
+
({ className: e, bordered: t = !0, striped: i, hover: s, size: r = "md", children: n, ...o }, c) => {
|
|
437
|
+
const u = [
|
|
1063
438
|
"ui-table",
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
439
|
+
t && "ui-table-bordered",
|
|
440
|
+
i && "ui-table-striped",
|
|
441
|
+
s && "ui-table-hover",
|
|
442
|
+
r === "sm" && "ui-table-sm",
|
|
443
|
+
e
|
|
1069
444
|
].filter(Boolean).join(" ");
|
|
1070
|
-
return /* @__PURE__ */
|
|
445
|
+
return /* @__PURE__ */ a("div", { className: "ui-table-responsive", children: /* @__PURE__ */ a("table", { ref: c, className: u, ...o, children: n }) });
|
|
1071
446
|
}
|
|
1072
447
|
);
|
|
1073
|
-
|
|
1074
|
-
function
|
|
1075
|
-
return
|
|
448
|
+
J.displayName = "Table";
|
|
449
|
+
function Q(e) {
|
|
450
|
+
return e && typeof e == "object" && !Array.isArray(e);
|
|
1076
451
|
}
|
|
1077
|
-
function
|
|
1078
|
-
const
|
|
1079
|
-
Object.keys(
|
|
1080
|
-
const
|
|
1081
|
-
|
|
452
|
+
function U(e) {
|
|
453
|
+
const t = {}, i = (s, r) => {
|
|
454
|
+
Object.keys(s).forEach((n) => {
|
|
455
|
+
const o = s[n], c = `${r}-${n}`;
|
|
456
|
+
Q(o) ? i(o, c) : t[`-${c}`] = o;
|
|
1082
457
|
});
|
|
1083
458
|
};
|
|
1084
|
-
return
|
|
1085
|
-
|
|
1086
|
-
}),
|
|
1087
|
-
const
|
|
1088
|
-
|
|
1089
|
-
}),
|
|
459
|
+
return e.colors && Object.keys(e.colors).forEach((s) => {
|
|
460
|
+
t[`--ui-${s}`] = e.colors[s];
|
|
461
|
+
}), e.components && Object.keys(e.components).forEach((s) => {
|
|
462
|
+
const r = e.components[s];
|
|
463
|
+
r && i(r, `-ui-${s.toLowerCase()}`);
|
|
464
|
+
}), e.spacing && i(e.spacing, "-ui-spacing"), e.radius && i(e.radius, "-ui-radius"), e.shadows && i(e.shadows, "-ui-shadow"), e.typography && i(e.typography, "-ui-typography"), t;
|
|
1090
465
|
}
|
|
1091
|
-
const
|
|
1092
|
-
const
|
|
1093
|
-
return /* @__PURE__ */
|
|
466
|
+
const le = ({ theme: e, children: t }) => {
|
|
467
|
+
const i = F(() => U(e), [e]);
|
|
468
|
+
return /* @__PURE__ */ a("div", { style: { display: "contents", ...i }, children: t });
|
|
1094
469
|
};
|
|
1095
470
|
export {
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
471
|
+
re as Badge,
|
|
472
|
+
H as Button,
|
|
473
|
+
V as Card,
|
|
474
|
+
se as Checkbox,
|
|
475
|
+
ne as Heading,
|
|
476
|
+
O as Input,
|
|
477
|
+
ee as Modal,
|
|
478
|
+
L as ModalBody,
|
|
479
|
+
R as ModalFooter,
|
|
480
|
+
j as ModalHeader,
|
|
481
|
+
ie as Radio,
|
|
482
|
+
te as Select,
|
|
483
|
+
ae as Switch,
|
|
484
|
+
J as Table,
|
|
485
|
+
ce as Tabs,
|
|
486
|
+
oe as Text,
|
|
487
|
+
le as ThemeProvider
|
|
1113
488
|
};
|