levannta-ui 1.0.5 → 1.0.7

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.esm.js CHANGED
@@ -1,5 +1,5 @@
1
- import ke, { forwardRef as br } from "react";
2
- var te = { exports: {} }, L = {};
1
+ import me, { forwardRef as hr, useState as B, useEffect as pr } from "react";
2
+ var be = { exports: {} }, K = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
@@ -9,25 +9,25 @@ var te = { exports: {} }, L = {};
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
- var Ce;
13
- function pr() {
14
- if (Ce)
15
- return L;
16
- Ce = 1;
17
- var l = ke, f = Symbol.for("react.element"), i = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, T = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, O = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function w(E, v, b) {
19
- var d, m = {}, h = null, S = null;
20
- b !== void 0 && (h = "" + b), v.key !== void 0 && (h = "" + v.key), v.ref !== void 0 && (S = v.ref);
21
- for (d in v)
22
- c.call(v, d) && !O.hasOwnProperty(d) && (m[d] = v[d]);
12
+ var De;
13
+ function gr() {
14
+ if (De)
15
+ return K;
16
+ De = 1;
17
+ var o = me, v = Symbol.for("react.element"), i = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, j = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, k = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function O(E, f, m) {
19
+ var s, g = {}, p = null, _ = null;
20
+ m !== void 0 && (p = "" + m), f.key !== void 0 && (p = "" + f.key), f.ref !== void 0 && (_ = f.ref);
21
+ for (s in f)
22
+ c.call(f, s) && !k.hasOwnProperty(s) && (g[s] = f[s]);
23
23
  if (E && E.defaultProps)
24
- for (d in v = E.defaultProps, v)
25
- m[d] === void 0 && (m[d] = v[d]);
26
- return { $$typeof: f, type: E, key: h, ref: S, props: m, _owner: T.current };
24
+ for (s in f = E.defaultProps, f)
25
+ g[s] === void 0 && (g[s] = f[s]);
26
+ return { $$typeof: v, type: E, key: p, ref: _, props: g, _owner: j.current };
27
27
  }
28
- return L.Fragment = i, L.jsx = w, L.jsxs = w, L;
28
+ return K.Fragment = i, K.jsx = O, K.jsxs = O, K;
29
29
  }
30
- var U = {};
30
+ var q = {};
31
31
  /**
32
32
  * @license React
33
33
  * react-jsx-runtime.development.js
@@ -37,57 +37,57 @@ var U = {};
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
39
  */
40
- var Se;
40
+ var Me;
41
41
  function yr() {
42
- return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() {
43
- var l = ke, f = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), O = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), E = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), A = Symbol.iterator, N = "@@iterator";
44
- function P(e) {
42
+ return Me || (Me = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var o = me, v = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), O = Symbol.for("react.provider"), E = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), N = Symbol.iterator, M = "@@iterator";
44
+ function y(e) {
45
45
  if (e === null || typeof e != "object")
46
46
  return null;
47
- var r = A && e[A] || e[N];
47
+ var r = N && e[N] || e[M];
48
48
  return typeof r == "function" ? r : null;
49
49
  }
50
- var D = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function g(e) {
50
+ var F = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
+ function R(e) {
52
52
  {
53
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
54
- t[n - 1] = arguments[n];
55
- Ne("error", e, t);
53
+ for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
54
+ n[a - 1] = arguments[a];
55
+ W("error", e, n);
56
56
  }
57
57
  }
58
- function Ne(e, r, t) {
58
+ function W(e, r, n) {
59
59
  {
60
- var n = D.ReactDebugCurrentFrame, u = n.getStackAddendum();
61
- u !== "" && (r += "%s", t = t.concat([u]));
62
- var s = t.map(function(o) {
63
- return String(o);
60
+ var a = F.ReactDebugCurrentFrame, d = a.getStackAddendum();
61
+ d !== "" && (r += "%s", n = n.concat([d]));
62
+ var h = n.map(function(u) {
63
+ return String(u);
64
64
  });
65
- s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
65
+ h.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, h);
66
66
  }
67
67
  }
68
- var De = !1, Fe = !1, Ie = !1, Ve = !1, $e = !1, ne;
69
- ne = Symbol.for("react.module.reference");
70
- function We(e) {
71
- return !!(typeof e == "string" || typeof e == "function" || e === c || e === O || $e || e === T || e === b || e === d || Ve || e === S || De || Fe || Ie || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === w || e.$$typeof === E || e.$$typeof === v || // This needs to include all possible module reference object
68
+ var $ = !1, re = !1, ne = !1, te = !1, ae = !1, G;
69
+ G = Symbol.for("react.module.reference");
70
+ function V(e) {
71
+ return !!(typeof e == "string" || typeof e == "function" || e === c || e === k || ae || e === j || e === m || e === s || te || e === _ || $ || re || ne || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === g || e.$$typeof === O || e.$$typeof === E || e.$$typeof === f || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
75
- e.$$typeof === ne || e.getModuleId !== void 0));
75
+ e.$$typeof === G || e.getModuleId !== void 0));
76
76
  }
77
- function Ye(e, r, t) {
78
- var n = e.displayName;
79
- if (n)
80
- return n;
81
- var u = r.displayName || r.name || "";
82
- return u !== "" ? t + "(" + u + ")" : t;
77
+ function b(e, r, n) {
78
+ var a = e.displayName;
79
+ if (a)
80
+ return a;
81
+ var d = r.displayName || r.name || "";
82
+ return d !== "" ? n + "(" + d + ")" : n;
83
83
  }
84
- function ae(e) {
84
+ function T(e) {
85
85
  return e.displayName || "Context";
86
86
  }
87
- function C(e) {
87
+ function x(e) {
88
88
  if (e == null)
89
89
  return null;
90
- if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
90
+ if (typeof e.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
91
91
  return e.displayName || e.name || null;
92
92
  if (typeof e == "string")
93
93
  return e;
@@ -96,32 +96,32 @@ function yr() {
96
96
  return "Fragment";
97
97
  case i:
98
98
  return "Portal";
99
- case O:
99
+ case k:
100
100
  return "Profiler";
101
- case T:
101
+ case j:
102
102
  return "StrictMode";
103
- case b:
103
+ case m:
104
104
  return "Suspense";
105
- case d:
105
+ case s:
106
106
  return "SuspenseList";
107
107
  }
108
108
  if (typeof e == "object")
109
109
  switch (e.$$typeof) {
110
110
  case E:
111
111
  var r = e;
112
- return ae(r) + ".Consumer";
113
- case w:
114
- var t = e;
115
- return ae(t._context) + ".Provider";
116
- case v:
117
- return Ye(e, e.render, "ForwardRef");
118
- case m:
119
- var n = e.displayName || null;
120
- return n !== null ? n : C(e.type) || "Memo";
121
- case h: {
122
- var u = e, s = u._payload, o = u._init;
112
+ return T(r) + ".Consumer";
113
+ case O:
114
+ var n = e;
115
+ return T(n._context) + ".Provider";
116
+ case f:
117
+ return b(e, e.render, "ForwardRef");
118
+ case g:
119
+ var a = e.displayName || null;
120
+ return a !== null ? a : x(e.type) || "Memo";
121
+ case p: {
122
+ var d = e, h = d._payload, u = d._init;
123
123
  try {
124
- return C(o(s));
124
+ return x(u(h));
125
125
  } catch {
126
126
  return null;
127
127
  }
@@ -129,18 +129,18 @@ function yr() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var x = Object.assign, $ = 0, oe, ie, ue, le, se, ce, fe;
133
- function de() {
132
+ var S = Object.assign, I = 0, X, he, pe, ge, ye, xe, je;
133
+ function Ee() {
134
134
  }
135
- de.__reactDisabledLog = !0;
136
- function Le() {
135
+ Ee.__reactDisabledLog = !0;
136
+ function Ue() {
137
137
  {
138
- if ($ === 0) {
139
- oe = console.log, ie = console.info, ue = console.warn, le = console.error, se = console.group, ce = console.groupCollapsed, fe = console.groupEnd;
138
+ if (I === 0) {
139
+ X = console.log, he = console.info, pe = console.warn, ge = console.error, ye = console.group, xe = console.groupCollapsed, je = console.groupEnd;
140
140
  var e = {
141
141
  configurable: !0,
142
142
  enumerable: !0,
143
- value: de,
143
+ value: Ee,
144
144
  writable: !0
145
145
  };
146
146
  Object.defineProperties(console, {
@@ -153,336 +153,336 @@ function yr() {
153
153
  groupEnd: e
154
154
  });
155
155
  }
156
- $++;
156
+ I++;
157
157
  }
158
158
  }
159
- function Ue() {
159
+ function Be() {
160
160
  {
161
- if ($--, $ === 0) {
161
+ if (I--, I === 0) {
162
162
  var e = {
163
163
  configurable: !0,
164
164
  enumerable: !0,
165
165
  writable: !0
166
166
  };
167
167
  Object.defineProperties(console, {
168
- log: x({}, e, {
169
- value: oe
168
+ log: S({}, e, {
169
+ value: X
170
170
  }),
171
- info: x({}, e, {
172
- value: ie
171
+ info: S({}, e, {
172
+ value: he
173
173
  }),
174
- warn: x({}, e, {
175
- value: ue
174
+ warn: S({}, e, {
175
+ value: pe
176
176
  }),
177
- error: x({}, e, {
178
- value: le
177
+ error: S({}, e, {
178
+ value: ge
179
179
  }),
180
- group: x({}, e, {
181
- value: se
180
+ group: S({}, e, {
181
+ value: ye
182
182
  }),
183
- groupCollapsed: x({}, e, {
184
- value: ce
183
+ groupCollapsed: S({}, e, {
184
+ value: xe
185
185
  }),
186
- groupEnd: x({}, e, {
187
- value: fe
186
+ groupEnd: S({}, e, {
187
+ value: je
188
188
  })
189
189
  });
190
190
  }
191
- $ < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ I < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
- var K = D.ReactCurrentDispatcher, q;
195
- function M(e, r, t) {
194
+ var ie = F.ReactCurrentDispatcher, oe;
195
+ function H(e, r, n) {
196
196
  {
197
- if (q === void 0)
197
+ if (oe === void 0)
198
198
  try {
199
199
  throw Error();
200
- } catch (u) {
201
- var n = u.stack.trim().match(/\n( *(at )?)/);
202
- q = n && n[1] || "";
200
+ } catch (d) {
201
+ var a = d.stack.trim().match(/\n( *(at )?)/);
202
+ oe = a && a[1] || "";
203
203
  }
204
204
  return `
205
- ` + q + e;
205
+ ` + oe + e;
206
206
  }
207
207
  }
208
- var G = !1, B;
208
+ var se = !1, Z;
209
209
  {
210
- var Me = typeof WeakMap == "function" ? WeakMap : Map;
211
- B = new Me();
210
+ var ze = typeof WeakMap == "function" ? WeakMap : Map;
211
+ Z = new ze();
212
212
  }
213
- function ve(e, r) {
214
- if (!e || G)
213
+ function Re(e, r) {
214
+ if (!e || se)
215
215
  return "";
216
216
  {
217
- var t = B.get(e);
218
- if (t !== void 0)
219
- return t;
217
+ var n = Z.get(e);
218
+ if (n !== void 0)
219
+ return n;
220
220
  }
221
- var n;
222
- G = !0;
223
- var u = Error.prepareStackTrace;
221
+ var a;
222
+ se = !0;
223
+ var d = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
- var s;
226
- s = K.current, K.current = null, Le();
225
+ var h;
226
+ h = ie.current, ie.current = null, Ue();
227
227
  try {
228
228
  if (r) {
229
- var o = function() {
229
+ var u = function() {
230
230
  throw Error();
231
231
  };
232
- if (Object.defineProperty(o.prototype, "props", {
232
+ if (Object.defineProperty(u.prototype, "props", {
233
233
  set: function() {
234
234
  throw Error();
235
235
  }
236
236
  }), typeof Reflect == "object" && Reflect.construct) {
237
237
  try {
238
- Reflect.construct(o, []);
239
- } catch (R) {
240
- n = R;
238
+ Reflect.construct(u, []);
239
+ } catch (A) {
240
+ a = A;
241
241
  }
242
- Reflect.construct(e, [], o);
242
+ Reflect.construct(e, [], u);
243
243
  } else {
244
244
  try {
245
- o.call();
246
- } catch (R) {
247
- n = R;
245
+ u.call();
246
+ } catch (A) {
247
+ a = A;
248
248
  }
249
- e.call(o.prototype);
249
+ e.call(u.prototype);
250
250
  }
251
251
  } else {
252
252
  try {
253
253
  throw Error();
254
- } catch (R) {
255
- n = R;
254
+ } catch (A) {
255
+ a = A;
256
256
  }
257
257
  e();
258
258
  }
259
- } catch (R) {
260
- if (R && n && typeof R.stack == "string") {
261
- for (var a = R.stack.split(`
262
- `), _ = n.stack.split(`
263
- `), p = a.length - 1, y = _.length - 1; p >= 1 && y >= 0 && a[p] !== _[y]; )
264
- y--;
265
- for (; p >= 1 && y >= 0; p--, y--)
266
- if (a[p] !== _[y]) {
267
- if (p !== 1 || y !== 1)
259
+ } catch (A) {
260
+ if (A && a && typeof A.stack == "string") {
261
+ for (var l = A.stack.split(`
262
+ `), P = a.stack.split(`
263
+ `), w = l.length - 1, C = P.length - 1; w >= 1 && C >= 0 && l[w] !== P[C]; )
264
+ C--;
265
+ for (; w >= 1 && C >= 0; w--, C--)
266
+ if (l[w] !== P[C]) {
267
+ if (w !== 1 || C !== 1)
268
268
  do
269
- if (p--, y--, y < 0 || a[p] !== _[y]) {
270
- var j = `
271
- ` + a[p].replace(" at new ", " at ");
272
- return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, j), j;
269
+ if (w--, C--, C < 0 || l[w] !== P[C]) {
270
+ var D = `
271
+ ` + l[w].replace(" at new ", " at ");
272
+ return e.displayName && D.includes("<anonymous>") && (D = D.replace("<anonymous>", e.displayName)), typeof e == "function" && Z.set(e, D), D;
273
273
  }
274
- while (p >= 1 && y >= 0);
274
+ while (w >= 1 && C >= 0);
275
275
  break;
276
276
  }
277
277
  }
278
278
  } finally {
279
- G = !1, K.current = s, Ue(), Error.prepareStackTrace = u;
279
+ se = !1, ie.current = h, Be(), Error.prepareStackTrace = d;
280
280
  }
281
- var I = e ? e.displayName || e.name : "", k = I ? M(I) : "";
282
- return typeof e == "function" && B.set(e, k), k;
281
+ var U = e ? e.displayName || e.name : "", L = U ? H(U) : "";
282
+ return typeof e == "function" && Z.set(e, L), L;
283
283
  }
284
- function Be(e, r, t) {
285
- return ve(e, !1);
284
+ function Je(e, r, n) {
285
+ return Re(e, !1);
286
286
  }
287
- function ze(e) {
287
+ function Ke(e) {
288
288
  var r = e.prototype;
289
289
  return !!(r && r.isReactComponent);
290
290
  }
291
- function z(e, r, t) {
291
+ function Q(e, r, n) {
292
292
  if (e == null)
293
293
  return "";
294
294
  if (typeof e == "function")
295
- return ve(e, ze(e));
295
+ return Re(e, Ke(e));
296
296
  if (typeof e == "string")
297
- return M(e);
297
+ return H(e);
298
298
  switch (e) {
299
- case b:
300
- return M("Suspense");
301
- case d:
302
- return M("SuspenseList");
299
+ case m:
300
+ return H("Suspense");
301
+ case s:
302
+ return H("SuspenseList");
303
303
  }
304
304
  if (typeof e == "object")
305
305
  switch (e.$$typeof) {
306
- case v:
307
- return Be(e.render);
308
- case m:
309
- return z(e.type, r, t);
310
- case h: {
311
- var n = e, u = n._payload, s = n._init;
306
+ case f:
307
+ return Je(e.render);
308
+ case g:
309
+ return Q(e.type, r, n);
310
+ case p: {
311
+ var a = e, d = a._payload, h = a._init;
312
312
  try {
313
- return z(s(u), r, t);
313
+ return Q(h(d), r, n);
314
314
  } catch {
315
315
  }
316
316
  }
317
317
  }
318
318
  return "";
319
319
  }
320
- var W = Object.prototype.hasOwnProperty, be = {}, pe = D.ReactDebugCurrentFrame;
321
- function J(e) {
320
+ var z = Object.prototype.hasOwnProperty, _e = {}, we = F.ReactDebugCurrentFrame;
321
+ function ee(e) {
322
322
  if (e) {
323
- var r = e._owner, t = z(e.type, e._source, r ? r.type : null);
324
- pe.setExtraStackFrame(t);
323
+ var r = e._owner, n = Q(e.type, e._source, r ? r.type : null);
324
+ we.setExtraStackFrame(n);
325
325
  } else
326
- pe.setExtraStackFrame(null);
326
+ we.setExtraStackFrame(null);
327
327
  }
328
- function Je(e, r, t, n, u) {
328
+ function qe(e, r, n, a, d) {
329
329
  {
330
- var s = Function.call.bind(W);
331
- for (var o in e)
332
- if (s(e, o)) {
333
- var a = void 0;
330
+ var h = Function.call.bind(z);
331
+ for (var u in e)
332
+ if (h(e, u)) {
333
+ var l = void 0;
334
334
  try {
335
- if (typeof e[o] != "function") {
336
- var _ = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
- throw _.name = "Invariant Violation", _;
335
+ if (typeof e[u] != "function") {
336
+ var P = Error((a || "React class") + ": " + n + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
+ throw P.name = "Invariant Violation", P;
338
338
  }
339
- a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
- } catch (p) {
341
- a = p;
339
+ l = e[u](r, u, a, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
+ } catch (w) {
341
+ l = w;
342
342
  }
343
- a && !(a instanceof Error) && (J(u), g("%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).", n || "React class", t, o, typeof a), J(null)), a instanceof Error && !(a.message in be) && (be[a.message] = !0, J(u), g("Failed %s type: %s", t, a.message), J(null));
343
+ l && !(l instanceof Error) && (ee(d), R("%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).", a || "React class", n, u, typeof l), ee(null)), l instanceof Error && !(l.message in _e) && (_e[l.message] = !0, ee(d), R("Failed %s type: %s", n, l.message), ee(null));
344
344
  }
345
345
  }
346
346
  }
347
- var Ke = Array.isArray;
348
- function X(e) {
349
- return Ke(e);
347
+ var Ge = Array.isArray;
348
+ function le(e) {
349
+ return Ge(e);
350
350
  }
351
- function qe(e) {
351
+ function Xe(e) {
352
352
  {
353
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
354
- return t;
353
+ var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
354
+ return n;
355
355
  }
356
356
  }
357
- function Ge(e) {
357
+ function He(e) {
358
358
  try {
359
- return ye(e), !1;
359
+ return Ce(e), !1;
360
360
  } catch {
361
361
  return !0;
362
362
  }
363
363
  }
364
- function ye(e) {
364
+ function Ce(e) {
365
365
  return "" + e;
366
366
  }
367
- function me(e) {
368
- if (Ge(e))
369
- return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), ye(e);
367
+ function Te(e) {
368
+ if (He(e))
369
+ return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xe(e)), Ce(e);
370
370
  }
371
- var Y = D.ReactCurrentOwner, Xe = {
371
+ var J = F.ReactCurrentOwner, Ze = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
375
375
  __source: !0
376
- }, he, ge, H;
377
- H = {};
378
- function He(e) {
379
- if (W.call(e, "ref")) {
376
+ }, Se, Oe, ue;
377
+ ue = {};
378
+ function Qe(e) {
379
+ if (z.call(e, "ref")) {
380
380
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
381
381
  if (r && r.isReactWarning)
382
382
  return !1;
383
383
  }
384
384
  return e.ref !== void 0;
385
385
  }
386
- function Ze(e) {
387
- if (W.call(e, "key")) {
386
+ function er(e) {
387
+ if (z.call(e, "key")) {
388
388
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
389
389
  if (r && r.isReactWarning)
390
390
  return !1;
391
391
  }
392
392
  return e.key !== void 0;
393
393
  }
394
- function Qe(e, r) {
395
- if (typeof e.ref == "string" && Y.current && r && Y.current.stateNode !== r) {
396
- var t = C(Y.current.type);
397
- H[t] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C(Y.current.type), e.ref), H[t] = !0);
394
+ function rr(e, r) {
395
+ if (typeof e.ref == "string" && J.current && r && J.current.stateNode !== r) {
396
+ var n = x(J.current.type);
397
+ ue[n] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', x(J.current.type), e.ref), ue[n] = !0);
398
398
  }
399
399
  }
400
- function er(e, r) {
400
+ function nr(e, r) {
401
401
  {
402
- var t = function() {
403
- he || (he = !0, g("%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));
402
+ var n = function() {
403
+ Se || (Se = !0, R("%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));
404
404
  };
405
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
406
- get: t,
405
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
406
+ get: n,
407
407
  configurable: !0
408
408
  });
409
409
  }
410
410
  }
411
- function rr(e, r) {
411
+ function tr(e, r) {
412
412
  {
413
- var t = function() {
414
- ge || (ge = !0, g("%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));
413
+ var n = function() {
414
+ Oe || (Oe = !0, R("%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));
415
415
  };
416
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
417
- get: t,
416
+ n.isReactWarning = !0, Object.defineProperty(e, "ref", {
417
+ get: n,
418
418
  configurable: !0
419
419
  });
420
420
  }
421
421
  }
422
- var tr = function(e, r, t, n, u, s, o) {
423
- var a = {
422
+ var ar = function(e, r, n, a, d, h, u) {
423
+ var l = {
424
424
  // This tag allows us to uniquely identify this as a React Element
425
- $$typeof: f,
425
+ $$typeof: v,
426
426
  // Built-in properties that belong on the element
427
427
  type: e,
428
428
  key: r,
429
- ref: t,
430
- props: o,
429
+ ref: n,
430
+ props: u,
431
431
  // Record the component responsible for creating this element.
432
- _owner: s
432
+ _owner: h
433
433
  };
434
- return a._store = {}, Object.defineProperty(a._store, "validated", {
434
+ return l._store = {}, Object.defineProperty(l._store, "validated", {
435
435
  configurable: !1,
436
436
  enumerable: !1,
437
437
  writable: !0,
438
438
  value: !1
439
- }), Object.defineProperty(a, "_self", {
439
+ }), Object.defineProperty(l, "_self", {
440
440
  configurable: !1,
441
441
  enumerable: !1,
442
442
  writable: !1,
443
- value: n
444
- }), Object.defineProperty(a, "_source", {
443
+ value: a
444
+ }), Object.defineProperty(l, "_source", {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
- value: u
449
- }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
448
+ value: d
449
+ }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
450
450
  };
451
- function nr(e, r, t, n, u) {
451
+ function ir(e, r, n, a, d) {
452
452
  {
453
- var s, o = {}, a = null, _ = null;
454
- t !== void 0 && (me(t), a = "" + t), Ze(r) && (me(r.key), a = "" + r.key), He(r) && (_ = r.ref, Qe(r, u));
455
- for (s in r)
456
- W.call(r, s) && !Xe.hasOwnProperty(s) && (o[s] = r[s]);
453
+ var h, u = {}, l = null, P = null;
454
+ n !== void 0 && (Te(n), l = "" + n), er(r) && (Te(r.key), l = "" + r.key), Qe(r) && (P = r.ref, rr(r, d));
455
+ for (h in r)
456
+ z.call(r, h) && !Ze.hasOwnProperty(h) && (u[h] = r[h]);
457
457
  if (e && e.defaultProps) {
458
- var p = e.defaultProps;
459
- for (s in p)
460
- o[s] === void 0 && (o[s] = p[s]);
458
+ var w = e.defaultProps;
459
+ for (h in w)
460
+ u[h] === void 0 && (u[h] = w[h]);
461
461
  }
462
- if (a || _) {
463
- var y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
- a && er(o, y), _ && rr(o, y);
462
+ if (l || P) {
463
+ var C = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
+ l && nr(u, C), P && tr(u, C);
465
465
  }
466
- return tr(e, a, _, u, n, Y.current, o);
466
+ return ar(e, l, P, d, a, J.current, u);
467
467
  }
468
468
  }
469
- var Z = D.ReactCurrentOwner, _e = D.ReactDebugCurrentFrame;
470
- function F(e) {
469
+ var ce = F.ReactCurrentOwner, Ne = F.ReactDebugCurrentFrame;
470
+ function Y(e) {
471
471
  if (e) {
472
- var r = e._owner, t = z(e.type, e._source, r ? r.type : null);
473
- _e.setExtraStackFrame(t);
472
+ var r = e._owner, n = Q(e.type, e._source, r ? r.type : null);
473
+ Ne.setExtraStackFrame(n);
474
474
  } else
475
- _e.setExtraStackFrame(null);
475
+ Ne.setExtraStackFrame(null);
476
476
  }
477
- var Q;
478
- Q = !1;
479
- function ee(e) {
480
- return typeof e == "object" && e !== null && e.$$typeof === f;
477
+ var fe;
478
+ fe = !1;
479
+ function de(e) {
480
+ return typeof e == "object" && e !== null && e.$$typeof === v;
481
481
  }
482
- function Ee() {
482
+ function ke() {
483
483
  {
484
- if (Z.current) {
485
- var e = C(Z.current.type);
484
+ if (ce.current) {
485
+ var e = x(ce.current.type);
486
486
  if (e)
487
487
  return `
488
488
 
@@ -491,208 +491,208 @@ Check the render method of \`` + e + "`.";
491
491
  return "";
492
492
  }
493
493
  }
494
- function ar(e) {
494
+ function or(e) {
495
495
  {
496
496
  if (e !== void 0) {
497
- var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
497
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
498
498
  return `
499
499
 
500
- Check your code at ` + r + ":" + t + ".";
500
+ Check your code at ` + r + ":" + n + ".";
501
501
  }
502
502
  return "";
503
503
  }
504
504
  }
505
- var Re = {};
506
- function or(e) {
505
+ var Pe = {};
506
+ function sr(e) {
507
507
  {
508
- var r = Ee();
508
+ var r = ke();
509
509
  if (!r) {
510
- var t = typeof e == "string" ? e : e.displayName || e.name;
511
- t && (r = `
510
+ var n = typeof e == "string" ? e : e.displayName || e.name;
511
+ n && (r = `
512
512
 
513
- Check the top-level render call using <` + t + ">.");
513
+ Check the top-level render call using <` + n + ">.");
514
514
  }
515
515
  return r;
516
516
  }
517
517
  }
518
- function Te(e, r) {
518
+ function Ie(e, r) {
519
519
  {
520
520
  if (!e._store || e._store.validated || e.key != null)
521
521
  return;
522
522
  e._store.validated = !0;
523
- var t = or(r);
524
- if (Re[t])
523
+ var n = sr(r);
524
+ if (Pe[n])
525
525
  return;
526
- Re[t] = !0;
527
- var n = "";
528
- e && e._owner && e._owner !== Z.current && (n = " It was passed a child from " + C(e._owner.type) + "."), F(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), F(null);
526
+ Pe[n] = !0;
527
+ var a = "";
528
+ e && e._owner && e._owner !== ce.current && (a = " It was passed a child from " + x(e._owner.type) + "."), Y(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, a), Y(null);
529
529
  }
530
530
  }
531
- function Oe(e, r) {
531
+ function Ae(e, r) {
532
532
  {
533
533
  if (typeof e != "object")
534
534
  return;
535
- if (X(e))
536
- for (var t = 0; t < e.length; t++) {
537
- var n = e[t];
538
- ee(n) && Te(n, r);
535
+ if (le(e))
536
+ for (var n = 0; n < e.length; n++) {
537
+ var a = e[n];
538
+ de(a) && Ie(a, r);
539
539
  }
540
- else if (ee(e))
540
+ else if (de(e))
541
541
  e._store && (e._store.validated = !0);
542
542
  else if (e) {
543
- var u = P(e);
544
- if (typeof u == "function" && u !== e.entries)
545
- for (var s = u.call(e), o; !(o = s.next()).done; )
546
- ee(o.value) && Te(o.value, r);
543
+ var d = y(e);
544
+ if (typeof d == "function" && d !== e.entries)
545
+ for (var h = d.call(e), u; !(u = h.next()).done; )
546
+ de(u.value) && Ie(u.value, r);
547
547
  }
548
548
  }
549
549
  }
550
- function ir(e) {
550
+ function lr(e) {
551
551
  {
552
552
  var r = e.type;
553
553
  if (r == null || typeof r == "string")
554
554
  return;
555
- var t;
555
+ var n;
556
556
  if (typeof r == "function")
557
- t = r.propTypes;
558
- else if (typeof r == "object" && (r.$$typeof === v || // Note: Memo only checks outer props here.
557
+ n = r.propTypes;
558
+ else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
559
559
  // Inner props are checked in the reconciler.
560
- r.$$typeof === m))
561
- t = r.propTypes;
560
+ r.$$typeof === g))
561
+ n = r.propTypes;
562
562
  else
563
563
  return;
564
- if (t) {
565
- var n = C(r);
566
- Je(t, e.props, "prop", n, e);
567
- } else if (r.PropTypes !== void 0 && !Q) {
568
- Q = !0;
569
- var u = C(r);
570
- g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
564
+ if (n) {
565
+ var a = x(r);
566
+ qe(n, e.props, "prop", a, e);
567
+ } else if (r.PropTypes !== void 0 && !fe) {
568
+ fe = !0;
569
+ var d = x(r);
570
+ R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", d || "Unknown");
571
571
  }
572
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
572
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
573
573
  }
574
574
  }
575
575
  function ur(e) {
576
576
  {
577
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
578
- var n = r[t];
579
- if (n !== "children" && n !== "key") {
580
- F(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), F(null);
577
+ for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
578
+ var a = r[n];
579
+ if (a !== "children" && a !== "key") {
580
+ Y(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), Y(null);
581
581
  break;
582
582
  }
583
583
  }
584
- e.ref !== null && (F(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
584
+ e.ref !== null && (Y(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
585
585
  }
586
586
  }
587
- var je = {};
588
- function we(e, r, t, n, u, s) {
587
+ var Fe = {};
588
+ function $e(e, r, n, a, d, h) {
589
589
  {
590
- var o = We(e);
591
- if (!o) {
592
- var a = "";
593
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
594
- var _ = ar(u);
595
- _ ? a += _ : a += Ee();
596
- var p;
597
- e === null ? p = "null" : X(e) ? p = "array" : e !== void 0 && e.$$typeof === f ? (p = "<" + (C(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : p = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", p, a);
590
+ var u = V(e);
591
+ if (!u) {
592
+ var l = "";
593
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
594
+ var P = or(d);
595
+ P ? l += P : l += ke();
596
+ var w;
597
+ e === null ? w = "null" : le(e) ? w = "array" : e !== void 0 && e.$$typeof === v ? (w = "<" + (x(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : w = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", w, l);
598
598
  }
599
- var y = nr(e, r, t, u, s);
600
- if (y == null)
601
- return y;
602
- if (o) {
603
- var j = r.children;
604
- if (j !== void 0)
605
- if (n)
606
- if (X(j)) {
607
- for (var I = 0; I < j.length; I++)
608
- Oe(j[I], e);
609
- Object.freeze && Object.freeze(j);
599
+ var C = ir(e, r, n, d, h);
600
+ if (C == null)
601
+ return C;
602
+ if (u) {
603
+ var D = r.children;
604
+ if (D !== void 0)
605
+ if (a)
606
+ if (le(D)) {
607
+ for (var U = 0; U < D.length; U++)
608
+ Ae(D[U], e);
609
+ Object.freeze && Object.freeze(D);
610
610
  } else
611
- g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
611
+ R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
612
612
  else
613
- Oe(j, e);
613
+ Ae(D, e);
614
614
  }
615
- if (W.call(r, "key")) {
616
- var k = C(e), R = Object.keys(r).filter(function(vr) {
617
- return vr !== "key";
618
- }), re = R.length > 0 ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}";
619
- if (!je[k + re]) {
620
- var dr = R.length > 0 ? "{" + R.join(": ..., ") + ": ...}" : "{}";
621
- g(`A props object containing a "key" prop is being spread into JSX:
615
+ if (z.call(r, "key")) {
616
+ var L = x(e), A = Object.keys(r).filter(function(mr) {
617
+ return mr !== "key";
618
+ }), ve = A.length > 0 ? "{key: someKey, " + A.join(": ..., ") + ": ...}" : "{key: someKey}";
619
+ if (!Fe[L + ve]) {
620
+ var br = A.length > 0 ? "{" + A.join(": ..., ") + ": ...}" : "{}";
621
+ R(`A props object containing a "key" prop is being spread into JSX:
622
622
  let props = %s;
623
623
  <%s {...props} />
624
624
  React keys must be passed directly to JSX without using spread:
625
625
  let props = %s;
626
- <%s key={someKey} {...props} />`, re, k, dr, k), je[k + re] = !0;
626
+ <%s key={someKey} {...props} />`, ve, L, br, L), Fe[L + ve] = !0;
627
627
  }
628
628
  }
629
- return e === c ? ur(y) : ir(y), y;
629
+ return e === c ? ur(C) : lr(C), C;
630
630
  }
631
631
  }
632
- function lr(e, r, t) {
633
- return we(e, r, t, !0);
632
+ function cr(e, r, n) {
633
+ return $e(e, r, n, !0);
634
634
  }
635
- function sr(e, r, t) {
636
- return we(e, r, t, !1);
635
+ function fr(e, r, n) {
636
+ return $e(e, r, n, !1);
637
637
  }
638
- var cr = sr, fr = lr;
639
- U.Fragment = c, U.jsx = cr, U.jsxs = fr;
640
- }()), U;
638
+ var dr = fr, vr = cr;
639
+ q.Fragment = c, q.jsx = dr, q.jsxs = vr;
640
+ }()), q;
641
641
  }
642
- process.env.NODE_ENV === "production" ? te.exports = pr() : te.exports = yr();
643
- var V = te.exports;
644
- function Ae(l) {
645
- var f, i, c = "";
646
- if (typeof l == "string" || typeof l == "number")
647
- c += l;
648
- else if (typeof l == "object")
649
- if (Array.isArray(l)) {
650
- var T = l.length;
651
- for (f = 0; f < T; f++)
652
- l[f] && (i = Ae(l[f])) && (c && (c += " "), c += i);
642
+ process.env.NODE_ENV === "production" ? be.exports = gr() : be.exports = yr();
643
+ var t = be.exports;
644
+ function Ye(o) {
645
+ var v, i, c = "";
646
+ if (typeof o == "string" || typeof o == "number")
647
+ c += o;
648
+ else if (typeof o == "object")
649
+ if (Array.isArray(o)) {
650
+ var j = o.length;
651
+ for (v = 0; v < j; v++)
652
+ o[v] && (i = Ye(o[v])) && (c && (c += " "), c += i);
653
653
  } else
654
- for (i in l)
655
- l[i] && (c && (c += " "), c += i);
654
+ for (i in o)
655
+ o[i] && (c && (c += " "), c += i);
656
656
  return c;
657
657
  }
658
- function mr() {
659
- for (var l, f, i = 0, c = "", T = arguments.length; i < T; i++)
660
- (l = arguments[i]) && (f = Ae(l)) && (c && (c += " "), c += f);
658
+ function xr() {
659
+ for (var o, v, i = 0, c = "", j = arguments.length; i < j; i++)
660
+ (o = arguments[i]) && (v = Ye(o)) && (c && (c += " "), c += v);
661
661
  return c;
662
662
  }
663
- const Pe = (l) => typeof l == "boolean" ? `${l}` : l === 0 ? "0" : l, xe = mr, hr = (l, f) => (i) => {
663
+ const Le = (o) => typeof o == "boolean" ? `${o}` : o === 0 ? "0" : o, We = xr, jr = (o, v) => (i) => {
664
664
  var c;
665
- if ((f == null ? void 0 : f.variants) == null)
666
- return xe(l, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
667
- const { variants: T, defaultVariants: O } = f, w = Object.keys(T).map((b) => {
668
- const d = i == null ? void 0 : i[b], m = O == null ? void 0 : O[b];
669
- if (d === null)
665
+ if ((v == null ? void 0 : v.variants) == null)
666
+ return We(o, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
667
+ const { variants: j, defaultVariants: k } = v, O = Object.keys(j).map((m) => {
668
+ const s = i == null ? void 0 : i[m], g = k == null ? void 0 : k[m];
669
+ if (s === null)
670
670
  return null;
671
- const h = Pe(d) || Pe(m);
672
- return T[b][h];
673
- }), E = i && Object.entries(i).reduce((b, d) => {
674
- let [m, h] = d;
675
- return h === void 0 || (b[m] = h), b;
676
- }, {}), v = f == null || (c = f.compoundVariants) === null || c === void 0 ? void 0 : c.reduce((b, d) => {
677
- let { class: m, className: h, ...S } = d;
678
- return Object.entries(S).every((A) => {
679
- let [N, P] = A;
680
- return Array.isArray(P) ? P.includes({
681
- ...O,
671
+ const p = Le(s) || Le(g);
672
+ return j[m][p];
673
+ }), E = i && Object.entries(i).reduce((m, s) => {
674
+ let [g, p] = s;
675
+ return p === void 0 || (m[g] = p), m;
676
+ }, {}), f = v == null || (c = v.compoundVariants) === null || c === void 0 ? void 0 : c.reduce((m, s) => {
677
+ let { class: g, className: p, ..._ } = s;
678
+ return Object.entries(_).every((N) => {
679
+ let [M, y] = N;
680
+ return Array.isArray(y) ? y.includes({
681
+ ...k,
682
682
  ...E
683
- }[N]) : {
684
- ...O,
683
+ }[M]) : {
684
+ ...k,
685
685
  ...E
686
- }[N] === P;
686
+ }[M] === y;
687
687
  }) ? [
688
- ...b,
689
- m,
690
- h
691
- ] : b;
688
+ ...m,
689
+ g,
690
+ p
691
+ ] : m;
692
692
  }, []);
693
- return xe(l, w, v, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
693
+ return We(o, O, f, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
694
694
  };
695
- const gr = hr("button", {
695
+ const Er = jr("button", {
696
696
  variants: {
697
697
  variant: {
698
698
  outlined: "button-outlined",
@@ -753,61 +753,328 @@ const gr = hr("button", {
753
753
  { variant: "icon", color: "error", className: "button-icon-error" },
754
754
  { variant: "icon", color: "clear", className: "button-icon-clear" }
755
755
  ]
756
- }), _r = br(
756
+ }), Rr = hr(
757
757
  ({
758
- className: l,
759
- variant: f,
758
+ className: o,
759
+ variant: v,
760
760
  color: i,
761
761
  size: c,
762
- pill: T,
763
- active: O,
764
- iconLeft: w,
762
+ pill: j,
763
+ active: k,
764
+ iconLeft: O,
765
765
  iconRight: E,
766
- iconLeftJustified: v,
767
- iconRightJustified: b,
768
- iconOnly: d,
769
- width: m,
770
- children: h,
771
- style: S,
772
- ...A
773
- }, N) => {
774
- const P = {
775
- ...S || {},
776
- ...m ? { width: m } : {}
766
+ iconLeftJustified: f,
767
+ iconRightJustified: m,
768
+ iconOnly: s,
769
+ width: g,
770
+ children: p,
771
+ style: _,
772
+ ...N
773
+ }, M) => {
774
+ const y = {
775
+ ..._ || {},
776
+ ...g ? { width: g } : {}
777
777
  };
778
- return /* @__PURE__ */ V.jsxs(
778
+ return /* @__PURE__ */ t.jsxs(
779
779
  "button",
780
780
  {
781
- className: gr({
782
- variant: f,
781
+ className: Er({
782
+ variant: v,
783
783
  color: i,
784
784
  size: c,
785
- pill: T,
786
- active: O,
787
- iconLeft: !!w,
785
+ pill: j,
786
+ active: k,
787
+ iconLeft: !!O,
788
788
  iconRight: !!E,
789
- iconLeftJustified: !!v,
790
- iconRightJustified: !!b,
791
- iconOnly: !!d,
792
- className: l
789
+ iconLeftJustified: !!f,
790
+ iconRightJustified: !!m,
791
+ iconOnly: !!s,
792
+ className: o
793
793
  }),
794
- style: P,
795
- ref: N,
796
- ...A,
794
+ style: y,
795
+ ref: M,
796
+ ...N,
797
797
  children: [
798
- w && /* @__PURE__ */ V.jsx("span", { className: "button-icon-left", children: w }),
799
- v && /* @__PURE__ */ V.jsx("span", { className: "button-icon-left", children: v }),
800
- d ? /* @__PURE__ */ V.jsx("span", { children: d }) : h,
801
- E && /* @__PURE__ */ V.jsx("span", { className: "button-icon-right", children: E }),
802
- b && /* @__PURE__ */ V.jsx("span", { className: "button-icon-right", children: b })
798
+ O && /* @__PURE__ */ t.jsx("span", { className: "button-icon-left", children: O }),
799
+ f && /* @__PURE__ */ t.jsx("span", { className: "button-icon-left", children: f }),
800
+ s ? /* @__PURE__ */ t.jsx("span", { children: s }) : p,
801
+ E && /* @__PURE__ */ t.jsx("span", { className: "button-icon-right", children: E }),
802
+ m && /* @__PURE__ */ t.jsx("span", { className: "button-icon-right", children: m })
803
803
  ]
804
804
  }
805
805
  );
806
806
  }
807
807
  );
808
- _r.displayName = "Button";
808
+ Rr.displayName = "Button";
809
+ const _r = ({ className: o }) => /* @__PURE__ */ t.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: o, children: /* @__PURE__ */ t.jsx("path", { d: "M8.12 9.29006L12 13.1701L15.88 9.29006C16.27 8.90006 16.9 8.90006 17.29 9.29006C17.68 9.68006 17.68 10.3101 17.29 10.7001L12.7 15.2901C12.31 15.6801 11.68 15.6801 11.29 15.2901L6.7 10.7001C6.31 10.3101 6.31 9.68006 6.7 9.29006C7.09 8.91006 7.73 8.90006 8.12 9.29006Z", fill: "#F9FAFB" }) }), wr = ({
810
+ icon: o,
811
+ url: v,
812
+ label: i,
813
+ submenu: c,
814
+ collapsed: j,
815
+ active: k,
816
+ activePath: O,
817
+ isOpen: E,
818
+ onToggle: f,
819
+ onExpand: m,
820
+ onSetActive: s,
821
+ isMobile: g = !1
822
+ }) => {
823
+ const p = c && c.length > 0, _ = p && c.some((y) => y.url === O), N = k || E && p || _ || v === O, M = (y) => {
824
+ if (y.preventDefault(), g && p) {
825
+ f();
826
+ return;
827
+ }
828
+ if (s && s(v), j && m) {
829
+ m();
830
+ return;
831
+ }
832
+ p && !j && f();
833
+ };
834
+ return /* @__PURE__ */ t.jsx("div", { className: `sidebar-item ${E ? "open" : ""} `, children: /* @__PURE__ */ t.jsxs("div", { className: `sidebar-item-wrapper ${N && !j ? "active" : ""}`, children: [
835
+ /* @__PURE__ */ t.jsxs(
836
+ "a",
837
+ {
838
+ href: v,
839
+ className: `sidebar-link sidebar-collapsed ${N ? "active-text" : ""}`,
840
+ onClick: M,
841
+ children: [
842
+ /* @__PURE__ */ t.jsx("div", { className: `sidebar-icon ${N ? "active-text" : ""}`, children: o }),
843
+ (!j || g) && /* @__PURE__ */ t.jsxs("div", { className: "sidebar-content", children: [
844
+ /* @__PURE__ */ t.jsx("span", { className: "sidebar-label", children: i }),
845
+ p && /* @__PURE__ */ t.jsx("span", { className: "submenu-arrow", children: /* @__PURE__ */ t.jsx(_r, { className: `${N ? "active-text" : ""}` }) })
846
+ ] })
847
+ ]
848
+ }
849
+ ),
850
+ p && (!j || g) && /* @__PURE__ */ t.jsx("div", { className: "submenu", children: c.map((y, F) => {
851
+ const R = y.url === O;
852
+ return /* @__PURE__ */ t.jsx(
853
+ "a",
854
+ {
855
+ href: y.url,
856
+ className: `submenu-item ${R ? "active-text" : ""}`,
857
+ onClick: () => s && s(y.url),
858
+ children: /* @__PURE__ */ t.jsx("span", { className: "submenu-label", children: y.label })
859
+ },
860
+ F
861
+ );
862
+ }) })
863
+ ] }) });
864
+ };
865
+ const Cr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
866
+ "svg",
867
+ {
868
+ width: "28",
869
+ height: "28",
870
+ viewBox: "0 0 28 28",
871
+ fill: "none",
872
+ xmlns: "http://www.w3.org/2000/svg",
873
+ className: o,
874
+ children: [
875
+ /* @__PURE__ */ t.jsx("circle", { cx: "14", cy: "14", r: "14", fill: "#00F7AA" }),
876
+ /* @__PURE__ */ t.jsx("path", { d: "M10.8383 7.82832C10.3833 8.28332 10.3833 9.01832 10.8383 9.47332L15.365 14L10.8383 18.5267C10.3833 18.9817 10.3833 19.7167 10.8383 20.1717C11.2933 20.6267 12.0283 20.6267 12.4833 20.1717L17.8383 14.8167C18.2933 14.3617 18.2933 13.6267 17.8383 13.1717L12.4833 7.81665C12.04 7.37332 11.2933 7.37332 10.8383 7.82832Z", fill: "#002244" })
877
+ ]
878
+ }
879
+ ), Ve = () => /* @__PURE__ */ t.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t.jsxs("g", { className: "hamburger-icon", children: [
880
+ /* @__PURE__ */ t.jsx(
881
+ "line",
882
+ {
883
+ x1: "4",
884
+ y1: "6",
885
+ x2: "20",
886
+ y2: "6",
887
+ stroke: "currentColor",
888
+ strokeWidth: "2.5",
889
+ strokeLinecap: "round",
890
+ className: "hamburger-line top-line"
891
+ }
892
+ ),
893
+ /* @__PURE__ */ t.jsx(
894
+ "line",
895
+ {
896
+ x1: "4",
897
+ y1: "12",
898
+ x2: "20",
899
+ y2: "12",
900
+ stroke: "currentColor",
901
+ strokeWidth: "2.5",
902
+ strokeLinecap: "round",
903
+ className: "hamburger-line middle-line"
904
+ }
905
+ ),
906
+ /* @__PURE__ */ t.jsx(
907
+ "line",
908
+ {
909
+ x1: "4",
910
+ y1: "18",
911
+ x2: "20",
912
+ y2: "18",
913
+ stroke: "currentColor",
914
+ strokeWidth: "2.5",
915
+ strokeLinecap: "round",
916
+ className: "hamburger-line bottom-line"
917
+ }
918
+ )
919
+ ] }) }), Sr = ({
920
+ logo: o,
921
+ logoCollapsed: v,
922
+ items: i,
923
+ logoutIcon: c,
924
+ onLogout: j,
925
+ logoutLabel: k = "Cerrar sesión",
926
+ collapsed: O = !1,
927
+ onToggle: E,
928
+ activePath: f,
929
+ onActiveChange: m
930
+ }) => {
931
+ const [s, g] = B(O), [p, _] = B(null), [N, M] = B(f), [y, F] = B(!1), [R, W] = B(!1), [$, re] = B(!1);
932
+ pr(() => {
933
+ const b = () => {
934
+ re(window.innerWidth <= 768);
935
+ };
936
+ return b(), window.addEventListener("resize", b), () => {
937
+ window.removeEventListener("resize", b);
938
+ };
939
+ }, []), me.useEffect(() => {
940
+ var b;
941
+ if (f) {
942
+ M(f);
943
+ const T = i.findIndex(
944
+ (x) => {
945
+ var S;
946
+ return x.url === f || ((S = x.submenu) == null ? void 0 : S.some((I) => I.url === f));
947
+ }
948
+ );
949
+ T !== -1 && ((b = i[T].submenu) != null && b.length ? _(T) : _(null));
950
+ }
951
+ }, [f, i]);
952
+ const ne = () => {
953
+ g(!s), E && E();
954
+ }, te = () => {
955
+ var b;
956
+ if (s)
957
+ if (g(!1), E && E(), N) {
958
+ const T = i.findIndex(
959
+ (x) => {
960
+ var S;
961
+ return x.url === N || ((S = x.submenu) == null ? void 0 : S.some((I) => I.url === N));
962
+ }
963
+ );
964
+ T !== -1 && ((b = i[T].submenu) != null && b.length) ? _(T) : _(null);
965
+ } else
966
+ _(null);
967
+ }, ae = (b) => {
968
+ _(p === b ? null : b), $ && F(!0);
969
+ }, G = (b) => {
970
+ M(b);
971
+ const T = i.findIndex(
972
+ (x) => {
973
+ var S;
974
+ return x.url === b || ((S = x.submenu) == null ? void 0 : S.some((I) => I.url === b));
975
+ }
976
+ );
977
+ if (T !== -1) {
978
+ const x = i[T];
979
+ x.submenu && x.submenu.length > 0 ? _(T) : _(null);
980
+ } else
981
+ _(null);
982
+ m && m(b), $ && (i.some(
983
+ (S) => {
984
+ var I;
985
+ return (I = S.submenu) == null ? void 0 : I.some((X) => X.url === b);
986
+ }
987
+ ) || (W(!0), setTimeout(() => {
988
+ F(!1), W(!1);
989
+ }, 500)));
990
+ }, V = () => {
991
+ y ? (W(!0), setTimeout(() => {
992
+ F(!1), W(!1);
993
+ }, 500)) : F(!0);
994
+ };
995
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
996
+ $ && /* @__PURE__ */ t.jsxs("div", { className: "mobile-navbar", children: [
997
+ /* @__PURE__ */ t.jsx("div", { className: "mobile-logo", children: o }),
998
+ /* @__PURE__ */ t.jsx(
999
+ "button",
1000
+ {
1001
+ className: `mobile-menu-button ${y ? "open" : ""}`,
1002
+ onClick: V,
1003
+ "aria-label": "Toggle mobile menu",
1004
+ children: /* @__PURE__ */ t.jsx(Ve, {})
1005
+ }
1006
+ )
1007
+ ] }),
1008
+ !$ && /* @__PURE__ */ t.jsx(
1009
+ "button",
1010
+ {
1011
+ className: `mobile-menu-button ${y ? "open" : ""}`,
1012
+ onClick: V,
1013
+ "aria-label": "Toggle mobile menu",
1014
+ style: { display: "none" },
1015
+ children: /* @__PURE__ */ t.jsx(Ve, {})
1016
+ }
1017
+ ),
1018
+ $ && (y || R) && /* @__PURE__ */ t.jsx(
1019
+ "div",
1020
+ {
1021
+ className: `sidebar-overlay ${y ? "visible" : ""}`,
1022
+ onClick: V
1023
+ }
1024
+ ),
1025
+ /* @__PURE__ */ t.jsxs("div", { className: `sidebar-wrapper ${y ? "mobile-open" : ""} ${R ? "mobile-closing" : ""}`, children: [
1026
+ /* @__PURE__ */ t.jsxs("div", { className: `sidebar ${!$ && s ? "sidebar-collapsed" : ""} ${$ ? "sidebar-mobile" : ""}`, children: [
1027
+ !$ && /* @__PURE__ */ t.jsx("div", { className: "sidebar-header", children: /* @__PURE__ */ t.jsx("div", { className: "sidebar-logo", children: s ? /* @__PURE__ */ t.jsx("span", { className: "logo-text", children: v }) : /* @__PURE__ */ t.jsx("span", { className: "logo-text", children: o }) }) }),
1028
+ $ && (y || R) && /* @__PURE__ */ t.jsxs("div", { className: "mobile-header", children: [
1029
+ /* @__PURE__ */ t.jsx("div", { className: "mobile-logo-menu", children: o }),
1030
+ /* @__PURE__ */ t.jsx(
1031
+ "button",
1032
+ {
1033
+ className: "mobile-close-button",
1034
+ onClick: V,
1035
+ "aria-label": "Close menu",
1036
+ children: "×"
1037
+ }
1038
+ )
1039
+ ] }),
1040
+ /* @__PURE__ */ t.jsx("div", { className: "sidebar-menu", children: i.map((b, T) => /* @__PURE__ */ t.jsx(
1041
+ wr,
1042
+ {
1043
+ icon: b.icon,
1044
+ url: b.url,
1045
+ label: b.label,
1046
+ submenu: b.submenu,
1047
+ collapsed: s,
1048
+ active: b.active || b.url === N,
1049
+ activePath: N,
1050
+ isOpen: p === T,
1051
+ onToggle: () => ae(T),
1052
+ onExpand: te,
1053
+ onSetActive: G,
1054
+ isMobile: $
1055
+ },
1056
+ T
1057
+ )) }),
1058
+ j && /* @__PURE__ */ t.jsx("div", { className: "sidebar-footer", children: /* @__PURE__ */ t.jsxs("button", { className: "logout-button", onClick: j, children: [
1059
+ c,
1060
+ !s && /* @__PURE__ */ t.jsx("span", { children: k })
1061
+ ] }) })
1062
+ ] }),
1063
+ !$ && /* @__PURE__ */ t.jsx(
1064
+ "button",
1065
+ {
1066
+ className: `sidebar-toggle-icon${s ? " collapsed" : ""}`,
1067
+ onClick: ne,
1068
+ "aria-label": "Toggle sidebar",
1069
+ children: /* @__PURE__ */ t.jsx(Cr, {})
1070
+ }
1071
+ )
1072
+ ] })
1073
+ ] });
1074
+ };
809
1075
  export {
810
- _r as Button,
811
- gr as buttonVariants
1076
+ Rr as Button,
1077
+ Sr as Sidebar,
1078
+ Er as buttonVariants
812
1079
  };
813
1080
  //# sourceMappingURL=index.esm.js.map