@minimalstuff/ui 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +44 -0
- package/dist/index.es.js +185 -179
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +8 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import y from "@emotion/styled";
|
|
2
|
-
import P, { useEffect as Q, createContext as ze, useContext as
|
|
3
|
-
import { keyframes as ue, useTheme as
|
|
4
|
-
import { useHotkeys as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { createPortal as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
2
|
+
import P, { useEffect as Q, createContext as ze, useContext as Ve, useState as Y, useRef as Ue, Fragment as He } from "react";
|
|
3
|
+
import { keyframes as ue, useTheme as Ge, ThemeProvider as Br, css as J, Global as Mr } from "@emotion/react";
|
|
4
|
+
import { useHotkeys as Nr } from "react-hotkeys-hook";
|
|
5
|
+
import zr from "hex-rgb";
|
|
6
|
+
import Ke from "tinycolor2";
|
|
7
|
+
import { createPortal as Vr } from "react-dom";
|
|
8
|
+
import Ur from "react-toggle";
|
|
9
|
+
import Hr from "react-select";
|
|
10
10
|
const Nt = y.button(
|
|
11
11
|
({ theme: r, danger: t = !1, secondary: n = !1 }) => {
|
|
12
12
|
const a = t ? r.colors.red.default : r.colors.blue.default, s = t ? r.colors.red.dark : r.colors.blue.dark, c = n ? a : r.colors.white, m = n ? "transparent" : a;
|
|
@@ -43,7 +43,7 @@ var ce = { exports: {} }, z = {};
|
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
45
|
var Le;
|
|
46
|
-
function
|
|
46
|
+
function Gr() {
|
|
47
47
|
if (Le) return z;
|
|
48
48
|
Le = 1;
|
|
49
49
|
var r = P, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, s = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
@@ -67,13 +67,13 @@ var V = {};
|
|
|
67
67
|
* LICENSE file in the root directory of this source tree.
|
|
68
68
|
*/
|
|
69
69
|
var Ye;
|
|
70
|
-
function
|
|
70
|
+
function Kr() {
|
|
71
71
|
return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && function() {
|
|
72
|
-
var r = P, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), h = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), pe = Symbol.iterator,
|
|
73
|
-
function
|
|
72
|
+
var r = P, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), h = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), pe = Symbol.iterator, or = "@@iterator";
|
|
73
|
+
function nr(e) {
|
|
74
74
|
if (e === null || typeof e != "object")
|
|
75
75
|
return null;
|
|
76
|
-
var o = pe && e[pe] || e[
|
|
76
|
+
var o = pe && e[pe] || e[or];
|
|
77
77
|
return typeof o == "function" ? o : null;
|
|
78
78
|
}
|
|
79
79
|
var $ = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -81,10 +81,10 @@ function Gr() {
|
|
|
81
81
|
{
|
|
82
82
|
for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), l = 1; l < o; l++)
|
|
83
83
|
i[l - 1] = arguments[l];
|
|
84
|
-
|
|
84
|
+
ar("error", e, i);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function ar(e, o, i) {
|
|
88
88
|
{
|
|
89
89
|
var l = $.ReactDebugCurrentFrame, b = l.getStackAddendum();
|
|
90
90
|
b !== "" && (o += "%s", i = i.concat([b]));
|
|
@@ -94,16 +94,16 @@ function Gr() {
|
|
|
94
94
|
v.unshift("Warning: " + o), Function.prototype.apply.call(console[e], console, v);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
var
|
|
97
|
+
var ir = !1, lr = !1, sr = !1, cr = !1, ur = !1, be;
|
|
98
98
|
be = Symbol.for("react.module.reference");
|
|
99
|
-
function
|
|
100
|
-
return !!(typeof e == "string" || typeof e == "function" || e === a || e === c ||
|
|
99
|
+
function dr(e) {
|
|
100
|
+
return !!(typeof e == "string" || typeof e == "function" || e === a || e === c || ur || e === s || e === S || e === p || cr || e === D || ir || lr || sr || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === T || e.$$typeof === m || e.$$typeof === h || e.$$typeof === g || // This needs to include all possible module reference object
|
|
101
101
|
// types supported by any Flight configuration anywhere since
|
|
102
102
|
// we don't know which Flight build this will end up being used
|
|
103
103
|
// with.
|
|
104
104
|
e.$$typeof === be || e.getModuleId !== void 0));
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function fr(e, o, i) {
|
|
107
107
|
var l = e.displayName;
|
|
108
108
|
if (l)
|
|
109
109
|
return l;
|
|
@@ -143,7 +143,7 @@ function Gr() {
|
|
|
143
143
|
var i = e;
|
|
144
144
|
return ge(i._context) + ".Provider";
|
|
145
145
|
case g:
|
|
146
|
-
return
|
|
146
|
+
return fr(e, e.render, "ForwardRef");
|
|
147
147
|
case T:
|
|
148
148
|
var l = e.displayName || null;
|
|
149
149
|
return l !== null ? l : j(e.type) || "Memo";
|
|
@@ -162,7 +162,7 @@ function Gr() {
|
|
|
162
162
|
function _e() {
|
|
163
163
|
}
|
|
164
164
|
_e.__reactDisabledLog = !0;
|
|
165
|
-
function
|
|
165
|
+
function pr() {
|
|
166
166
|
{
|
|
167
167
|
if (B === 0) {
|
|
168
168
|
ve = console.log, me = console.info, he = console.warn, ye = console.error, xe = console.group, we = console.groupCollapsed, Ee = console.groupEnd;
|
|
@@ -185,7 +185,7 @@ function Gr() {
|
|
|
185
185
|
B++;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function br() {
|
|
189
189
|
{
|
|
190
190
|
if (B--, B === 0) {
|
|
191
191
|
var e = {
|
|
@@ -236,8 +236,8 @@ function Gr() {
|
|
|
236
236
|
}
|
|
237
237
|
var te = !1, H;
|
|
238
238
|
{
|
|
239
|
-
var
|
|
240
|
-
H = new
|
|
239
|
+
var gr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
240
|
+
H = new gr();
|
|
241
241
|
}
|
|
242
242
|
function ke(e, o) {
|
|
243
243
|
if (!e || te)
|
|
@@ -252,7 +252,7 @@ function Gr() {
|
|
|
252
252
|
var b = Error.prepareStackTrace;
|
|
253
253
|
Error.prepareStackTrace = void 0;
|
|
254
254
|
var v;
|
|
255
|
-
v = ee.current, ee.current = null,
|
|
255
|
+
v = ee.current, ee.current = null, pr();
|
|
256
256
|
try {
|
|
257
257
|
if (o) {
|
|
258
258
|
var d = function() {
|
|
@@ -305,15 +305,15 @@ function Gr() {
|
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
} finally {
|
|
308
|
-
te = !1, ee.current = v,
|
|
308
|
+
te = !1, ee.current = v, br(), Error.prepareStackTrace = b;
|
|
309
309
|
}
|
|
310
310
|
var L = e ? e.displayName || e.name : "", A = L ? U(L) : "";
|
|
311
311
|
return typeof e == "function" && H.set(e, A), A;
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function vr(e, o, i) {
|
|
314
314
|
return ke(e, !1);
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function mr(e) {
|
|
317
317
|
var o = e.prototype;
|
|
318
318
|
return !!(o && o.isReactComponent);
|
|
319
319
|
}
|
|
@@ -321,7 +321,7 @@ function Gr() {
|
|
|
321
321
|
if (e == null)
|
|
322
322
|
return "";
|
|
323
323
|
if (typeof e == "function")
|
|
324
|
-
return ke(e,
|
|
324
|
+
return ke(e, mr(e));
|
|
325
325
|
if (typeof e == "string")
|
|
326
326
|
return U(e);
|
|
327
327
|
switch (e) {
|
|
@@ -333,7 +333,7 @@ function Gr() {
|
|
|
333
333
|
if (typeof e == "object")
|
|
334
334
|
switch (e.$$typeof) {
|
|
335
335
|
case g:
|
|
336
|
-
return
|
|
336
|
+
return vr(e.render);
|
|
337
337
|
case T:
|
|
338
338
|
return G(e.type, o, i);
|
|
339
339
|
case E: {
|
|
@@ -354,7 +354,7 @@ function Gr() {
|
|
|
354
354
|
} else
|
|
355
355
|
Se.setExtraStackFrame(null);
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function hr(e, o, i, l, b) {
|
|
358
358
|
{
|
|
359
359
|
var v = Function.call.bind(M);
|
|
360
360
|
for (var d in e)
|
|
@@ -373,17 +373,17 @@ function Gr() {
|
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
var
|
|
376
|
+
var yr = Array.isArray;
|
|
377
377
|
function oe(e) {
|
|
378
|
-
return
|
|
378
|
+
return yr(e);
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function xr(e) {
|
|
381
381
|
{
|
|
382
382
|
var o = typeof Symbol == "function" && Symbol.toStringTag, i = o && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
383
383
|
return i;
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function wr(e) {
|
|
387
387
|
try {
|
|
388
388
|
return Ce(e), !1;
|
|
389
389
|
} catch {
|
|
@@ -394,17 +394,17 @@ function Gr() {
|
|
|
394
394
|
return "" + e;
|
|
395
395
|
}
|
|
396
396
|
function Te(e) {
|
|
397
|
-
if (
|
|
398
|
-
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
397
|
+
if (wr(e))
|
|
398
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", xr(e)), Ce(e);
|
|
399
399
|
}
|
|
400
|
-
var N = $.ReactCurrentOwner,
|
|
400
|
+
var N = $.ReactCurrentOwner, Er = {
|
|
401
401
|
key: !0,
|
|
402
402
|
ref: !0,
|
|
403
403
|
__self: !0,
|
|
404
404
|
__source: !0
|
|
405
405
|
}, je, Oe, ne;
|
|
406
406
|
ne = {};
|
|
407
|
-
function
|
|
407
|
+
function _r(e) {
|
|
408
408
|
if (M.call(e, "ref")) {
|
|
409
409
|
var o = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
410
410
|
if (o && o.isReactWarning)
|
|
@@ -412,7 +412,7 @@ function Gr() {
|
|
|
412
412
|
}
|
|
413
413
|
return e.ref !== void 0;
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function kr(e) {
|
|
416
416
|
if (M.call(e, "key")) {
|
|
417
417
|
var o = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
418
418
|
if (o && o.isReactWarning)
|
|
@@ -420,13 +420,13 @@ function Gr() {
|
|
|
420
420
|
}
|
|
421
421
|
return e.key !== void 0;
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function Rr(e, o) {
|
|
424
424
|
if (typeof e.ref == "string" && N.current && o && N.current.stateNode !== o) {
|
|
425
425
|
var i = j(N.current.type);
|
|
426
426
|
ne[i] || (_('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', j(N.current.type), e.ref), ne[i] = !0);
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function Sr(e, o) {
|
|
430
430
|
{
|
|
431
431
|
var i = function() {
|
|
432
432
|
je || (je = !0, _("%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)", o));
|
|
@@ -437,7 +437,7 @@ function Gr() {
|
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function Cr(e, o) {
|
|
441
441
|
{
|
|
442
442
|
var i = function() {
|
|
443
443
|
Oe || (Oe = !0, _("%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)", o));
|
|
@@ -448,7 +448,7 @@ function Gr() {
|
|
|
448
448
|
});
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
var
|
|
451
|
+
var Tr = function(e, o, i, l, b, v, d) {
|
|
452
452
|
var u = {
|
|
453
453
|
// This tag allows us to uniquely identify this as a React Element
|
|
454
454
|
$$typeof: t,
|
|
@@ -477,12 +477,12 @@ function Gr() {
|
|
|
477
477
|
value: b
|
|
478
478
|
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
479
479
|
};
|
|
480
|
-
function
|
|
480
|
+
function jr(e, o, i, l, b) {
|
|
481
481
|
{
|
|
482
482
|
var v, d = {}, u = null, k = null;
|
|
483
|
-
i !== void 0 && (Te(i), u = "" + i),
|
|
483
|
+
i !== void 0 && (Te(i), u = "" + i), kr(o) && (Te(o.key), u = "" + o.key), _r(o) && (k = o.ref, Rr(o, b));
|
|
484
484
|
for (v in o)
|
|
485
|
-
M.call(o, v) && !
|
|
485
|
+
M.call(o, v) && !Er.hasOwnProperty(v) && (d[v] = o[v]);
|
|
486
486
|
if (e && e.defaultProps) {
|
|
487
487
|
var x = e.defaultProps;
|
|
488
488
|
for (v in x)
|
|
@@ -490,9 +490,9 @@ function Gr() {
|
|
|
490
490
|
}
|
|
491
491
|
if (u || k) {
|
|
492
492
|
var w = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
493
|
-
u &&
|
|
493
|
+
u && Sr(d, w), k && Cr(d, w);
|
|
494
494
|
}
|
|
495
|
-
return
|
|
495
|
+
return Tr(e, u, k, b, l, N.current, d);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
var ae = $.ReactCurrentOwner, Pe = $.ReactDebugCurrentFrame;
|
|
@@ -520,11 +520,11 @@ Check the render method of \`` + e + "`.";
|
|
|
520
520
|
return "";
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Or(e) {
|
|
524
524
|
return "";
|
|
525
525
|
}
|
|
526
526
|
var Ie = {};
|
|
527
|
-
function
|
|
527
|
+
function Pr(e) {
|
|
528
528
|
{
|
|
529
529
|
var o = De();
|
|
530
530
|
if (!o) {
|
|
@@ -541,7 +541,7 @@ Check the top-level render call using <` + i + ">.");
|
|
|
541
541
|
if (!e._store || e._store.validated || e.key != null)
|
|
542
542
|
return;
|
|
543
543
|
e._store.validated = !0;
|
|
544
|
-
var i =
|
|
544
|
+
var i = Pr(o);
|
|
545
545
|
if (Ie[i])
|
|
546
546
|
return;
|
|
547
547
|
Ie[i] = !0;
|
|
@@ -561,14 +561,14 @@ Check the top-level render call using <` + i + ">.");
|
|
|
561
561
|
else if (le(e))
|
|
562
562
|
e._store && (e._store.validated = !0);
|
|
563
563
|
else if (e) {
|
|
564
|
-
var b =
|
|
564
|
+
var b = nr(e);
|
|
565
565
|
if (typeof b == "function" && b !== e.entries)
|
|
566
566
|
for (var v = b.call(e), d; !(d = v.next()).done; )
|
|
567
567
|
le(d.value) && Fe(d.value, o);
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function Dr(e) {
|
|
572
572
|
{
|
|
573
573
|
var o = e.type;
|
|
574
574
|
if (o == null || typeof o == "string")
|
|
@@ -584,7 +584,7 @@ Check the top-level render call using <` + i + ">.");
|
|
|
584
584
|
return;
|
|
585
585
|
if (i) {
|
|
586
586
|
var l = j(o);
|
|
587
|
-
|
|
587
|
+
hr(i, e.props, "prop", l, e);
|
|
588
588
|
} else if (o.PropTypes !== void 0 && !ie) {
|
|
589
589
|
ie = !0;
|
|
590
590
|
var b = j(o);
|
|
@@ -593,7 +593,7 @@ Check the top-level render call using <` + i + ">.");
|
|
|
593
593
|
typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function Ir(e) {
|
|
597
597
|
{
|
|
598
598
|
for (var o = Object.keys(e.props), i = 0; i < o.length; i++) {
|
|
599
599
|
var l = o[i];
|
|
@@ -608,16 +608,16 @@ Check the top-level render call using <` + i + ">.");
|
|
|
608
608
|
var $e = {};
|
|
609
609
|
function We(e, o, i, l, b, v) {
|
|
610
610
|
{
|
|
611
|
-
var d =
|
|
611
|
+
var d = dr(e);
|
|
612
612
|
if (!d) {
|
|
613
613
|
var u = "";
|
|
614
614
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (u += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
615
|
-
var k =
|
|
615
|
+
var k = Or();
|
|
616
616
|
k ? u += k : u += De();
|
|
617
617
|
var x;
|
|
618
618
|
e === null ? x = "null" : oe(e) ? x = "array" : e !== void 0 && e.$$typeof === t ? (x = "<" + (j(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : x = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", x, u);
|
|
619
619
|
}
|
|
620
|
-
var w =
|
|
620
|
+
var w = jr(e, o, i, b, v);
|
|
621
621
|
if (w == null)
|
|
622
622
|
return w;
|
|
623
623
|
if (d) {
|
|
@@ -634,33 +634,33 @@ Check the top-level render call using <` + i + ">.");
|
|
|
634
634
|
Ae(C, e);
|
|
635
635
|
}
|
|
636
636
|
if (M.call(o, "key")) {
|
|
637
|
-
var A = j(e), R = Object.keys(o).filter(function(
|
|
638
|
-
return
|
|
637
|
+
var A = j(e), R = Object.keys(o).filter(function(Yr) {
|
|
638
|
+
return Yr !== "key";
|
|
639
639
|
}), se = R.length > 0 ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
640
640
|
if (!$e[A + se]) {
|
|
641
|
-
var
|
|
641
|
+
var Lr = R.length > 0 ? "{" + R.join(": ..., ") + ": ...}" : "{}";
|
|
642
642
|
_(`A props object containing a "key" prop is being spread into JSX:
|
|
643
643
|
let props = %s;
|
|
644
644
|
<%s {...props} />
|
|
645
645
|
React keys must be passed directly to JSX without using spread:
|
|
646
646
|
let props = %s;
|
|
647
|
-
<%s key={someKey} {...props} />`, se, A,
|
|
647
|
+
<%s key={someKey} {...props} />`, se, A, Lr, A), $e[A + se] = !0;
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
|
-
return e === a ?
|
|
650
|
+
return e === a ? Ir(w) : Dr(w), w;
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function Fr(e, o, i) {
|
|
654
654
|
return We(e, o, i, !0);
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function Ar(e, o, i) {
|
|
657
657
|
return We(e, o, i, !1);
|
|
658
658
|
}
|
|
659
|
-
var
|
|
660
|
-
V.Fragment = a, V.jsx =
|
|
659
|
+
var $r = Ar, Wr = Fr;
|
|
660
|
+
V.Fragment = a, V.jsx = $r, V.jsxs = Wr;
|
|
661
661
|
}()), V;
|
|
662
662
|
}
|
|
663
|
-
process.env.NODE_ENV === "production" ? ce.exports =
|
|
663
|
+
process.env.NODE_ENV === "production" ? ce.exports = Gr() : ce.exports = Kr();
|
|
664
664
|
var f = ce.exports;
|
|
665
665
|
ue({
|
|
666
666
|
"0%": {
|
|
@@ -678,7 +678,7 @@ ue({
|
|
|
678
678
|
transform: "rotate(360deg)"
|
|
679
679
|
}
|
|
680
680
|
});
|
|
681
|
-
const
|
|
681
|
+
const Jr = ue({
|
|
682
682
|
from: {
|
|
683
683
|
opacity: 0,
|
|
684
684
|
transform: "scale(0.95)"
|
|
@@ -688,8 +688,8 @@ const Kr = ue({
|
|
|
688
688
|
transform: "scale(1)"
|
|
689
689
|
}
|
|
690
690
|
}), de = y.div(({ theme: r }) => ({
|
|
691
|
-
animation: `${r.transitions.delay.normal} ${
|
|
692
|
-
})),
|
|
691
|
+
animation: `${r.transitions.delay.normal} ${Jr} both`
|
|
692
|
+
})), qr = y(de)(
|
|
693
693
|
({ show: r, theme: t }) => ({
|
|
694
694
|
zIndex: 99,
|
|
695
695
|
position: "absolute",
|
|
@@ -704,14 +704,14 @@ const Kr = ue({
|
|
|
704
704
|
flexDirection: "column",
|
|
705
705
|
overflow: "hidden"
|
|
706
706
|
})
|
|
707
|
-
),
|
|
707
|
+
), Xr = y.div(({ theme: r }) => ({
|
|
708
708
|
height: "auto",
|
|
709
709
|
width: "auto",
|
|
710
710
|
color: r.colors.font,
|
|
711
711
|
display: "flex",
|
|
712
712
|
gap: "0.35em"
|
|
713
713
|
}));
|
|
714
|
-
function
|
|
714
|
+
function Je(r, t) {
|
|
715
715
|
Q(() => {
|
|
716
716
|
function n(a) {
|
|
717
717
|
var s;
|
|
@@ -720,25 +720,25 @@ function Ke(r, t) {
|
|
|
720
720
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
721
721
|
}, [r, t]);
|
|
722
722
|
}
|
|
723
|
-
const
|
|
724
|
-
ARROW_DOWN:
|
|
725
|
-
ARROW_UP:
|
|
726
|
-
ESCAPE_KEY:
|
|
727
|
-
},
|
|
723
|
+
const Zr = "escape", Qr = "ArrowUp", et = "ArrowDown", rt = {
|
|
724
|
+
ARROW_DOWN: et,
|
|
725
|
+
ARROW_UP: Qr,
|
|
726
|
+
ESCAPE_KEY: Zr
|
|
727
|
+
}, tt = {
|
|
728
728
|
globalHotkeysEnabled: !0,
|
|
729
729
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
730
730
|
setGlobalHotkeysEnabled: (r) => {
|
|
731
731
|
}
|
|
732
|
-
},
|
|
733
|
-
|
|
734
|
-
),
|
|
735
|
-
function
|
|
732
|
+
}, ot = ze(
|
|
733
|
+
tt
|
|
734
|
+
), qe = () => Ve(ot);
|
|
735
|
+
function Xe(r, t, { enabled: n, disableGlobalCheck: a } = {
|
|
736
736
|
enabled: !0,
|
|
737
737
|
disableGlobalCheck: !1
|
|
738
738
|
}) {
|
|
739
|
-
const { globalHotkeysEnabled: s } =
|
|
740
|
-
return
|
|
741
|
-
|
|
739
|
+
const { globalHotkeysEnabled: s } = qe();
|
|
740
|
+
return Nr(
|
|
741
|
+
rt[r],
|
|
742
742
|
(c) => {
|
|
743
743
|
c.preventDefault(), t();
|
|
744
744
|
},
|
|
@@ -748,7 +748,7 @@ function qe(r, t, { enabled: n, disableGlobalCheck: a } = {
|
|
|
748
748
|
}
|
|
749
749
|
);
|
|
750
750
|
}
|
|
751
|
-
const
|
|
751
|
+
const nt = (r = !1) => {
|
|
752
752
|
const [t, n] = Y(r);
|
|
753
753
|
return {
|
|
754
754
|
isShowing: t,
|
|
@@ -756,7 +756,7 @@ const ot = (r = !1) => {
|
|
|
756
756
|
open: () => n(!0),
|
|
757
757
|
close: () => n(!1)
|
|
758
758
|
};
|
|
759
|
-
},
|
|
759
|
+
}, at = y.div(
|
|
760
760
|
({ opened: r, theme: t, svgSize: n = 24 }) => ({
|
|
761
761
|
cursor: "pointer",
|
|
762
762
|
userSelect: "none",
|
|
@@ -782,9 +782,9 @@ function zt({
|
|
|
782
782
|
className: n,
|
|
783
783
|
svgSize: a
|
|
784
784
|
}) {
|
|
785
|
-
const s =
|
|
786
|
-
return
|
|
787
|
-
|
|
785
|
+
const s = Ue(null), { isShowing: c, toggle: m, close: h } = nt();
|
|
786
|
+
return Je(s, h), Xe("ESCAPE_KEY", h, { disableGlobalCheck: !0 }), /* @__PURE__ */ f.jsxs(
|
|
787
|
+
at,
|
|
788
788
|
{
|
|
789
789
|
opened: c,
|
|
790
790
|
onClick: m,
|
|
@@ -792,13 +792,13 @@ function zt({
|
|
|
792
792
|
className: n,
|
|
793
793
|
svgSize: a,
|
|
794
794
|
children: [
|
|
795
|
-
/* @__PURE__ */ f.jsx(
|
|
796
|
-
/* @__PURE__ */ f.jsx(
|
|
795
|
+
/* @__PURE__ */ f.jsx(Xr, { children: t }),
|
|
796
|
+
/* @__PURE__ */ f.jsx(qr, { show: c, children: r })
|
|
797
797
|
]
|
|
798
798
|
}
|
|
799
799
|
);
|
|
800
800
|
}
|
|
801
|
-
const
|
|
801
|
+
const Ze = y("div", {
|
|
802
802
|
shouldForwardProp: (r) => r !== "danger"
|
|
803
803
|
})(({ theme: r, danger: t }) => ({
|
|
804
804
|
fontSize: "14px",
|
|
@@ -809,11 +809,11 @@ const Xe = y("div", {
|
|
|
809
809
|
"&:hover": {
|
|
810
810
|
backgroundColor: r.colors.background
|
|
811
811
|
}
|
|
812
|
-
})), Vt = y(
|
|
812
|
+
})), Vt = y(Ze)({
|
|
813
813
|
display: "flex",
|
|
814
814
|
gap: "0.75em",
|
|
815
815
|
alignItems: "center"
|
|
816
|
-
}), Ut = y(
|
|
816
|
+
}), Ut = y(Ze.withComponent("a"))({
|
|
817
817
|
width: "100%",
|
|
818
818
|
display: "flex",
|
|
819
819
|
gap: "0.75em",
|
|
@@ -826,13 +826,13 @@ function Ht({
|
|
|
826
826
|
}) {
|
|
827
827
|
return /* @__PURE__ */ f.jsx("a", { target: "_blank", rel: "noreferrer", title: t, ...n, children: r });
|
|
828
828
|
}
|
|
829
|
-
const
|
|
829
|
+
const it = y.div({
|
|
830
830
|
width: "100%",
|
|
831
831
|
display: "flex",
|
|
832
832
|
flex: 1,
|
|
833
833
|
alignItems: "center",
|
|
834
834
|
flexDirection: "column"
|
|
835
|
-
}),
|
|
835
|
+
}), lt = y(de)(({ theme: r }) => ({
|
|
836
836
|
minWidth: "500px",
|
|
837
837
|
background: r.colors.background,
|
|
838
838
|
padding: "1em",
|
|
@@ -849,23 +849,23 @@ const at = y.div({
|
|
|
849
849
|
minWidth: "unset",
|
|
850
850
|
marginTop: "1em"
|
|
851
851
|
}
|
|
852
|
-
})),
|
|
852
|
+
})), st = y.h3({
|
|
853
853
|
width: "100%",
|
|
854
854
|
margin: 0,
|
|
855
855
|
marginBottom: "0.75em",
|
|
856
856
|
display: "flex",
|
|
857
857
|
alignItems: "center",
|
|
858
858
|
justifyContent: "space-between"
|
|
859
|
-
}),
|
|
859
|
+
}), ct = y.button(({ theme: r }) => ({
|
|
860
860
|
cursor: "pointer",
|
|
861
861
|
color: r.colors.blue.default,
|
|
862
862
|
backgroundColor: "transparent",
|
|
863
863
|
border: 0,
|
|
864
864
|
padding: 0,
|
|
865
865
|
margin: 0
|
|
866
|
-
})), I = (r, t) => `rgba(${
|
|
866
|
+
})), I = (r, t) => `rgba(${zr(r, { format: "array" }).slice(0, -1).join(",")},${t})`;
|
|
867
867
|
function O(r) {
|
|
868
|
-
const t =
|
|
868
|
+
const t = Ke(r.color);
|
|
869
869
|
if (!t.isValid())
|
|
870
870
|
throw new Error("Invalid color provided");
|
|
871
871
|
return {
|
|
@@ -898,9 +898,9 @@ function q({
|
|
|
898
898
|
multiplicator: n,
|
|
899
899
|
type: a
|
|
900
900
|
}) {
|
|
901
|
-
return
|
|
901
|
+
return Ke(r)[a](t * n).toString();
|
|
902
902
|
}
|
|
903
|
-
const
|
|
903
|
+
const ut = y.div(({ theme: r }) => ({
|
|
904
904
|
zIndex: 9999,
|
|
905
905
|
position: "absolute",
|
|
906
906
|
top: 0,
|
|
@@ -914,16 +914,16 @@ const ct = y.div(({ theme: r }) => ({
|
|
|
914
914
|
flexDirection: "column",
|
|
915
915
|
transition: r.transitions.delay.normal
|
|
916
916
|
}));
|
|
917
|
-
var
|
|
917
|
+
var Qe = {
|
|
918
918
|
color: void 0,
|
|
919
919
|
size: void 0,
|
|
920
920
|
className: void 0,
|
|
921
921
|
style: void 0,
|
|
922
922
|
attr: void 0
|
|
923
|
-
}, Be = P.createContext && /* @__PURE__ */ P.createContext(
|
|
924
|
-
function
|
|
923
|
+
}, Be = P.createContext && /* @__PURE__ */ P.createContext(Qe), dt = ["attr", "size", "title"];
|
|
924
|
+
function ft(r, t) {
|
|
925
925
|
if (r == null) return {};
|
|
926
|
-
var n =
|
|
926
|
+
var n = pt(r, t), a, s;
|
|
927
927
|
if (Object.getOwnPropertySymbols) {
|
|
928
928
|
var c = Object.getOwnPropertySymbols(r);
|
|
929
929
|
for (s = 0; s < c.length; s++)
|
|
@@ -931,7 +931,7 @@ function dt(r, t) {
|
|
|
931
931
|
}
|
|
932
932
|
return n;
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function pt(r, t) {
|
|
935
935
|
if (r == null) return {};
|
|
936
936
|
var n = {};
|
|
937
937
|
for (var a in r)
|
|
@@ -965,21 +965,21 @@ function Z(r) {
|
|
|
965
965
|
for (var t = 1; t < arguments.length; t++) {
|
|
966
966
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
967
967
|
t % 2 ? Me(Object(n), !0).forEach(function(a) {
|
|
968
|
-
|
|
968
|
+
bt(r, a, n[a]);
|
|
969
969
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) : Me(Object(n)).forEach(function(a) {
|
|
970
970
|
Object.defineProperty(r, a, Object.getOwnPropertyDescriptor(n, a));
|
|
971
971
|
});
|
|
972
972
|
}
|
|
973
973
|
return r;
|
|
974
974
|
}
|
|
975
|
-
function
|
|
976
|
-
return t =
|
|
975
|
+
function bt(r, t, n) {
|
|
976
|
+
return t = gt(t), t in r ? Object.defineProperty(r, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = n, r;
|
|
977
977
|
}
|
|
978
|
-
function
|
|
979
|
-
var t =
|
|
978
|
+
function gt(r) {
|
|
979
|
+
var t = vt(r, "string");
|
|
980
980
|
return typeof t == "symbol" ? t : t + "";
|
|
981
981
|
}
|
|
982
|
-
function
|
|
982
|
+
function vt(r, t) {
|
|
983
983
|
if (typeof r != "object" || !r) return r;
|
|
984
984
|
var n = r[Symbol.toPrimitive];
|
|
985
985
|
if (n !== void 0) {
|
|
@@ -989,23 +989,23 @@ function gt(r, t) {
|
|
|
989
989
|
}
|
|
990
990
|
return (t === "string" ? String : Number)(r);
|
|
991
991
|
}
|
|
992
|
-
function
|
|
992
|
+
function er(r) {
|
|
993
993
|
return r && r.map((t, n) => /* @__PURE__ */ P.createElement(t.tag, Z({
|
|
994
994
|
key: n
|
|
995
|
-
}, t.attr),
|
|
995
|
+
}, t.attr), er(t.child)));
|
|
996
996
|
}
|
|
997
|
-
function
|
|
998
|
-
return (t) => /* @__PURE__ */ P.createElement(
|
|
997
|
+
function mt(r) {
|
|
998
|
+
return (t) => /* @__PURE__ */ P.createElement(ht, X({
|
|
999
999
|
attr: Z({}, r.attr)
|
|
1000
|
-
}, t),
|
|
1000
|
+
}, t), er(r.child));
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1002
|
+
function ht(r) {
|
|
1003
1003
|
var t = (n) => {
|
|
1004
1004
|
var {
|
|
1005
1005
|
attr: a,
|
|
1006
1006
|
size: s,
|
|
1007
1007
|
title: c
|
|
1008
|
-
} = r, m =
|
|
1008
|
+
} = r, m = ft(r, dt), h = s || n.size || "1em", g;
|
|
1009
1009
|
return n.className && (g = n.className), r.className && (g = (g ? g + " " : "") + r.className), /* @__PURE__ */ P.createElement("svg", X({
|
|
1010
1010
|
stroke: "currentColor",
|
|
1011
1011
|
fill: "currentColor",
|
|
@@ -1020,12 +1020,12 @@ function mt(r) {
|
|
|
1020
1020
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1021
1021
|
}), c && /* @__PURE__ */ P.createElement("title", null, c), r.children);
|
|
1022
1022
|
};
|
|
1023
|
-
return Be !== void 0 ? /* @__PURE__ */ P.createElement(Be.Consumer, null, (n) => t(n)) : t(
|
|
1023
|
+
return Be !== void 0 ? /* @__PURE__ */ P.createElement(Be.Consumer, null, (n) => t(n)) : t(Qe);
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1026
|
-
return
|
|
1025
|
+
function yt(r) {
|
|
1026
|
+
return mt({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z" }, child: [] }] })(r);
|
|
1027
1027
|
}
|
|
1028
|
-
const
|
|
1028
|
+
const xt = y.p(({ lines: r = 1 }) => r > 1 ? {
|
|
1029
1029
|
overflow: "hidden",
|
|
1030
1030
|
display: "-webkit-box",
|
|
1031
1031
|
WebkitLineClamp: r,
|
|
@@ -1043,24 +1043,24 @@ function Gt({
|
|
|
1043
1043
|
className: s,
|
|
1044
1044
|
close: c
|
|
1045
1045
|
}) {
|
|
1046
|
-
const m =
|
|
1047
|
-
return
|
|
1046
|
+
const m = Ue(null), { setGlobalHotkeysEnabled: h } = qe();
|
|
1047
|
+
return Je(m, c), Xe("ESCAPE_KEY", c, { disableGlobalCheck: !0 }), Q(
|
|
1048
1048
|
() => h(!n),
|
|
1049
1049
|
[n, h]
|
|
1050
|
-
), typeof window > "u" ? /* @__PURE__ */ f.jsx(
|
|
1051
|
-
/* @__PURE__ */ f.jsx(
|
|
1052
|
-
(!a || r) && /* @__PURE__ */ f.jsxs(
|
|
1053
|
-
r && /* @__PURE__ */ f.jsx(
|
|
1050
|
+
), typeof window > "u" ? /* @__PURE__ */ f.jsx(He, {}) : n && Vr(
|
|
1051
|
+
/* @__PURE__ */ f.jsx(ut, { children: /* @__PURE__ */ f.jsxs(lt, { className: s, ref: m, children: [
|
|
1052
|
+
(!a || r) && /* @__PURE__ */ f.jsxs(st, { children: [
|
|
1053
|
+
r && /* @__PURE__ */ f.jsx(xt, { children: r }),
|
|
1054
1054
|
!a && /* @__PURE__ */ f.jsx(
|
|
1055
|
-
|
|
1055
|
+
ct,
|
|
1056
1056
|
{
|
|
1057
1057
|
onClick: c,
|
|
1058
1058
|
style: { marginLeft: r ? "unset" : "auto" },
|
|
1059
|
-
children: /* @__PURE__ */ f.jsx(
|
|
1059
|
+
children: /* @__PURE__ */ f.jsx(yt, { size: 20 })
|
|
1060
1060
|
}
|
|
1061
1061
|
)
|
|
1062
1062
|
] }),
|
|
1063
|
-
/* @__PURE__ */ f.jsx(
|
|
1063
|
+
/* @__PURE__ */ f.jsx(it, { children: t })
|
|
1064
1064
|
] }) }),
|
|
1065
1065
|
document.body
|
|
1066
1066
|
);
|
|
@@ -1075,7 +1075,7 @@ const Kt = y.img(({ theme: r, size: t = 48 }) => {
|
|
|
1075
1075
|
boxShadow: `0 1px 3px 0 ${n}, 0 1px 2px -1px ${n}`
|
|
1076
1076
|
}
|
|
1077
1077
|
};
|
|
1078
|
-
}),
|
|
1078
|
+
}), wt = y.li(
|
|
1079
1079
|
({ theme: r, active: t, danger: n }) => {
|
|
1080
1080
|
const a = n ? r.colors.red.default : r.colors.blue.default;
|
|
1081
1081
|
return {
|
|
@@ -1091,12 +1091,12 @@ const Kt = y.img(({ theme: r, size: t = 48 }) => {
|
|
|
1091
1091
|
transition: ".075s"
|
|
1092
1092
|
};
|
|
1093
1093
|
}
|
|
1094
|
-
),
|
|
1094
|
+
), Et = y.ul({
|
|
1095
1095
|
padding: 0,
|
|
1096
1096
|
margin: 0,
|
|
1097
1097
|
display: "flex",
|
|
1098
1098
|
listStyle: "none"
|
|
1099
|
-
}),
|
|
1099
|
+
}), _t = y.div(({ theme: r }) => ({
|
|
1100
1100
|
zIndex: 1,
|
|
1101
1101
|
position: "relative",
|
|
1102
1102
|
border: `1px solid ${I(r.colors.blue.default, 0.25)}`,
|
|
@@ -1108,8 +1108,8 @@ function Jt({ tabs: r }) {
|
|
|
1108
1108
|
n(s);
|
|
1109
1109
|
};
|
|
1110
1110
|
return /* @__PURE__ */ f.jsxs("div", { children: [
|
|
1111
|
-
/* @__PURE__ */ f.jsx(
|
|
1112
|
-
|
|
1111
|
+
/* @__PURE__ */ f.jsx(Et, { children: r.map(({ title: s, icon: c, danger: m }, h) => /* @__PURE__ */ f.jsxs(
|
|
1112
|
+
wt,
|
|
1113
1113
|
{
|
|
1114
1114
|
active: h === t,
|
|
1115
1115
|
onClick: () => a(h),
|
|
@@ -1121,7 +1121,7 @@ function Jt({ tabs: r }) {
|
|
|
1121
1121
|
},
|
|
1122
1122
|
h
|
|
1123
1123
|
)) }),
|
|
1124
|
-
/* @__PURE__ */ f.jsx(
|
|
1124
|
+
/* @__PURE__ */ f.jsx(_t, { children: /* @__PURE__ */ f.jsx(de, { children: r[t].content }) }, r[t].title)
|
|
1125
1125
|
] });
|
|
1126
1126
|
}
|
|
1127
1127
|
const fe = y("div", {
|
|
@@ -1142,7 +1142,7 @@ const fe = y("div", {
|
|
|
1142
1142
|
color: t.colors.red.default,
|
|
1143
1143
|
content: r ? '"*"' : '""'
|
|
1144
1144
|
}
|
|
1145
|
-
})),
|
|
1145
|
+
})), rr = y.p(({ theme: r }) => ({
|
|
1146
1146
|
fontSize: "12px",
|
|
1147
1147
|
color: r.colors.red.default
|
|
1148
1148
|
}));
|
|
@@ -1156,7 +1156,7 @@ function qt({
|
|
|
1156
1156
|
...m
|
|
1157
1157
|
}) {
|
|
1158
1158
|
const [h, g] = Y(n);
|
|
1159
|
-
if (typeof window > "u") return /* @__PURE__ */ f.jsx(
|
|
1159
|
+
if (typeof window > "u") return /* @__PURE__ */ f.jsx(He, {});
|
|
1160
1160
|
function S({ target: p }) {
|
|
1161
1161
|
g(p.checked), s && s(p.name, p.checked);
|
|
1162
1162
|
}
|
|
@@ -1168,7 +1168,7 @@ function qt({
|
|
|
1168
1168
|
children: [
|
|
1169
1169
|
/* @__PURE__ */ f.jsx("label", { htmlFor: r, title: t, children: t }),
|
|
1170
1170
|
/* @__PURE__ */ f.jsx(
|
|
1171
|
-
|
|
1171
|
+
Ur,
|
|
1172
1172
|
{
|
|
1173
1173
|
...m,
|
|
1174
1174
|
onChange: S,
|
|
@@ -1178,7 +1178,7 @@ function qt({
|
|
|
1178
1178
|
id: r
|
|
1179
1179
|
}
|
|
1180
1180
|
),
|
|
1181
|
-
a.length > 0 && a.map((p) => /* @__PURE__ */ f.jsx(
|
|
1181
|
+
a.length > 0 && a.map((p) => /* @__PURE__ */ f.jsx(rr, { children: p }, p))
|
|
1182
1182
|
]
|
|
1183
1183
|
}
|
|
1184
1184
|
);
|
|
@@ -1188,7 +1188,7 @@ const Xt = y.form({
|
|
|
1188
1188
|
display: "flex",
|
|
1189
1189
|
gap: "1em",
|
|
1190
1190
|
flexDirection: "column"
|
|
1191
|
-
}),
|
|
1191
|
+
}), kt = y.input(({ theme: r }) => ({
|
|
1192
1192
|
width: "100%",
|
|
1193
1193
|
color: r.colors.font,
|
|
1194
1194
|
backgroundColor: r.colors.secondary,
|
|
@@ -1224,7 +1224,7 @@ function Zt({
|
|
|
1224
1224
|
return /* @__PURE__ */ f.jsxs(fe, { required: c, children: [
|
|
1225
1225
|
/* @__PURE__ */ f.jsx("label", { htmlFor: r, title: t, children: t }),
|
|
1226
1226
|
/* @__PURE__ */ f.jsx(
|
|
1227
|
-
|
|
1227
|
+
kt,
|
|
1228
1228
|
{
|
|
1229
1229
|
...m,
|
|
1230
1230
|
name: r,
|
|
@@ -1233,7 +1233,7 @@ function Zt({
|
|
|
1233
1233
|
placeholder: m.placeholder ?? "Type something..."
|
|
1234
1234
|
}
|
|
1235
1235
|
),
|
|
1236
|
-
a.length > 0 && a.map((p) => /* @__PURE__ */ f.jsx(
|
|
1236
|
+
a.length > 0 && a.map((p) => /* @__PURE__ */ f.jsx(rr, { children: p }, p))
|
|
1237
1237
|
] });
|
|
1238
1238
|
}
|
|
1239
1239
|
function Qt({
|
|
@@ -1246,7 +1246,7 @@ function Qt({
|
|
|
1246
1246
|
required: m = !1,
|
|
1247
1247
|
...h
|
|
1248
1248
|
}) {
|
|
1249
|
-
const g =
|
|
1249
|
+
const g = Ge(), [S, p] = Y();
|
|
1250
1250
|
Q(() => {
|
|
1251
1251
|
if (a.length === 0) return;
|
|
1252
1252
|
const E = a.find((D) => D.value === n);
|
|
@@ -1258,7 +1258,7 @@ function Qt({
|
|
|
1258
1258
|
return /* @__PURE__ */ f.jsxs(fe, { required: m, children: [
|
|
1259
1259
|
t && /* @__PURE__ */ f.jsx("label", { htmlFor: r, title: `${r} field`, children: t }),
|
|
1260
1260
|
/* @__PURE__ */ f.jsx(
|
|
1261
|
-
|
|
1261
|
+
Hr,
|
|
1262
1262
|
{
|
|
1263
1263
|
value: S,
|
|
1264
1264
|
onChange: (E) => T(E),
|
|
@@ -1271,7 +1271,7 @@ function Qt({
|
|
|
1271
1271
|
)
|
|
1272
1272
|
] });
|
|
1273
1273
|
}
|
|
1274
|
-
const Ne = "__minimstuff_dark_theme__",
|
|
1274
|
+
const Ne = "__minimstuff_dark_theme__", Rt = {
|
|
1275
1275
|
radius: {
|
|
1276
1276
|
xs: "1px",
|
|
1277
1277
|
s: "2px",
|
|
@@ -1279,31 +1279,31 @@ const Ne = "__minimstuff_dark_theme__", kt = {
|
|
|
1279
1279
|
l: "4px",
|
|
1280
1280
|
xl: "5px"
|
|
1281
1281
|
}
|
|
1282
|
-
},
|
|
1282
|
+
}, St = {
|
|
1283
1283
|
xs: "10px",
|
|
1284
1284
|
s: "12px",
|
|
1285
1285
|
m: "14px",
|
|
1286
1286
|
l: "16px",
|
|
1287
1287
|
xl: "18px"
|
|
1288
|
-
},
|
|
1288
|
+
}, Ct = {
|
|
1289
1289
|
mobile: "768px",
|
|
1290
1290
|
tablet: "1024px",
|
|
1291
1291
|
small_desktop: "1280px",
|
|
1292
1292
|
medium_desktop: "1440px",
|
|
1293
1293
|
large_desktop: "1920px",
|
|
1294
1294
|
xlarge_desktop: "2560px"
|
|
1295
|
-
},
|
|
1295
|
+
}, Tt = {
|
|
1296
1296
|
delay: {
|
|
1297
1297
|
fast: "0.075s",
|
|
1298
1298
|
normal: "0.15s",
|
|
1299
1299
|
slow: "0.3s"
|
|
1300
1300
|
}
|
|
1301
|
-
}, Tt = {
|
|
1302
|
-
borders: kt,
|
|
1303
|
-
medias: St,
|
|
1304
|
-
transitions: Ct,
|
|
1305
|
-
fontSizes: Rt
|
|
1306
1301
|
}, jt = {
|
|
1302
|
+
borders: Rt,
|
|
1303
|
+
medias: Ct,
|
|
1304
|
+
transitions: Tt,
|
|
1305
|
+
fontSizes: St
|
|
1306
|
+
}, Ot = {
|
|
1307
1307
|
font: "#f0eef6",
|
|
1308
1308
|
background: "#222831",
|
|
1309
1309
|
secondary: "#323a47",
|
|
@@ -1321,7 +1321,7 @@ const Ne = "__minimstuff_dark_theme__", kt = {
|
|
|
1321
1321
|
red: O({ color: "red" }),
|
|
1322
1322
|
yellow: O({ color: "#ffc107" }),
|
|
1323
1323
|
boxShadow: `0 0 1em 0 ${I("#111", 0.4)}`
|
|
1324
|
-
},
|
|
1324
|
+
}, Pt = {
|
|
1325
1325
|
font: "#333",
|
|
1326
1326
|
background: "#f0eef6",
|
|
1327
1327
|
secondary: "#fff",
|
|
@@ -1344,7 +1344,7 @@ const Ne = "__minimstuff_dark_theme__", kt = {
|
|
|
1344
1344
|
}),
|
|
1345
1345
|
boxShadow: `0 0 1em 0 ${I("#aaa", 0.4)}`
|
|
1346
1346
|
};
|
|
1347
|
-
const
|
|
1347
|
+
const tr = ze({
|
|
1348
1348
|
isDarkTheme: !0,
|
|
1349
1349
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1350
1350
|
toggleDarkTheme: (r) => {
|
|
@@ -1360,14 +1360,14 @@ function eo({
|
|
|
1360
1360
|
return Q(() => {
|
|
1361
1361
|
localStorage.setItem(Ne, String(n));
|
|
1362
1362
|
}, [n]), /* @__PURE__ */ f.jsx(
|
|
1363
|
-
|
|
1363
|
+
Br,
|
|
1364
1364
|
{
|
|
1365
1365
|
theme: {
|
|
1366
|
-
...
|
|
1367
|
-
colors: n ?
|
|
1366
|
+
...jt,
|
|
1367
|
+
colors: n ? Ot : Pt
|
|
1368
1368
|
},
|
|
1369
1369
|
children: /* @__PURE__ */ f.jsxs(
|
|
1370
|
-
|
|
1370
|
+
tr.Provider,
|
|
1371
1371
|
{
|
|
1372
1372
|
value: {
|
|
1373
1373
|
isDarkTheme: n,
|
|
@@ -1383,7 +1383,7 @@ function eo({
|
|
|
1383
1383
|
);
|
|
1384
1384
|
}
|
|
1385
1385
|
function Dt() {
|
|
1386
|
-
const r =
|
|
1386
|
+
const r = Ge(), t = J({
|
|
1387
1387
|
"*": {
|
|
1388
1388
|
boxSizing: "border-box",
|
|
1389
1389
|
outline: 0,
|
|
@@ -1482,34 +1482,40 @@ function Dt() {
|
|
|
1482
1482
|
backgroundColor: r.colors.secondary
|
|
1483
1483
|
}
|
|
1484
1484
|
});
|
|
1485
|
-
return /* @__PURE__ */ f.jsx(
|
|
1485
|
+
return /* @__PURE__ */ f.jsx(Mr, { styles: [t, n, a, s] });
|
|
1486
1486
|
}
|
|
1487
|
+
const ro = () => Ve(tr);
|
|
1487
1488
|
export {
|
|
1488
1489
|
Nt as Button,
|
|
1489
1490
|
qt as Checkbox,
|
|
1490
1491
|
zt as Dropdown,
|
|
1491
|
-
|
|
1492
|
+
qr as DropdownContainer,
|
|
1492
1493
|
Vt as DropdownItemButton,
|
|
1493
1494
|
Ut as DropdownItemLink,
|
|
1494
|
-
|
|
1495
|
+
Xr as DropdownLabel,
|
|
1495
1496
|
Ht as ExternalLink,
|
|
1496
1497
|
Xt as Form,
|
|
1497
1498
|
Gt as Modal,
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1499
|
+
it as ModalBody,
|
|
1500
|
+
ct as ModalCloseBtn,
|
|
1501
|
+
lt as ModalContainer,
|
|
1502
|
+
st as ModalHeader,
|
|
1503
|
+
ut as ModalWrapper,
|
|
1503
1504
|
Kt as RoundedImage,
|
|
1504
1505
|
Qt as Selector,
|
|
1505
1506
|
Dt as StyleReset,
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1507
|
+
wt as TabItem,
|
|
1508
|
+
Et as TabList,
|
|
1509
|
+
_t as TabPanel,
|
|
1509
1510
|
Jt as Tabs,
|
|
1510
|
-
|
|
1511
|
+
xt as TextEllipsis,
|
|
1511
1512
|
Zt as Textbox,
|
|
1512
1513
|
eo as ThemeContextProvider,
|
|
1513
|
-
|
|
1514
|
+
tr as _ThemeContext,
|
|
1515
|
+
Je as useClickOutside,
|
|
1516
|
+
qe as useGlobalHotkeys,
|
|
1517
|
+
Xe as useShortcut,
|
|
1518
|
+
ro as useThemeSwitcher,
|
|
1519
|
+
nt as useToggle
|
|
1514
1520
|
};
|
|
1515
1521
|
//# sourceMappingURL=index.es.js.map
|