levannta-ui 1.0.4 → 1.0.6
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/components/ui/Sidebar/SidebarItem.d.ts +8 -0
- package/dist/components/ui/Sidebar/index.d.ts +20 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +412 -322
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +11 -11
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
var te = { exports: {} },
|
1
|
+
import Ne, { forwardRef as mr, useState as ke } from "react";
|
2
|
+
var te = { exports: {} }, Y = {};
|
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
|
12
|
+
var Te;
|
13
13
|
function pr() {
|
14
|
-
if (
|
15
|
-
return
|
16
|
-
|
17
|
-
var
|
18
|
-
function
|
19
|
-
var
|
20
|
-
|
21
|
-
for (
|
22
|
-
|
23
|
-
if (
|
24
|
-
for (
|
25
|
-
|
26
|
-
return { $$typeof:
|
14
|
+
if (Te)
|
15
|
+
return Y;
|
16
|
+
Te = 1;
|
17
|
+
var o = Ne, v = Symbol.for("react.element"), a = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, _ = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, E = { key: !0, ref: !0, __self: !0, __source: !0 };
|
18
|
+
function j(h, f, d) {
|
19
|
+
var b, p = {}, R = null, O = null;
|
20
|
+
d !== void 0 && (R = "" + d), f.key !== void 0 && (R = "" + f.key), f.ref !== void 0 && (O = f.ref);
|
21
|
+
for (b in f)
|
22
|
+
u.call(f, b) && !E.hasOwnProperty(b) && (p[b] = f[b]);
|
23
|
+
if (h && h.defaultProps)
|
24
|
+
for (b in f = h.defaultProps, f)
|
25
|
+
p[b] === void 0 && (p[b] = f[b]);
|
26
|
+
return { $$typeof: v, type: h, key: R, ref: O, props: p, _owner: _.current };
|
27
27
|
}
|
28
|
-
return
|
28
|
+
return Y.Fragment = a, Y.jsx = j, Y.jsxs = j, Y;
|
29
29
|
}
|
30
|
-
var
|
30
|
+
var M = {};
|
31
31
|
/**
|
32
32
|
* @license React
|
33
33
|
* react-jsx-runtime.development.js
|
@@ -38,37 +38,37 @@ var U = {};
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
39
39
|
*/
|
40
40
|
var Se;
|
41
|
-
function
|
41
|
+
function hr() {
|
42
42
|
return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() {
|
43
|
-
var
|
43
|
+
var o = Ne, v = Symbol.for("react.element"), a = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), h = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), A = Symbol.iterator, F = "@@iterator";
|
44
44
|
function P(e) {
|
45
45
|
if (e === null || typeof e != "object")
|
46
46
|
return null;
|
47
|
-
var r = A && e[A] || e[
|
47
|
+
var r = A && e[A] || e[F];
|
48
48
|
return typeof r == "function" ? r : null;
|
49
49
|
}
|
50
|
-
var D =
|
51
|
-
function
|
50
|
+
var D = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
51
|
+
function x(e) {
|
52
52
|
{
|
53
53
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
54
54
|
t[n - 1] = arguments[n];
|
55
|
-
|
55
|
+
Fe("error", e, t);
|
56
56
|
}
|
57
57
|
}
|
58
|
-
function
|
58
|
+
function Fe(e, r, t) {
|
59
59
|
{
|
60
|
-
var n = D.ReactDebugCurrentFrame,
|
61
|
-
|
62
|
-
var
|
63
|
-
return String(
|
60
|
+
var n = D.ReactDebugCurrentFrame, c = n.getStackAddendum();
|
61
|
+
c !== "" && (r += "%s", t = t.concat([c]));
|
62
|
+
var m = t.map(function(l) {
|
63
|
+
return String(l);
|
64
64
|
});
|
65
|
-
|
65
|
+
m.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, m);
|
66
66
|
}
|
67
67
|
}
|
68
|
-
var De = !1,
|
68
|
+
var De = !1, Ie = !1, $e = !1, Ve = !1, We = !1, ne;
|
69
69
|
ne = Symbol.for("react.module.reference");
|
70
|
-
function
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
70
|
+
function Le(e) {
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === u || e === E || We || e === _ || e === d || e === b || Ve || e === O || De || Ie || $e || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === p || e.$$typeof === j || e.$$typeof === h || 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.
|
@@ -78,50 +78,50 @@ function yr() {
|
|
78
78
|
var n = e.displayName;
|
79
79
|
if (n)
|
80
80
|
return n;
|
81
|
-
var
|
82
|
-
return
|
81
|
+
var c = r.displayName || r.name || "";
|
82
|
+
return c !== "" ? t + "(" + c + ")" : t;
|
83
83
|
}
|
84
84
|
function ae(e) {
|
85
85
|
return e.displayName || "Context";
|
86
86
|
}
|
87
|
-
function
|
87
|
+
function S(e) {
|
88
88
|
if (e == null)
|
89
89
|
return null;
|
90
|
-
if (typeof e.tag == "number" &&
|
90
|
+
if (typeof e.tag == "number" && x("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;
|
94
94
|
switch (e) {
|
95
|
-
case
|
95
|
+
case u:
|
96
96
|
return "Fragment";
|
97
|
-
case
|
97
|
+
case a:
|
98
98
|
return "Portal";
|
99
|
-
case
|
99
|
+
case E:
|
100
100
|
return "Profiler";
|
101
|
-
case
|
101
|
+
case _:
|
102
102
|
return "StrictMode";
|
103
|
-
case b:
|
104
|
-
return "Suspense";
|
105
103
|
case d:
|
104
|
+
return "Suspense";
|
105
|
+
case b:
|
106
106
|
return "SuspenseList";
|
107
107
|
}
|
108
108
|
if (typeof e == "object")
|
109
109
|
switch (e.$$typeof) {
|
110
|
-
case
|
110
|
+
case h:
|
111
111
|
var r = e;
|
112
112
|
return ae(r) + ".Consumer";
|
113
|
-
case
|
113
|
+
case j:
|
114
114
|
var t = e;
|
115
115
|
return ae(t._context) + ".Provider";
|
116
|
-
case
|
116
|
+
case f:
|
117
117
|
return Ye(e, e.render, "ForwardRef");
|
118
|
-
case
|
118
|
+
case p:
|
119
119
|
var n = e.displayName || null;
|
120
|
-
return n !== null ? n :
|
121
|
-
case
|
122
|
-
var
|
120
|
+
return n !== null ? n : S(e.type) || "Memo";
|
121
|
+
case R: {
|
122
|
+
var c = e, m = c._payload, l = c._init;
|
123
123
|
try {
|
124
|
-
return
|
124
|
+
return S(l(m));
|
125
125
|
} catch {
|
126
126
|
return null;
|
127
127
|
}
|
@@ -129,14 +129,14 @@ function yr() {
|
|
129
129
|
}
|
130
130
|
return null;
|
131
131
|
}
|
132
|
-
var
|
132
|
+
var N = Object.assign, V = 0, ie, oe, se, le, ue, ce, fe;
|
133
133
|
function de() {
|
134
134
|
}
|
135
135
|
de.__reactDisabledLog = !0;
|
136
|
-
function
|
136
|
+
function Me() {
|
137
137
|
{
|
138
|
-
if (
|
139
|
-
|
138
|
+
if (V === 0) {
|
139
|
+
ie = console.log, oe = console.info, se = console.warn, le = console.error, ue = console.group, ce = console.groupCollapsed, fe = console.groupEnd;
|
140
140
|
var e = {
|
141
141
|
configurable: !0,
|
142
142
|
enumerable: !0,
|
@@ -153,52 +153,52 @@ function yr() {
|
|
153
153
|
groupEnd: e
|
154
154
|
});
|
155
155
|
}
|
156
|
-
|
156
|
+
V++;
|
157
157
|
}
|
158
158
|
}
|
159
159
|
function Ue() {
|
160
160
|
{
|
161
|
-
if (
|
161
|
+
if (V--, V === 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:
|
169
|
-
value: oe
|
170
|
-
}),
|
171
|
-
info: x({}, e, {
|
168
|
+
log: N({}, e, {
|
172
169
|
value: ie
|
173
170
|
}),
|
174
|
-
|
175
|
-
value:
|
171
|
+
info: N({}, e, {
|
172
|
+
value: oe
|
176
173
|
}),
|
177
|
-
|
174
|
+
warn: N({}, e, {
|
175
|
+
value: se
|
176
|
+
}),
|
177
|
+
error: N({}, e, {
|
178
178
|
value: le
|
179
179
|
}),
|
180
|
-
group:
|
181
|
-
value:
|
180
|
+
group: N({}, e, {
|
181
|
+
value: ue
|
182
182
|
}),
|
183
|
-
groupCollapsed:
|
183
|
+
groupCollapsed: N({}, e, {
|
184
184
|
value: ce
|
185
185
|
}),
|
186
|
-
groupEnd:
|
186
|
+
groupEnd: N({}, e, {
|
187
187
|
value: fe
|
188
188
|
})
|
189
189
|
});
|
190
190
|
}
|
191
|
-
|
191
|
+
V < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
192
192
|
}
|
193
193
|
}
|
194
194
|
var K = D.ReactCurrentDispatcher, q;
|
195
|
-
function
|
195
|
+
function U(e, r, t) {
|
196
196
|
{
|
197
197
|
if (q === void 0)
|
198
198
|
try {
|
199
199
|
throw Error();
|
200
|
-
} catch (
|
201
|
-
var n =
|
200
|
+
} catch (c) {
|
201
|
+
var n = c.stack.trim().match(/\n( *(at )?)/);
|
202
202
|
q = n && n[1] || "";
|
203
203
|
}
|
204
204
|
return `
|
@@ -207,8 +207,8 @@ function yr() {
|
|
207
207
|
}
|
208
208
|
var G = !1, B;
|
209
209
|
{
|
210
|
-
var
|
211
|
-
B = new
|
210
|
+
var Be = typeof WeakMap == "function" ? WeakMap : Map;
|
211
|
+
B = new Be();
|
212
212
|
}
|
213
213
|
function ve(e, r) {
|
214
214
|
if (!e || G)
|
@@ -220,71 +220,71 @@ function yr() {
|
|
220
220
|
}
|
221
221
|
var n;
|
222
222
|
G = !0;
|
223
|
-
var
|
223
|
+
var c = Error.prepareStackTrace;
|
224
224
|
Error.prepareStackTrace = void 0;
|
225
|
-
var
|
226
|
-
|
225
|
+
var m;
|
226
|
+
m = K.current, K.current = null, Me();
|
227
227
|
try {
|
228
228
|
if (r) {
|
229
|
-
var
|
229
|
+
var l = function() {
|
230
230
|
throw Error();
|
231
231
|
};
|
232
|
-
if (Object.defineProperty(
|
232
|
+
if (Object.defineProperty(l.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(
|
239
|
-
} catch (
|
240
|
-
n =
|
238
|
+
Reflect.construct(l, []);
|
239
|
+
} catch (C) {
|
240
|
+
n = C;
|
241
241
|
}
|
242
|
-
Reflect.construct(e, [],
|
242
|
+
Reflect.construct(e, [], l);
|
243
243
|
} else {
|
244
244
|
try {
|
245
|
-
|
246
|
-
} catch (
|
247
|
-
n =
|
245
|
+
l.call();
|
246
|
+
} catch (C) {
|
247
|
+
n = C;
|
248
248
|
}
|
249
|
-
e.call(
|
249
|
+
e.call(l.prototype);
|
250
250
|
}
|
251
251
|
} else {
|
252
252
|
try {
|
253
253
|
throw Error();
|
254
|
-
} catch (
|
255
|
-
n =
|
254
|
+
} catch (C) {
|
255
|
+
n = C;
|
256
256
|
}
|
257
257
|
e();
|
258
258
|
}
|
259
|
-
} catch (
|
260
|
-
if (
|
261
|
-
for (var
|
262
|
-
`),
|
263
|
-
`),
|
264
|
-
|
265
|
-
for (;
|
266
|
-
if (
|
267
|
-
if (
|
259
|
+
} catch (C) {
|
260
|
+
if (C && n && typeof C.stack == "string") {
|
261
|
+
for (var i = C.stack.split(`
|
262
|
+
`), w = n.stack.split(`
|
263
|
+
`), y = i.length - 1, g = w.length - 1; y >= 1 && g >= 0 && i[y] !== w[g]; )
|
264
|
+
g--;
|
265
|
+
for (; y >= 1 && g >= 0; y--, g--)
|
266
|
+
if (i[y] !== w[g]) {
|
267
|
+
if (y !== 1 || g !== 1)
|
268
268
|
do
|
269
|
-
if (
|
270
|
-
var
|
271
|
-
` +
|
272
|
-
return e.displayName &&
|
269
|
+
if (y--, g--, g < 0 || i[y] !== w[g]) {
|
270
|
+
var T = `
|
271
|
+
` + i[y].replace(" at new ", " at ");
|
272
|
+
return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, T), T;
|
273
273
|
}
|
274
|
-
while (
|
274
|
+
while (y >= 1 && g >= 0);
|
275
275
|
break;
|
276
276
|
}
|
277
277
|
}
|
278
278
|
} finally {
|
279
|
-
G = !1, K.current =
|
279
|
+
G = !1, K.current = m, Ue(), Error.prepareStackTrace = c;
|
280
280
|
}
|
281
|
-
var
|
281
|
+
var $ = e ? e.displayName || e.name : "", k = $ ? U($) : "";
|
282
282
|
return typeof e == "function" && B.set(e, k), k;
|
283
283
|
}
|
284
|
-
function
|
284
|
+
function ze(e, r, t) {
|
285
285
|
return ve(e, !1);
|
286
286
|
}
|
287
|
-
function
|
287
|
+
function Je(e) {
|
288
288
|
var r = e.prototype;
|
289
289
|
return !!(r && r.isReactComponent);
|
290
290
|
}
|
@@ -292,90 +292,90 @@ function yr() {
|
|
292
292
|
if (e == null)
|
293
293
|
return "";
|
294
294
|
if (typeof e == "function")
|
295
|
-
return ve(e,
|
295
|
+
return ve(e, Je(e));
|
296
296
|
if (typeof e == "string")
|
297
|
-
return
|
297
|
+
return U(e);
|
298
298
|
switch (e) {
|
299
|
-
case b:
|
300
|
-
return M("Suspense");
|
301
299
|
case d:
|
302
|
-
return
|
300
|
+
return U("Suspense");
|
301
|
+
case b:
|
302
|
+
return U("SuspenseList");
|
303
303
|
}
|
304
304
|
if (typeof e == "object")
|
305
305
|
switch (e.$$typeof) {
|
306
|
-
case
|
307
|
-
return
|
308
|
-
case
|
306
|
+
case f:
|
307
|
+
return ze(e.render);
|
308
|
+
case p:
|
309
309
|
return z(e.type, r, t);
|
310
|
-
case
|
311
|
-
var n = e,
|
310
|
+
case R: {
|
311
|
+
var n = e, c = n._payload, m = n._init;
|
312
312
|
try {
|
313
|
-
return z(
|
313
|
+
return z(m(c), r, t);
|
314
314
|
} catch {
|
315
315
|
}
|
316
316
|
}
|
317
317
|
}
|
318
318
|
return "";
|
319
319
|
}
|
320
|
-
var W = Object.prototype.hasOwnProperty, be = {},
|
320
|
+
var W = Object.prototype.hasOwnProperty, be = {}, me = D.ReactDebugCurrentFrame;
|
321
321
|
function J(e) {
|
322
322
|
if (e) {
|
323
323
|
var r = e._owner, t = z(e.type, e._source, r ? r.type : null);
|
324
|
-
|
324
|
+
me.setExtraStackFrame(t);
|
325
325
|
} else
|
326
|
-
|
326
|
+
me.setExtraStackFrame(null);
|
327
327
|
}
|
328
|
-
function
|
328
|
+
function Ke(e, r, t, n, c) {
|
329
329
|
{
|
330
|
-
var
|
331
|
-
for (var
|
332
|
-
if (
|
333
|
-
var
|
330
|
+
var m = Function.call.bind(W);
|
331
|
+
for (var l in e)
|
332
|
+
if (m(e, l)) {
|
333
|
+
var i = void 0;
|
334
334
|
try {
|
335
|
-
if (typeof e[
|
336
|
-
var
|
337
|
-
throw
|
335
|
+
if (typeof e[l] != "function") {
|
336
|
+
var w = Error((n || "React class") + ": " + t + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
337
|
+
throw w.name = "Invariant Violation", w;
|
338
338
|
}
|
339
|
-
|
340
|
-
} catch (
|
341
|
-
|
339
|
+
i = e[l](r, l, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
340
|
+
} catch (y) {
|
341
|
+
i = y;
|
342
342
|
}
|
343
|
-
|
343
|
+
i && !(i instanceof Error) && (J(c), x("%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, l, typeof i), J(null)), i instanceof Error && !(i.message in be) && (be[i.message] = !0, J(c), x("Failed %s type: %s", t, i.message), J(null));
|
344
344
|
}
|
345
345
|
}
|
346
346
|
}
|
347
|
-
var
|
347
|
+
var qe = Array.isArray;
|
348
348
|
function X(e) {
|
349
|
-
return
|
349
|
+
return qe(e);
|
350
350
|
}
|
351
|
-
function
|
351
|
+
function Ge(e) {
|
352
352
|
{
|
353
353
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
354
354
|
return t;
|
355
355
|
}
|
356
356
|
}
|
357
|
-
function
|
357
|
+
function Xe(e) {
|
358
358
|
try {
|
359
|
-
return
|
359
|
+
return pe(e), !1;
|
360
360
|
} catch {
|
361
361
|
return !0;
|
362
362
|
}
|
363
363
|
}
|
364
|
-
function
|
364
|
+
function pe(e) {
|
365
365
|
return "" + e;
|
366
366
|
}
|
367
|
-
function
|
368
|
-
if (
|
369
|
-
return
|
367
|
+
function he(e) {
|
368
|
+
if (Xe(e))
|
369
|
+
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), pe(e);
|
370
370
|
}
|
371
|
-
var
|
371
|
+
var L = D.ReactCurrentOwner, He = {
|
372
372
|
key: !0,
|
373
373
|
ref: !0,
|
374
374
|
__self: !0,
|
375
375
|
__source: !0
|
376
|
-
},
|
376
|
+
}, ye, ge, H;
|
377
377
|
H = {};
|
378
|
-
function
|
378
|
+
function Ze(e) {
|
379
379
|
if (W.call(e, "ref")) {
|
380
380
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
381
381
|
if (r && r.isReactWarning)
|
@@ -383,7 +383,7 @@ function yr() {
|
|
383
383
|
}
|
384
384
|
return e.ref !== void 0;
|
385
385
|
}
|
386
|
-
function
|
386
|
+
function Qe(e) {
|
387
387
|
if (W.call(e, "key")) {
|
388
388
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
389
389
|
if (r && r.isReactWarning)
|
@@ -391,16 +391,16 @@ function yr() {
|
|
391
391
|
}
|
392
392
|
return e.key !== void 0;
|
393
393
|
}
|
394
|
-
function
|
395
|
-
if (typeof e.ref == "string" &&
|
396
|
-
var t =
|
397
|
-
H[t] || (
|
394
|
+
function er(e, r) {
|
395
|
+
if (typeof e.ref == "string" && L.current && r && L.current.stateNode !== r) {
|
396
|
+
var t = S(L.current.type);
|
397
|
+
H[t] || (x('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', S(L.current.type), e.ref), H[t] = !0);
|
398
398
|
}
|
399
399
|
}
|
400
|
-
function
|
400
|
+
function rr(e, r) {
|
401
401
|
{
|
402
402
|
var t = function() {
|
403
|
-
|
403
|
+
ye || (ye = !0, x("%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
405
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
406
406
|
get: t,
|
@@ -408,10 +408,10 @@ function yr() {
|
|
408
408
|
});
|
409
409
|
}
|
410
410
|
}
|
411
|
-
function
|
411
|
+
function tr(e, r) {
|
412
412
|
{
|
413
413
|
var t = function() {
|
414
|
-
ge || (ge = !0,
|
414
|
+
ge || (ge = !0, x("%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
416
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
417
417
|
get: t,
|
@@ -419,55 +419,55 @@ function yr() {
|
|
419
419
|
});
|
420
420
|
}
|
421
421
|
}
|
422
|
-
var
|
423
|
-
var
|
422
|
+
var nr = function(e, r, t, n, c, m, l) {
|
423
|
+
var i = {
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
425
|
-
$$typeof:
|
425
|
+
$$typeof: v,
|
426
426
|
// Built-in properties that belong on the element
|
427
427
|
type: e,
|
428
428
|
key: r,
|
429
429
|
ref: t,
|
430
|
-
props:
|
430
|
+
props: l,
|
431
431
|
// Record the component responsible for creating this element.
|
432
|
-
_owner:
|
432
|
+
_owner: m
|
433
433
|
};
|
434
|
-
return
|
434
|
+
return i._store = {}, Object.defineProperty(i._store, "validated", {
|
435
435
|
configurable: !1,
|
436
436
|
enumerable: !1,
|
437
437
|
writable: !0,
|
438
438
|
value: !1
|
439
|
-
}), Object.defineProperty(
|
439
|
+
}), Object.defineProperty(i, "_self", {
|
440
440
|
configurable: !1,
|
441
441
|
enumerable: !1,
|
442
442
|
writable: !1,
|
443
443
|
value: n
|
444
|
-
}), Object.defineProperty(
|
444
|
+
}), Object.defineProperty(i, "_source", {
|
445
445
|
configurable: !1,
|
446
446
|
enumerable: !1,
|
447
447
|
writable: !1,
|
448
|
-
value:
|
449
|
-
}), Object.freeze && (Object.freeze(
|
448
|
+
value: c
|
449
|
+
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
450
450
|
};
|
451
|
-
function
|
451
|
+
function ar(e, r, t, n, c) {
|
452
452
|
{
|
453
|
-
var
|
454
|
-
t !== void 0 && (
|
455
|
-
for (
|
456
|
-
W.call(r,
|
453
|
+
var m, l = {}, i = null, w = null;
|
454
|
+
t !== void 0 && (he(t), i = "" + t), Qe(r) && (he(r.key), i = "" + r.key), Ze(r) && (w = r.ref, er(r, c));
|
455
|
+
for (m in r)
|
456
|
+
W.call(r, m) && !He.hasOwnProperty(m) && (l[m] = r[m]);
|
457
457
|
if (e && e.defaultProps) {
|
458
|
-
var
|
459
|
-
for (
|
460
|
-
|
458
|
+
var y = e.defaultProps;
|
459
|
+
for (m in y)
|
460
|
+
l[m] === void 0 && (l[m] = y[m]);
|
461
461
|
}
|
462
|
-
if (
|
463
|
-
var
|
464
|
-
|
462
|
+
if (i || w) {
|
463
|
+
var g = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
464
|
+
i && rr(l, g), w && tr(l, g);
|
465
465
|
}
|
466
|
-
return
|
466
|
+
return nr(e, i, w, c, n, L.current, l);
|
467
467
|
}
|
468
468
|
}
|
469
469
|
var Z = D.ReactCurrentOwner, _e = D.ReactDebugCurrentFrame;
|
470
|
-
function
|
470
|
+
function I(e) {
|
471
471
|
if (e) {
|
472
472
|
var r = e._owner, t = z(e.type, e._source, r ? r.type : null);
|
473
473
|
_e.setExtraStackFrame(t);
|
@@ -477,12 +477,12 @@ function yr() {
|
|
477
477
|
var Q;
|
478
478
|
Q = !1;
|
479
479
|
function ee(e) {
|
480
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
480
|
+
return typeof e == "object" && e !== null && e.$$typeof === v;
|
481
481
|
}
|
482
482
|
function Ee() {
|
483
483
|
{
|
484
484
|
if (Z.current) {
|
485
|
-
var e =
|
485
|
+
var e = S(Z.current.type);
|
486
486
|
if (e)
|
487
487
|
return `
|
488
488
|
|
@@ -491,7 +491,7 @@ Check the render method of \`` + e + "`.";
|
|
491
491
|
return "";
|
492
492
|
}
|
493
493
|
}
|
494
|
-
function
|
494
|
+
function ir(e) {
|
495
495
|
{
|
496
496
|
if (e !== void 0) {
|
497
497
|
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
@@ -515,7 +515,7 @@ Check the top-level render call using <` + t + ">.");
|
|
515
515
|
return r;
|
516
516
|
}
|
517
517
|
}
|
518
|
-
function
|
518
|
+
function xe(e, r) {
|
519
519
|
{
|
520
520
|
if (!e._store || e._store.validated || e.key != null)
|
521
521
|
return;
|
@@ -525,29 +525,29 @@ Check the top-level render call using <` + t + ">.");
|
|
525
525
|
return;
|
526
526
|
Re[t] = !0;
|
527
527
|
var n = "";
|
528
|
-
e && e._owner && e._owner !== Z.current && (n = " It was passed a child from " +
|
528
|
+
e && e._owner && e._owner !== Z.current && (n = " It was passed a child from " + S(e._owner.type) + "."), I(e), x('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), I(null);
|
529
529
|
}
|
530
530
|
}
|
531
|
-
function
|
531
|
+
function je(e, r) {
|
532
532
|
{
|
533
533
|
if (typeof e != "object")
|
534
534
|
return;
|
535
535
|
if (X(e))
|
536
536
|
for (var t = 0; t < e.length; t++) {
|
537
537
|
var n = e[t];
|
538
|
-
ee(n) &&
|
538
|
+
ee(n) && xe(n, r);
|
539
539
|
}
|
540
540
|
else if (ee(e))
|
541
541
|
e._store && (e._store.validated = !0);
|
542
542
|
else if (e) {
|
543
|
-
var
|
544
|
-
if (typeof
|
545
|
-
for (var
|
546
|
-
ee(
|
543
|
+
var c = P(e);
|
544
|
+
if (typeof c == "function" && c !== e.entries)
|
545
|
+
for (var m = c.call(e), l; !(l = m.next()).done; )
|
546
|
+
ee(l.value) && xe(l.value, r);
|
547
547
|
}
|
548
548
|
}
|
549
549
|
}
|
550
|
-
function
|
550
|
+
function sr(e) {
|
551
551
|
{
|
552
552
|
var r = e.type;
|
553
553
|
if (r == null || typeof r == "string")
|
@@ -555,144 +555,144 @@ Check the top-level render call using <` + t + ">.");
|
|
555
555
|
var t;
|
556
556
|
if (typeof r == "function")
|
557
557
|
t = r.propTypes;
|
558
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
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 ===
|
560
|
+
r.$$typeof === p))
|
561
561
|
t = r.propTypes;
|
562
562
|
else
|
563
563
|
return;
|
564
564
|
if (t) {
|
565
|
-
var n =
|
566
|
-
|
565
|
+
var n = S(r);
|
566
|
+
Ke(t, e.props, "prop", n, e);
|
567
567
|
} else if (r.PropTypes !== void 0 && !Q) {
|
568
568
|
Q = !0;
|
569
|
-
var
|
570
|
-
|
569
|
+
var c = S(r);
|
570
|
+
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", c || "Unknown");
|
571
571
|
}
|
572
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
572
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
573
573
|
}
|
574
574
|
}
|
575
|
-
function
|
575
|
+
function lr(e) {
|
576
576
|
{
|
577
577
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
578
578
|
var n = r[t];
|
579
579
|
if (n !== "children" && n !== "key") {
|
580
|
-
|
580
|
+
I(e), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), I(null);
|
581
581
|
break;
|
582
582
|
}
|
583
583
|
}
|
584
|
-
e.ref !== null && (
|
584
|
+
e.ref !== null && (I(e), x("Invalid attribute `ref` supplied to `React.Fragment`."), I(null));
|
585
585
|
}
|
586
586
|
}
|
587
|
-
var
|
588
|
-
function
|
587
|
+
var we = {};
|
588
|
+
function Ce(e, r, t, n, c, m) {
|
589
589
|
{
|
590
|
-
var
|
591
|
-
if (!
|
592
|
-
var
|
593
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
594
|
-
var
|
595
|
-
|
596
|
-
var
|
597
|
-
e === null ?
|
590
|
+
var l = Le(e);
|
591
|
+
if (!l) {
|
592
|
+
var i = "";
|
593
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " 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 w = ir(c);
|
595
|
+
w ? i += w : i += Ee();
|
596
|
+
var y;
|
597
|
+
e === null ? y = "null" : X(e) ? y = "array" : e !== void 0 && e.$$typeof === v ? (y = "<" + (S(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : y = typeof e, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, i);
|
598
598
|
}
|
599
|
-
var
|
600
|
-
if (
|
601
|
-
return
|
602
|
-
if (
|
603
|
-
var
|
604
|
-
if (
|
599
|
+
var g = ar(e, r, t, c, m);
|
600
|
+
if (g == null)
|
601
|
+
return g;
|
602
|
+
if (l) {
|
603
|
+
var T = r.children;
|
604
|
+
if (T !== void 0)
|
605
605
|
if (n)
|
606
|
-
if (X(
|
607
|
-
for (var
|
608
|
-
|
609
|
-
Object.freeze && Object.freeze(
|
606
|
+
if (X(T)) {
|
607
|
+
for (var $ = 0; $ < T.length; $++)
|
608
|
+
je(T[$], e);
|
609
|
+
Object.freeze && Object.freeze(T);
|
610
610
|
} else
|
611
|
-
|
611
|
+
x("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
|
-
|
613
|
+
je(T, e);
|
614
614
|
}
|
615
615
|
if (W.call(r, "key")) {
|
616
|
-
var k =
|
617
|
-
return
|
618
|
-
}), re =
|
619
|
-
if (!
|
620
|
-
var
|
621
|
-
|
616
|
+
var k = S(e), C = Object.keys(r).filter(function(br) {
|
617
|
+
return br !== "key";
|
618
|
+
}), re = C.length > 0 ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}";
|
619
|
+
if (!we[k + re]) {
|
620
|
+
var vr = C.length > 0 ? "{" + C.join(": ..., ") + ": ...}" : "{}";
|
621
|
+
x(`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,
|
626
|
+
<%s key={someKey} {...props} />`, re, k, vr, k), we[k + re] = !0;
|
627
627
|
}
|
628
628
|
}
|
629
|
-
return e ===
|
629
|
+
return e === u ? lr(g) : sr(g), g;
|
630
630
|
}
|
631
631
|
}
|
632
|
-
function
|
633
|
-
return
|
632
|
+
function ur(e, r, t) {
|
633
|
+
return Ce(e, r, t, !0);
|
634
634
|
}
|
635
|
-
function
|
636
|
-
return
|
635
|
+
function cr(e, r, t) {
|
636
|
+
return Ce(e, r, t, !1);
|
637
637
|
}
|
638
|
-
var
|
639
|
-
|
640
|
-
}()),
|
638
|
+
var fr = cr, dr = ur;
|
639
|
+
M.Fragment = u, M.jsx = fr, M.jsxs = dr;
|
640
|
+
}()), M;
|
641
641
|
}
|
642
|
-
process.env.NODE_ENV === "production" ? te.exports = pr() : te.exports =
|
643
|
-
var
|
644
|
-
function Ae(
|
645
|
-
var
|
646
|
-
if (typeof
|
647
|
-
|
648
|
-
else if (typeof
|
649
|
-
if (Array.isArray(
|
650
|
-
var
|
651
|
-
for (
|
652
|
-
|
642
|
+
process.env.NODE_ENV === "production" ? te.exports = pr() : te.exports = hr();
|
643
|
+
var s = te.exports;
|
644
|
+
function Ae(o) {
|
645
|
+
var v, a, u = "";
|
646
|
+
if (typeof o == "string" || typeof o == "number")
|
647
|
+
u += o;
|
648
|
+
else if (typeof o == "object")
|
649
|
+
if (Array.isArray(o)) {
|
650
|
+
var _ = o.length;
|
651
|
+
for (v = 0; v < _; v++)
|
652
|
+
o[v] && (a = Ae(o[v])) && (u && (u += " "), u += a);
|
653
653
|
} else
|
654
|
-
for (
|
655
|
-
|
656
|
-
return
|
654
|
+
for (a in o)
|
655
|
+
o[a] && (u && (u += " "), u += a);
|
656
|
+
return u;
|
657
657
|
}
|
658
|
-
function
|
659
|
-
for (var
|
660
|
-
(
|
661
|
-
return
|
658
|
+
function yr() {
|
659
|
+
for (var o, v, a = 0, u = "", _ = arguments.length; a < _; a++)
|
660
|
+
(o = arguments[a]) && (v = Ae(o)) && (u && (u += " "), u += v);
|
661
|
+
return u;
|
662
662
|
}
|
663
|
-
const
|
664
|
-
var
|
665
|
-
if ((
|
666
|
-
return
|
667
|
-
const { variants:
|
668
|
-
const
|
669
|
-
if (
|
663
|
+
const Oe = (o) => typeof o == "boolean" ? `${o}` : o === 0 ? "0" : o, Pe = yr, gr = (o, v) => (a) => {
|
664
|
+
var u;
|
665
|
+
if ((v == null ? void 0 : v.variants) == null)
|
666
|
+
return Pe(o, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
|
667
|
+
const { variants: _, defaultVariants: E } = v, j = Object.keys(_).map((d) => {
|
668
|
+
const b = a == null ? void 0 : a[d], p = E == null ? void 0 : E[d];
|
669
|
+
if (b === null)
|
670
670
|
return null;
|
671
|
-
const
|
672
|
-
return
|
673
|
-
}),
|
674
|
-
let [
|
675
|
-
return
|
676
|
-
}, {}),
|
677
|
-
let { class:
|
678
|
-
return Object.entries(
|
679
|
-
let [
|
671
|
+
const R = Oe(b) || Oe(p);
|
672
|
+
return _[d][R];
|
673
|
+
}), h = a && Object.entries(a).reduce((d, b) => {
|
674
|
+
let [p, R] = b;
|
675
|
+
return R === void 0 || (d[p] = R), d;
|
676
|
+
}, {}), f = v == null || (u = v.compoundVariants) === null || u === void 0 ? void 0 : u.reduce((d, b) => {
|
677
|
+
let { class: p, className: R, ...O } = b;
|
678
|
+
return Object.entries(O).every((A) => {
|
679
|
+
let [F, P] = A;
|
680
680
|
return Array.isArray(P) ? P.includes({
|
681
|
-
...
|
682
|
-
...
|
683
|
-
}[
|
684
|
-
...
|
685
|
-
...
|
686
|
-
}[
|
681
|
+
...E,
|
682
|
+
...h
|
683
|
+
}[F]) : {
|
684
|
+
...E,
|
685
|
+
...h
|
686
|
+
}[F] === P;
|
687
687
|
}) ? [
|
688
|
-
...
|
689
|
-
|
690
|
-
|
691
|
-
] :
|
688
|
+
...d,
|
689
|
+
p,
|
690
|
+
R
|
691
|
+
] : d;
|
692
692
|
}, []);
|
693
|
-
return
|
693
|
+
return Pe(o, j, f, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
|
694
694
|
};
|
695
|
-
const
|
695
|
+
const _r = gr("button", {
|
696
696
|
variants: {
|
697
697
|
variant: {
|
698
698
|
outlined: "button-outlined",
|
@@ -753,61 +753,151 @@ 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
|
-
}),
|
756
|
+
}), Er = mr(
|
757
757
|
({
|
758
|
-
className:
|
759
|
-
variant:
|
760
|
-
color:
|
761
|
-
size:
|
762
|
-
pill:
|
763
|
-
active:
|
764
|
-
iconLeft:
|
765
|
-
iconRight:
|
766
|
-
iconLeftJustified:
|
767
|
-
iconRightJustified:
|
768
|
-
iconOnly:
|
769
|
-
width:
|
770
|
-
children:
|
771
|
-
style:
|
758
|
+
className: o,
|
759
|
+
variant: v,
|
760
|
+
color: a,
|
761
|
+
size: u,
|
762
|
+
pill: _,
|
763
|
+
active: E,
|
764
|
+
iconLeft: j,
|
765
|
+
iconRight: h,
|
766
|
+
iconLeftJustified: f,
|
767
|
+
iconRightJustified: d,
|
768
|
+
iconOnly: b,
|
769
|
+
width: p,
|
770
|
+
children: R,
|
771
|
+
style: O,
|
772
772
|
...A
|
773
|
-
},
|
773
|
+
}, F) => {
|
774
774
|
const P = {
|
775
|
-
...
|
776
|
-
...
|
775
|
+
...O || {},
|
776
|
+
...p ? { width: p } : {}
|
777
777
|
};
|
778
|
-
return /* @__PURE__ */
|
778
|
+
return /* @__PURE__ */ s.jsxs(
|
779
779
|
"button",
|
780
780
|
{
|
781
|
-
className:
|
782
|
-
variant:
|
783
|
-
color:
|
784
|
-
size:
|
785
|
-
pill:
|
786
|
-
active:
|
787
|
-
iconLeft: !!
|
788
|
-
iconRight: !!
|
789
|
-
iconLeftJustified: !!
|
790
|
-
iconRightJustified: !!
|
791
|
-
iconOnly: !!
|
792
|
-
className:
|
781
|
+
className: _r({
|
782
|
+
variant: v,
|
783
|
+
color: a,
|
784
|
+
size: u,
|
785
|
+
pill: _,
|
786
|
+
active: E,
|
787
|
+
iconLeft: !!j,
|
788
|
+
iconRight: !!h,
|
789
|
+
iconLeftJustified: !!f,
|
790
|
+
iconRightJustified: !!d,
|
791
|
+
iconOnly: !!b,
|
792
|
+
className: o
|
793
793
|
}),
|
794
794
|
style: P,
|
795
|
-
ref:
|
795
|
+
ref: F,
|
796
796
|
...A,
|
797
797
|
children: [
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
798
|
+
j && /* @__PURE__ */ s.jsx("span", { className: "button-icon-left", children: j }),
|
799
|
+
f && /* @__PURE__ */ s.jsx("span", { className: "button-icon-left", children: f }),
|
800
|
+
b ? /* @__PURE__ */ s.jsx("span", { children: b }) : R,
|
801
|
+
h && /* @__PURE__ */ s.jsx("span", { className: "button-icon-right", children: h }),
|
802
|
+
d && /* @__PURE__ */ s.jsx("span", { className: "button-icon-right", children: d })
|
803
803
|
]
|
804
804
|
}
|
805
805
|
);
|
806
806
|
}
|
807
807
|
);
|
808
|
-
|
808
|
+
Er.displayName = "Button";
|
809
|
+
const Rr = ({ className: o }) => /* @__PURE__ */ s.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: o, children: /* @__PURE__ */ s.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" }) }), xr = ({
|
810
|
+
icon: o,
|
811
|
+
url: v,
|
812
|
+
label: a,
|
813
|
+
submenu: u,
|
814
|
+
collapsed: _
|
815
|
+
}) => {
|
816
|
+
const [E, j] = ke(!1), h = u && u.length > 0, f = (d) => {
|
817
|
+
h && (d.preventDefault(), j(!E));
|
818
|
+
};
|
819
|
+
return /* @__PURE__ */ s.jsxs("div", { className: `sidebar-item ${E ? "open" : ""}`, children: [
|
820
|
+
/* @__PURE__ */ s.jsxs(
|
821
|
+
"a",
|
822
|
+
{
|
823
|
+
href: v,
|
824
|
+
className: "sidebar-link sidebar-collapsed",
|
825
|
+
onClick: h ? f : void 0,
|
826
|
+
children: [
|
827
|
+
/* @__PURE__ */ s.jsx("div", { className: "sidebar-icon", children: o }),
|
828
|
+
!_ && /* @__PURE__ */ s.jsxs("div", { className: "sidebar-content", children: [
|
829
|
+
/* @__PURE__ */ s.jsx("span", { className: "sidebar-label", children: a }),
|
830
|
+
h && /* @__PURE__ */ s.jsx("span", { className: "submenu-arrow", children: /* @__PURE__ */ s.jsx(Rr, {}) })
|
831
|
+
] })
|
832
|
+
]
|
833
|
+
}
|
834
|
+
),
|
835
|
+
h && E && !_ && /* @__PURE__ */ s.jsx("div", { className: "submenu", children: u.map((d, b) => /* @__PURE__ */ s.jsxs("a", { href: d.url, className: "submenu-item", children: [
|
836
|
+
/* @__PURE__ */ s.jsx("div", { className: "submenu-icon", children: d.icon }),
|
837
|
+
/* @__PURE__ */ s.jsx("span", { className: "submenu-label", children: d.label })
|
838
|
+
] }, b)) })
|
839
|
+
] });
|
840
|
+
};
|
841
|
+
const jr = ({ className: o }) => /* @__PURE__ */ s.jsxs(
|
842
|
+
"svg",
|
843
|
+
{
|
844
|
+
width: "28",
|
845
|
+
height: "28",
|
846
|
+
viewBox: "0 0 28 28",
|
847
|
+
fill: "none",
|
848
|
+
xmlns: "http://www.w3.org/2000/svg",
|
849
|
+
className: o,
|
850
|
+
children: [
|
851
|
+
/* @__PURE__ */ s.jsx("circle", { cx: "14", cy: "14", r: "14", fill: "#00F7AA" }),
|
852
|
+
/* @__PURE__ */ s.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" })
|
853
|
+
]
|
854
|
+
}
|
855
|
+
), Cr = ({
|
856
|
+
logo: o,
|
857
|
+
logoCollapsed: v,
|
858
|
+
items: a,
|
859
|
+
logoutIcon: u,
|
860
|
+
onLogout: _,
|
861
|
+
logoutLabel: E = "Cerrar sesión",
|
862
|
+
collapsed: j = !1,
|
863
|
+
onToggle: h
|
864
|
+
}) => {
|
865
|
+
const [f, d] = ke(j), b = () => {
|
866
|
+
d(!f), h && h();
|
867
|
+
};
|
868
|
+
return /* @__PURE__ */ s.jsxs("div", { className: "sidebar-wrapper", children: [
|
869
|
+
/* @__PURE__ */ s.jsxs("div", { className: `sidebar ${f ? "sidebar-collapsed" : ""}`, children: [
|
870
|
+
/* @__PURE__ */ s.jsx("div", { className: "sidebar-header", children: /* @__PURE__ */ s.jsx("div", { className: "sidebar-logo", children: f ? /* @__PURE__ */ s.jsx("span", { className: "logo-text", children: v }) : /* @__PURE__ */ s.jsx("span", { className: "logo-text", children: o }) }) }),
|
871
|
+
/* @__PURE__ */ s.jsx("div", { className: "sidebar-menu", children: a.map((p, R) => /* @__PURE__ */ s.jsx(
|
872
|
+
xr,
|
873
|
+
{
|
874
|
+
icon: p.icon,
|
875
|
+
url: p.url,
|
876
|
+
label: p.label,
|
877
|
+
submenu: p.submenu,
|
878
|
+
collapsed: f
|
879
|
+
},
|
880
|
+
R
|
881
|
+
)) }),
|
882
|
+
_ && /* @__PURE__ */ s.jsx("div", { className: "sidebar-footer", children: /* @__PURE__ */ s.jsxs("button", { className: "logout-button", onClick: _, children: [
|
883
|
+
u,
|
884
|
+
!f && /* @__PURE__ */ s.jsx("span", { children: E })
|
885
|
+
] }) })
|
886
|
+
] }),
|
887
|
+
/* @__PURE__ */ s.jsx(
|
888
|
+
"button",
|
889
|
+
{
|
890
|
+
className: `sidebar-toggle-icon${f ? " collapsed" : ""}`,
|
891
|
+
onClick: b,
|
892
|
+
"aria-label": "Toggle sidebar",
|
893
|
+
children: /* @__PURE__ */ s.jsx(jr, {})
|
894
|
+
}
|
895
|
+
)
|
896
|
+
] });
|
897
|
+
};
|
809
898
|
export {
|
810
|
-
|
811
|
-
|
899
|
+
Er as Button,
|
900
|
+
Cr as Sidebar,
|
901
|
+
_r as buttonVariants
|
812
902
|
};
|
813
903
|
//# sourceMappingURL=index.esm.js.map
|