@coinloger/dev-ui 0.0.2 → 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.
@@ -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 _r } from "react-dom";
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 wr() {
14
+ function Tr() {
15
15
  if (Pe) return Y;
16
16
  Pe = 1;
17
- var t = $, a = Symbol.for("react.element"), s = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, l = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function f(v, p, j) {
19
- var g, y = {}, C = null, S = null;
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) o.call(p, g) && !c.hasOwnProperty(g) && (y[g] = p[g]);
22
- if (v && v.defaultProps) for (g in p = v.defaultProps, p) y[g] === void 0 && (y[g] = p[g]);
23
- return { $$typeof: a, type: v, key: C, ref: S, props: y, _owner: l.current };
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 Tr() {
38
+ function kr() {
39
39
  return $e || ($e = 1, process.env.NODE_ENV !== "production" && function() {
40
- var t = $, a = Symbol.for("react.element"), s = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), v = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), O = Symbol.iterator, q = "@@iterator";
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 = O && e[O] || e[q];
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, n = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
51
- n[u - 1] = arguments[u];
52
- Be("error", e, n);
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, n) {
55
+ function Be(e, r, i) {
56
56
  {
57
- var u = _.ReactDebugCurrentFrame, h = u.getStackAddendum();
58
- h !== "" && (r += "%s", n = n.concat([h]));
59
- var b = n.map(function(m) {
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
- b.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, b);
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 === o || e === c || qe || e === l || e === j || e === g || Ke || e === S || Ve || Ue || Je || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === y || e.$$typeof === f || e.$$typeof === v || e.$$typeof === p || // This needs to include all possible module reference object
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, n) {
75
- var u = e.displayName;
76
- if (u)
77
- return u;
78
- var h = r.displayName || r.name || "";
79
- return h !== "" ? n + "(" + h + ")" : n;
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 o:
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 v:
107
+ case d:
108
108
  var r = e;
109
109
  return ue(r) + ".Consumer";
110
110
  case f:
111
- var n = e;
112
- return ue(n._context) + ".Provider";
111
+ var i = e;
112
+ return ue(i._context) + ".Provider";
113
113
  case p:
114
114
  return He(e, e.render, "ForwardRef");
115
- case y:
116
- var u = e.displayName || null;
117
- return u !== null ? u : P(e.type) || "Memo";
115
+ case x:
116
+ var c = e.displayName || null;
117
+ return c !== null ? c : P(e.type) || "Memo";
118
118
  case C: {
119
- var h = e, b = h._payload, m = h._init;
119
+ var b = e, h = b._payload, m = b._init;
120
120
  try {
121
- return P(m(b));
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, le, ce, fe, de, ve, pe, me;
130
- function he() {
129
+ var I = Object.assign, M = 0, ce, le, fe, de, ve, pe, me;
130
+ function be() {
131
131
  }
132
- he.__reactDisabledLog = !0;
132
+ be.__reactDisabledLog = !0;
133
133
  function ze() {
134
134
  {
135
135
  if (M === 0) {
136
- le = console.log, ce = console.info, fe = console.warn, de = console.error, ve = console.group, pe = console.groupCollapsed, me = console.groupEnd;
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: he,
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: le
166
+ value: ce
167
167
  }),
168
168
  info: I({}, e, {
169
- value: ce
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, n) {
192
+ function V(e, r, i) {
193
193
  {
194
194
  if (z === void 0)
195
195
  try {
196
196
  throw Error();
197
- } catch (h) {
198
- var u = h.stack.trim().match(/\n( *(at )?)/);
199
- z = u && u[1] || "";
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 be(e, r) {
210
+ function he(e, r) {
211
211
  if (!e || X)
212
212
  return "";
213
213
  {
214
- var n = U.get(e);
215
- if (n !== void 0)
216
- return n;
214
+ var i = U.get(e);
215
+ if (i !== void 0)
216
+ return i;
217
217
  }
218
- var u;
218
+ var c;
219
219
  X = !0;
220
- var h = Error.prepareStackTrace;
220
+ var b = Error.prepareStackTrace;
221
221
  Error.prepareStackTrace = void 0;
222
- var b;
223
- b = H.current, H.current = null, ze();
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
- u = k;
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
- u = k;
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
- u = k;
252
+ c = k;
253
253
  }
254
254
  e();
255
255
  }
256
256
  } catch (k) {
257
- if (k && u && typeof k.stack == "string") {
258
- for (var d = k.stack.split(`
259
- `), T = u.stack.split(`
260
- `), E = d.length - 1, R = T.length - 1; E >= 1 && R >= 0 && d[E] !== T[R]; )
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 (d[E] !== T[R]) {
263
+ if (v[E] !== T[R]) {
264
264
  if (E !== 1 || R !== 1)
265
265
  do
266
- if (E--, R--, R < 0 || d[E] !== T[R]) {
267
- var N = `
268
- ` + d[E].replace(" at new ", " at ");
269
- return e.displayName && N.includes("<anonymous>") && (N = N.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, N), N;
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 = b, Xe(), Error.prepareStackTrace = h;
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, n) {
282
- return be(e, !1);
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, n) {
288
+ function J(e, r, i) {
289
289
  if (e == null)
290
290
  return "";
291
291
  if (typeof e == "function")
292
- return be(e, er(e));
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 y:
306
- return J(e.type, r, n);
305
+ case x:
306
+ return J(e.type, r, i);
307
307
  case C: {
308
- var u = e, h = u._payload, b = u._init;
308
+ var c = e, b = c._payload, h = c._init;
309
309
  try {
310
- return J(b(h), r, n);
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, xe = {}, ge = _.ReactDebugCurrentFrame;
317
+ var W = Object.prototype.hasOwnProperty, ye = {}, ge = _.ReactDebugCurrentFrame;
318
318
  function K(e) {
319
319
  if (e) {
320
- var r = e._owner, n = J(e.type, e._source, r ? r.type : null);
321
- ge.setExtraStackFrame(n);
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, n, u, h) {
325
+ function rr(e, r, i, c, b) {
326
326
  {
327
- var b = Function.call.bind(W);
327
+ var h = Function.call.bind(W);
328
328
  for (var m in e)
329
- if (b(e, m)) {
330
- var d = void 0;
329
+ if (h(e, m)) {
330
+ var v = void 0;
331
331
  try {
332
332
  if (typeof e[m] != "function") {
333
- var T = Error((u || "React class") + ": " + n + " 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`.");
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
- d = e[m](r, m, u, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
+ v = e[m](r, m, c, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
337
  } catch (E) {
338
- d = E;
338
+ v = E;
339
339
  }
340
- d && !(d instanceof Error) && (K(h), 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).", u || "React class", n, m, typeof d), K(null)), d instanceof Error && !(d.message in xe) && (xe[d.message] = !0, K(h), w("Failed %s type: %s", n, d.message), K(null));
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, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
351
- return n;
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 ye(e), !1;
356
+ return xe(e), !1;
357
357
  } catch {
358
358
  return !0;
359
359
  }
360
360
  }
361
- function ye(e) {
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)), ye(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 lr(e, r) {
393
+ function cr(e, r) {
394
394
  {
395
- var n = function() {
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
- n.isReactWarning = !0, Object.defineProperty(e, "key", {
399
- get: n,
398
+ i.isReactWarning = !0, Object.defineProperty(e, "key", {
399
+ get: i,
400
400
  configurable: !0
401
401
  });
402
402
  }
403
403
  }
404
- function cr(e, r) {
404
+ function lr(e, r) {
405
405
  {
406
- var n = function() {
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
- n.isReactWarning = !0, Object.defineProperty(e, "ref", {
410
- get: n,
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, n, u, h, b, m) {
416
- var d = {
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: a,
418
+ $$typeof: n,
419
419
  // Built-in properties that belong on the element
420
420
  type: e,
421
421
  key: r,
422
- ref: n,
422
+ ref: i,
423
423
  props: m,
424
424
  // Record the component responsible for creating this element.
425
- _owner: b
425
+ _owner: h
426
426
  };
427
- return d._store = {}, Object.defineProperty(d._store, "validated", {
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(d, "_self", {
432
+ }), Object.defineProperty(v, "_self", {
433
433
  configurable: !1,
434
434
  enumerable: !1,
435
435
  writable: !1,
436
- value: u
437
- }), Object.defineProperty(d, "_source", {
436
+ value: c
437
+ }), Object.defineProperty(v, "_source", {
438
438
  configurable: !1,
439
439
  enumerable: !1,
440
440
  writable: !1,
441
- value: h
442
- }), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
441
+ value: b
442
+ }), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
443
443
  };
444
- function dr(e, r, n, u, h) {
444
+ function dr(e, r, i, c, b) {
445
445
  {
446
- var b, m = {}, d = null, T = null;
447
- n !== void 0 && (je(n), d = "" + n), sr(r) && (je(r.key), d = "" + r.key), or(r) && (T = r.ref, ur(r, h));
448
- for (b in r)
449
- W.call(r, b) && !ir.hasOwnProperty(b) && (m[b] = r[b]);
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 (b in E)
453
- m[b] === void 0 && (m[b] = E[b]);
452
+ for (h in E)
453
+ m[h] === void 0 && (m[h] = E[h]);
454
454
  }
455
- if (d || T) {
455
+ if (v || T) {
456
456
  var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
457
- d && lr(m, R), T && cr(m, R);
457
+ v && cr(m, R), T && lr(m, R);
458
458
  }
459
- return fr(e, d, T, h, u, Ee.current, m);
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, n = J(e.type, e._source, r ? r.type : null);
466
- we.setExtraStackFrame(n);
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 === a;
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 n = typeof e == "string" ? e : e.displayName || e.name;
496
- n && (r = `
495
+ var i = typeof e == "string" ? e : e.displayName || e.name;
496
+ i && (r = `
497
497
 
498
- Check the top-level render call using <` + n + ">.");
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 n = pr(r);
509
- if (ke[n])
508
+ var i = pr(r);
509
+ if (ke[i])
510
510
  return;
511
- ke[n] = !0;
512
- var u = "";
513
- e && e._owner && e._owner !== Q.current && (u = " 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.', n, u), F(null);
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 n = 0; n < e.length; n++) {
522
- var u = e[n];
523
- re(u) && Ce(u, r);
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 h = G(e);
529
- if (typeof h == "function" && h !== e.entries)
530
- for (var b = h.call(e), m; !(m = b.next()).done; )
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 n;
540
+ var i;
541
541
  if (typeof r == "function")
542
- n = r.propTypes;
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 === y))
546
- n = r.propTypes;
545
+ r.$$typeof === x))
546
+ i = r.propTypes;
547
547
  else
548
548
  return;
549
- if (n) {
550
- var u = P(r);
551
- rr(n, e.props, "prop", u, e);
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 h = P(r);
555
- w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
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 hr(e) {
560
+ function br(e) {
561
561
  {
562
- for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
563
- var u = r[n];
564
- if (u !== "children" && u !== "key") {
565
- F(e), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), F(null);
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 Ne = {};
573
- function Oe(e, r, n, u, h, b) {
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 d = "";
578
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (d += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
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 ? d += T : d += Te();
580
+ T ? v += T : v += Te();
581
581
  var E;
582
- e === null ? E = "null" : Z(e) ? E = "array" : e !== void 0 && e.$$typeof === a ? (E = "<" + (P(e.type) || "Unknown") + " />", d = " 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, d);
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, n, h, b);
584
+ var R = dr(e, r, i, b, h);
585
585
  if (R == null)
586
586
  return R;
587
587
  if (m) {
588
- var N = r.children;
589
- if (N !== void 0)
590
- if (u)
591
- if (Z(N)) {
592
- for (var D = 0; D < N.length; D++)
593
- Se(N[D], e);
594
- Object.freeze && Object.freeze(N);
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(N, e);
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 (!Ne[A + te]) {
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), Ne[A + te] = !0;
611
+ <%s key={someKey} {...props} />`, te, A, jr, A), Oe[A + te] = !0;
612
612
  }
613
613
  }
614
- return e === o ? hr(R) : mr(R), R;
614
+ return e === a ? br(R) : mr(R), R;
615
615
  }
616
616
  }
617
- function br(e, r, n) {
618
- return Oe(e, r, n, !0);
617
+ function hr(e, r, i) {
618
+ return Ne(e, r, i, !0);
619
619
  }
620
- function xr(e, r, n) {
621
- return Oe(e, r, n, !1);
620
+ function yr(e, r, i) {
621
+ return Ne(e, r, i, !1);
622
622
  }
623
- var gr = xr, yr = br;
624
- B.Fragment = o, B.jsx = gr, B.jsxs = yr;
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 = wr() : ae.exports = Tr();
628
- var i = ae.exports;
627
+ process.env.NODE_ENV === "production" ? ae.exports = Tr() : ae.exports = kr();
628
+ var o = ae.exports;
629
629
  function De(t) {
630
- var a, s, o = "";
631
- if (typeof t == "string" || typeof t == "number") o += t;
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 l = t.length;
634
- for (a = 0; a < l; a++) t[a] && (s = De(t[a])) && (o && (o += " "), o += s);
635
- } else for (s in t) t[s] && (o && (o += " "), o += s);
636
- return o;
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 x() {
639
- for (var t, a, s = 0, o = "", l = arguments.length; s < l; s++) (t = arguments[s]) && (a = De(t)) && (o && (o += " "), o += a);
640
- return o;
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 kr = $.forwardRef(
643
- ({ className: t, variant: a = "primary", size: s = "md", ...o }, l) => {
644
- const c = x(
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-${a}`,
646
+ `ui-btn-${n}`,
647
647
  `ui-btn-${s}`,
648
648
  t
649
649
  );
650
- return /* @__PURE__ */ i.jsx("button", { ref: l, className: c, ...o });
650
+ return /* @__PURE__ */ o.jsx("button", { ref: u, className: l, ...a });
651
651
  }
652
652
  );
653
- kr.displayName = "Button";
654
- const Cr = $.forwardRef(
655
- ({ className: t, label: a, error: s, helperText: o, fullWidth: l, size: c = "md", id: f, ...v }, p) => {
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__ */ i.jsxs("div", { className: x("ui-input-wrapper", l && "ui-input-wrapper-full"), children: [
658
- a && /* @__PURE__ */ i.jsx("label", { htmlFor: j, className: "ui-label", children: a }),
659
- /* @__PURE__ */ i.jsx(
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: x(
664
+ className: y(
665
665
  "ui-input",
666
- `ui-input-${c}`,
666
+ `ui-input-${l}`,
667
667
  s && "ui-input-error",
668
668
  t
669
669
  ),
670
- ...v
670
+ ...d
671
671
  }
672
672
  ),
673
- o && /* @__PURE__ */ i.jsx("span", { className: x("ui-helper-text", s && "ui-helper-text-error"), children: o })
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
- Cr.displayName = "Input";
678
- const Sr = $.forwardRef(
679
- ({ className: t, title: a, footer: s, children: o, ...l }, c) => /* @__PURE__ */ i.jsxs("div", { ref: c, className: x("ui-card", t), ...l, children: [
680
- a && /* @__PURE__ */ i.jsx("div", { className: "ui-card__header", children: a }),
681
- /* @__PURE__ */ i.jsx("div", { className: "ui-card__body", children: o }),
682
- s && /* @__PURE__ */ i.jsx("div", { className: "ui-card__footer", children: s })
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
- Sr.displayName = "Card";
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: a }) => {
691
+ }, Me = ({ children: t, className: n }) => {
692
692
  const { onClose: s } = Nr();
693
- return /* @__PURE__ */ i.jsxs("div", { className: x("ui-modal-header", a), children: [
694
- /* @__PURE__ */ i.jsx("h3", { className: "ui-modal-title", children: t }),
695
- /* @__PURE__ */ i.jsx(
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__ */ i.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
702
- /* @__PURE__ */ i.jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
703
- /* @__PURE__ */ i.jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
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: a }) => /* @__PURE__ */ i.jsx("div", { className: x("ui-modal-body", a), children: t }), Ye = ({ children: t, className: a }) => /* @__PURE__ */ i.jsx("div", { className: x("ui-modal-footer", a), children: t }), Or = ({
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: a,
710
+ onClose: n,
711
711
  title: s,
712
- children: o,
713
- footer: l,
714
- size: c = "md",
712
+ children: a,
713
+ footer: u,
714
+ size: l = "md",
715
715
  className: f,
716
- closeOnBackdropClick: v = !0
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 y = () => {
722
+ const x = () => {
723
723
  t || g(!1);
724
724
  };
725
725
  if (ne(() => {
726
- const S = (O) => {
727
- O.key === "Escape" && a();
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, a]), !j) return null;
732
+ }, [t, n]), !j) return null;
733
733
  const C = (S) => {
734
- v && S.target === p.current && a();
734
+ d && S.target === p.current && n();
735
735
  };
736
- return _r(
737
- /* @__PURE__ */ i.jsx(Le.Provider, { value: { onClose: a }, children: /* @__PURE__ */ i.jsx(
736
+ return wr(
737
+ /* @__PURE__ */ o.jsx(Le.Provider, { value: { onClose: n }, children: /* @__PURE__ */ o.jsx(
738
738
  "div",
739
739
  {
740
- className: x("ui-modal-overlay", !t && "ui-modal-closing"),
740
+ className: y("ui-modal-overlay", !t && "ui-modal-closing"),
741
741
  ref: p,
742
742
  onClick: C,
743
- onAnimationEnd: y,
744
- children: /* @__PURE__ */ i.jsx(
743
+ onAnimationEnd: x,
744
+ children: /* @__PURE__ */ o.jsx(
745
745
  "div",
746
746
  {
747
- className: x(
747
+ className: y(
748
748
  "ui-modal",
749
- `ui-modal-${c}`,
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__ */ i.jsxs(i.Fragment, { children: [
756
- /* @__PURE__ */ i.jsx(Me, { children: s }),
757
- /* @__PURE__ */ i.jsx(We, { children: o }),
758
- l && /* @__PURE__ */ i.jsx(Ye, { children: l })
759
- ] }) : o
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
- }, Mr = Object.assign(Or, {
766
+ }, Br = Object.assign(Pr, {
767
767
  Header: Me,
768
768
  Body: We,
769
769
  Footer: Ye
770
- }), Wr = ({
770
+ }), Vr = ({
771
771
  options: t,
772
- value: a,
772
+ value: n,
773
773
  onChange: s,
774
- placeholder: o = "Select an option",
775
- label: l,
776
- error: c,
774
+ placeholder: a = "Select an option",
775
+ label: u,
776
+ error: l,
777
777
  helperText: f,
778
- disabled: v,
778
+ disabled: d,
779
779
  fullWidth: p,
780
780
  size: j = "md",
781
781
  className: g
782
782
  }) => {
783
- const [y, C] = Fe(!1), S = Ae(null), O = t.find((_) => _.value === a), q = () => {
784
- v || C(!y);
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 y && document.addEventListener("mousedown", _), () => {
792
+ return x && document.addEventListener("mousedown", _), () => {
793
793
  document.removeEventListener("mousedown", _);
794
794
  };
795
- }, [y]), /* @__PURE__ */ i.jsxs(
795
+ }, [x]), /* @__PURE__ */ o.jsxs(
796
796
  "div",
797
797
  {
798
- className: x("ui-select-wrapper", p && "ui-w-full", g),
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
- l && /* @__PURE__ */ i.jsx("label", { className: "ui-label", style: { marginBottom: "0.375rem", display: "block" }, children: l }),
803
- /* @__PURE__ */ i.jsxs(
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: x(
807
+ className: y(
808
808
  "ui-select-trigger",
809
809
  `ui-select-${j}`,
810
- c && "ui-select-error",
811
- v && "ui-select-disabled",
812
- y && "ui-select-open"
810
+ l && "ui-select-error",
811
+ d && "ui-select-disabled",
812
+ x && "ui-select-open"
813
813
  ),
814
814
  onClick: q,
815
- disabled: v,
815
+ disabled: d,
816
816
  "aria-haspopup": "listbox",
817
- "aria-expanded": y,
817
+ "aria-expanded": x,
818
818
  children: [
819
- /* @__PURE__ */ i.jsx("span", { className: x(!O && "ui-select-placeholder"), children: O ? O.label : o }),
820
- /* @__PURE__ */ i.jsx(
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__ */ i.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" })
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
- y && /* @__PURE__ */ i.jsxs("ul", { className: "ui-select-menu", role: "listbox", children: [
834
- t.map((_) => /* @__PURE__ */ i.jsx(
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: x(
837
+ className: y(
838
838
  "ui-select-option",
839
- _.value === a && "ui-select-selected"
839
+ _.value === n && "ui-select-selected"
840
840
  ),
841
841
  onClick: () => G(_.value),
842
842
  role: "option",
843
- "aria-selected": _.value === a,
843
+ "aria-selected": _.value === n,
844
844
  children: _.label
845
845
  },
846
846
  _.value
847
847
  )),
848
- t.length === 0 && /* @__PURE__ */ i.jsx("li", { className: "ui-select-option", style: { color: "var(--ui-text-muted)", cursor: "default" }, children: "No options" })
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__ */ i.jsx("span", { className: x("ui-helper-text", c && "ui-helper-text-error"), style: { marginTop: "0.375rem", display: "block" }, children: f })
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
- }, Yr = L(
855
- ({ className: t, label: a, error: s, disabled: o, size: l = "md", variant: c = "primary", ...f }, v) => /* @__PURE__ */ i.jsxs(
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: x(
858
+ className: y(
859
859
  "ui-checkbox-label",
860
+ `ui-checkbox-${u}`,
860
861
  `ui-checkbox-${l}`,
861
- `ui-checkbox-${c}`,
862
- o && "ui-checkbox-disabled",
862
+ a && "ui-checkbox-disabled",
863
863
  t
864
864
  ),
865
865
  children: [
866
- /* @__PURE__ */ i.jsx(
866
+ /* @__PURE__ */ o.jsx(
867
867
  "input",
868
868
  {
869
869
  type: "checkbox",
870
870
  className: "ui-checkbox-input",
871
- disabled: o,
872
- ref: v,
871
+ disabled: a,
872
+ ref: d,
873
873
  ...f
874
874
  }
875
875
  ),
876
- /* @__PURE__ */ i.jsx("span", { className: "ui-checkbox-custom", children: /* @__PURE__ */ i.jsx(
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__ */ i.jsx("polyline", { points: "20 6 9 17 4 12" })
885
+ children: /* @__PURE__ */ o.jsx("polyline", { points: "20 6 9 17 4 12" })
886
886
  }
887
887
  ) }),
888
- a && /* @__PURE__ */ i.jsx("span", { className: "ui-checkbox-text", children: a })
888
+ n && /* @__PURE__ */ o.jsx("span", { className: "ui-checkbox-text", children: n })
889
889
  ]
890
890
  }
891
891
  )
892
- ), Br = L(
893
- ({ className: t, label: a, error: s, disabled: o, size: l = "md", variant: c = "primary", ...f }, v) => /* @__PURE__ */ i.jsxs(
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: x(
896
+ className: y(
897
897
  "ui-radio-label",
898
+ `ui-radio-${u}`,
898
899
  `ui-radio-${l}`,
899
- `ui-radio-${c}`,
900
- o && "ui-radio-disabled",
900
+ a && "ui-radio-disabled",
901
901
  t
902
902
  ),
903
903
  children: [
904
- /* @__PURE__ */ i.jsx(
904
+ /* @__PURE__ */ o.jsx(
905
905
  "input",
906
906
  {
907
907
  type: "radio",
908
908
  className: "ui-radio-input",
909
- disabled: o,
910
- ref: v,
909
+ disabled: a,
910
+ ref: d,
911
911
  ...f
912
912
  }
913
913
  ),
914
- /* @__PURE__ */ i.jsx("span", { className: "ui-radio-custom", children: /* @__PURE__ */ i.jsx("span", { className: "ui-radio-dot" }) }),
915
- a && /* @__PURE__ */ i.jsx("span", { className: "ui-radio-text", children: a })
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
- ), Vr = L(
920
- ({ className: t, label: a, error: s, disabled: o, size: l = "md", variant: c = "primary", ...f }, v) => /* @__PURE__ */ i.jsxs(
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: x(
923
+ className: y(
924
924
  "ui-switch-label",
925
+ `ui-switch-${u}`,
925
926
  `ui-switch-${l}`,
926
- `ui-switch-${c}`,
927
- o && "ui-switch-disabled",
927
+ a && "ui-switch-disabled",
928
928
  t
929
929
  ),
930
930
  children: [
931
- /* @__PURE__ */ i.jsx(
931
+ /* @__PURE__ */ o.jsx(
932
932
  "input",
933
933
  {
934
934
  type: "checkbox",
935
935
  className: "ui-switch-input",
936
- disabled: o,
937
- ref: v,
936
+ disabled: a,
937
+ ref: d,
938
938
  role: "switch",
939
939
  ...f
940
940
  }
941
941
  ),
942
- /* @__PURE__ */ i.jsx("span", { className: "ui-switch-track", children: /* @__PURE__ */ i.jsx("span", { className: "ui-switch-thumb" }) }),
943
- a && /* @__PURE__ */ i.jsx("span", { className: "ui-switch-text", children: a })
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
- ), Ur = L(
948
- ({ className: t, children: a, variant: s = "primary", size: o = "md", shape: l = "rounded", ...c }, f) => /* @__PURE__ */ i.jsx(
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: x(
952
+ className: y(
953
953
  "ui-badge",
954
954
  `ui-badge-${s}`,
955
- `ui-badge-${o}`,
956
- `ui-badge-${l}`,
955
+ `ui-badge-${a}`,
956
+ `ui-badge-${u}`,
957
957
  t
958
958
  ),
959
- ...c,
960
- children: a
959
+ ...l,
960
+ children: n
961
961
  }
962
962
  )
963
- ), Jr = L(
964
- ({ className: t, children: a, level: s = 1, truncate: o, lines: l, style: c, ...f }, v) => {
965
- const p = `h${s}`, j = l ? { ...c, "--ui-line-clamp": l } : c;
966
- return /* @__PURE__ */ i.jsx(
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: v,
970
- className: x(
969
+ ref: d,
970
+ className: y(
971
971
  "ui-heading",
972
972
  `ui-heading-h${s}`,
973
- o && "ui-text-truncate",
974
- l && "ui-text-clamp",
973
+ a && "ui-text-truncate",
974
+ u && "ui-text-clamp",
975
975
  t
976
976
  ),
977
977
  style: j,
978
978
  ...f,
979
- children: a
979
+ children: n
980
980
  }
981
981
  );
982
982
  }
983
- ), Kr = L(
984
- ({ className: t, children: a, variant: s = "body", weight: o, muted: l, truncate: c, lines: f, as: v = "p", style: p, ...j }, g) => {
985
- const y = f ? { ...p, "--ui-line-clamp": f } : p;
986
- return /* @__PURE__ */ i.jsx(
987
- v,
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: x(
990
+ className: y(
991
991
  "ui-text",
992
992
  `ui-text-${s}`,
993
- o && `ui-text-weight-${o}`,
994
- l && "ui-text-muted",
995
- c && "ui-text-truncate",
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: y,
999
+ style: x,
1000
1000
  ...j,
1001
- children: a
1001
+ children: n
1002
1002
  }
1003
1003
  );
1004
1004
  }
1005
- ), oe = Ie(null), Pr = ({ defaultValue: t, value: a, onValueChange: s, children: o, className: l }) => {
1006
- const [c, f] = Fe(t || ""), v = a !== void 0, p = v ? a : c, j = Rr(), g = (y) => {
1007
- v || f(y), s == null || s(y);
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__ */ i.jsx(oe.Provider, { value: { value: p, onChange: g, baseId: j }, children: /* @__PURE__ */ i.jsx("div", { className: x("ui-tabs", l), children: o }) });
1010
- }, $r = ({ className: t, children: a, variant: s = "line", ...o }) => /* @__PURE__ */ i.jsx(
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: x("ui-tabs-list", `ui-tabs-list-${s}`, t),
1015
- ...o,
1016
- children: a
1014
+ className: y("ui-tabs-list", `ui-tabs-list-${s}`, t),
1015
+ ...a,
1016
+ children: n
1017
1017
  }
1018
- ), Ir = ({ value: t, className: a, children: s, onClick: o, ...l }) => {
1019
- const c = ie(oe);
1020
- if (!c) throw new Error("TabsTrigger must be used within Tabs");
1021
- const f = c.value === t, v = `${c.baseId}-trigger-${t}`, p = `${c.baseId}-content-${t}`, j = (g) => {
1022
- c.onChange(t), o == null || o(g);
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__ */ i.jsx(
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: v,
1031
+ id: d,
1032
1032
  tabIndex: f ? 0 : -1,
1033
1033
  "data-state": f ? "active" : "inactive",
1034
- className: x("ui-tabs-trigger", a),
1034
+ className: y("ui-tabs-trigger", n),
1035
1035
  onClick: j,
1036
- ...l,
1036
+ ...u,
1037
1037
  children: s
1038
1038
  }
1039
1039
  );
1040
- }, Ar = ({ value: t, className: a, children: s, ...o }) => {
1041
- const l = ie(oe);
1042
- if (!l) throw new Error("TabsContent must be used within Tabs");
1043
- const c = l.value === t, f = `${l.baseId}-trigger-${t}`, v = `${l.baseId}-content-${t}`;
1044
- return c ? /* @__PURE__ */ i.jsx(
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: v,
1048
+ id: d,
1049
1049
  "aria-labelledby": f,
1050
1050
  tabIndex: 0,
1051
- className: x("ui-tabs-content", a),
1052
- ...o,
1051
+ className: y("ui-tabs-content", n),
1052
+ ...a,
1053
1053
  children: s
1054
1054
  }
1055
1055
  ) : null;
1056
- }, qr = Object.assign(Pr, {
1057
- List: $r,
1058
- Trigger: Ir,
1059
- Content: Ar
1060
- }), Fr = $.forwardRef(
1061
- ({ className: t, bordered: a = !0, striped: s, hover: o, size: l = "md", children: c, ...f }, v) => {
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
- a && "ui-table-bordered",
1064
+ n && "ui-table-bordered",
1065
1065
  s && "ui-table-striped",
1066
- o && "ui-table-hover",
1067
- l === "sm" && "ui-table-sm",
1066
+ a && "ui-table-hover",
1067
+ u === "sm" && "ui-table-sm",
1068
1068
  t
1069
1069
  ].filter(Boolean).join(" ");
1070
- return /* @__PURE__ */ i.jsx("div", { className: "ui-table-responsive", children: /* @__PURE__ */ i.jsx("table", { ref: v, className: p, ...f, children: c }) });
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
- Fr.displayName = "Table";
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
- Ur as Badge,
1076
- kr as Button,
1077
- Sr as Card,
1078
- Yr as Checkbox,
1079
- Jr as Heading,
1080
- Cr as Input,
1081
- Mr as Modal,
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
- Br as Radio,
1086
- Wr as Select,
1087
- Vr as Switch,
1088
- Fr as Table,
1089
- qr as Tabs,
1090
- Kr as Text
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
  };