@minimalstuff/ui 0.0.21 → 0.0.22

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,21 +1,21 @@
1
1
  import y from "@emotion/styled";
2
- import P, { useEffect as ce, 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";
2
+ import P, { useEffect as ce, createContext as ze, useContext as Ve, useState as Y, useRef as Ue, Fragment as Ge } from "react";
3
+ import { keyframes as ue, useTheme as He, ThemeProvider as Br, css as J, Global as Mr } from "@emotion/react";
4
4
  import { useHotkeys as Nr } from "react-hotkeys-hook";
5
5
  import zr from "hex-rgb";
6
6
  import Ke from "tinycolor2";
7
7
  import { createPortal as Vr } from "react-dom";
8
8
  import Ur from "react-toggle";
9
- import Hr from "react-select";
9
+ import Gr from "react-select";
10
10
  const Nt = y.button(
11
11
  ({ theme: r, danger: t = !1, secondary: n = !1 }) => {
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;
12
+ const a = t ? r.colors.red.default : r.colors.blue.default, s = t ? r.colors.red.dark : r.colors.blue.dark, u = n ? a : r.colors.white, m = n ? "transparent" : a;
13
13
  return {
14
14
  cursor: "pointer",
15
15
  width: "100%",
16
16
  textTransform: "uppercase",
17
17
  fontSize: r.fontSizes.m,
18
- color: c,
18
+ color: u,
19
19
  background: m,
20
20
  padding: "0.75em",
21
21
  border: `1px solid ${a}`,
@@ -43,16 +43,16 @@ var se = { exports: {} }, z = {};
43
43
  * LICENSE file in the root directory of this source tree.
44
44
  */
45
45
  var Le;
46
- function Gr() {
46
+ function Hr() {
47
47
  if (Le) return z;
48
48
  Le = 1;
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 };
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, u = { key: !0, ref: !0, __self: !0, __source: !0 };
50
50
  function m(h, g, S) {
51
- var p, T = {}, E = null, D = null;
51
+ var p, j = {}, E = null, D = null;
52
52
  S !== void 0 && (E = "" + S), g.key !== void 0 && (E = "" + g.key), g.ref !== void 0 && (D = g.ref);
53
- for (p in g) a.call(g, p) && !c.hasOwnProperty(p) && (T[p] = g[p]);
54
- if (h && h.defaultProps) for (p in g = h.defaultProps, g) T[p] === void 0 && (T[p] = g[p]);
55
- return { $$typeof: t, type: h, key: E, ref: D, props: T, _owner: s.current };
53
+ for (p in g) a.call(g, p) && !u.hasOwnProperty(p) && (j[p] = g[p]);
54
+ if (h && h.defaultProps) for (p in g = h.defaultProps, g) j[p] === void 0 && (j[p] = g[p]);
55
+ return { $$typeof: t, type: h, key: E, ref: D, props: j, _owner: s.current };
56
56
  }
57
57
  return z.Fragment = n, z.jsx = m, z.jsxs = m, z;
58
58
  }
@@ -69,14 +69,14 @@ var V = {};
69
69
  var Ye;
70
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, or = "@@iterator";
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"), u = 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"), j = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), pe = Symbol.iterator, or = "@@iterator";
73
73
  function nr(e) {
74
74
  if (e === null || typeof e != "object")
75
75
  return null;
76
76
  var o = pe && e[pe] || e[or];
77
77
  return typeof o == "function" ? o : null;
78
78
  }
79
- var $ = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
79
+ var A = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
80
80
  function _(e) {
81
81
  {
82
82
  for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), l = 1; l < o; l++)
@@ -86,7 +86,7 @@ function Kr() {
86
86
  }
87
87
  function ar(e, o, i) {
88
88
  {
89
- var l = $.ReactDebugCurrentFrame, b = l.getStackAddendum();
89
+ var l = A.ReactDebugCurrentFrame, b = l.getStackAddendum();
90
90
  b !== "" && (o += "%s", i = i.concat([b]));
91
91
  var v = i.map(function(d) {
92
92
  return String(d);
@@ -97,7 +97,7 @@ function Kr() {
97
97
  var ir = !1, lr = !1, sr = !1, cr = !1, ur = !1, be;
98
98
  be = Symbol.for("react.module.reference");
99
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
100
+ return !!(typeof e == "string" || typeof e == "function" || e === a || e === u || ur || e === s || e === S || e === p || cr || e === D || ir || lr || sr || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === j || 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.
@@ -113,7 +113,7 @@ function Kr() {
113
113
  function ge(e) {
114
114
  return e.displayName || "Context";
115
115
  }
116
- function j(e) {
116
+ function T(e) {
117
117
  if (e == null)
118
118
  return null;
119
119
  if (typeof e.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
@@ -125,7 +125,7 @@ function Kr() {
125
125
  return "Fragment";
126
126
  case n:
127
127
  return "Portal";
128
- case c:
128
+ case u:
129
129
  return "Profiler";
130
130
  case s:
131
131
  return "StrictMode";
@@ -144,13 +144,13 @@ function Kr() {
144
144
  return ge(i._context) + ".Provider";
145
145
  case g:
146
146
  return fr(e, e.render, "ForwardRef");
147
- case T:
147
+ case j:
148
148
  var l = e.displayName || null;
149
- return l !== null ? l : j(e.type) || "Memo";
149
+ return l !== null ? l : T(e.type) || "Memo";
150
150
  case E: {
151
151
  var b = e, v = b._payload, d = b._init;
152
152
  try {
153
- return j(d(v));
153
+ return T(d(v));
154
154
  } catch {
155
155
  return null;
156
156
  }
@@ -220,7 +220,7 @@ function Kr() {
220
220
  B < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
221
221
  }
222
222
  }
223
- var Q = $.ReactCurrentDispatcher, ee;
223
+ var Q = A.ReactCurrentDispatcher, ee;
224
224
  function U(e, o, i) {
225
225
  {
226
226
  if (ee === void 0)
@@ -234,16 +234,16 @@ function Kr() {
234
234
  ` + ee + e;
235
235
  }
236
236
  }
237
- var re = !1, H;
237
+ var re = !1, G;
238
238
  {
239
239
  var gr = typeof WeakMap == "function" ? WeakMap : Map;
240
- H = new gr();
240
+ G = new gr();
241
241
  }
242
242
  function ke(e, o) {
243
243
  if (!e || re)
244
244
  return "";
245
245
  {
246
- var i = H.get(e);
246
+ var i = G.get(e);
247
247
  if (i !== void 0)
248
248
  return i;
249
249
  }
@@ -287,18 +287,18 @@ function Kr() {
287
287
  }
288
288
  } catch (R) {
289
289
  if (R && l && typeof R.stack == "string") {
290
- for (var u = R.stack.split(`
290
+ for (var c = R.stack.split(`
291
291
  `), k = l.stack.split(`
292
- `), x = u.length - 1, w = k.length - 1; x >= 1 && w >= 0 && u[x] !== k[w]; )
292
+ `), x = c.length - 1, w = k.length - 1; x >= 1 && w >= 0 && c[x] !== k[w]; )
293
293
  w--;
294
294
  for (; x >= 1 && w >= 0; x--, w--)
295
- if (u[x] !== k[w]) {
295
+ if (c[x] !== k[w]) {
296
296
  if (x !== 1 || w !== 1)
297
297
  do
298
- if (x--, w--, w < 0 || u[x] !== k[w]) {
298
+ if (x--, w--, w < 0 || c[x] !== k[w]) {
299
299
  var C = `
300
- ` + u[x].replace(" at new ", " at ");
301
- return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && H.set(e, C), C;
300
+ ` + c[x].replace(" at new ", " at ");
301
+ return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && G.set(e, C), C;
302
302
  }
303
303
  while (x >= 1 && w >= 0);
304
304
  break;
@@ -307,8 +307,8 @@ function Kr() {
307
307
  } finally {
308
308
  re = !1, Q.current = v, br(), Error.prepareStackTrace = b;
309
309
  }
310
- var L = e ? e.displayName || e.name : "", A = L ? U(L) : "";
311
- return typeof e == "function" && H.set(e, A), A;
310
+ var L = e ? e.displayName || e.name : "", $ = L ? U(L) : "";
311
+ return typeof e == "function" && G.set(e, $), $;
312
312
  }
313
313
  function vr(e, o, i) {
314
314
  return ke(e, !1);
@@ -317,7 +317,7 @@ function Kr() {
317
317
  var o = e.prototype;
318
318
  return !!(o && o.isReactComponent);
319
319
  }
320
- function G(e, o, i) {
320
+ function H(e, o, i) {
321
321
  if (e == null)
322
322
  return "";
323
323
  if (typeof e == "function")
@@ -334,22 +334,22 @@ function Kr() {
334
334
  switch (e.$$typeof) {
335
335
  case g:
336
336
  return vr(e.render);
337
- case T:
338
- return G(e.type, o, i);
337
+ case j:
338
+ return H(e.type, o, i);
339
339
  case E: {
340
340
  var l = e, b = l._payload, v = l._init;
341
341
  try {
342
- return G(v(b), o, i);
342
+ return H(v(b), o, i);
343
343
  } catch {
344
344
  }
345
345
  }
346
346
  }
347
347
  return "";
348
348
  }
349
- var M = Object.prototype.hasOwnProperty, Re = {}, Se = $.ReactDebugCurrentFrame;
349
+ var M = Object.prototype.hasOwnProperty, Re = {}, Se = A.ReactDebugCurrentFrame;
350
350
  function K(e) {
351
351
  if (e) {
352
- var o = e._owner, i = G(e.type, e._source, o ? o.type : null);
352
+ var o = e._owner, i = H(e.type, e._source, o ? o.type : null);
353
353
  Se.setExtraStackFrame(i);
354
354
  } else
355
355
  Se.setExtraStackFrame(null);
@@ -359,17 +359,17 @@ function Kr() {
359
359
  var v = Function.call.bind(M);
360
360
  for (var d in e)
361
361
  if (v(e, d)) {
362
- var u = void 0;
362
+ var c = void 0;
363
363
  try {
364
364
  if (typeof e[d] != "function") {
365
365
  var k = Error((l || "React class") + ": " + i + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
366
366
  throw k.name = "Invariant Violation", k;
367
367
  }
368
- u = e[d](o, d, l, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
368
+ c = e[d](o, d, l, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
369
369
  } catch (x) {
370
- u = x;
370
+ c = x;
371
371
  }
372
- u && !(u instanceof Error) && (K(b), _("%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).", l || "React class", i, d, typeof u), K(null)), u instanceof Error && !(u.message in Re) && (Re[u.message] = !0, K(b), _("Failed %s type: %s", i, u.message), K(null));
372
+ c && !(c instanceof Error) && (K(b), _("%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).", l || "React class", i, d, typeof c), K(null)), c instanceof Error && !(c.message in Re) && (Re[c.message] = !0, K(b), _("Failed %s type: %s", i, c.message), K(null));
373
373
  }
374
374
  }
375
375
  }
@@ -393,16 +393,16 @@ function Kr() {
393
393
  function Ce(e) {
394
394
  return "" + e;
395
395
  }
396
- function Te(e) {
396
+ function je(e) {
397
397
  if (wr(e))
398
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, Er = {
400
+ var N = A.ReactCurrentOwner, Er = {
401
401
  key: !0,
402
402
  ref: !0,
403
403
  __self: !0,
404
404
  __source: !0
405
- }, je, Oe, oe;
405
+ }, Te, Oe, oe;
406
406
  oe = {};
407
407
  function _r(e) {
408
408
  if (M.call(e, "ref")) {
@@ -422,14 +422,14 @@ function Kr() {
422
422
  }
423
423
  function Rr(e, o) {
424
424
  if (typeof e.ref == "string" && N.current && o && N.current.stateNode !== o) {
425
- var i = j(N.current.type);
426
- oe[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), oe[i] = !0);
425
+ var i = T(N.current.type);
426
+ oe[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', T(N.current.type), e.ref), oe[i] = !0);
427
427
  }
428
428
  }
429
429
  function Sr(e, o) {
430
430
  {
431
431
  var i = function() {
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));
432
+ Te || (Te = !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));
433
433
  };
434
434
  i.isReactWarning = !0, Object.defineProperty(e, "key", {
435
435
  get: i,
@@ -448,8 +448,8 @@ function Kr() {
448
448
  });
449
449
  }
450
450
  }
451
- var Tr = function(e, o, i, l, b, v, d) {
452
- var u = {
451
+ var jr = function(e, o, i, l, b, v, d) {
452
+ var c = {
453
453
  // This tag allows us to uniquely identify this as a React Element
454
454
  $$typeof: t,
455
455
  // Built-in properties that belong on the element
@@ -460,27 +460,27 @@ function Kr() {
460
460
  // Record the component responsible for creating this element.
461
461
  _owner: v
462
462
  };
463
- return u._store = {}, Object.defineProperty(u._store, "validated", {
463
+ return c._store = {}, Object.defineProperty(c._store, "validated", {
464
464
  configurable: !1,
465
465
  enumerable: !1,
466
466
  writable: !0,
467
467
  value: !1
468
- }), Object.defineProperty(u, "_self", {
468
+ }), Object.defineProperty(c, "_self", {
469
469
  configurable: !1,
470
470
  enumerable: !1,
471
471
  writable: !1,
472
472
  value: l
473
- }), Object.defineProperty(u, "_source", {
473
+ }), Object.defineProperty(c, "_source", {
474
474
  configurable: !1,
475
475
  enumerable: !1,
476
476
  writable: !1,
477
477
  value: b
478
- }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
478
+ }), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
479
479
  };
480
- function jr(e, o, i, l, b) {
480
+ function Tr(e, o, i, l, b) {
481
481
  {
482
- var v, d = {}, u = null, k = null;
483
- i !== void 0 && (Te(i), u = "" + i), kr(o) && (Te(o.key), u = "" + o.key), _r(o) && (k = o.ref, Rr(o, b));
482
+ var v, d = {}, c = null, k = null;
483
+ i !== void 0 && (je(i), c = "" + i), kr(o) && (je(o.key), c = "" + o.key), _r(o) && (k = o.ref, Rr(o, b));
484
484
  for (v in o)
485
485
  M.call(o, v) && !Er.hasOwnProperty(v) && (d[v] = o[v]);
486
486
  if (e && e.defaultProps) {
@@ -488,17 +488,17 @@ function Kr() {
488
488
  for (v in x)
489
489
  d[v] === void 0 && (d[v] = x[v]);
490
490
  }
491
- if (u || k) {
491
+ if (c || k) {
492
492
  var w = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
493
- u && Sr(d, w), k && Cr(d, w);
493
+ c && Sr(d, w), k && Cr(d, w);
494
494
  }
495
- return Tr(e, u, k, b, l, N.current, d);
495
+ return jr(e, c, k, b, l, N.current, d);
496
496
  }
497
497
  }
498
- var ne = $.ReactCurrentOwner, Pe = $.ReactDebugCurrentFrame;
498
+ var ne = A.ReactCurrentOwner, Pe = A.ReactDebugCurrentFrame;
499
499
  function W(e) {
500
500
  if (e) {
501
- var o = e._owner, i = G(e.type, e._source, o ? o.type : null);
501
+ var o = e._owner, i = H(e.type, e._source, o ? o.type : null);
502
502
  Pe.setExtraStackFrame(i);
503
503
  } else
504
504
  Pe.setExtraStackFrame(null);
@@ -511,7 +511,7 @@ function Kr() {
511
511
  function De() {
512
512
  {
513
513
  if (ne.current) {
514
- var e = j(ne.current.type);
514
+ var e = T(ne.current.type);
515
515
  if (e)
516
516
  return `
517
517
 
@@ -546,10 +546,10 @@ Check the top-level render call using <` + i + ">.");
546
546
  return;
547
547
  Ie[i] = !0;
548
548
  var l = "";
549
- e && e._owner && e._owner !== ne.current && (l = " It was passed a child from " + j(e._owner.type) + "."), W(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, l), W(null);
549
+ e && e._owner && e._owner !== ne.current && (l = " It was passed a child from " + T(e._owner.type) + "."), W(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, l), W(null);
550
550
  }
551
551
  }
552
- function Ae(e, o) {
552
+ function $e(e, o) {
553
553
  {
554
554
  if (typeof e != "object")
555
555
  return;
@@ -578,16 +578,16 @@ Check the top-level render call using <` + i + ">.");
578
578
  i = o.propTypes;
579
579
  else if (typeof o == "object" && (o.$$typeof === g || // Note: Memo only checks outer props here.
580
580
  // Inner props are checked in the reconciler.
581
- o.$$typeof === T))
581
+ o.$$typeof === j))
582
582
  i = o.propTypes;
583
583
  else
584
584
  return;
585
585
  if (i) {
586
- var l = j(o);
586
+ var l = T(o);
587
587
  hr(i, e.props, "prop", l, e);
588
588
  } else if (o.PropTypes !== void 0 && !ae) {
589
589
  ae = !0;
590
- var b = j(o);
590
+ var b = T(o);
591
591
  _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", b || "Unknown");
592
592
  }
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.");
@@ -605,19 +605,19 @@ Check the top-level render call using <` + i + ">.");
605
605
  e.ref !== null && (W(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
606
606
  }
607
607
  }
608
- var $e = {};
608
+ var Ae = {};
609
609
  function We(e, o, i, l, b, v) {
610
610
  {
611
611
  var d = dr(e);
612
612
  if (!d) {
613
- var u = "";
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.");
613
+ var c = "";
614
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (c += " 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
615
  var k = Or();
616
- k ? u += k : u += De();
616
+ k ? c += k : c += De();
617
617
  var x;
618
- e === null ? x = "null" : te(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);
618
+ e === null ? x = "null" : te(e) ? x = "array" : e !== void 0 && e.$$typeof === t ? (x = "<" + (T(e.type) || "Unknown") + " />", c = " 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, c);
619
619
  }
620
- var w = jr(e, o, i, b, v);
620
+ var w = Tr(e, o, i, b, v);
621
621
  if (w == null)
622
622
  return w;
623
623
  if (d) {
@@ -626,25 +626,25 @@ Check the top-level render call using <` + i + ">.");
626
626
  if (l)
627
627
  if (te(C)) {
628
628
  for (var L = 0; L < C.length; L++)
629
- Ae(C[L], e);
629
+ $e(C[L], e);
630
630
  Object.freeze && Object.freeze(C);
631
631
  } else
632
632
  _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
633
633
  else
634
- Ae(C, e);
634
+ $e(C, e);
635
635
  }
636
636
  if (M.call(o, "key")) {
637
- var A = j(e), R = Object.keys(o).filter(function(Yr) {
637
+ var $ = T(e), R = Object.keys(o).filter(function(Yr) {
638
638
  return Yr !== "key";
639
639
  }), le = R.length > 0 ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}";
640
- if (!$e[A + le]) {
640
+ if (!Ae[$ + le]) {
641
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} />`, le, A, Lr, A), $e[A + le] = !0;
647
+ <%s key={someKey} {...props} />`, le, $, Lr, $), Ae[$ + le] = !0;
648
648
  }
649
649
  }
650
650
  return e === a ? Ir(w) : Dr(w), w;
@@ -653,14 +653,14 @@ React keys must be passed directly to JSX without using spread:
653
653
  function Fr(e, o, i) {
654
654
  return We(e, o, i, !0);
655
655
  }
656
- function Ar(e, o, i) {
656
+ function $r(e, o, i) {
657
657
  return We(e, o, i, !1);
658
658
  }
659
- var $r = Ar, Wr = Fr;
660
- V.Fragment = a, V.jsx = $r, V.jsxs = Wr;
659
+ var Ar = $r, Wr = Fr;
660
+ V.Fragment = a, V.jsx = Ar, V.jsxs = Wr;
661
661
  }()), V;
662
662
  }
663
- process.env.NODE_ENV === "production" ? se.exports = Gr() : se.exports = Kr();
663
+ process.env.NODE_ENV === "production" ? se.exports = Hr() : se.exports = Kr();
664
664
  var f = se.exports;
665
665
  ue({
666
666
  "0%": {
@@ -739,8 +739,8 @@ function Xe(r, t, { enabled: n, disableGlobalCheck: a } = {
739
739
  const { globalHotkeysEnabled: s } = qe();
740
740
  return Nr(
741
741
  rt[r],
742
- (c) => {
743
- c.preventDefault(), t();
742
+ (u) => {
743
+ u.preventDefault(), t();
744
744
  },
745
745
  {
746
746
  enabled: a ? n : n && s,
@@ -782,18 +782,18 @@ function zt({
782
782
  className: n,
783
783
  svgSize: a
784
784
  }) {
785
- const s = Ue(null), { isShowing: c, toggle: m, close: h } = nt();
785
+ const s = Ue(null), { isShowing: u, toggle: m, close: h } = nt();
786
786
  return Je(s, h), Xe("ESCAPE_KEY", h, { disableGlobalCheck: !0 }), /* @__PURE__ */ f.jsxs(
787
787
  at,
788
788
  {
789
- opened: c,
789
+ opened: u,
790
790
  onClick: m,
791
791
  ref: s,
792
792
  className: n,
793
793
  svgSize: a,
794
794
  children: [
795
795
  /* @__PURE__ */ f.jsx(Xr, { children: t }),
796
- /* @__PURE__ */ f.jsx(qr, { show: c, children: r })
796
+ /* @__PURE__ */ f.jsx(qr, { show: u, children: r })
797
797
  ]
798
798
  }
799
799
  );
@@ -819,7 +819,7 @@ const Ze = y("div", {
819
819
  gap: "0.75em",
820
820
  alignItems: "center"
821
821
  });
822
- function Ht({
822
+ function Gt({
823
823
  children: r,
824
824
  title: t,
825
825
  ...n
@@ -925,9 +925,9 @@ function ft(r, t) {
925
925
  if (r == null) return {};
926
926
  var n = pt(r, t), a, s;
927
927
  if (Object.getOwnPropertySymbols) {
928
- var c = Object.getOwnPropertySymbols(r);
929
- for (s = 0; s < c.length; s++)
930
- a = c[s], !(t.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(r, a) && (n[a] = r[a]);
928
+ var u = Object.getOwnPropertySymbols(r);
929
+ for (s = 0; s < u.length; s++)
930
+ a = u[s], !(t.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(r, a) && (n[a] = r[a]);
931
931
  }
932
932
  return n;
933
933
  }
@@ -1004,7 +1004,7 @@ function ht(r) {
1004
1004
  var {
1005
1005
  attr: a,
1006
1006
  size: s,
1007
- title: c
1007
+ title: u
1008
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",
@@ -1018,7 +1018,7 @@ function ht(r) {
1018
1018
  height: h,
1019
1019
  width: h,
1020
1020
  xmlns: "http://www.w3.org/2000/svg"
1021
- }), c && /* @__PURE__ */ P.createElement("title", null, c), r.children);
1021
+ }), u && /* @__PURE__ */ P.createElement("title", null, u), r.children);
1022
1022
  };
1023
1023
  return Be !== void 0 ? /* @__PURE__ */ P.createElement(Be.Consumer, null, (n) => t(n)) : t(Qe);
1024
1024
  }
@@ -1035,26 +1035,26 @@ const xt = y.p(({ lines: r = 1 }) => r > 1 ? {
1035
1035
  whiteSpace: "nowrap",
1036
1036
  overflow: "hidden"
1037
1037
  });
1038
- function Gt({
1038
+ function Ht({
1039
1039
  title: r,
1040
1040
  children: t,
1041
1041
  opened: n = !0,
1042
1042
  hideCloseBtn: a = !1,
1043
1043
  className: s,
1044
- close: c
1044
+ close: u
1045
1045
  }) {
1046
1046
  const m = Ue(null), { setGlobalHotkeysEnabled: h } = qe();
1047
- return Je(m, c), Xe("ESCAPE_KEY", c, { disableGlobalCheck: !0 }), ce(
1047
+ return Je(m, u), Xe("ESCAPE_KEY", u, { disableGlobalCheck: !0 }), ce(
1048
1048
  () => h(!n),
1049
1049
  [n, h]
1050
- ), typeof window > "u" ? /* @__PURE__ */ f.jsx(He, {}) : n && Vr(
1050
+ ), typeof window > "u" ? /* @__PURE__ */ f.jsx(Ge, {}) : n && Vr(
1051
1051
  /* @__PURE__ */ f.jsx(ut, { children: /* @__PURE__ */ f.jsxs(lt, { className: s, ref: m, children: [
1052
1052
  (!a || r) && /* @__PURE__ */ f.jsxs(st, { children: [
1053
1053
  r && /* @__PURE__ */ f.jsx(xt, { children: r }),
1054
1054
  !a && /* @__PURE__ */ f.jsx(
1055
1055
  ct,
1056
1056
  {
1057
- onClick: c,
1057
+ onClick: u,
1058
1058
  style: { marginLeft: r ? "unset" : "auto" },
1059
1059
  children: /* @__PURE__ */ f.jsx(yt, { size: 20 })
1060
1060
  }
@@ -1108,14 +1108,14 @@ function Jt({ tabs: r }) {
1108
1108
  n(s);
1109
1109
  };
1110
1110
  return /* @__PURE__ */ f.jsxs("div", { children: [
1111
- /* @__PURE__ */ f.jsx(Et, { children: r.map(({ title: s, icon: c, danger: m }, h) => /* @__PURE__ */ f.jsxs(
1111
+ /* @__PURE__ */ f.jsx(Et, { children: r.map(({ title: s, icon: u, danger: m }, h) => /* @__PURE__ */ f.jsxs(
1112
1112
  wt,
1113
1113
  {
1114
1114
  active: h === t,
1115
1115
  onClick: () => a(h),
1116
1116
  danger: m ?? !1,
1117
1117
  children: [
1118
- !!c && /* @__PURE__ */ f.jsx(c, { size: 20 }),
1118
+ !!u && /* @__PURE__ */ f.jsx(u, { size: 20 }),
1119
1119
  s
1120
1120
  ]
1121
1121
  },
@@ -1152,11 +1152,11 @@ function qt({
1152
1152
  checked: n = !1,
1153
1153
  errors: a = [],
1154
1154
  onChange: s,
1155
- required: c = !1,
1155
+ required: u = !1,
1156
1156
  ...m
1157
1157
  }) {
1158
1158
  const [h, g] = Y(n);
1159
- if (typeof window > "u") return /* @__PURE__ */ f.jsx(He, {});
1159
+ if (typeof window > "u") return /* @__PURE__ */ f.jsx(Ge, {});
1160
1160
  function S({ target: p }) {
1161
1161
  g(p.checked), s && s(p.name, p.checked);
1162
1162
  }
@@ -1164,7 +1164,7 @@ function qt({
1164
1164
  fe,
1165
1165
  {
1166
1166
  css: { alignItems: "center", gap: "1em", flexDirection: "row" },
1167
- required: c,
1167
+ required: u,
1168
1168
  children: [
1169
1169
  /* @__PURE__ */ f.jsx("label", { htmlFor: r, title: t, children: t }),
1170
1170
  /* @__PURE__ */ f.jsx(
@@ -1214,14 +1214,14 @@ function Zt({
1214
1214
  value: n = "",
1215
1215
  errors: a = [],
1216
1216
  onChange: s,
1217
- required: c = !1,
1217
+ required: u = !1,
1218
1218
  ...m
1219
1219
  }) {
1220
1220
  const [h, g] = Y(n);
1221
1221
  function S({ target: p }) {
1222
1222
  g(p.value), s && s(p.name, p.value);
1223
1223
  }
1224
- return /* @__PURE__ */ f.jsxs(fe, { required: c, children: [
1224
+ return /* @__PURE__ */ f.jsxs(fe, { required: u, children: [
1225
1225
  /* @__PURE__ */ f.jsx("label", { htmlFor: r, title: t, children: t }),
1226
1226
  /* @__PURE__ */ f.jsx(
1227
1227
  kt,
@@ -1242,30 +1242,30 @@ function Qt({
1242
1242
  value: n,
1243
1243
  options: a,
1244
1244
  onChangeCallback: s,
1245
- formatOptionLabel: c,
1245
+ formatOptionLabel: u,
1246
1246
  required: m = !1,
1247
1247
  ...h
1248
1248
  }) {
1249
- const g = Ge(), [S, p] = Y();
1249
+ const g = He(), [S, p] = Y();
1250
1250
  ce(() => {
1251
1251
  if (a.length === 0) return;
1252
1252
  const E = a.find((D) => D.value === n);
1253
1253
  E && p(E);
1254
1254
  }, [a, n]);
1255
- const T = (E) => {
1255
+ const j = (E) => {
1256
1256
  p(E), s && s(E.value);
1257
1257
  };
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
- Hr,
1261
+ Gr,
1262
1262
  {
1263
1263
  value: S,
1264
- onChange: (E) => T(E),
1264
+ onChange: (E) => j(E),
1265
1265
  options: a,
1266
1266
  isDisabled: h.disabled,
1267
1267
  menuPlacement: "auto",
1268
- formatOptionLabel: c ? (E, D) => c(E, D) : void 0,
1268
+ formatOptionLabel: u ? (E, D) => u(E, D) : void 0,
1269
1269
  css: { color: g.colors.black }
1270
1270
  }
1271
1271
  )
@@ -1292,16 +1292,16 @@ const Ne = "__minimstuff_dark_theme__", Rt = {
1292
1292
  medium_desktop: "1440px",
1293
1293
  large_desktop: "1920px",
1294
1294
  xlarge_desktop: "2560px"
1295
- }, Tt = {
1295
+ }, jt = {
1296
1296
  delay: {
1297
1297
  fast: "0.075s",
1298
1298
  normal: "0.15s",
1299
1299
  slow: "0.3s"
1300
1300
  }
1301
- }, jt = {
1301
+ }, Tt = {
1302
1302
  borders: Rt,
1303
1303
  medias: Ct,
1304
- transitions: Tt,
1304
+ transitions: jt,
1305
1305
  fontSizes: St
1306
1306
  }, Ot = {
1307
1307
  font: "#f0eef6",
@@ -1343,8 +1343,7 @@ const Ne = "__minimstuff_dark_theme__", Rt = {
1343
1343
  color: "#ffc107"
1344
1344
  }),
1345
1345
  boxShadow: `0 0 1em 0 ${I("#aaa", 0.4)}`
1346
- };
1347
- const tr = ze({
1346
+ }, tr = ze({
1348
1347
  isDarkTheme: !0,
1349
1348
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
1350
1349
  toggleDarkTheme: (r) => {
@@ -1354,14 +1353,16 @@ function eo({
1354
1353
  children: r,
1355
1354
  onPreferenceChange: t
1356
1355
  }) {
1357
- const [n, a] = Y(() => !!localStorage.getItem(Ne)), s = (c) => {
1358
- a(c), t == null || t(c), localStorage.setItem(Ne, String(n));
1356
+ const [n, a] = Y(
1357
+ () => localStorage.getItem(Ne) === "true"
1358
+ ), s = (u) => {
1359
+ a(u), t == null || t(u), localStorage.setItem(Ne, String(n));
1359
1360
  };
1360
1361
  return /* @__PURE__ */ f.jsx(
1361
1362
  Br,
1362
1363
  {
1363
1364
  theme: {
1364
- ...jt,
1365
+ ...Tt,
1365
1366
  colors: n ? Ot : Pt
1366
1367
  },
1367
1368
  children: /* @__PURE__ */ f.jsxs(
@@ -1381,7 +1382,7 @@ function eo({
1381
1382
  );
1382
1383
  }
1383
1384
  function Dt() {
1384
- const r = Ge(), t = J({
1385
+ const r = He(), t = J({
1385
1386
  "*": {
1386
1387
  boxSizing: "border-box",
1387
1388
  outline: 0,
@@ -1491,9 +1492,9 @@ export {
1491
1492
  Vt as DropdownItemButton,
1492
1493
  Ut as DropdownItemLink,
1493
1494
  Xr as DropdownLabel,
1494
- Ht as ExternalLink,
1495
+ Gt as ExternalLink,
1495
1496
  Xt as Form,
1496
- Gt as Modal,
1497
+ Ht as Modal,
1497
1498
  it as ModalBody,
1498
1499
  ct as ModalCloseBtn,
1499
1500
  lt as ModalContainer,