eidotter 0.3.0 → 0.3.2

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.es.js CHANGED
@@ -1,699 +1,58 @@
1
- import fe, { useState as K, useEffect as ee, useRef as me, forwardRef as hr, useCallback as Be, useId as vr } from "react";
2
- import { createPortal as br } from "react-dom";
3
- var de = { exports: {} }, J = {};
4
- /**
5
- * @license React
6
- * react-jsx-runtime.production.min.js
7
- *
8
- * Copyright (c) Facebook, Inc. and its affiliates.
9
- *
10
- * This source code is licensed under the MIT license found in the
11
- * LICENSE file in the root directory of this source tree.
12
- */
13
- var We;
14
- function xr() {
15
- if (We)
16
- return J;
17
- We = 1;
18
- var l = fe, u = Symbol.for("react.element"), d = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, s = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
19
- function o(p, c, v) {
20
- var m, _ = {}, E = null, O = null;
21
- v !== void 0 && (E = "" + v), c.key !== void 0 && (E = "" + c.key), c.ref !== void 0 && (O = c.ref);
22
- for (m in c)
23
- n.call(c, m) && !i.hasOwnProperty(m) && (_[m] = c[m]);
24
- if (p && p.defaultProps)
25
- for (m in c = p.defaultProps, c)
26
- _[m] === void 0 && (_[m] = c[m]);
27
- return { $$typeof: u, type: p, key: E, ref: O, props: _, _owner: s.current };
28
- }
29
- return J.Fragment = d, J.jsx = o, J.jsxs = o, J;
30
- }
31
- var G = {};
32
- /**
33
- * @license React
34
- * react-jsx-runtime.development.js
35
- *
36
- * Copyright (c) Facebook, Inc. and its affiliates.
37
- *
38
- * This source code is licensed under the MIT license found in the
39
- * LICENSE file in the root directory of this source tree.
40
- */
41
- var Le;
42
- function jr() {
43
- return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
44
- var l = fe, u = Symbol.for("react.element"), d = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), p = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), D = Symbol.iterator, j = "@@iterator";
45
- function S(e) {
46
- if (e === null || typeof e != "object")
47
- return null;
48
- var t = D && e[D] || e[j];
49
- return typeof t == "function" ? t : null;
50
- }
51
- var N = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
- function y(e) {
53
- {
54
- for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), f = 1; f < t; f++)
55
- a[f - 1] = arguments[f];
56
- $("error", e, a);
57
- }
58
- }
59
- function $(e, t, a) {
60
- {
61
- var f = N.ReactDebugCurrentFrame, x = f.getStackAddendum();
62
- x !== "" && (t += "%s", a = a.concat([x]));
63
- var g = a.map(function(b) {
64
- return String(b);
65
- });
66
- g.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, g);
67
- }
68
- }
69
- var L = !1, P = !1, M = !1, re = !1, F = !1, pe;
70
- pe = Symbol.for("react.module.reference");
71
- function Me(e) {
72
- return !!(typeof e == "string" || typeof e == "function" || e === n || e === i || F || e === s || e === v || e === m || re || e === O || L || P || M || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === _ || e.$$typeof === o || e.$$typeof === p || e.$$typeof === c || // This needs to include all possible module reference object
73
- // types supported by any Flight configuration anywhere since
74
- // we don't know which Flight build this will end up being used
75
- // with.
76
- e.$$typeof === pe || e.getModuleId !== void 0));
77
- }
78
- function Ye(e, t, a) {
79
- var f = e.displayName;
80
- if (f)
81
- return f;
82
- var x = t.displayName || t.name || "";
83
- return x !== "" ? a + "(" + x + ")" : a;
84
- }
85
- function _e(e) {
86
- return e.displayName || "Context";
87
- }
88
- function A(e) {
89
- if (e == null)
90
- return null;
91
- if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
92
- return e.displayName || e.name || null;
93
- if (typeof e == "string")
94
- return e;
95
- switch (e) {
96
- case n:
97
- return "Fragment";
98
- case d:
99
- return "Portal";
100
- case i:
101
- return "Profiler";
102
- case s:
103
- return "StrictMode";
104
- case v:
105
- return "Suspense";
106
- case m:
107
- return "SuspenseList";
108
- }
109
- if (typeof e == "object")
110
- switch (e.$$typeof) {
111
- case p:
112
- var t = e;
113
- return _e(t) + ".Consumer";
114
- case o:
115
- var a = e;
116
- return _e(a._context) + ".Provider";
117
- case c:
118
- return Ye(e, e.render, "ForwardRef");
119
- case _:
120
- var f = e.displayName || null;
121
- return f !== null ? f : A(e.type) || "Memo";
122
- case E: {
123
- var x = e, g = x._payload, b = x._init;
124
- try {
125
- return A(b(g));
126
- } catch {
127
- return null;
128
- }
129
- }
130
- }
131
- return null;
132
- }
133
- var B = Object.assign, V = 0, he, ve, be, xe, je, ye, ge;
134
- function Ee() {
135
- }
136
- Ee.__reactDisabledLog = !0;
137
- function ze() {
138
- {
139
- if (V === 0) {
140
- he = console.log, ve = console.info, be = console.warn, xe = console.error, je = console.group, ye = console.groupCollapsed, ge = console.groupEnd;
141
- var e = {
142
- configurable: !0,
143
- enumerable: !0,
144
- value: Ee,
145
- writable: !0
146
- };
147
- Object.defineProperties(console, {
148
- info: e,
149
- log: e,
150
- warn: e,
151
- error: e,
152
- group: e,
153
- groupCollapsed: e,
154
- groupEnd: e
155
- });
156
- }
157
- V++;
158
- }
159
- }
160
- function Ke() {
161
- {
162
- if (V--, V === 0) {
163
- var e = {
164
- configurable: !0,
165
- enumerable: !0,
166
- writable: !0
167
- };
168
- Object.defineProperties(console, {
169
- log: B({}, e, {
170
- value: he
171
- }),
172
- info: B({}, e, {
173
- value: ve
174
- }),
175
- warn: B({}, e, {
176
- value: be
177
- }),
178
- error: B({}, e, {
179
- value: xe
180
- }),
181
- group: B({}, e, {
182
- value: je
183
- }),
184
- groupCollapsed: B({}, e, {
185
- value: ye
186
- }),
187
- groupEnd: B({}, e, {
188
- value: ge
189
- })
190
- });
191
- }
192
- V < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
- }
194
- }
195
- var te = N.ReactCurrentDispatcher, ae;
196
- function X(e, t, a) {
197
- {
198
- if (ae === void 0)
199
- try {
200
- throw Error();
201
- } catch (x) {
202
- var f = x.stack.trim().match(/\n( *(at )?)/);
203
- ae = f && f[1] || "";
204
- }
205
- return `
206
- ` + ae + e;
207
- }
208
- }
209
- var ne = !1, H;
210
- {
211
- var Ve = typeof WeakMap == "function" ? WeakMap : Map;
212
- H = new Ve();
213
- }
214
- function we(e, t) {
215
- if (!e || ne)
216
- return "";
217
- {
218
- var a = H.get(e);
219
- if (a !== void 0)
220
- return a;
221
- }
222
- var f;
223
- ne = !0;
224
- var x = Error.prepareStackTrace;
225
- Error.prepareStackTrace = void 0;
226
- var g;
227
- g = te.current, te.current = null, ze();
228
- try {
229
- if (t) {
230
- var b = function() {
231
- throw Error();
232
- };
233
- if (Object.defineProperty(b.prototype, "props", {
234
- set: function() {
235
- throw Error();
236
- }
237
- }), typeof Reflect == "object" && Reflect.construct) {
238
- try {
239
- Reflect.construct(b, []);
240
- } catch (C) {
241
- f = C;
242
- }
243
- Reflect.construct(e, [], b);
244
- } else {
245
- try {
246
- b.call();
247
- } catch (C) {
248
- f = C;
249
- }
250
- e.call(b.prototype);
251
- }
252
- } else {
253
- try {
254
- throw Error();
255
- } catch (C) {
256
- f = C;
257
- }
258
- e();
259
- }
260
- } catch (C) {
261
- if (C && f && typeof C.stack == "string") {
262
- for (var h = C.stack.split(`
263
- `), k = f.stack.split(`
264
- `), w = h.length - 1, R = k.length - 1; w >= 1 && R >= 0 && h[w] !== k[R]; )
265
- R--;
266
- for (; w >= 1 && R >= 0; w--, R--)
267
- if (h[w] !== k[R]) {
268
- if (w !== 1 || R !== 1)
269
- do
270
- if (w--, R--, R < 0 || h[w] !== k[R]) {
271
- var T = `
272
- ` + h[w].replace(" at new ", " at ");
273
- return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && H.set(e, T), T;
274
- }
275
- while (w >= 1 && R >= 0);
276
- break;
277
- }
278
- }
279
- } finally {
280
- ne = !1, te.current = g, Ke(), Error.prepareStackTrace = x;
281
- }
282
- var z = e ? e.displayName || e.name : "", W = z ? X(z) : "";
283
- return typeof e == "function" && H.set(e, W), W;
284
- }
285
- function Ue(e, t, a) {
286
- return we(e, !1);
287
- }
288
- function qe(e) {
289
- var t = e.prototype;
290
- return !!(t && t.isReactComponent);
291
- }
292
- function Q(e, t, a) {
293
- if (e == null)
294
- return "";
295
- if (typeof e == "function")
296
- return we(e, qe(e));
297
- if (typeof e == "string")
298
- return X(e);
299
- switch (e) {
300
- case v:
301
- return X("Suspense");
302
- case m:
303
- return X("SuspenseList");
304
- }
305
- if (typeof e == "object")
306
- switch (e.$$typeof) {
307
- case c:
308
- return Ue(e.render);
309
- case _:
310
- return Q(e.type, t, a);
311
- case E: {
312
- var f = e, x = f._payload, g = f._init;
313
- try {
314
- return Q(g(x), t, a);
315
- } catch {
316
- }
317
- }
318
- }
319
- return "";
320
- }
321
- var U = Object.prototype.hasOwnProperty, Re = {}, Ne = N.ReactDebugCurrentFrame;
322
- function Z(e) {
323
- if (e) {
324
- var t = e._owner, a = Q(e.type, e._source, t ? t.type : null);
325
- Ne.setExtraStackFrame(a);
326
- } else
327
- Ne.setExtraStackFrame(null);
328
- }
329
- function Je(e, t, a, f, x) {
330
- {
331
- var g = Function.call.bind(U);
332
- for (var b in e)
333
- if (g(e, b)) {
334
- var h = void 0;
335
- try {
336
- if (typeof e[b] != "function") {
337
- var k = Error((f || "React class") + ": " + a + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
- throw k.name = "Invariant Violation", k;
339
- }
340
- h = e[b](t, b, f, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
- } catch (w) {
342
- h = w;
343
- }
344
- h && !(h instanceof Error) && (Z(x), y("%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).", f || "React class", a, b, typeof h), Z(null)), h instanceof Error && !(h.message in Re) && (Re[h.message] = !0, Z(x), y("Failed %s type: %s", a, h.message), Z(null));
345
- }
346
- }
347
- }
348
- var Ge = Array.isArray;
349
- function se(e) {
350
- return Ge(e);
351
- }
352
- function Xe(e) {
353
- {
354
- var t = typeof Symbol == "function" && Symbol.toStringTag, a = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
355
- return a;
356
- }
357
- }
358
- function He(e) {
359
- try {
360
- return ke(e), !1;
361
- } catch {
362
- return !0;
363
- }
364
- }
365
- function ke(e) {
366
- return "" + e;
367
- }
368
- function Ce(e) {
369
- if (He(e))
370
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xe(e)), ke(e);
371
- }
372
- var q = N.ReactCurrentOwner, Qe = {
373
- key: !0,
374
- ref: !0,
375
- __self: !0,
376
- __source: !0
377
- }, Se, $e, ie;
378
- ie = {};
379
- function Ze(e) {
380
- if (U.call(e, "ref")) {
381
- var t = Object.getOwnPropertyDescriptor(e, "ref").get;
382
- if (t && t.isReactWarning)
383
- return !1;
384
- }
385
- return e.ref !== void 0;
386
- }
387
- function er(e) {
388
- if (U.call(e, "key")) {
389
- var t = Object.getOwnPropertyDescriptor(e, "key").get;
390
- if (t && t.isReactWarning)
391
- return !1;
392
- }
393
- return e.key !== void 0;
394
- }
395
- function rr(e, t) {
396
- if (typeof e.ref == "string" && q.current && t && q.current.stateNode !== t) {
397
- var a = A(q.current.type);
398
- ie[a] || (y('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', A(q.current.type), e.ref), ie[a] = !0);
399
- }
400
- }
401
- function tr(e, t) {
402
- {
403
- var a = function() {
404
- Se || (Se = !0, y("%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)", t));
405
- };
406
- a.isReactWarning = !0, Object.defineProperty(e, "key", {
407
- get: a,
408
- configurable: !0
409
- });
410
- }
411
- }
412
- function ar(e, t) {
413
- {
414
- var a = function() {
415
- $e || ($e = !0, y("%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)", t));
416
- };
417
- a.isReactWarning = !0, Object.defineProperty(e, "ref", {
418
- get: a,
419
- configurable: !0
420
- });
421
- }
422
- }
423
- var nr = function(e, t, a, f, x, g, b) {
424
- var h = {
425
- // This tag allows us to uniquely identify this as a React Element
426
- $$typeof: u,
427
- // Built-in properties that belong on the element
428
- type: e,
429
- key: t,
430
- ref: a,
431
- props: b,
432
- // Record the component responsible for creating this element.
433
- _owner: g
434
- };
435
- return h._store = {}, Object.defineProperty(h._store, "validated", {
436
- configurable: !1,
437
- enumerable: !1,
438
- writable: !0,
439
- value: !1
440
- }), Object.defineProperty(h, "_self", {
441
- configurable: !1,
442
- enumerable: !1,
443
- writable: !1,
444
- value: f
445
- }), Object.defineProperty(h, "_source", {
446
- configurable: !1,
447
- enumerable: !1,
448
- writable: !1,
449
- value: x
450
- }), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
451
- };
452
- function sr(e, t, a, f, x) {
453
- {
454
- var g, b = {}, h = null, k = null;
455
- a !== void 0 && (Ce(a), h = "" + a), er(t) && (Ce(t.key), h = "" + t.key), Ze(t) && (k = t.ref, rr(t, x));
456
- for (g in t)
457
- U.call(t, g) && !Qe.hasOwnProperty(g) && (b[g] = t[g]);
458
- if (e && e.defaultProps) {
459
- var w = e.defaultProps;
460
- for (g in w)
461
- b[g] === void 0 && (b[g] = w[g]);
462
- }
463
- if (h || k) {
464
- var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
465
- h && tr(b, R), k && ar(b, R);
466
- }
467
- return nr(e, h, k, x, f, q.current, b);
468
- }
469
- }
470
- var oe = N.ReactCurrentOwner, Te = N.ReactDebugCurrentFrame;
471
- function Y(e) {
472
- if (e) {
473
- var t = e._owner, a = Q(e.type, e._source, t ? t.type : null);
474
- Te.setExtraStackFrame(a);
475
- } else
476
- Te.setExtraStackFrame(null);
477
- }
478
- var le;
479
- le = !1;
480
- function ce(e) {
481
- return typeof e == "object" && e !== null && e.$$typeof === u;
482
- }
483
- function Oe() {
484
- {
485
- if (oe.current) {
486
- var e = A(oe.current.type);
487
- if (e)
488
- return `
489
-
490
- Check the render method of \`` + e + "`.";
491
- }
492
- return "";
493
- }
494
- }
495
- function ir(e) {
496
- {
497
- if (e !== void 0) {
498
- var t = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
499
- return `
500
-
501
- Check your code at ` + t + ":" + a + ".";
502
- }
503
- return "";
504
- }
505
- }
506
- var Pe = {};
507
- function or(e) {
508
- {
509
- var t = Oe();
510
- if (!t) {
511
- var a = typeof e == "string" ? e : e.displayName || e.name;
512
- a && (t = `
513
-
514
- Check the top-level render call using <` + a + ">.");
515
- }
516
- return t;
517
- }
518
- }
519
- function De(e, t) {
520
- {
521
- if (!e._store || e._store.validated || e.key != null)
522
- return;
523
- e._store.validated = !0;
524
- var a = or(t);
525
- if (Pe[a])
526
- return;
527
- Pe[a] = !0;
528
- var f = "";
529
- e && e._owner && e._owner !== oe.current && (f = " It was passed a child from " + A(e._owner.type) + "."), Y(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, f), Y(null);
530
- }
531
- }
532
- function Ae(e, t) {
533
- {
534
- if (typeof e != "object")
535
- return;
536
- if (se(e))
537
- for (var a = 0; a < e.length; a++) {
538
- var f = e[a];
539
- ce(f) && De(f, t);
540
- }
541
- else if (ce(e))
542
- e._store && (e._store.validated = !0);
543
- else if (e) {
544
- var x = S(e);
545
- if (typeof x == "function" && x !== e.entries)
546
- for (var g = x.call(e), b; !(b = g.next()).done; )
547
- ce(b.value) && De(b.value, t);
548
- }
549
- }
550
- }
551
- function lr(e) {
552
- {
553
- var t = e.type;
554
- if (t == null || typeof t == "string")
555
- return;
556
- var a;
557
- if (typeof t == "function")
558
- a = t.propTypes;
559
- else if (typeof t == "object" && (t.$$typeof === c || // Note: Memo only checks outer props here.
560
- // Inner props are checked in the reconciler.
561
- t.$$typeof === _))
562
- a = t.propTypes;
563
- else
564
- return;
565
- if (a) {
566
- var f = A(t);
567
- Je(a, e.props, "prop", f, e);
568
- } else if (t.PropTypes !== void 0 && !le) {
569
- le = !0;
570
- var x = A(t);
571
- y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x || "Unknown");
572
- }
573
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
574
- }
575
- }
576
- function cr(e) {
577
- {
578
- for (var t = Object.keys(e.props), a = 0; a < t.length; a++) {
579
- var f = t[a];
580
- if (f !== "children" && f !== "key") {
581
- Y(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), Y(null);
582
- break;
583
- }
584
- }
585
- e.ref !== null && (Y(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
586
- }
587
- }
588
- var Ie = {};
589
- function Fe(e, t, a, f, x, g) {
590
- {
591
- var b = Me(e);
592
- if (!b) {
593
- var h = "";
594
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (h += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
595
- var k = ir(x);
596
- k ? h += k : h += Oe();
597
- var w;
598
- e === null ? w = "null" : se(e) ? w = "array" : e !== void 0 && e.$$typeof === u ? (w = "<" + (A(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : w = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", w, h);
599
- }
600
- var R = sr(e, t, a, x, g);
601
- if (R == null)
602
- return R;
603
- if (b) {
604
- var T = t.children;
605
- if (T !== void 0)
606
- if (f)
607
- if (se(T)) {
608
- for (var z = 0; z < T.length; z++)
609
- Ae(T[z], e);
610
- Object.freeze && Object.freeze(T);
611
- } else
612
- y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
613
- else
614
- Ae(T, e);
615
- }
616
- if (U.call(t, "key")) {
617
- var W = A(e), C = Object.keys(t).filter(function(_r) {
618
- return _r !== "key";
619
- }), ue = C.length > 0 ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}";
620
- if (!Ie[W + ue]) {
621
- var pr = C.length > 0 ? "{" + C.join(": ..., ") + ": ...}" : "{}";
622
- y(`A props object containing a "key" prop is being spread into JSX:
623
- let props = %s;
624
- <%s {...props} />
625
- React keys must be passed directly to JSX without using spread:
626
- let props = %s;
627
- <%s key={someKey} {...props} />`, ue, W, pr, W), Ie[W + ue] = !0;
628
- }
629
- }
630
- return e === n ? cr(R) : lr(R), R;
631
- }
632
- }
633
- function ur(e, t, a) {
634
- return Fe(e, t, a, !0);
635
- }
636
- function dr(e, t, a) {
637
- return Fe(e, t, a, !1);
638
- }
639
- var fr = dr, mr = ur;
640
- G.Fragment = n, G.jsx = fr, G.jsxs = mr;
641
- }()), G;
642
- }
643
- process.env.NODE_ENV === "production" ? de.exports = xr() : de.exports = jr();
644
- var r = de.exports;
645
- const I = ({
646
- name: l,
647
- size: u = "L",
648
- className: d = "",
649
- onClick: n,
650
- color: s,
651
- role: i
1
+ import { jsx as e, jsxs as _, Fragment as A } from "react/jsx-runtime";
2
+ import E, { useState as C, useEffect as D, useRef as S, forwardRef as j, useCallback as I, useId as K } from "react";
3
+ import { createPortal as R } from "react-dom";
4
+ const w = ({
5
+ name: t,
6
+ size: i = "L",
7
+ className: l = "",
8
+ onClick: a,
9
+ color: n,
10
+ role: r
652
11
  }) => {
653
- const o = process.env.NODE_ENV === "production" ? "/eiDotter" : "";
654
- return /* @__PURE__ */ r.jsx(
12
+ const s = process.env.NODE_ENV === "production" ? "/eiDotter" : "";
13
+ return /* @__PURE__ */ e(
655
14
  "svg",
656
15
  {
657
- className: `icon ${u === "L" ? "icon--l" : "icon--s"} ${d} ${i ? `icon--${i}` : ""}`.trim(),
658
- onClick: n,
659
- role: i,
660
- "aria-label": `${l} icon`,
661
- style: s ? { color: s } : void 0,
662
- children: /* @__PURE__ */ r.jsx("use", { href: `${o}/icons/sprites.svg#${l}` })
16
+ className: `icon ${i === "L" ? "icon--l" : "icon--s"} ${l} ${r ? `icon--${r}` : ""}`.trim(),
17
+ onClick: a,
18
+ role: r,
19
+ "aria-label": `${t} icon`,
20
+ style: n ? { color: n } : void 0,
21
+ children: /* @__PURE__ */ e("use", { href: `${s}/icons/sprites.svg#${t}` })
663
22
  }
664
23
  );
665
- }, yr = {
24
+ }, M = {
666
25
  info: "Info",
667
26
  success: "Done",
668
27
  warning: "Warning",
669
28
  error: "Error"
670
- }, Nr = ({
671
- size: l = "L",
672
- type: u = "info",
673
- title: d = "Notification Title",
674
- children: n = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Blandit amet diam neque bibendum. Quisque in praesent sit erat...",
675
- onClose: s,
676
- onClickHere: i,
677
- className: o = ""
678
- }) => /* @__PURE__ */ r.jsxs("div", { className: `alert alert--${l.toLowerCase()} alert--${u} ${o}`.trim(), children: [
679
- /* @__PURE__ */ r.jsxs("div", { className: "alert__header", children: [
680
- /* @__PURE__ */ r.jsx("div", { className: "alert__icon", children: /* @__PURE__ */ r.jsx(
681
- I,
29
+ }, P = ({
30
+ size: t = "L",
31
+ type: i = "info",
32
+ title: l = "Notification Title",
33
+ children: a = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Blandit amet diam neque bibendum. Quisque in praesent sit erat...",
34
+ onClose: n,
35
+ onClickHere: r,
36
+ className: s = ""
37
+ }) => /* @__PURE__ */ _("div", { className: `alert alert--${t.toLowerCase()} alert--${i} ${s}`.trim(), children: [
38
+ /* @__PURE__ */ _("div", { className: "alert__header", children: [
39
+ /* @__PURE__ */ e("div", { className: "alert__icon", children: /* @__PURE__ */ e(
40
+ w,
682
41
  {
683
- name: yr[u],
42
+ name: M[i],
684
43
  size: "L",
685
- "aria-label": `${u} alert`
44
+ "aria-label": `${i} alert`
686
45
  }
687
46
  ) }),
688
- /* @__PURE__ */ r.jsx("div", { className: "alert__title", children: d }),
689
- s && /* @__PURE__ */ r.jsx(
47
+ /* @__PURE__ */ e("div", { className: "alert__title", children: l }),
48
+ n && /* @__PURE__ */ e(
690
49
  "button",
691
50
  {
692
51
  className: "alert__close",
693
- onClick: s,
52
+ onClick: n,
694
53
  "aria-label": "Close alert",
695
- children: /* @__PURE__ */ r.jsx(
696
- I,
54
+ children: /* @__PURE__ */ e(
55
+ w,
697
56
  {
698
57
  name: "Close",
699
58
  size: "S"
@@ -702,264 +61,264 @@ const I = ({
702
61
  }
703
62
  )
704
63
  ] }),
705
- /* @__PURE__ */ r.jsx("div", { className: "alert__content", children: /* @__PURE__ */ r.jsxs("div", { className: "alert__message", children: [
706
- /* @__PURE__ */ r.jsx("span", { children: n }),
707
- i && /* @__PURE__ */ r.jsx(
64
+ /* @__PURE__ */ e("div", { className: "alert__content", children: /* @__PURE__ */ _("div", { className: "alert__message", children: [
65
+ /* @__PURE__ */ e("span", { children: a }),
66
+ r && /* @__PURE__ */ e(
708
67
  "button",
709
68
  {
710
69
  className: "alert__link",
711
- onClick: i,
70
+ onClick: r,
712
71
  "aria-label": "Click for more information",
713
72
  children: "Click here"
714
73
  }
715
74
  )
716
75
  ] }) })
717
76
  ] });
718
- const gr = ({
719
- title: l,
720
- children: u,
721
- defaultExpanded: d = !1,
722
- isHovered: n = !1,
723
- isActive: s = !1,
724
- onToggle: i
77
+ const L = ({
78
+ title: t,
79
+ children: i,
80
+ defaultExpanded: l = !1,
81
+ isHovered: a = !1,
82
+ isActive: n = !1,
83
+ onToggle: r
725
84
  }) => {
726
- const [o, p] = K(d);
727
- ee(() => {
728
- p(d);
729
- }, [d]);
85
+ const [s, o] = C(l);
86
+ D(() => {
87
+ o(l);
88
+ }, [l]);
730
89
  const c = () => {
731
- const v = !o;
732
- p(v), i == null || i(v);
90
+ const m = !s;
91
+ o(m), r == null || r(m);
733
92
  };
734
- return /* @__PURE__ */ r.jsxs(
93
+ return /* @__PURE__ */ _(
735
94
  "div",
736
95
  {
737
96
  className: `
738
97
  section
739
- ${o ? "section--expanded" : ""}
740
- ${n ? "section--hover" : ""}
741
- ${s ? "section--active" : ""}
98
+ ${s ? "section--expanded" : ""}
99
+ ${a ? "section--hover" : ""}
100
+ ${n ? "section--active" : ""}
742
101
  `.trim(),
743
102
  children: [
744
- /* @__PURE__ */ r.jsxs(
103
+ /* @__PURE__ */ _(
745
104
  "button",
746
105
  {
747
106
  className: "section__header",
748
107
  onClick: c,
749
- "aria-expanded": o,
108
+ "aria-expanded": s,
750
109
  children: [
751
- /* @__PURE__ */ r.jsx("div", { className: "section__title", children: l }),
752
- /* @__PURE__ */ r.jsx("div", { className: "section__icon", children: /* @__PURE__ */ r.jsx(
753
- I,
110
+ /* @__PURE__ */ e("div", { className: "section__title", children: t }),
111
+ /* @__PURE__ */ e("div", { className: "section__icon", children: /* @__PURE__ */ e(
112
+ w,
754
113
  {
755
- name: o ? "Chevron Up" : "Chevron Down",
114
+ name: s ? "Chevron Up" : "Chevron Down",
756
115
  size: "S"
757
116
  }
758
117
  ) })
759
118
  ]
760
119
  }
761
120
  ),
762
- o && /* @__PURE__ */ r.jsx("div", { className: "section__content", children: u })
121
+ s && /* @__PURE__ */ e("div", { className: "section__content", children: i })
763
122
  ]
764
123
  }
765
124
  );
766
125
  };
767
- const kr = ({
768
- sections: l,
769
- defaultExpandedIndex: u = -1
126
+ const W = ({
127
+ sections: t,
128
+ defaultExpandedIndex: i = -1
770
129
  }) => {
771
- const [d, n] = K(u), s = (i, o) => {
772
- n(o ? i : -1);
130
+ const [l, a] = C(i), n = (r, s) => {
131
+ a(s ? r : -1);
773
132
  };
774
- return /* @__PURE__ */ r.jsx("div", { className: "accordion-fill", children: l.map((i, o) => /* @__PURE__ */ r.jsx(
775
- gr,
133
+ return /* @__PURE__ */ e("div", { className: "accordion-fill", children: t.map((r, s) => /* @__PURE__ */ e(
134
+ L,
776
135
  {
777
- title: i.title,
778
- defaultExpanded: o === u,
779
- onToggle: (p) => s(o, p),
780
- children: i.content
136
+ title: r.title,
137
+ defaultExpanded: s === i,
138
+ onToggle: (o) => n(s, o),
139
+ children: r.content
781
140
  },
782
- o
141
+ s
783
142
  )) });
784
143
  };
785
- const Cr = ({
786
- variant: l = "primary",
787
- size: u = "medium",
788
- type: d = "button",
789
- disabled: n = !1,
790
- loading: s = !1,
791
- children: i,
792
- onClick: o,
793
- className: p = "",
144
+ const O = ({
145
+ variant: t = "primary",
146
+ size: i = "medium",
147
+ type: l = "button",
148
+ disabled: a = !1,
149
+ loading: n = !1,
150
+ children: r,
151
+ onClick: s,
152
+ className: o = "",
794
153
  fullWidth: c = !1,
795
- ...v
154
+ ...m
796
155
  }) => {
797
- const m = (E) => {
798
- n || s || o == null || o(E);
799
- }, _ = [
156
+ const d = (b) => {
157
+ a || n || s == null || s(b);
158
+ }, h = [
800
159
  "button",
801
- `button--${l}`,
802
- `button--${u}`,
803
- n && "button--disabled",
804
- s && "button--loading",
160
+ `button--${t}`,
161
+ `button--${i}`,
162
+ a && "button--disabled",
163
+ n && "button--loading",
805
164
  c && "button--full-width",
806
- p
165
+ o
807
166
  ].filter(Boolean).join(" ");
808
- return /* @__PURE__ */ r.jsxs(
167
+ return /* @__PURE__ */ _(
809
168
  "button",
810
169
  {
811
- type: d,
812
- className: _,
813
- onClick: m,
814
- disabled: n || s,
815
- "aria-disabled": n || s,
816
- ...v,
170
+ type: l,
171
+ className: h,
172
+ onClick: d,
173
+ disabled: a || n,
174
+ "aria-disabled": a || n,
175
+ ...m,
817
176
  children: [
818
- s && /* @__PURE__ */ r.jsx("span", { className: "button__loading-indicator", "aria-hidden": "true", children: "█" }),
819
- /* @__PURE__ */ r.jsx("span", { className: `button__content ${s ? "button__content--loading" : ""}`, children: i })
177
+ n && /* @__PURE__ */ e("span", { className: "button__loading-indicator", "aria-hidden": "true", children: "█" }),
178
+ /* @__PURE__ */ e("span", { className: `button__content ${n ? "button__content--loading" : ""}`, children: r })
820
179
  ]
821
180
  }
822
181
  );
823
182
  };
824
- const Sr = ({
825
- title: l,
826
- children: u,
827
- footer: d,
828
- variant: n = "default",
829
- className: s = "",
830
- ...i
183
+ const Q = ({
184
+ title: t,
185
+ children: i,
186
+ footer: l,
187
+ variant: a = "default",
188
+ className: n = "",
189
+ ...r
831
190
  }) => {
832
- const o = [
191
+ const s = [
833
192
  "card",
834
- `card--${n}`,
835
- s
193
+ `card--${a}`,
194
+ n
836
195
  ].filter(Boolean).join(" ");
837
- return /* @__PURE__ */ r.jsxs("div", { className: o, ...i, children: [
838
- l && /* @__PURE__ */ r.jsx("div", { className: "card__header", children: /* @__PURE__ */ r.jsx("span", { className: "card__title", children: l }) }),
839
- /* @__PURE__ */ r.jsx("div", { className: "card__body", children: u }),
840
- d && /* @__PURE__ */ r.jsx("div", { className: "card__footer", children: d })
196
+ return /* @__PURE__ */ _("div", { className: s, ...r, children: [
197
+ t && /* @__PURE__ */ e("div", { className: "card__header", children: /* @__PURE__ */ e("span", { className: "card__title", children: t }) }),
198
+ /* @__PURE__ */ e("div", { className: "card__body", children: i }),
199
+ l && /* @__PURE__ */ e("div", { className: "card__footer", children: l })
841
200
  ] });
842
201
  };
843
- const $r = ({
844
- checked: l,
845
- defaultChecked: u,
846
- onChange: d,
847
- label: n,
848
- disabled: s = !1,
849
- name: i,
850
- value: o,
851
- className: p = "",
202
+ const F = ({
203
+ checked: t,
204
+ defaultChecked: i,
205
+ onChange: l,
206
+ label: a,
207
+ disabled: n = !1,
208
+ name: r,
209
+ value: s,
210
+ className: o = "",
852
211
  "aria-label": c,
853
- ...v
212
+ ...m
854
213
  }) => {
855
- const m = (E) => {
856
- s || d == null || d(E.target.checked);
857
- }, _ = [
214
+ const d = (b) => {
215
+ n || l == null || l(b.target.checked);
216
+ }, h = [
858
217
  "checkbox",
859
- s && "checkbox--disabled",
860
- p
218
+ n && "checkbox--disabled",
219
+ o
861
220
  ].filter(Boolean).join(" ");
862
- return /* @__PURE__ */ r.jsxs("label", { className: _, children: [
863
- /* @__PURE__ */ r.jsx(
221
+ return /* @__PURE__ */ _("label", { className: h, children: [
222
+ /* @__PURE__ */ e(
864
223
  "input",
865
224
  {
866
225
  type: "checkbox",
867
226
  className: "checkbox__input",
868
- checked: l,
869
- defaultChecked: u,
870
- onChange: m,
871
- disabled: s,
872
- name: i,
873
- value: o,
874
- "aria-label": c || n,
875
- ...v
227
+ checked: t,
228
+ defaultChecked: i,
229
+ onChange: d,
230
+ disabled: n,
231
+ name: r,
232
+ value: s,
233
+ "aria-label": c || a,
234
+ ...m
876
235
  }
877
236
  ),
878
- /* @__PURE__ */ r.jsx("span", { className: "checkbox__box", "aria-hidden": "true" }),
879
- n && /* @__PURE__ */ r.jsx("span", { className: "checkbox__label", children: n })
237
+ /* @__PURE__ */ e("span", { className: "checkbox__box", "aria-hidden": "true" }),
238
+ a && /* @__PURE__ */ e("span", { className: "checkbox__label", children: a })
880
239
  ] });
881
240
  };
882
- const Tr = ({
883
- prompt: l = "C:\\>",
884
- onCommand: u,
885
- autoFocus: d = !1,
886
- className: n = "",
887
- placeholder: s,
888
- disabled: i = !1
241
+ const G = ({
242
+ prompt: t = "C:\\>",
243
+ onCommand: i,
244
+ autoFocus: l = !1,
245
+ className: a = "",
246
+ placeholder: n,
247
+ disabled: r = !1
889
248
  }) => {
890
- const [o, p] = K(""), c = me(null);
891
- ee(() => {
892
- d && c.current && c.current.focus();
893
- }, [d]);
894
- const v = (_) => {
895
- _.key === "Enter" && o.trim() && !i && (u(o.trim()), p(""));
896
- }, m = () => {
897
- !i && c.current && c.current.focus();
249
+ const [s, o] = C(""), c = S(null);
250
+ D(() => {
251
+ l && c.current && c.current.focus();
252
+ }, [l]);
253
+ const m = (h) => {
254
+ h.key === "Enter" && s.trim() && !r && (i(s.trim()), o(""));
255
+ }, d = () => {
256
+ !r && c.current && c.current.focus();
898
257
  };
899
- return /* @__PURE__ */ r.jsxs(
258
+ return /* @__PURE__ */ _(
900
259
  "div",
901
260
  {
902
- className: `command-prompt ${i ? "command-prompt--disabled" : ""} ${n}`.trim(),
903
- onClick: m,
261
+ className: `command-prompt ${r ? "command-prompt--disabled" : ""} ${a}`.trim(),
262
+ onClick: d,
904
263
  role: "textbox",
905
264
  "aria-label": "Command prompt",
906
265
  children: [
907
- /* @__PURE__ */ r.jsx("span", { className: "command-prompt__prompt", "aria-hidden": "true", children: l }),
908
- /* @__PURE__ */ r.jsx(
266
+ /* @__PURE__ */ e("span", { className: "command-prompt__prompt", "aria-hidden": "true", children: t }),
267
+ /* @__PURE__ */ e(
909
268
  "input",
910
269
  {
911
270
  ref: c,
912
271
  className: "command-prompt__input",
913
- value: o,
914
- onChange: (_) => p(_.target.value),
915
- onKeyDown: v,
916
- autoFocus: d,
272
+ value: s,
273
+ onChange: (h) => o(h.target.value),
274
+ onKeyDown: m,
275
+ autoFocus: l,
917
276
  spellCheck: !1,
918
277
  autoComplete: "off",
919
278
  autoCapitalize: "off",
920
279
  autoCorrect: "off",
921
- placeholder: s,
922
- disabled: i,
280
+ placeholder: n,
281
+ disabled: r,
923
282
  "aria-label": "Command input"
924
283
  }
925
284
  ),
926
- /* @__PURE__ */ r.jsx("span", { className: "command-prompt__cursor", "aria-hidden": "true", children: "█" })
285
+ /* @__PURE__ */ e("span", { className: "command-prompt__cursor", "aria-hidden": "true", children: "█" })
927
286
  ]
928
287
  }
929
288
  );
930
289
  };
931
- const Or = ({
932
- value: l,
933
- max: u = 100,
934
- variant: d = "default",
935
- size: n = "medium",
936
- showLabel: s = !1,
937
- className: i = "",
938
- "aria-label": o,
939
- ...p
290
+ const H = ({
291
+ value: t,
292
+ max: i = 100,
293
+ variant: l = "default",
294
+ size: a = "medium",
295
+ showLabel: n = !1,
296
+ className: r = "",
297
+ "aria-label": s,
298
+ ...o
940
299
  }) => {
941
- const c = Math.min(100, Math.max(0, l / u * 100)), v = Math.round(c / 5), m = 20 - v, _ = [
300
+ const c = Math.min(100, Math.max(0, t / i * 100)), m = Math.round(c / 5), d = 20 - m, h = [
942
301
  "progress",
943
- `progress--${d}`,
944
- `progress--${n}`,
945
- i
302
+ `progress--${l}`,
303
+ `progress--${a}`,
304
+ r
946
305
  ].filter(Boolean).join(" ");
947
- return /* @__PURE__ */ r.jsxs(
306
+ return /* @__PURE__ */ _(
948
307
  "div",
949
308
  {
950
- className: _,
309
+ className: h,
951
310
  role: "progressbar",
952
- "aria-valuenow": l,
311
+ "aria-valuenow": t,
953
312
  "aria-valuemin": 0,
954
- "aria-valuemax": u,
955
- "aria-label": o || `Progress: ${Math.round(c)}%`,
956
- ...p,
313
+ "aria-valuemax": i,
314
+ "aria-label": s || `Progress: ${Math.round(c)}%`,
315
+ ...o,
957
316
  children: [
958
- /* @__PURE__ */ r.jsxs("span", { className: "progress__bar", children: [
959
- /* @__PURE__ */ r.jsx("span", { className: "progress__fill", children: "█".repeat(v) }),
960
- /* @__PURE__ */ r.jsx("span", { className: "progress__empty", children: "░".repeat(m) })
317
+ /* @__PURE__ */ _("span", { className: "progress__bar", children: [
318
+ /* @__PURE__ */ e("span", { className: "progress__fill", children: "█".repeat(m) }),
319
+ /* @__PURE__ */ e("span", { className: "progress__empty", children: "░".repeat(d) })
961
320
  ] }),
962
- s && /* @__PURE__ */ r.jsxs("span", { className: "progress__label", children: [
321
+ n && /* @__PURE__ */ _("span", { className: "progress__label", children: [
963
322
  Math.round(c),
964
323
  "%"
965
324
  ] })
@@ -967,429 +326,429 @@ const Or = ({
967
326
  }
968
327
  );
969
328
  };
970
- const Er = hr(({
971
- variant: l = "default",
972
- className: u = "",
973
- disabled: d,
974
- ...n
975
- }, s) => {
976
- const i = [
329
+ const T = j(({
330
+ variant: t = "default",
331
+ className: i = "",
332
+ disabled: l,
333
+ ...a
334
+ }, n) => {
335
+ const r = [
977
336
  "input",
978
- `input--${l}`,
979
- d && "input--disabled",
980
- u
337
+ `input--${t}`,
338
+ l && "input--disabled",
339
+ i
981
340
  ].filter(Boolean).join(" ");
982
- return /* @__PURE__ */ r.jsx(
341
+ return /* @__PURE__ */ e(
983
342
  "input",
984
343
  {
985
- ref: s,
986
- className: i,
987
- disabled: d,
988
- "aria-invalid": l === "error",
989
- ...n
344
+ ref: n,
345
+ className: r,
346
+ disabled: l,
347
+ "aria-invalid": t === "error",
348
+ ...a
990
349
  }
991
350
  );
992
351
  });
993
- Er.displayName = "Input";
994
- const Pr = ({
995
- size: l = "medium",
996
- title: u = "MS-DOS Terminal",
997
- state: d = "active",
998
- resizable: n = !0,
999
- minimizable: s = !0,
1000
- maximizable: i = !0,
1001
- closeable: o = !0,
1002
- children: p,
352
+ T.displayName = "Input";
353
+ const J = ({
354
+ size: t = "medium",
355
+ title: i = "MS-DOS Terminal",
356
+ state: l = "active",
357
+ resizable: a = !0,
358
+ minimizable: n = !0,
359
+ maximizable: r = !0,
360
+ closeable: s = !0,
361
+ children: o,
1003
362
  onMinimize: c,
1004
- onMaximize: v,
1005
- onClose: m,
1006
- onFocus: _,
1007
- className: E = "",
1008
- autoFocus: O = !1
363
+ onMaximize: m,
364
+ onClose: d,
365
+ onFocus: h,
366
+ className: b = "",
367
+ autoFocus: y = !1
1009
368
  }) => {
1010
- const [D, j] = K(d), [S, N] = K(!1), y = me(null);
1011
- ee(() => {
1012
- O && y.current && y.current.focus();
1013
- }, [O]);
1014
- const $ = () => {
1015
- j("minimized"), c == null || c();
1016
- }, L = () => {
1017
- N(!S), v == null || v();
1018
- }, P = () => {
1019
- m == null || m();
1020
- }, M = () => {
1021
- j("active"), _ == null || _();
1022
- }, re = (F) => {
1023
- F.altKey && F.key === "F4" && o && (F.preventDefault(), P());
369
+ const [k, u] = C(l), [p, f] = C(!1), $ = S(null);
370
+ D(() => {
371
+ y && $.current && $.current.focus();
372
+ }, [y]);
373
+ const N = () => {
374
+ u("minimized"), c == null || c();
375
+ }, x = () => {
376
+ f(!p), m == null || m();
377
+ }, v = () => {
378
+ d == null || d();
379
+ }, B = () => {
380
+ u("active"), h == null || h();
381
+ }, z = (g) => {
382
+ g.altKey && g.key === "F4" && s && (g.preventDefault(), v());
1024
383
  };
1025
- return D === "minimized" ? /* @__PURE__ */ r.jsx(
384
+ return k === "minimized" ? /* @__PURE__ */ e(
1026
385
  "div",
1027
386
  {
1028
- className: `terminal terminal--minimized ${E}`.trim(),
1029
- onClick: M,
387
+ className: `terminal terminal--minimized ${b}`.trim(),
388
+ onClick: B,
1030
389
  role: "button",
1031
390
  tabIndex: 0,
1032
- "aria-label": `Restore ${u} window`,
1033
- onKeyDown: (F) => F.key === "Enter" && M(),
1034
- children: /* @__PURE__ */ r.jsxs("div", { className: "terminal__taskbar-item", children: [
1035
- /* @__PURE__ */ r.jsx(I, { name: "App", size: "S" }),
1036
- /* @__PURE__ */ r.jsx("span", { className: "terminal__taskbar-title", children: u })
391
+ "aria-label": `Restore ${i} window`,
392
+ onKeyDown: (g) => g.key === "Enter" && B(),
393
+ children: /* @__PURE__ */ _("div", { className: "terminal__taskbar-item", children: [
394
+ /* @__PURE__ */ e(w, { name: "App", size: "S" }),
395
+ /* @__PURE__ */ e("span", { className: "terminal__taskbar-title", children: i })
1037
396
  ] })
1038
397
  }
1039
- ) : /* @__PURE__ */ r.jsxs(
398
+ ) : /* @__PURE__ */ _(
1040
399
  "div",
1041
400
  {
1042
- ref: y,
1043
- className: `terminal terminal--${l} terminal--${D} ${S ? "terminal--maximized" : ""} ${E}`.trim(),
401
+ ref: $,
402
+ className: `terminal terminal--${t} terminal--${k} ${p ? "terminal--maximized" : ""} ${b}`.trim(),
1044
403
  tabIndex: 0,
1045
404
  role: "dialog",
1046
- "aria-label": `${u} terminal window`,
1047
- onFocus: M,
1048
- onKeyDown: re,
405
+ "aria-label": `${i} terminal window`,
406
+ onFocus: B,
407
+ onKeyDown: z,
1049
408
  children: [
1050
- /* @__PURE__ */ r.jsxs("div", { className: "terminal__title-bar", children: [
1051
- /* @__PURE__ */ r.jsxs("div", { className: "terminal__title", children: [
1052
- /* @__PURE__ */ r.jsx(I, { name: "App", size: "S", "aria-hidden": "true" }),
1053
- /* @__PURE__ */ r.jsx("span", { className: "terminal__title-text", children: u })
409
+ /* @__PURE__ */ _("div", { className: "terminal__title-bar", children: [
410
+ /* @__PURE__ */ _("div", { className: "terminal__title", children: [
411
+ /* @__PURE__ */ e(w, { name: "App", size: "S", "aria-hidden": "true" }),
412
+ /* @__PURE__ */ e("span", { className: "terminal__title-text", children: i })
1054
413
  ] }),
1055
- /* @__PURE__ */ r.jsxs("div", { className: "terminal__controls", children: [
1056
- s && /* @__PURE__ */ r.jsx(
414
+ /* @__PURE__ */ _("div", { className: "terminal__controls", children: [
415
+ n && /* @__PURE__ */ e(
1057
416
  "button",
1058
417
  {
1059
418
  className: "terminal__control terminal__control--minimize",
1060
- onClick: $,
419
+ onClick: N,
1061
420
  "aria-label": "Minimize window",
1062
421
  title: "Minimize",
1063
- children: /* @__PURE__ */ r.jsx(I, { name: "Cancel", size: "S" })
422
+ children: /* @__PURE__ */ e(w, { name: "Cancel", size: "S" })
1064
423
  }
1065
424
  ),
1066
- i && /* @__PURE__ */ r.jsx(
425
+ r && /* @__PURE__ */ e(
1067
426
  "button",
1068
427
  {
1069
428
  className: "terminal__control terminal__control--maximize",
1070
- onClick: L,
1071
- "aria-label": S ? "Restore window" : "Maximize window",
1072
- title: S ? "Restore" : "Maximize",
1073
- children: /* @__PURE__ */ r.jsx(I, { name: S ? "Fullscreen" : "Add", size: "S" })
429
+ onClick: x,
430
+ "aria-label": p ? "Restore window" : "Maximize window",
431
+ title: p ? "Restore" : "Maximize",
432
+ children: /* @__PURE__ */ e(w, { name: p ? "Fullscreen" : "Add", size: "S" })
1074
433
  }
1075
434
  ),
1076
- o && /* @__PURE__ */ r.jsx(
435
+ s && /* @__PURE__ */ e(
1077
436
  "button",
1078
437
  {
1079
438
  className: "terminal__control terminal__control--close",
1080
- onClick: P,
439
+ onClick: v,
1081
440
  "aria-label": "Close window",
1082
441
  title: "Close",
1083
- children: /* @__PURE__ */ r.jsx(I, { name: "Close", size: "S" })
442
+ children: /* @__PURE__ */ e(w, { name: "Close", size: "S" })
1084
443
  }
1085
444
  )
1086
445
  ] })
1087
446
  ] }),
1088
- /* @__PURE__ */ r.jsx("div", { className: "terminal__content", role: "main", children: p || /* @__PURE__ */ r.jsx("div", { className: "terminal__default-content", children: /* @__PURE__ */ r.jsxs("div", { className: "terminal__prompt", children: [
1089
- /* @__PURE__ */ r.jsx("span", { className: "terminal__path", children: "C:\\\\>" }),
1090
- /* @__PURE__ */ r.jsx("span", { className: "terminal__cursor", children: "█" })
447
+ /* @__PURE__ */ e("div", { className: "terminal__content", role: "main", children: o || /* @__PURE__ */ e("div", { className: "terminal__default-content", children: /* @__PURE__ */ _("div", { className: "terminal__prompt", children: [
448
+ /* @__PURE__ */ e("span", { className: "terminal__path", children: "C:\\\\>" }),
449
+ /* @__PURE__ */ e("span", { className: "terminal__cursor", children: "█" })
1091
450
  ] }) }) }),
1092
- n && /* @__PURE__ */ r.jsx("div", { className: "terminal__resize-handle", "aria-hidden": "true" })
451
+ a && /* @__PURE__ */ e("div", { className: "terminal__resize-handle", "aria-hidden": "true" })
1093
452
  ]
1094
453
  }
1095
454
  );
1096
455
  };
1097
- const Dr = ({
1098
- tabs: l,
1099
- variant: u = "underline",
1100
- size: d = "medium",
1101
- activeTab: n,
1102
- defaultActiveTab: s,
1103
- onTabChange: i,
1104
- className: o = "",
1105
- ...p
456
+ const X = ({
457
+ tabs: t,
458
+ variant: i = "underline",
459
+ size: l = "medium",
460
+ activeTab: a,
461
+ defaultActiveTab: n,
462
+ onTabChange: r,
463
+ className: s = "",
464
+ ...o
1106
465
  }) => {
1107
- var D;
1108
- const [c, v] = K(
1109
- s || ((D = l[0]) == null ? void 0 : D.id) || ""
1110
- ), m = n !== void 0 ? n : c, _ = Be((j, S) => {
1111
- S || (n === void 0 && v(j), i == null || i(j));
1112
- }, [n, i]), E = Be((j, S) => {
1113
- var L;
1114
- const N = l.filter((P) => !P.disabled), y = N.findIndex((P) => P.id === l[S].id);
1115
- let $ = null;
1116
- switch (j.key) {
466
+ var k;
467
+ const [c, m] = C(
468
+ n || ((k = t[0]) == null ? void 0 : k.id) || ""
469
+ ), d = a !== void 0 ? a : c, h = I((u, p) => {
470
+ p || (a === void 0 && m(u), r == null || r(u));
471
+ }, [a, r]), b = I((u, p) => {
472
+ var x;
473
+ const f = t.filter((v) => !v.disabled), $ = f.findIndex((v) => v.id === t[p].id);
474
+ let N = null;
475
+ switch (u.key) {
1117
476
  case "ArrowLeft":
1118
477
  case "ArrowUp":
1119
- j.preventDefault(), $ = y > 0 ? y - 1 : N.length - 1;
478
+ u.preventDefault(), N = $ > 0 ? $ - 1 : f.length - 1;
1120
479
  break;
1121
480
  case "ArrowRight":
1122
481
  case "ArrowDown":
1123
- j.preventDefault(), $ = y < N.length - 1 ? y + 1 : 0;
482
+ u.preventDefault(), N = $ < f.length - 1 ? $ + 1 : 0;
1124
483
  break;
1125
484
  case "Home":
1126
- j.preventDefault(), $ = 0;
485
+ u.preventDefault(), N = 0;
1127
486
  break;
1128
487
  case "End":
1129
- j.preventDefault(), $ = N.length - 1;
488
+ u.preventDefault(), N = f.length - 1;
1130
489
  break;
1131
490
  }
1132
- if ($ !== null) {
1133
- const P = N[$];
1134
- _(P.id, P.disabled), (L = document.querySelectorAll('[role="tab"]:not([disabled])')[$]) == null || L.focus();
491
+ if (N !== null) {
492
+ const v = f[N];
493
+ h(v.id, v.disabled), (x = document.querySelectorAll('[role="tab"]:not([disabled])')[N]) == null || x.focus();
1135
494
  }
1136
- }, [l, _]), O = [
495
+ }, [t, h]), y = [
1137
496
  "tabs",
1138
- `tabs--${u}`,
1139
- `tabs--${d}`,
1140
- o
497
+ `tabs--${i}`,
498
+ `tabs--${l}`,
499
+ s
1141
500
  ].filter(Boolean).join(" ");
1142
- return /* @__PURE__ */ r.jsx("div", { className: O, role: "tablist", ...p, children: l.map((j, S) => {
1143
- const N = m === j.id, y = [
501
+ return /* @__PURE__ */ e("div", { className: y, role: "tablist", ...o, children: t.map((u, p) => {
502
+ const f = d === u.id, $ = [
1144
503
  "tabs__tab",
1145
- N && "tabs__tab--active",
1146
- j.disabled && "tabs__tab--disabled"
504
+ f && "tabs__tab--active",
505
+ u.disabled && "tabs__tab--disabled"
1147
506
  ].filter(Boolean).join(" ");
1148
- return /* @__PURE__ */ r.jsx(
507
+ return /* @__PURE__ */ e(
1149
508
  "button",
1150
509
  {
1151
510
  role: "tab",
1152
- id: `tab-${j.id}`,
1153
- "aria-selected": N,
1154
- tabIndex: N ? 0 : -1,
1155
- disabled: j.disabled,
1156
- className: y,
1157
- onClick: () => _(j.id, j.disabled),
1158
- onKeyDown: ($) => E($, S),
1159
- children: j.label
511
+ id: `tab-${u.id}`,
512
+ "aria-selected": f,
513
+ tabIndex: f ? 0 : -1,
514
+ disabled: u.disabled,
515
+ className: $,
516
+ onClick: () => h(u.id, u.disabled),
517
+ onKeyDown: (N) => b(N, p),
518
+ children: u.label
1160
519
  },
1161
- j.id
520
+ u.id
1162
521
  );
1163
522
  }) });
1164
523
  };
1165
- const Ar = ({
1166
- variant: l = "default",
1167
- size: u = "medium",
1168
- dot: d = !1,
1169
- children: n,
1170
- className: s = "",
1171
- ...i
524
+ const Y = ({
525
+ variant: t = "default",
526
+ size: i = "medium",
527
+ dot: l = !1,
528
+ children: a,
529
+ className: n = "",
530
+ ...r
1172
531
  }) => {
1173
- const o = [
532
+ const s = [
1174
533
  "badge",
1175
- `badge--${l}`,
1176
- `badge--${u}`,
1177
- d && "badge--with-dot",
1178
- s
534
+ `badge--${t}`,
535
+ `badge--${i}`,
536
+ l && "badge--with-dot",
537
+ n
1179
538
  ].filter(Boolean).join(" ");
1180
- return /* @__PURE__ */ r.jsxs("span", { className: o, ...i, children: [
1181
- d && /* @__PURE__ */ r.jsx("span", { className: "badge__dot", "aria-hidden": "true" }),
1182
- /* @__PURE__ */ r.jsx("span", { className: "badge__content", children: n })
539
+ return /* @__PURE__ */ _("span", { className: s, ...r, children: [
540
+ l && /* @__PURE__ */ e("span", { className: "badge__dot", "aria-hidden": "true" }),
541
+ /* @__PURE__ */ e("span", { className: "badge__content", children: a })
1183
542
  ] });
1184
543
  };
1185
- const Ir = ({
1186
- checked: l,
1187
- defaultChecked: u = !1,
1188
- onCheckedChange: d,
1189
- disabled: n = !1,
1190
- name: s,
1191
- value: i,
1192
- className: o = "",
1193
- ...p
544
+ const Z = ({
545
+ checked: t,
546
+ defaultChecked: i = !1,
547
+ onCheckedChange: l,
548
+ disabled: a = !1,
549
+ name: n,
550
+ value: r,
551
+ className: s = "",
552
+ ...o
1194
553
  }) => {
1195
- const [c, v] = fe.useState(u), m = l !== void 0, _ = m ? l : c, E = () => {
1196
- if (n)
554
+ const [c, m] = E.useState(i), d = t !== void 0, h = d ? t : c, b = () => {
555
+ if (a)
1197
556
  return;
1198
- const j = !_;
1199
- m || v(j), d == null || d(j);
1200
- }, O = (j) => {
1201
- (j.key === " " || j.key === "Enter") && (j.preventDefault(), E());
1202
- }, D = [
557
+ const u = !h;
558
+ d || m(u), l == null || l(u);
559
+ }, y = (u) => {
560
+ (u.key === " " || u.key === "Enter") && (u.preventDefault(), b());
561
+ }, k = [
1203
562
  "switch",
1204
- _ && "switch--checked",
1205
- n && "switch--disabled",
1206
- o
563
+ h && "switch--checked",
564
+ a && "switch--disabled",
565
+ s
1207
566
  ].filter(Boolean).join(" ");
1208
- return /* @__PURE__ */ r.jsxs(
567
+ return /* @__PURE__ */ _(
1209
568
  "button",
1210
569
  {
1211
570
  type: "button",
1212
571
  role: "switch",
1213
- "aria-checked": _,
1214
- "aria-disabled": n,
1215
- className: D,
1216
- onClick: E,
1217
- onKeyDown: O,
1218
- disabled: n,
1219
- ...p,
572
+ "aria-checked": h,
573
+ "aria-disabled": a,
574
+ className: k,
575
+ onClick: b,
576
+ onKeyDown: y,
577
+ disabled: a,
578
+ ...o,
1220
579
  children: [
1221
- /* @__PURE__ */ r.jsx("span", { className: "switch__track", children: /* @__PURE__ */ r.jsx("span", { className: "switch__thumb" }) }),
1222
- s && /* @__PURE__ */ r.jsx(
580
+ /* @__PURE__ */ e("span", { className: "switch__track", children: /* @__PURE__ */ e("span", { className: "switch__thumb" }) }),
581
+ n && /* @__PURE__ */ e(
1223
582
  "input",
1224
583
  {
1225
584
  type: "hidden",
1226
- name: s,
1227
- value: _ ? i || "on" : ""
585
+ name: n,
586
+ value: h ? r || "on" : ""
1228
587
  }
1229
588
  )
1230
589
  ]
1231
590
  }
1232
591
  );
1233
592
  };
1234
- const Fr = ({
1235
- trail: l = [],
1236
- currentLabel: u,
1237
- showBackArrow: d = !0,
1238
- separator: n = "/",
1239
- linkComponent: s,
1240
- className: i = ""
593
+ const ee = ({
594
+ trail: t = [],
595
+ currentLabel: i,
596
+ showBackArrow: l = !0,
597
+ separator: a = "/",
598
+ linkComponent: n,
599
+ className: r = ""
1241
600
  }) => {
1242
- const o = [
601
+ const s = [
1243
602
  "breadcrumb",
1244
- i
1245
- ].filter(Boolean).join(" "), p = (c, v) => {
1246
- const m = /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1247
- d && v && /* @__PURE__ */ r.jsx("span", { className: "breadcrumb__back-arrow", "aria-hidden": "true", children: "<" }),
1248
- /* @__PURE__ */ r.jsx("span", { children: c.label })
603
+ r
604
+ ].filter(Boolean).join(" "), o = (c, m) => {
605
+ const d = /* @__PURE__ */ _(A, { children: [
606
+ l && m && /* @__PURE__ */ e("span", { className: "breadcrumb__back-arrow", "aria-hidden": "true", children: "<" }),
607
+ /* @__PURE__ */ e("span", { children: c.label })
1249
608
  ] });
1250
- return s ? /* @__PURE__ */ r.jsx(s, { href: c.href, className: "breadcrumb__link", children: m }) : /* @__PURE__ */ r.jsx("a", { href: c.href, className: "breadcrumb__link", children: m });
609
+ return n ? /* @__PURE__ */ e(n, { href: c.href, className: "breadcrumb__link", children: d }) : /* @__PURE__ */ e("a", { href: c.href, className: "breadcrumb__link", children: d });
1251
610
  };
1252
- return /* @__PURE__ */ r.jsx("nav", { "aria-label": "Breadcrumb", className: o, children: /* @__PURE__ */ r.jsxs("ol", { className: "breadcrumb__list", children: [
1253
- l.map((c, v) => {
1254
- const m = v === l.length - 1, _ = v < l.length - 1;
1255
- return /* @__PURE__ */ r.jsxs("li", { className: "breadcrumb__item", children: [
1256
- p(c, m),
1257
- _ && /* @__PURE__ */ r.jsx("span", { className: "breadcrumb__separator", "aria-hidden": "true", children: n })
611
+ return /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: s, children: /* @__PURE__ */ _("ol", { className: "breadcrumb__list", children: [
612
+ t.map((c, m) => {
613
+ const d = m === t.length - 1, h = m < t.length - 1;
614
+ return /* @__PURE__ */ _("li", { className: "breadcrumb__item", children: [
615
+ o(c, d),
616
+ h && /* @__PURE__ */ e("span", { className: "breadcrumb__separator", "aria-hidden": "true", children: a })
1258
617
  ] }, `${c.href}-${c.label}`);
1259
618
  }),
1260
- l.length > 0 && /* @__PURE__ */ r.jsx("li", { className: "breadcrumb__item", children: /* @__PURE__ */ r.jsx("span", { className: "breadcrumb__separator", "aria-hidden": "true", children: n }) }),
1261
- /* @__PURE__ */ r.jsx("li", { className: "breadcrumb__item breadcrumb__item--current", "aria-current": "page", children: /* @__PURE__ */ r.jsx("span", { className: "breadcrumb__current", children: u }) })
619
+ t.length > 0 && /* @__PURE__ */ e("li", { className: "breadcrumb__item", children: /* @__PURE__ */ e("span", { className: "breadcrumb__separator", "aria-hidden": "true", children: a }) }),
620
+ /* @__PURE__ */ e("li", { className: "breadcrumb__item breadcrumb__item--current", "aria-current": "page", children: /* @__PURE__ */ e("span", { className: "breadcrumb__current", children: i }) })
1262
621
  ] }) });
1263
622
  };
1264
- const Br = ({
1265
- scanlines: l = !0,
1266
- glow: u = !0,
1267
- flicker: d = !0,
1268
- intensity: n = 1,
1269
- className: s = ""
623
+ const ae = ({
624
+ scanlines: t = !0,
625
+ glow: i = !0,
626
+ flicker: l = !0,
627
+ intensity: a = 1,
628
+ className: n = ""
1270
629
  }) => {
1271
- const i = [
630
+ const r = [
1272
631
  "retro-effects",
1273
- s
1274
- ].filter(Boolean).join(" "), o = { "--retro-intensity": n };
1275
- return /* @__PURE__ */ r.jsxs("div", { className: i, style: o, "aria-hidden": "true", children: [
1276
- l && /* @__PURE__ */ r.jsx("div", { className: "retro-effects__scanlines" }),
1277
- u && /* @__PURE__ */ r.jsx("div", { className: "retro-effects__glow" }),
1278
- d && /* @__PURE__ */ r.jsx("div", { className: "retro-effects__flicker" })
632
+ n
633
+ ].filter(Boolean).join(" ");
634
+ return /* @__PURE__ */ _("div", { className: r, style: { "--retro-intensity": a }, "aria-hidden": "true", children: [
635
+ t && /* @__PURE__ */ e("div", { className: "retro-effects__scanlines" }),
636
+ i && /* @__PURE__ */ e("div", { className: "retro-effects__glow" }),
637
+ l && /* @__PURE__ */ e("div", { className: "retro-effects__flicker" })
1279
638
  ] });
1280
639
  };
1281
- const Wr = ({
1282
- shape: l = "circle",
1283
- variant: u = "default",
1284
- isActive: d = !1,
1285
- label: n,
1286
- labelPosition: s = "left",
1287
- size: i = "medium",
1288
- className: o = "",
1289
- onClick: p,
640
+ const ne = ({
641
+ shape: t = "circle",
642
+ variant: i = "default",
643
+ isActive: l = !1,
644
+ label: a,
645
+ labelPosition: n = "left",
646
+ size: r = "medium",
647
+ className: s = "",
648
+ onClick: o,
1290
649
  ...c
1291
650
  }) => {
1292
- const v = [
651
+ const m = [
1293
652
  "timeline-node",
1294
- `timeline-node--${l}`,
1295
- `timeline-node--${u}`,
653
+ `timeline-node--${t}`,
1296
654
  `timeline-node--${i}`,
1297
- `timeline-node--label-${s}`,
1298
- d && "timeline-node--active",
1299
- p && "timeline-node--interactive",
1300
- o
1301
- ].filter(Boolean).join(" "), m = () => {
1302
- p && p();
1303
- }, _ = (E) => {
1304
- p && (E.key === "Enter" || E.key === " ") && (E.preventDefault(), p());
1305
- };
1306
- return /* @__PURE__ */ r.jsxs(
655
+ `timeline-node--${r}`,
656
+ `timeline-node--label-${n}`,
657
+ l && "timeline-node--active",
658
+ o && "timeline-node--interactive",
659
+ s
660
+ ].filter(Boolean).join(" ");
661
+ return /* @__PURE__ */ _(
1307
662
  "div",
1308
663
  {
1309
- className: v,
1310
- onClick: m,
1311
- onKeyDown: _,
1312
- role: p ? "button" : void 0,
1313
- tabIndex: p ? 0 : void 0,
1314
- "aria-pressed": p ? d : void 0,
664
+ className: m,
665
+ onClick: () => {
666
+ o && o();
667
+ },
668
+ onKeyDown: (b) => {
669
+ o && (b.key === "Enter" || b.key === " ") && (b.preventDefault(), o());
670
+ },
671
+ role: o ? "button" : void 0,
672
+ tabIndex: o ? 0 : void 0,
673
+ "aria-pressed": o ? l : void 0,
1315
674
  ...c,
1316
675
  children: [
1317
- n && s === "left" && /* @__PURE__ */ r.jsx("span", { className: "timeline-node__label timeline-node__label--left", children: n }),
1318
- n && s === "top" && /* @__PURE__ */ r.jsx("span", { className: "timeline-node__label timeline-node__label--top", children: n }),
1319
- /* @__PURE__ */ r.jsx("span", { className: "timeline-node__marker", "aria-hidden": "true" }),
1320
- n && s === "right" && /* @__PURE__ */ r.jsx("span", { className: "timeline-node__label timeline-node__label--right", children: n }),
1321
- n && s === "bottom" && /* @__PURE__ */ r.jsx("span", { className: "timeline-node__label timeline-node__label--bottom", children: n })
676
+ a && n === "left" && /* @__PURE__ */ e("span", { className: "timeline-node__label timeline-node__label--left", children: a }),
677
+ a && n === "top" && /* @__PURE__ */ e("span", { className: "timeline-node__label timeline-node__label--top", children: a }),
678
+ /* @__PURE__ */ e("span", { className: "timeline-node__marker", "aria-hidden": "true" }),
679
+ a && n === "right" && /* @__PURE__ */ e("span", { className: "timeline-node__label timeline-node__label--right", children: a }),
680
+ a && n === "bottom" && /* @__PURE__ */ e("span", { className: "timeline-node__label timeline-node__label--bottom", children: a })
1322
681
  ]
1323
682
  }
1324
683
  );
1325
684
  };
1326
- const Lr = ({
1327
- isOpen: l,
1328
- onClose: u,
1329
- title: d,
1330
- children: n,
1331
- footer: s,
1332
- className: i = ""
685
+ const te = ({
686
+ isOpen: t,
687
+ onClose: i,
688
+ title: l,
689
+ children: a,
690
+ footer: n,
691
+ className: r = ""
1333
692
  }) => {
1334
- const o = me(null), p = vr();
1335
- ee(() => {
1336
- const m = o.current;
1337
- m && (l && !m.open ? m.showModal() : !l && m.open && m.close());
1338
- }, [l]);
693
+ const s = S(null), o = K();
694
+ D(() => {
695
+ const d = s.current;
696
+ d && (t && !d.open ? d.showModal() : !t && d.open && d.close());
697
+ }, [t]);
1339
698
  const c = () => {
1340
- u();
1341
- }, v = (m) => {
1342
- m.target === o.current && u();
699
+ i();
700
+ }, m = (d) => {
701
+ d.target === s.current && i();
1343
702
  };
1344
- return br(
1345
- /* @__PURE__ */ r.jsx(
703
+ return R(
704
+ /* @__PURE__ */ e(
1346
705
  "dialog",
1347
706
  {
1348
- ref: o,
1349
- className: `modal ${i}`.trim(),
1350
- "aria-labelledby": p,
707
+ ref: s,
708
+ className: `modal ${r}`.trim(),
709
+ "aria-labelledby": o,
1351
710
  onClose: c,
1352
- onClick: v,
1353
- children: /* @__PURE__ */ r.jsxs("div", { className: "modal__container", children: [
1354
- /* @__PURE__ */ r.jsxs("header", { className: "modal__header", children: [
1355
- /* @__PURE__ */ r.jsx("h2", { id: p, className: "modal__title", children: d }),
1356
- /* @__PURE__ */ r.jsx(
711
+ onClick: m,
712
+ children: /* @__PURE__ */ _("div", { className: "modal__container", children: [
713
+ /* @__PURE__ */ _("header", { className: "modal__header", children: [
714
+ /* @__PURE__ */ e("h2", { id: o, className: "modal__title", children: l }),
715
+ /* @__PURE__ */ e(
1357
716
  "button",
1358
717
  {
1359
718
  type: "button",
1360
719
  className: "modal__close",
1361
- onClick: u,
720
+ onClick: i,
1362
721
  "aria-label": "Close modal",
1363
- children: /* @__PURE__ */ r.jsx(I, { name: "Close", size: "S" })
722
+ children: /* @__PURE__ */ e(w, { name: "Close", size: "S" })
1364
723
  }
1365
724
  )
1366
725
  ] }),
1367
- /* @__PURE__ */ r.jsx("div", { className: "modal__body", children: n }),
1368
- s && /* @__PURE__ */ r.jsx("footer", { className: "modal__footer", children: s })
726
+ /* @__PURE__ */ e("div", { className: "modal__body", children: a }),
727
+ n && /* @__PURE__ */ e("footer", { className: "modal__footer", children: n })
1369
728
  ] })
1370
729
  }
1371
730
  ),
1372
731
  document.body
1373
732
  );
1374
- }, Mr = "0.3.0";
733
+ }, re = "0.3.0";
1375
734
  export {
1376
- kr as AccordionFill,
1377
- Nr as Alert,
1378
- Ar as Badge,
1379
- Fr as Breadcrumb,
1380
- Cr as Button,
1381
- Sr as Card,
1382
- $r as Checkbox,
1383
- Tr as CommandPrompt,
1384
- I as Icon,
1385
- Er as Input,
1386
- Lr as Modal,
1387
- Or as Progress,
1388
- Br as RetroEffects,
1389
- gr as Section,
1390
- Ir as Switch,
1391
- Dr as Tabs,
1392
- Pr as Terminal,
1393
- Wr as TimelineNode,
1394
- Mr as version
735
+ W as AccordionFill,
736
+ P as Alert,
737
+ Y as Badge,
738
+ ee as Breadcrumb,
739
+ O as Button,
740
+ Q as Card,
741
+ F as Checkbox,
742
+ G as CommandPrompt,
743
+ w as Icon,
744
+ T as Input,
745
+ te as Modal,
746
+ H as Progress,
747
+ ae as RetroEffects,
748
+ L as Section,
749
+ Z as Switch,
750
+ X as Tabs,
751
+ J as Terminal,
752
+ ne as TimelineNode,
753
+ re as version
1395
754
  };