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