@minimalstuff/ui 0.0.14 → 0.0.17

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,41 +1,38 @@
1
- import Ce from "@emotion/styled";
2
- import Oe, { createContext as yr, useState as _r, useEffect as Er } from "react";
3
- import { ThemeProvider as Rr } from "@emotion/react";
4
- import Tr from "hex-rgb";
5
- const Mr = Ce.button(
6
- ({ theme: u, danger: m = !1, secondary: h = !1 }) => {
7
- const d = m ? u.colors.lightRed : u.colors.primary, T = m ? u.colors.lightRed : u.colors.darkBlue, x = h ? d : u.colors.white, _ = h ? "transparent" : d;
1
+ import y from "@emotion/styled";
2
+ import P, { useEffect as Q, createContext as ze, useContext as Lr, useState as Y, useRef as Ve, Fragment as Ue } from "react";
3
+ import { keyframes as ue, useTheme as He, ThemeProvider as Yr, css as J, Global as Br } from "@emotion/react";
4
+ import { useHotkeys as Mr } from "react-hotkeys-hook";
5
+ import Nr from "hex-rgb";
6
+ import Ge from "tinycolor2";
7
+ import { createPortal as zr } from "react-dom";
8
+ import Vr from "react-toggle";
9
+ import Ur from "react-select";
10
+ const Nt = y.button(
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;
8
13
  return {
9
14
  cursor: "pointer",
10
15
  width: "100%",
11
16
  textTransform: "uppercase",
12
- fontSize: u.fontSizes.m,
13
- color: x,
14
- background: _,
17
+ fontSize: r.fontSizes.m,
18
+ color: c,
19
+ background: m,
15
20
  padding: "0.75em",
16
- border: `1px solid ${d}`,
17
- borderRadius: u.borders.radius.m,
18
- transition: u.transitions.delay.normal,
21
+ border: `1px solid ${a}`,
22
+ borderRadius: r.borders.radius.m,
23
+ transition: r.transitions.delay.fast,
19
24
  "&:disabled": {
20
25
  cursor: "not-allowed",
21
26
  opacity: "0.5"
22
27
  },
23
28
  "&:not(:disabled):hover": {
24
- background: h ? u.colors.secondary : T
29
+ background: n ? r.colors.secondary : s,
30
+ borderColor: n ? r.colors.secondary : s
25
31
  }
26
32
  };
27
33
  }
28
- ), Vr = Ce.p(({ lines: u = 1 }) => u > 1 ? {
29
- overflow: "hidden",
30
- display: "-webkit-box",
31
- WebkitLineClamp: u,
32
- WebkitBoxOrient: "vertical"
33
- } : {
34
- textOverflow: "ellipsis",
35
- whiteSpace: "nowrap",
36
- overflow: "hidden"
37
- });
38
- var Z = { exports: {} }, I = {};
34
+ );
35
+ var ce = { exports: {} }, z = {};
39
36
  /**
40
37
  * @license React
41
38
  * react-jsx-runtime.production.min.js
@@ -45,21 +42,21 @@ var Z = { exports: {} }, I = {};
45
42
  * This source code is licensed under the MIT license found in the
46
43
  * LICENSE file in the root directory of this source tree.
47
44
  */
48
- var xe;
49
- function xr() {
50
- if (xe) return I;
51
- xe = 1;
52
- var u = Oe, m = Symbol.for("react.element"), h = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, T = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
53
- function _(w, v, O) {
54
- var g, R = {}, S = null, Y = null;
55
- O !== void 0 && (S = "" + O), v.key !== void 0 && (S = "" + v.key), v.ref !== void 0 && (Y = v.ref);
56
- for (g in v) d.call(v, g) && !x.hasOwnProperty(g) && (R[g] = v[g]);
57
- if (w && w.defaultProps) for (g in v = w.defaultProps, v) R[g] === void 0 && (R[g] = v[g]);
58
- return { $$typeof: m, type: w, key: S, ref: Y, props: R, _owner: T.current };
45
+ var Le;
46
+ function Hr() {
47
+ if (Le) return z;
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 };
50
+ function m(h, g, S) {
51
+ var p, T = {}, E = null, D = null;
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 };
59
56
  }
60
- return I.Fragment = h, I.jsx = _, I.jsxs = _, I;
57
+ return z.Fragment = n, z.jsx = m, z.jsxs = m, z;
61
58
  }
62
- var W = {};
59
+ var V = {};
63
60
  /**
64
61
  * @license React
65
62
  * react-jsx-runtime.development.js
@@ -69,91 +66,91 @@ var W = {};
69
66
  * This source code is licensed under the MIT license found in the
70
67
  * LICENSE file in the root directory of this source tree.
71
68
  */
72
- var we;
73
- function wr() {
74
- return we || (we = 1, process.env.NODE_ENV !== "production" && function() {
75
- var u = Oe, m = Symbol.for("react.element"), h = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), w = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), Q = Symbol.iterator, Ie = "@@iterator";
76
- function We(e) {
69
+ var Ye;
70
+ function Gr() {
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, rr = "@@iterator";
73
+ function tr(e) {
77
74
  if (e === null || typeof e != "object")
78
75
  return null;
79
- var r = Q && e[Q] || e[Ie];
80
- return typeof r == "function" ? r : null;
76
+ var o = pe && e[pe] || e[rr];
77
+ return typeof o == "function" ? o : null;
81
78
  }
82
- var P = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
83
- function c(e) {
79
+ var $ = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
80
+ function _(e) {
84
81
  {
85
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
86
- t[n - 1] = arguments[n];
87
- Ye("error", e, t);
82
+ for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), l = 1; l < o; l++)
83
+ i[l - 1] = arguments[l];
84
+ or("error", e, i);
88
85
  }
89
86
  }
90
- function Ye(e, r, t) {
87
+ function or(e, o, i) {
91
88
  {
92
- var n = P.ReactDebugCurrentFrame, i = n.getStackAddendum();
93
- i !== "" && (r += "%s", t = t.concat([i]));
94
- var s = t.map(function(o) {
95
- return String(o);
89
+ var l = $.ReactDebugCurrentFrame, b = l.getStackAddendum();
90
+ b !== "" && (o += "%s", i = i.concat([b]));
91
+ var v = i.map(function(d) {
92
+ return String(d);
96
93
  });
97
- s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
94
+ v.unshift("Warning: " + o), Function.prototype.apply.call(console[e], console, v);
98
95
  }
99
96
  }
100
- var Le = !1, Me = !1, Ve = !1, Be = !1, Ue = !1, ee;
101
- ee = Symbol.for("react.module.reference");
102
- function Ne(e) {
103
- return !!(typeof e == "string" || typeof e == "function" || e === d || e === x || Ue || e === T || e === O || e === g || Be || e === Y || Le || Me || Ve || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === R || e.$$typeof === _ || e.$$typeof === w || e.$$typeof === v || // This needs to include all possible module reference object
97
+ var nr = !1, ar = !1, ir = !1, lr = !1, sr = !1, be;
98
+ be = Symbol.for("react.module.reference");
99
+ function cr(e) {
100
+ return !!(typeof e == "string" || typeof e == "function" || e === a || e === c || sr || e === s || e === S || e === p || lr || e === D || nr || ar || ir || 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
104
101
  // types supported by any Flight configuration anywhere since
105
102
  // we don't know which Flight build this will end up being used
106
103
  // with.
107
- e.$$typeof === ee || e.getModuleId !== void 0));
104
+ e.$$typeof === be || e.getModuleId !== void 0));
108
105
  }
109
- function Je(e, r, t) {
110
- var n = e.displayName;
111
- if (n)
112
- return n;
113
- var i = r.displayName || r.name || "";
114
- return i !== "" ? t + "(" + i + ")" : t;
106
+ function ur(e, o, i) {
107
+ var l = e.displayName;
108
+ if (l)
109
+ return l;
110
+ var b = o.displayName || o.name || "";
111
+ return b !== "" ? i + "(" + b + ")" : i;
115
112
  }
116
- function re(e) {
113
+ function ge(e) {
117
114
  return e.displayName || "Context";
118
115
  }
119
- function E(e) {
116
+ function j(e) {
120
117
  if (e == null)
121
118
  return null;
122
- if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
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")
123
120
  return e.displayName || e.name || null;
124
121
  if (typeof e == "string")
125
122
  return e;
126
123
  switch (e) {
127
- case d:
124
+ case a:
128
125
  return "Fragment";
129
- case h:
126
+ case n:
130
127
  return "Portal";
131
- case x:
128
+ case c:
132
129
  return "Profiler";
133
- case T:
130
+ case s:
134
131
  return "StrictMode";
135
- case O:
132
+ case S:
136
133
  return "Suspense";
137
- case g:
134
+ case p:
138
135
  return "SuspenseList";
139
136
  }
140
137
  if (typeof e == "object")
141
138
  switch (e.$$typeof) {
142
- case w:
143
- var r = e;
144
- return re(r) + ".Consumer";
145
- case _:
146
- var t = e;
147
- return re(t._context) + ".Provider";
148
- case v:
149
- return Je(e, e.render, "ForwardRef");
150
- case R:
151
- var n = e.displayName || null;
152
- return n !== null ? n : E(e.type) || "Memo";
153
- case S: {
154
- var i = e, s = i._payload, o = i._init;
139
+ case h:
140
+ var o = e;
141
+ return ge(o) + ".Consumer";
142
+ case m:
143
+ var i = e;
144
+ return ge(i._context) + ".Provider";
145
+ case g:
146
+ return ur(e, e.render, "ForwardRef");
147
+ case T:
148
+ var l = e.displayName || null;
149
+ return l !== null ? l : j(e.type) || "Memo";
150
+ case E: {
151
+ var b = e, v = b._payload, d = b._init;
155
152
  try {
156
- return E(o(s));
153
+ return j(d(v));
157
154
  } catch {
158
155
  return null;
159
156
  }
@@ -161,18 +158,18 @@ function wr() {
161
158
  }
162
159
  return null;
163
160
  }
164
- var k = Object.assign, F = 0, te, ne, ae, oe, ie, se, ue;
165
- function le() {
161
+ var F = Object.assign, B = 0, ve, me, he, ye, xe, we, Ee;
162
+ function _e() {
166
163
  }
167
- le.__reactDisabledLog = !0;
168
- function Ke() {
164
+ _e.__reactDisabledLog = !0;
165
+ function dr() {
169
166
  {
170
- if (F === 0) {
171
- te = console.log, ne = console.info, ae = console.warn, oe = console.error, ie = console.group, se = console.groupCollapsed, ue = console.groupEnd;
167
+ if (B === 0) {
168
+ ve = console.log, me = console.info, he = console.warn, ye = console.error, xe = console.group, we = console.groupCollapsed, Ee = console.groupEnd;
172
169
  var e = {
173
170
  configurable: !0,
174
171
  enumerable: !0,
175
- value: le,
172
+ value: _e,
176
173
  writable: !0
177
174
  };
178
175
  Object.defineProperties(console, {
@@ -185,336 +182,336 @@ function wr() {
185
182
  groupEnd: e
186
183
  });
187
184
  }
188
- F++;
185
+ B++;
189
186
  }
190
187
  }
191
- function qe() {
188
+ function fr() {
192
189
  {
193
- if (F--, F === 0) {
190
+ if (B--, B === 0) {
194
191
  var e = {
195
192
  configurable: !0,
196
193
  enumerable: !0,
197
194
  writable: !0
198
195
  };
199
196
  Object.defineProperties(console, {
200
- log: k({}, e, {
201
- value: te
197
+ log: F({}, e, {
198
+ value: ve
202
199
  }),
203
- info: k({}, e, {
204
- value: ne
200
+ info: F({}, e, {
201
+ value: me
205
202
  }),
206
- warn: k({}, e, {
207
- value: ae
203
+ warn: F({}, e, {
204
+ value: he
208
205
  }),
209
- error: k({}, e, {
210
- value: oe
206
+ error: F({}, e, {
207
+ value: ye
211
208
  }),
212
- group: k({}, e, {
213
- value: ie
209
+ group: F({}, e, {
210
+ value: xe
214
211
  }),
215
- groupCollapsed: k({}, e, {
216
- value: se
212
+ groupCollapsed: F({}, e, {
213
+ value: we
217
214
  }),
218
- groupEnd: k({}, e, {
219
- value: ue
215
+ groupEnd: F({}, e, {
216
+ value: Ee
220
217
  })
221
218
  });
222
219
  }
223
- F < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
220
+ B < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
224
221
  }
225
222
  }
226
- var U = P.ReactCurrentDispatcher, N;
227
- function L(e, r, t) {
223
+ var ee = $.ReactCurrentDispatcher, re;
224
+ function U(e, o, i) {
228
225
  {
229
- if (N === void 0)
226
+ if (re === void 0)
230
227
  try {
231
228
  throw Error();
232
- } catch (i) {
233
- var n = i.stack.trim().match(/\n( *(at )?)/);
234
- N = n && n[1] || "";
229
+ } catch (b) {
230
+ var l = b.stack.trim().match(/\n( *(at )?)/);
231
+ re = l && l[1] || "";
235
232
  }
236
233
  return `
237
- ` + N + e;
234
+ ` + re + e;
238
235
  }
239
236
  }
240
- var J = !1, M;
237
+ var te = !1, H;
241
238
  {
242
- var ze = typeof WeakMap == "function" ? WeakMap : Map;
243
- M = new ze();
239
+ var pr = typeof WeakMap == "function" ? WeakMap : Map;
240
+ H = new pr();
244
241
  }
245
- function fe(e, r) {
246
- if (!e || J)
242
+ function ke(e, o) {
243
+ if (!e || te)
247
244
  return "";
248
245
  {
249
- var t = M.get(e);
250
- if (t !== void 0)
251
- return t;
246
+ var i = H.get(e);
247
+ if (i !== void 0)
248
+ return i;
252
249
  }
253
- var n;
254
- J = !0;
255
- var i = Error.prepareStackTrace;
250
+ var l;
251
+ te = !0;
252
+ var b = Error.prepareStackTrace;
256
253
  Error.prepareStackTrace = void 0;
257
- var s;
258
- s = U.current, U.current = null, Ke();
254
+ var v;
255
+ v = ee.current, ee.current = null, dr();
259
256
  try {
260
- if (r) {
261
- var o = function() {
257
+ if (o) {
258
+ var d = function() {
262
259
  throw Error();
263
260
  };
264
- if (Object.defineProperty(o.prototype, "props", {
261
+ if (Object.defineProperty(d.prototype, "props", {
265
262
  set: function() {
266
263
  throw Error();
267
264
  }
268
265
  }), typeof Reflect == "object" && Reflect.construct) {
269
266
  try {
270
- Reflect.construct(o, []);
271
- } catch (b) {
272
- n = b;
267
+ Reflect.construct(d, []);
268
+ } catch (R) {
269
+ l = R;
273
270
  }
274
- Reflect.construct(e, [], o);
271
+ Reflect.construct(e, [], d);
275
272
  } else {
276
273
  try {
277
- o.call();
278
- } catch (b) {
279
- n = b;
274
+ d.call();
275
+ } catch (R) {
276
+ l = R;
280
277
  }
281
- e.call(o.prototype);
278
+ e.call(d.prototype);
282
279
  }
283
280
  } else {
284
281
  try {
285
282
  throw Error();
286
- } catch (b) {
287
- n = b;
283
+ } catch (R) {
284
+ l = R;
288
285
  }
289
286
  e();
290
287
  }
291
- } catch (b) {
292
- if (b && n && typeof b.stack == "string") {
293
- for (var a = b.stack.split(`
294
- `), p = n.stack.split(`
295
- `), l = a.length - 1, f = p.length - 1; l >= 1 && f >= 0 && a[l] !== p[f]; )
296
- f--;
297
- for (; l >= 1 && f >= 0; l--, f--)
298
- if (a[l] !== p[f]) {
299
- if (l !== 1 || f !== 1)
288
+ } catch (R) {
289
+ if (R && l && typeof R.stack == "string") {
290
+ for (var u = R.stack.split(`
291
+ `), k = l.stack.split(`
292
+ `), x = u.length - 1, w = k.length - 1; x >= 1 && w >= 0 && u[x] !== k[w]; )
293
+ w--;
294
+ for (; x >= 1 && w >= 0; x--, w--)
295
+ if (u[x] !== k[w]) {
296
+ if (x !== 1 || w !== 1)
300
297
  do
301
- if (l--, f--, f < 0 || a[l] !== p[f]) {
302
- var y = `
303
- ` + a[l].replace(" at new ", " at ");
304
- return e.displayName && y.includes("<anonymous>") && (y = y.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, y), y;
298
+ if (x--, w--, w < 0 || u[x] !== k[w]) {
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;
305
302
  }
306
- while (l >= 1 && f >= 0);
303
+ while (x >= 1 && w >= 0);
307
304
  break;
308
305
  }
309
306
  }
310
307
  } finally {
311
- J = !1, U.current = s, qe(), Error.prepareStackTrace = i;
308
+ te = !1, ee.current = v, fr(), Error.prepareStackTrace = b;
312
309
  }
313
- var D = e ? e.displayName || e.name : "", C = D ? L(D) : "";
314
- return typeof e == "function" && M.set(e, C), C;
310
+ var L = e ? e.displayName || e.name : "", A = L ? U(L) : "";
311
+ return typeof e == "function" && H.set(e, A), A;
315
312
  }
316
- function Ge(e, r, t) {
317
- return fe(e, !1);
313
+ function br(e, o, i) {
314
+ return ke(e, !1);
318
315
  }
319
- function Xe(e) {
320
- var r = e.prototype;
321
- return !!(r && r.isReactComponent);
316
+ function gr(e) {
317
+ var o = e.prototype;
318
+ return !!(o && o.isReactComponent);
322
319
  }
323
- function V(e, r, t) {
320
+ function G(e, o, i) {
324
321
  if (e == null)
325
322
  return "";
326
323
  if (typeof e == "function")
327
- return fe(e, Xe(e));
324
+ return ke(e, gr(e));
328
325
  if (typeof e == "string")
329
- return L(e);
326
+ return U(e);
330
327
  switch (e) {
331
- case O:
332
- return L("Suspense");
333
- case g:
334
- return L("SuspenseList");
328
+ case S:
329
+ return U("Suspense");
330
+ case p:
331
+ return U("SuspenseList");
335
332
  }
336
333
  if (typeof e == "object")
337
334
  switch (e.$$typeof) {
338
- case v:
339
- return Ge(e.render);
340
- case R:
341
- return V(e.type, r, t);
342
- case S: {
343
- var n = e, i = n._payload, s = n._init;
335
+ case g:
336
+ return br(e.render);
337
+ case T:
338
+ return G(e.type, o, i);
339
+ case E: {
340
+ var l = e, b = l._payload, v = l._init;
344
341
  try {
345
- return V(s(i), r, t);
342
+ return G(v(b), o, i);
346
343
  } catch {
347
344
  }
348
345
  }
349
346
  }
350
347
  return "";
351
348
  }
352
- var A = Object.prototype.hasOwnProperty, ce = {}, de = P.ReactDebugCurrentFrame;
353
- function B(e) {
349
+ var M = Object.prototype.hasOwnProperty, Re = {}, Se = $.ReactDebugCurrentFrame;
350
+ function K(e) {
354
351
  if (e) {
355
- var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
356
- de.setExtraStackFrame(t);
352
+ var o = e._owner, i = G(e.type, e._source, o ? o.type : null);
353
+ Se.setExtraStackFrame(i);
357
354
  } else
358
- de.setExtraStackFrame(null);
355
+ Se.setExtraStackFrame(null);
359
356
  }
360
- function He(e, r, t, n, i) {
357
+ function vr(e, o, i, l, b) {
361
358
  {
362
- var s = Function.call.bind(A);
363
- for (var o in e)
364
- if (s(e, o)) {
365
- var a = void 0;
359
+ var v = Function.call.bind(M);
360
+ for (var d in e)
361
+ if (v(e, d)) {
362
+ var u = void 0;
366
363
  try {
367
- if (typeof e[o] != "function") {
368
- var p = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
369
- throw p.name = "Invariant Violation", p;
364
+ if (typeof e[d] != "function") {
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
+ throw k.name = "Invariant Violation", k;
370
367
  }
371
- a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
372
- } catch (l) {
373
- a = l;
368
+ u = e[d](o, d, l, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
369
+ } catch (x) {
370
+ u = x;
374
371
  }
375
- a && !(a instanceof Error) && (B(i), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), B(null)), a instanceof Error && !(a.message in ce) && (ce[a.message] = !0, B(i), c("Failed %s type: %s", t, a.message), B(null));
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));
376
373
  }
377
374
  }
378
375
  }
379
- var Ze = Array.isArray;
380
- function K(e) {
381
- return Ze(e);
376
+ var mr = Array.isArray;
377
+ function oe(e) {
378
+ return mr(e);
382
379
  }
383
- function Qe(e) {
380
+ function hr(e) {
384
381
  {
385
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
386
- return t;
382
+ var o = typeof Symbol == "function" && Symbol.toStringTag, i = o && e[Symbol.toStringTag] || e.constructor.name || "Object";
383
+ return i;
387
384
  }
388
385
  }
389
- function er(e) {
386
+ function yr(e) {
390
387
  try {
391
- return ve(e), !1;
388
+ return Ce(e), !1;
392
389
  } catch {
393
390
  return !0;
394
391
  }
395
392
  }
396
- function ve(e) {
393
+ function Ce(e) {
397
394
  return "" + e;
398
395
  }
399
- function pe(e) {
400
- if (er(e))
401
- return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), ve(e);
396
+ function Te(e) {
397
+ if (yr(e))
398
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", hr(e)), Ce(e);
402
399
  }
403
- var $ = P.ReactCurrentOwner, rr = {
400
+ var N = $.ReactCurrentOwner, xr = {
404
401
  key: !0,
405
402
  ref: !0,
406
403
  __self: !0,
407
404
  __source: !0
408
- }, be, ge, q;
409
- q = {};
410
- function tr(e) {
411
- if (A.call(e, "ref")) {
412
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
413
- if (r && r.isReactWarning)
405
+ }, je, Oe, ne;
406
+ ne = {};
407
+ function wr(e) {
408
+ if (M.call(e, "ref")) {
409
+ var o = Object.getOwnPropertyDescriptor(e, "ref").get;
410
+ if (o && o.isReactWarning)
414
411
  return !1;
415
412
  }
416
413
  return e.ref !== void 0;
417
414
  }
418
- function nr(e) {
419
- if (A.call(e, "key")) {
420
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
421
- if (r && r.isReactWarning)
415
+ function Er(e) {
416
+ if (M.call(e, "key")) {
417
+ var o = Object.getOwnPropertyDescriptor(e, "key").get;
418
+ if (o && o.isReactWarning)
422
419
  return !1;
423
420
  }
424
421
  return e.key !== void 0;
425
422
  }
426
- function ar(e, r) {
427
- if (typeof e.ref == "string" && $.current && r && $.current.stateNode !== r) {
428
- var t = E($.current.type);
429
- q[t] || (c('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', E($.current.type), e.ref), q[t] = !0);
423
+ function _r(e, o) {
424
+ if (typeof e.ref == "string" && N.current && o && N.current.stateNode !== o) {
425
+ var i = j(N.current.type);
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);
430
427
  }
431
428
  }
432
- function or(e, r) {
429
+ function kr(e, o) {
433
430
  {
434
- var t = function() {
435
- be || (be = !0, c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
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));
436
433
  };
437
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
438
- get: t,
434
+ i.isReactWarning = !0, Object.defineProperty(e, "key", {
435
+ get: i,
439
436
  configurable: !0
440
437
  });
441
438
  }
442
439
  }
443
- function ir(e, r) {
440
+ function Rr(e, o) {
444
441
  {
445
- var t = function() {
446
- ge || (ge = !0, c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
442
+ var i = function() {
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));
447
444
  };
448
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
449
- get: t,
445
+ i.isReactWarning = !0, Object.defineProperty(e, "ref", {
446
+ get: i,
450
447
  configurable: !0
451
448
  });
452
449
  }
453
450
  }
454
- var sr = function(e, r, t, n, i, s, o) {
455
- var a = {
451
+ var Sr = function(e, o, i, l, b, v, d) {
452
+ var u = {
456
453
  // This tag allows us to uniquely identify this as a React Element
457
- $$typeof: m,
454
+ $$typeof: t,
458
455
  // Built-in properties that belong on the element
459
456
  type: e,
460
- key: r,
461
- ref: t,
462
- props: o,
457
+ key: o,
458
+ ref: i,
459
+ props: d,
463
460
  // Record the component responsible for creating this element.
464
- _owner: s
461
+ _owner: v
465
462
  };
466
- return a._store = {}, Object.defineProperty(a._store, "validated", {
463
+ return u._store = {}, Object.defineProperty(u._store, "validated", {
467
464
  configurable: !1,
468
465
  enumerable: !1,
469
466
  writable: !0,
470
467
  value: !1
471
- }), Object.defineProperty(a, "_self", {
468
+ }), Object.defineProperty(u, "_self", {
472
469
  configurable: !1,
473
470
  enumerable: !1,
474
471
  writable: !1,
475
- value: n
476
- }), Object.defineProperty(a, "_source", {
472
+ value: l
473
+ }), Object.defineProperty(u, "_source", {
477
474
  configurable: !1,
478
475
  enumerable: !1,
479
476
  writable: !1,
480
- value: i
481
- }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
477
+ value: b
478
+ }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
482
479
  };
483
- function ur(e, r, t, n, i) {
480
+ function Cr(e, o, i, l, b) {
484
481
  {
485
- var s, o = {}, a = null, p = null;
486
- t !== void 0 && (pe(t), a = "" + t), nr(r) && (pe(r.key), a = "" + r.key), tr(r) && (p = r.ref, ar(r, i));
487
- for (s in r)
488
- A.call(r, s) && !rr.hasOwnProperty(s) && (o[s] = r[s]);
482
+ var v, d = {}, u = null, k = null;
483
+ i !== void 0 && (Te(i), u = "" + i), Er(o) && (Te(o.key), u = "" + o.key), wr(o) && (k = o.ref, _r(o, b));
484
+ for (v in o)
485
+ M.call(o, v) && !xr.hasOwnProperty(v) && (d[v] = o[v]);
489
486
  if (e && e.defaultProps) {
490
- var l = e.defaultProps;
491
- for (s in l)
492
- o[s] === void 0 && (o[s] = l[s]);
487
+ var x = e.defaultProps;
488
+ for (v in x)
489
+ d[v] === void 0 && (d[v] = x[v]);
493
490
  }
494
- if (a || p) {
495
- var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
496
- a && or(o, f), p && ir(o, f);
491
+ if (u || k) {
492
+ var w = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
493
+ u && kr(d, w), k && Rr(d, w);
497
494
  }
498
- return sr(e, a, p, i, n, $.current, o);
495
+ return Sr(e, u, k, b, l, N.current, d);
499
496
  }
500
497
  }
501
- var z = P.ReactCurrentOwner, me = P.ReactDebugCurrentFrame;
502
- function j(e) {
498
+ var ae = $.ReactCurrentOwner, Pe = $.ReactDebugCurrentFrame;
499
+ function W(e) {
503
500
  if (e) {
504
- var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
505
- me.setExtraStackFrame(t);
501
+ var o = e._owner, i = G(e.type, e._source, o ? o.type : null);
502
+ Pe.setExtraStackFrame(i);
506
503
  } else
507
- me.setExtraStackFrame(null);
504
+ Pe.setExtraStackFrame(null);
508
505
  }
509
- var G;
510
- G = !1;
511
- function X(e) {
512
- return typeof e == "object" && e !== null && e.$$typeof === m;
506
+ var ie;
507
+ ie = !1;
508
+ function le(e) {
509
+ return typeof e == "object" && e !== null && e.$$typeof === t;
513
510
  }
514
- function he() {
511
+ function De() {
515
512
  {
516
- if (z.current) {
517
- var e = E(z.current.type);
513
+ if (ae.current) {
514
+ var e = j(ae.current.type);
518
515
  if (e)
519
516
  return `
520
517
 
@@ -523,149 +520,758 @@ Check the render method of \`` + e + "`.";
523
520
  return "";
524
521
  }
525
522
  }
526
- function lr(e) {
523
+ function Tr(e) {
527
524
  return "";
528
525
  }
529
- var ye = {};
530
- function fr(e) {
526
+ var Ie = {};
527
+ function jr(e) {
531
528
  {
532
- var r = he();
533
- if (!r) {
534
- var t = typeof e == "string" ? e : e.displayName || e.name;
535
- t && (r = `
529
+ var o = De();
530
+ if (!o) {
531
+ var i = typeof e == "string" ? e : e.displayName || e.name;
532
+ i && (o = `
536
533
 
537
- Check the top-level render call using <` + t + ">.");
534
+ Check the top-level render call using <` + i + ">.");
538
535
  }
539
- return r;
536
+ return o;
540
537
  }
541
538
  }
542
- function _e(e, r) {
539
+ function Fe(e, o) {
543
540
  {
544
541
  if (!e._store || e._store.validated || e.key != null)
545
542
  return;
546
543
  e._store.validated = !0;
547
- var t = fr(r);
548
- if (ye[t])
544
+ var i = jr(o);
545
+ if (Ie[i])
549
546
  return;
550
- ye[t] = !0;
551
- var n = "";
552
- e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + E(e._owner.type) + "."), j(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), j(null);
547
+ Ie[i] = !0;
548
+ var l = "";
549
+ e && e._owner && e._owner !== ae.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);
553
550
  }
554
551
  }
555
- function Ee(e, r) {
552
+ function Ae(e, o) {
556
553
  {
557
554
  if (typeof e != "object")
558
555
  return;
559
- if (K(e))
560
- for (var t = 0; t < e.length; t++) {
561
- var n = e[t];
562
- X(n) && _e(n, r);
556
+ if (oe(e))
557
+ for (var i = 0; i < e.length; i++) {
558
+ var l = e[i];
559
+ le(l) && Fe(l, o);
563
560
  }
564
- else if (X(e))
561
+ else if (le(e))
565
562
  e._store && (e._store.validated = !0);
566
563
  else if (e) {
567
- var i = We(e);
568
- if (typeof i == "function" && i !== e.entries)
569
- for (var s = i.call(e), o; !(o = s.next()).done; )
570
- X(o.value) && _e(o.value, r);
564
+ var b = tr(e);
565
+ if (typeof b == "function" && b !== e.entries)
566
+ for (var v = b.call(e), d; !(d = v.next()).done; )
567
+ le(d.value) && Fe(d.value, o);
571
568
  }
572
569
  }
573
570
  }
574
- function cr(e) {
571
+ function Or(e) {
575
572
  {
576
- var r = e.type;
577
- if (r == null || typeof r == "string")
573
+ var o = e.type;
574
+ if (o == null || typeof o == "string")
578
575
  return;
579
- var t;
580
- if (typeof r == "function")
581
- t = r.propTypes;
582
- else if (typeof r == "object" && (r.$$typeof === v || // Note: Memo only checks outer props here.
576
+ var i;
577
+ if (typeof o == "function")
578
+ i = o.propTypes;
579
+ else if (typeof o == "object" && (o.$$typeof === g || // Note: Memo only checks outer props here.
583
580
  // Inner props are checked in the reconciler.
584
- r.$$typeof === R))
585
- t = r.propTypes;
581
+ o.$$typeof === T))
582
+ i = o.propTypes;
586
583
  else
587
584
  return;
588
- if (t) {
589
- var n = E(r);
590
- He(t, e.props, "prop", n, e);
591
- } else if (r.PropTypes !== void 0 && !G) {
592
- G = !0;
593
- var i = E(r);
594
- c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
585
+ if (i) {
586
+ var l = j(o);
587
+ vr(i, e.props, "prop", l, e);
588
+ } else if (o.PropTypes !== void 0 && !ie) {
589
+ ie = !0;
590
+ var b = j(o);
591
+ _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", b || "Unknown");
595
592
  }
596
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
593
+ typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
597
594
  }
598
595
  }
599
- function dr(e) {
596
+ function Pr(e) {
600
597
  {
601
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
602
- var n = r[t];
603
- if (n !== "children" && n !== "key") {
604
- j(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), j(null);
598
+ for (var o = Object.keys(e.props), i = 0; i < o.length; i++) {
599
+ var l = o[i];
600
+ if (l !== "children" && l !== "key") {
601
+ W(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", l), W(null);
605
602
  break;
606
603
  }
607
604
  }
608
- e.ref !== null && (j(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), j(null));
605
+ e.ref !== null && (W(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
609
606
  }
610
607
  }
611
- var Re = {};
612
- function Te(e, r, t, n, i, s) {
608
+ var $e = {};
609
+ function We(e, o, i, l, b, v) {
613
610
  {
614
- var o = Ne(e);
615
- if (!o) {
616
- var a = "";
617
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
618
- var p = lr();
619
- p ? a += p : a += he();
620
- var l;
621
- e === null ? l = "null" : K(e) ? l = "array" : e !== void 0 && e.$$typeof === m ? (l = "<" + (E(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
611
+ var d = cr(e);
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.");
615
+ var k = Tr();
616
+ k ? u += k : u += De();
617
+ var x;
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);
622
619
  }
623
- var f = ur(e, r, t, i, s);
624
- if (f == null)
625
- return f;
626
- if (o) {
627
- var y = r.children;
628
- if (y !== void 0)
629
- if (n)
630
- if (K(y)) {
631
- for (var D = 0; D < y.length; D++)
632
- Ee(y[D], e);
633
- Object.freeze && Object.freeze(y);
620
+ var w = Cr(e, o, i, b, v);
621
+ if (w == null)
622
+ return w;
623
+ if (d) {
624
+ var C = o.children;
625
+ if (C !== void 0)
626
+ if (l)
627
+ if (oe(C)) {
628
+ for (var L = 0; L < C.length; L++)
629
+ Ae(C[L], e);
630
+ Object.freeze && Object.freeze(C);
634
631
  } else
635
- c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
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.");
636
633
  else
637
- Ee(y, e);
634
+ Ae(C, e);
638
635
  }
639
- if (A.call(r, "key")) {
640
- var C = E(e), b = Object.keys(r).filter(function(hr) {
641
- return hr !== "key";
642
- }), H = b.length > 0 ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}";
643
- if (!Re[C + H]) {
644
- var mr = b.length > 0 ? "{" + b.join(": ..., ") + ": ...}" : "{}";
645
- c(`A props object containing a "key" prop is being spread into JSX:
636
+ if (M.call(o, "key")) {
637
+ var A = j(e), R = Object.keys(o).filter(function(Wr) {
638
+ return Wr !== "key";
639
+ }), se = R.length > 0 ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}";
640
+ if (!$e[A + se]) {
641
+ var $r = R.length > 0 ? "{" + R.join(": ..., ") + ": ...}" : "{}";
642
+ _(`A props object containing a "key" prop is being spread into JSX:
646
643
  let props = %s;
647
644
  <%s {...props} />
648
645
  React keys must be passed directly to JSX without using spread:
649
646
  let props = %s;
650
- <%s key={someKey} {...props} />`, H, C, mr, C), Re[C + H] = !0;
647
+ <%s key={someKey} {...props} />`, se, A, $r, A), $e[A + se] = !0;
651
648
  }
652
649
  }
653
- return e === d ? dr(f) : cr(f), f;
650
+ return e === a ? Pr(w) : Or(w), w;
654
651
  }
655
652
  }
656
- function vr(e, r, t) {
657
- return Te(e, r, t, !0);
653
+ function Dr(e, o, i) {
654
+ return We(e, o, i, !0);
655
+ }
656
+ function Ir(e, o, i) {
657
+ return We(e, o, i, !1);
658
658
  }
659
- function pr(e, r, t) {
660
- return Te(e, r, t, !1);
659
+ var Fr = Ir, Ar = Dr;
660
+ V.Fragment = a, V.jsx = Fr, V.jsxs = Ar;
661
+ }()), V;
662
+ }
663
+ process.env.NODE_ENV === "production" ? ce.exports = Hr() : ce.exports = Gr();
664
+ var f = ce.exports;
665
+ ue({
666
+ "0%": {
667
+ opacity: 0
668
+ },
669
+ "100%": {
670
+ opacity: 1
671
+ }
672
+ });
673
+ ue({
674
+ to: {
675
+ transform: "rotate(0deg)"
676
+ },
677
+ from: {
678
+ transform: "rotate(360deg)"
679
+ }
680
+ });
681
+ const Kr = ue({
682
+ from: {
683
+ opacity: 0,
684
+ transform: "scale(0.95)"
685
+ },
686
+ to: {
687
+ opacity: 1,
688
+ transform: "scale(1)"
689
+ }
690
+ }), de = y.div(({ theme: r }) => ({
691
+ animation: `${r.transitions.delay.normal} ${Kr} both`
692
+ })), Jr = y(de)(
693
+ ({ show: r, theme: t }) => ({
694
+ zIndex: 99,
695
+ position: "absolute",
696
+ top: "calc(100% + 0.5em)",
697
+ right: 0,
698
+ minWidth: "175px",
699
+ backgroundColor: r ? t.colors.secondary : t.colors.background,
700
+ border: `2px solid ${t.colors.secondary}`,
701
+ borderRadius: t.borders.radius.m,
702
+ boxShadow: t.colors.boxShadow,
703
+ display: r ? "flex" : "none",
704
+ flexDirection: "column",
705
+ overflow: "hidden"
706
+ })
707
+ ), qr = y.div(({ theme: r }) => ({
708
+ height: "auto",
709
+ width: "auto",
710
+ color: r.colors.font,
711
+ display: "flex",
712
+ gap: "0.35em"
713
+ }));
714
+ function Ke(r, t) {
715
+ Q(() => {
716
+ function n(a) {
717
+ var s;
718
+ r != null && r.current && !((s = r.current) != null && s.contains(a.target)) && t();
661
719
  }
662
- var br = pr, gr = vr;
663
- W.Fragment = d, W.jsx = br, W.jsxs = gr;
664
- }()), W;
720
+ return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
721
+ }, [r, t]);
722
+ }
723
+ const Xr = "escape", Zr = "ArrowUp", Qr = "ArrowDown", et = {
724
+ ARROW_DOWN: Qr,
725
+ ARROW_UP: Zr,
726
+ ESCAPE_KEY: Xr
727
+ }, rt = {
728
+ globalHotkeysEnabled: !0,
729
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
730
+ setGlobalHotkeysEnabled: (r) => {
731
+ }
732
+ }, tt = ze(
733
+ rt
734
+ ), Je = () => Lr(tt);
735
+ function qe(r, t, { enabled: n, disableGlobalCheck: a } = {
736
+ enabled: !0,
737
+ disableGlobalCheck: !1
738
+ }) {
739
+ const { globalHotkeysEnabled: s } = Je();
740
+ return Mr(
741
+ et[r],
742
+ (c) => {
743
+ c.preventDefault(), t();
744
+ },
745
+ {
746
+ enabled: a ? n : n && s,
747
+ enableOnFormTags: ["INPUT"]
748
+ }
749
+ );
750
+ }
751
+ const ot = (r = !1) => {
752
+ const [t, n] = Y(r);
753
+ return {
754
+ isShowing: t,
755
+ toggle: () => n((m) => !m),
756
+ open: () => n(!0),
757
+ close: () => n(!1)
758
+ };
759
+ }, nt = y.div(
760
+ ({ opened: r, theme: t, svgSize: n = 24 }) => ({
761
+ cursor: "pointer",
762
+ userSelect: "none",
763
+ position: "relative",
764
+ minWidth: "fit-content",
765
+ width: "fit-content",
766
+ maxWidth: "250px",
767
+ backgroundColor: r ? t.colors.secondary : t.colors.background,
768
+ padding: "4px",
769
+ borderRadius: t.borders.radius.m,
770
+ "&:hover": {
771
+ backgroundColor: t.colors.secondary
772
+ },
773
+ "& svg": {
774
+ height: `${n}px`,
775
+ width: `${n}px`
776
+ }
777
+ })
778
+ );
779
+ function zt({
780
+ children: r,
781
+ label: t,
782
+ className: n,
783
+ svgSize: a
784
+ }) {
785
+ const s = Ve(null), { isShowing: c, toggle: m, close: h } = ot();
786
+ return Ke(s, h), qe("ESCAPE_KEY", h, { disableGlobalCheck: !0 }), /* @__PURE__ */ f.jsxs(
787
+ nt,
788
+ {
789
+ opened: c,
790
+ onClick: m,
791
+ ref: s,
792
+ className: n,
793
+ svgSize: a,
794
+ children: [
795
+ /* @__PURE__ */ f.jsx(qr, { children: t }),
796
+ /* @__PURE__ */ f.jsx(Jr, { show: c, children: r })
797
+ ]
798
+ }
799
+ );
800
+ }
801
+ const Xe = y("div", {
802
+ shouldForwardProp: (r) => r !== "danger"
803
+ })(({ theme: r, danger: t }) => ({
804
+ fontSize: "14px",
805
+ whiteSpace: "nowrap",
806
+ color: t ? r.colors.red.default : r.colors.blue.default,
807
+ padding: "8px 12px",
808
+ borderRadius: r.borders.radius.m,
809
+ "&:hover": {
810
+ backgroundColor: r.colors.background
811
+ }
812
+ })), Vt = y(Xe)({
813
+ display: "flex",
814
+ gap: "0.75em",
815
+ alignItems: "center"
816
+ }), Ut = y(Xe.withComponent("a"))({
817
+ width: "100%",
818
+ display: "flex",
819
+ gap: "0.75em",
820
+ alignItems: "center"
821
+ });
822
+ function Ht({
823
+ children: r,
824
+ title: t,
825
+ ...n
826
+ }) {
827
+ return /* @__PURE__ */ f.jsx("a", { target: "_blank", rel: "noreferrer", title: t, ...n, children: r });
828
+ }
829
+ const at = y.div({
830
+ width: "100%",
831
+ display: "flex",
832
+ flex: 1,
833
+ alignItems: "center",
834
+ flexDirection: "column"
835
+ }), it = y(de)(({ theme: r }) => ({
836
+ minWidth: "500px",
837
+ background: r.colors.background,
838
+ padding: "1em",
839
+ borderRadius: r.borders.radius.m,
840
+ marginTop: "6em",
841
+ display: "flex",
842
+ alignItems: "center",
843
+ justifyContent: "center",
844
+ flexDirection: "column",
845
+ boxShadow: r.colors.boxShadow,
846
+ [`@media (max-width: ${r.medias.mobile})`]: {
847
+ maxHeight: "calc(100% - 2em)",
848
+ width: "calc(100% - 2em)",
849
+ minWidth: "unset",
850
+ marginTop: "1em"
851
+ }
852
+ })), lt = y.h3({
853
+ width: "100%",
854
+ margin: 0,
855
+ marginBottom: "0.75em",
856
+ display: "flex",
857
+ alignItems: "center",
858
+ justifyContent: "space-between"
859
+ }), st = y.button(({ theme: r }) => ({
860
+ cursor: "pointer",
861
+ color: r.colors.blue.default,
862
+ backgroundColor: "transparent",
863
+ border: 0,
864
+ padding: 0,
865
+ margin: 0
866
+ })), I = (r, t) => `rgba(${Nr(r, { format: "array" }).slice(0, -1).join(",")},${t})`;
867
+ function O(r) {
868
+ const t = Ge(r.color);
869
+ if (!t.isValid())
870
+ throw new Error("Invalid color provided");
871
+ return {
872
+ lightest: q({
873
+ ...r,
874
+ multiplicator: 2,
875
+ type: "lighten"
876
+ }),
877
+ light: q({
878
+ ...r,
879
+ multiplicator: 1,
880
+ type: "lighten"
881
+ }),
882
+ default: t.toString(),
883
+ dark: q({
884
+ ...r,
885
+ multiplicator: 1,
886
+ type: "darken"
887
+ }),
888
+ darkest: q({
889
+ ...r,
890
+ multiplicator: 2,
891
+ type: "darken"
892
+ })
893
+ };
894
+ }
895
+ function q({
896
+ color: r,
897
+ fadeStep: t = 15,
898
+ multiplicator: n,
899
+ type: a
900
+ }) {
901
+ return Ge(r)[a](t * n).toString();
902
+ }
903
+ const ct = y.div(({ theme: r }) => ({
904
+ zIndex: 9999,
905
+ position: "absolute",
906
+ top: 0,
907
+ left: 0,
908
+ height: "100%",
909
+ width: "100%",
910
+ background: I(r.colors.black, 0.35),
911
+ backdropFilter: "blur(0.1em)",
912
+ display: "flex",
913
+ alignItems: "center",
914
+ flexDirection: "column",
915
+ transition: r.transitions.delay.normal
916
+ }));
917
+ var Ze = {
918
+ color: void 0,
919
+ size: void 0,
920
+ className: void 0,
921
+ style: void 0,
922
+ attr: void 0
923
+ }, Be = P.createContext && /* @__PURE__ */ P.createContext(Ze), ut = ["attr", "size", "title"];
924
+ function dt(r, t) {
925
+ if (r == null) return {};
926
+ var n = ft(r, t), a, s;
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]);
931
+ }
932
+ return n;
933
+ }
934
+ function ft(r, t) {
935
+ if (r == null) return {};
936
+ var n = {};
937
+ for (var a in r)
938
+ if (Object.prototype.hasOwnProperty.call(r, a)) {
939
+ if (t.indexOf(a) >= 0) continue;
940
+ n[a] = r[a];
941
+ }
942
+ return n;
943
+ }
944
+ function X() {
945
+ return X = Object.assign ? Object.assign.bind() : function(r) {
946
+ for (var t = 1; t < arguments.length; t++) {
947
+ var n = arguments[t];
948
+ for (var a in n)
949
+ Object.prototype.hasOwnProperty.call(n, a) && (r[a] = n[a]);
950
+ }
951
+ return r;
952
+ }, X.apply(this, arguments);
953
+ }
954
+ function Me(r, t) {
955
+ var n = Object.keys(r);
956
+ if (Object.getOwnPropertySymbols) {
957
+ var a = Object.getOwnPropertySymbols(r);
958
+ t && (a = a.filter(function(s) {
959
+ return Object.getOwnPropertyDescriptor(r, s).enumerable;
960
+ })), n.push.apply(n, a);
961
+ }
962
+ return n;
665
963
  }
666
- process.env.NODE_ENV === "production" ? Z.exports = xr() : Z.exports = wr();
667
- var Se = Z.exports;
668
- const Sr = "__minimstuff_dark_theme__", kr = {
964
+ function Z(r) {
965
+ for (var t = 1; t < arguments.length; t++) {
966
+ var n = arguments[t] != null ? arguments[t] : {};
967
+ t % 2 ? Me(Object(n), !0).forEach(function(a) {
968
+ pt(r, a, n[a]);
969
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) : Me(Object(n)).forEach(function(a) {
970
+ Object.defineProperty(r, a, Object.getOwnPropertyDescriptor(n, a));
971
+ });
972
+ }
973
+ return r;
974
+ }
975
+ function pt(r, t, n) {
976
+ return t = bt(t), t in r ? Object.defineProperty(r, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = n, r;
977
+ }
978
+ function bt(r) {
979
+ var t = gt(r, "string");
980
+ return typeof t == "symbol" ? t : t + "";
981
+ }
982
+ function gt(r, t) {
983
+ if (typeof r != "object" || !r) return r;
984
+ var n = r[Symbol.toPrimitive];
985
+ if (n !== void 0) {
986
+ var a = n.call(r, t || "default");
987
+ if (typeof a != "object") return a;
988
+ throw new TypeError("@@toPrimitive must return a primitive value.");
989
+ }
990
+ return (t === "string" ? String : Number)(r);
991
+ }
992
+ function Qe(r) {
993
+ return r && r.map((t, n) => /* @__PURE__ */ P.createElement(t.tag, Z({
994
+ key: n
995
+ }, t.attr), Qe(t.child)));
996
+ }
997
+ function vt(r) {
998
+ return (t) => /* @__PURE__ */ P.createElement(mt, X({
999
+ attr: Z({}, r.attr)
1000
+ }, t), Qe(r.child));
1001
+ }
1002
+ function mt(r) {
1003
+ var t = (n) => {
1004
+ var {
1005
+ attr: a,
1006
+ size: s,
1007
+ title: c
1008
+ } = r, m = dt(r, ut), h = s || n.size || "1em", g;
1009
+ return n.className && (g = n.className), r.className && (g = (g ? g + " " : "") + r.className), /* @__PURE__ */ P.createElement("svg", X({
1010
+ stroke: "currentColor",
1011
+ fill: "currentColor",
1012
+ strokeWidth: "0"
1013
+ }, n.attr, a, m, {
1014
+ className: g,
1015
+ style: Z(Z({
1016
+ color: r.color || n.color
1017
+ }, n.style), r.style),
1018
+ height: h,
1019
+ width: h,
1020
+ xmlns: "http://www.w3.org/2000/svg"
1021
+ }), c && /* @__PURE__ */ P.createElement("title", null, c), r.children);
1022
+ };
1023
+ return Be !== void 0 ? /* @__PURE__ */ P.createElement(Be.Consumer, null, (n) => t(n)) : t(Ze);
1024
+ }
1025
+ function ht(r) {
1026
+ return vt({ 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
+ }
1028
+ const yt = y.p(({ lines: r = 1 }) => r > 1 ? {
1029
+ overflow: "hidden",
1030
+ display: "-webkit-box",
1031
+ WebkitLineClamp: r,
1032
+ WebkitBoxOrient: "vertical"
1033
+ } : {
1034
+ textOverflow: "ellipsis",
1035
+ whiteSpace: "nowrap",
1036
+ overflow: "hidden"
1037
+ });
1038
+ function Gt({
1039
+ title: r,
1040
+ children: t,
1041
+ opened: n = !0,
1042
+ hideCloseBtn: a = !1,
1043
+ className: s,
1044
+ close: c
1045
+ }) {
1046
+ const m = Ve(null), { setGlobalHotkeysEnabled: h } = Je();
1047
+ return Ke(m, c), qe("ESCAPE_KEY", c, { disableGlobalCheck: !0 }), Q(
1048
+ () => h(!n),
1049
+ [n, h]
1050
+ ), typeof window > "u" ? /* @__PURE__ */ f.jsx(Ue, {}) : n && zr(
1051
+ /* @__PURE__ */ f.jsx(ct, { children: /* @__PURE__ */ f.jsxs(it, { className: s, ref: m, children: [
1052
+ (!a || r) && /* @__PURE__ */ f.jsxs(lt, { children: [
1053
+ r && /* @__PURE__ */ f.jsx(yt, { children: r }),
1054
+ !a && /* @__PURE__ */ f.jsx(
1055
+ st,
1056
+ {
1057
+ onClick: c,
1058
+ style: { marginLeft: r ? "unset" : "auto" },
1059
+ children: /* @__PURE__ */ f.jsx(ht, { size: 20 })
1060
+ }
1061
+ )
1062
+ ] }),
1063
+ /* @__PURE__ */ f.jsx(at, { children: t })
1064
+ ] }) }),
1065
+ document.body
1066
+ );
1067
+ }
1068
+ const Kt = y.img(({ theme: r, size: t = 48 }) => {
1069
+ const n = I(r.colors.black, 0.1);
1070
+ return {
1071
+ height: `${t}px`,
1072
+ width: `${t}px`,
1073
+ borderRadius: "50%",
1074
+ "&:hover": {
1075
+ boxShadow: `0 1px 3px 0 ${n}, 0 1px 2px -1px ${n}`
1076
+ }
1077
+ };
1078
+ }), xt = y.li(
1079
+ ({ theme: r, active: t, danger: n }) => {
1080
+ const a = n ? r.colors.red.default : r.colors.blue.default;
1081
+ return {
1082
+ userSelect: "none",
1083
+ cursor: "pointer",
1084
+ backgroundColor: t ? I(a, 0.15) : r.colors.secondary,
1085
+ padding: "10px 20px",
1086
+ border: `1px solid ${t ? I(a, 0.1) : r.colors.secondary}`,
1087
+ borderBottom: `1px solid ${t ? I(a, 0.25) : r.colors.secondary}`,
1088
+ display: "flex",
1089
+ gap: "0.35em",
1090
+ alignItems: "center",
1091
+ transition: ".075s"
1092
+ };
1093
+ }
1094
+ ), wt = y.ul({
1095
+ padding: 0,
1096
+ margin: 0,
1097
+ display: "flex",
1098
+ listStyle: "none"
1099
+ }), Et = y.div(({ theme: r }) => ({
1100
+ zIndex: 1,
1101
+ position: "relative",
1102
+ border: `1px solid ${I(r.colors.blue.default, 0.25)}`,
1103
+ padding: "20px",
1104
+ marginTop: "-1px"
1105
+ }));
1106
+ function Jt({ tabs: r }) {
1107
+ const [t, n] = Y(0), a = (s) => {
1108
+ n(s);
1109
+ };
1110
+ return /* @__PURE__ */ f.jsxs("div", { children: [
1111
+ /* @__PURE__ */ f.jsx(wt, { children: r.map(({ title: s, icon: c, danger: m }, h) => /* @__PURE__ */ f.jsxs(
1112
+ xt,
1113
+ {
1114
+ active: h === t,
1115
+ onClick: () => a(h),
1116
+ danger: m ?? !1,
1117
+ children: [
1118
+ !!c && /* @__PURE__ */ f.jsx(c, { size: 20 }),
1119
+ s
1120
+ ]
1121
+ },
1122
+ h
1123
+ )) }),
1124
+ /* @__PURE__ */ f.jsx(Et, { children: /* @__PURE__ */ f.jsx(de, { children: r[t].content }) }, r[t].title)
1125
+ ] });
1126
+ }
1127
+ const fe = y("div", {
1128
+ shouldForwardProp: (r) => r !== "required"
1129
+ })(({ required: r, theme: t }) => ({
1130
+ display: "flex",
1131
+ gap: "0.25em",
1132
+ flexDirection: "column",
1133
+ "& label": {
1134
+ position: "relative",
1135
+ userSelect: "none",
1136
+ width: "fit-content"
1137
+ },
1138
+ "& label::after": {
1139
+ position: "absolute",
1140
+ top: 0,
1141
+ right: "-0.75em",
1142
+ color: t.colors.red.default,
1143
+ content: r ? '"*"' : '""'
1144
+ }
1145
+ })), er = y.p(({ theme: r }) => ({
1146
+ fontSize: "12px",
1147
+ color: r.colors.red.default
1148
+ }));
1149
+ function qt({
1150
+ name: r,
1151
+ label: t,
1152
+ checked: n = !1,
1153
+ errors: a = [],
1154
+ onChange: s,
1155
+ required: c = !1,
1156
+ ...m
1157
+ }) {
1158
+ const [h, g] = Y(n);
1159
+ if (typeof window > "u") return /* @__PURE__ */ f.jsx(Ue, {});
1160
+ function S({ target: p }) {
1161
+ g(p.checked), s && s(p.name, p.checked);
1162
+ }
1163
+ return /* @__PURE__ */ f.jsxs(
1164
+ fe,
1165
+ {
1166
+ css: { alignItems: "center", gap: "1em", flexDirection: "row" },
1167
+ required: c,
1168
+ children: [
1169
+ /* @__PURE__ */ f.jsx("label", { htmlFor: r, title: t, children: t }),
1170
+ /* @__PURE__ */ f.jsx(
1171
+ Vr,
1172
+ {
1173
+ ...m,
1174
+ onChange: S,
1175
+ checked: h,
1176
+ placeholder: m.placeholder ?? "Type something...",
1177
+ name: r,
1178
+ id: r
1179
+ }
1180
+ ),
1181
+ a.length > 0 && a.map((p) => /* @__PURE__ */ f.jsx(er, { children: p }, p))
1182
+ ]
1183
+ }
1184
+ );
1185
+ }
1186
+ const Xt = y.form({
1187
+ width: "100%",
1188
+ display: "flex",
1189
+ gap: "1em",
1190
+ flexDirection: "column"
1191
+ }), _t = y.input(({ theme: r }) => ({
1192
+ width: "100%",
1193
+ color: r.colors.font,
1194
+ backgroundColor: r.colors.secondary,
1195
+ padding: "0.75em",
1196
+ border: `1px solid ${r.colors.grey.light}`,
1197
+ borderBottom: `2px solid ${r.colors.grey.light}`,
1198
+ borderRadius: r.borders.radius.m,
1199
+ transition: r.transitions.delay.normal,
1200
+ "&:focus": {
1201
+ borderBottom: `2px solid ${r.colors.blue.default}`
1202
+ },
1203
+ "&:disabled": {
1204
+ opacity: 0.85
1205
+ },
1206
+ "&::placeholder": {
1207
+ fontStyle: "italic",
1208
+ color: r.colors.grey.default
1209
+ }
1210
+ }));
1211
+ function Zt({
1212
+ name: r,
1213
+ label: t,
1214
+ value: n = "",
1215
+ errors: a = [],
1216
+ onChange: s,
1217
+ required: c = !1,
1218
+ ...m
1219
+ }) {
1220
+ const [h, g] = Y(n);
1221
+ function S({ target: p }) {
1222
+ g(p.value), s && s(p.name, p.value);
1223
+ }
1224
+ return /* @__PURE__ */ f.jsxs(fe, { required: c, children: [
1225
+ /* @__PURE__ */ f.jsx("label", { htmlFor: r, title: t, children: t }),
1226
+ /* @__PURE__ */ f.jsx(
1227
+ _t,
1228
+ {
1229
+ ...m,
1230
+ name: r,
1231
+ onChange: S,
1232
+ value: h,
1233
+ placeholder: m.placeholder ?? "Type something..."
1234
+ }
1235
+ ),
1236
+ a.length > 0 && a.map((p) => /* @__PURE__ */ f.jsx(er, { children: p }, p))
1237
+ ] });
1238
+ }
1239
+ function Qt({
1240
+ name: r,
1241
+ label: t,
1242
+ value: n,
1243
+ options: a,
1244
+ onChangeCallback: s,
1245
+ formatOptionLabel: c,
1246
+ required: m = !1,
1247
+ ...h
1248
+ }) {
1249
+ const g = He(), [S, p] = Y();
1250
+ Q(() => {
1251
+ if (a.length === 0) return;
1252
+ const E = a.find((D) => D.value === n);
1253
+ E && p(E);
1254
+ }, [a, n]);
1255
+ const T = (E) => {
1256
+ p(E), s && s(E.value);
1257
+ };
1258
+ return /* @__PURE__ */ f.jsxs(fe, { required: m, children: [
1259
+ t && /* @__PURE__ */ f.jsx("label", { htmlFor: r, title: `${r} field`, children: t }),
1260
+ /* @__PURE__ */ f.jsx(
1261
+ Ur,
1262
+ {
1263
+ value: S,
1264
+ onChange: (E) => T(E),
1265
+ options: a,
1266
+ isDisabled: h.disabled,
1267
+ menuPlacement: "auto",
1268
+ formatOptionLabel: c ? (E, D) => c(E, D) : void 0,
1269
+ css: { color: g.colors.black }
1270
+ }
1271
+ )
1272
+ ] });
1273
+ }
1274
+ const Ne = "__minimstuff_dark_theme__", kt = {
669
1275
  radius: {
670
1276
  xs: "1px",
671
1277
  s: "2px",
@@ -673,106 +1279,237 @@ const Sr = "__minimstuff_dark_theme__", kr = {
673
1279
  l: "4px",
674
1280
  xl: "5px"
675
1281
  }
676
- }, Cr = {
1282
+ }, Rt = {
677
1283
  xs: "10px",
678
1284
  s: "12px",
679
1285
  m: "14px",
680
1286
  l: "16px",
681
1287
  xl: "18px"
682
- }, Or = {
1288
+ }, St = {
683
1289
  mobile: "768px",
684
1290
  tablet: "1024px",
685
1291
  small_desktop: "1280px",
686
1292
  medium_desktop: "1440px",
687
1293
  large_desktop: "1920px",
688
1294
  xlarge_desktop: "2560px"
689
- }, Pr = {
1295
+ }, Ct = {
690
1296
  delay: {
691
1297
  fast: "0.075s",
692
1298
  normal: "0.15s",
693
1299
  slow: "0.3s"
694
1300
  }
695
- }, jr = {
696
- borders: kr,
697
- medias: Or,
698
- transitions: Pr,
699
- fontSizes: Cr
700
- }, Pe = (u, m) => `rgba(${Tr(u, { format: "array" }).slice(0, -1).join(",")},${m})`, ke = "#3f88c5", Dr = "#005aa5", je = "#d3e8fa", De = "#82c5fede", Fe = Dr, Ae = "#1f2937", $e = "#FF5A5A", Fr = {
1301
+ }, Tt = {
1302
+ borders: kt,
1303
+ medias: St,
1304
+ transitions: Ct,
1305
+ fontSizes: Rt
1306
+ }, jt = {
701
1307
  font: "#f0eef6",
702
1308
  background: "#222831",
703
- primary: "#4fadfc",
704
1309
  secondary: "#323a47",
705
1310
  black: "#333333",
706
1311
  white: "#ffffff",
707
- lightGrey: "#323a47",
708
- grey: "#aaaaaa",
709
- lightestBlue: je,
710
- lightBlue: De,
711
- blue: "#4fadfc",
712
- darkBlue: Fe,
713
- darkestBlue: Ae,
714
- green: "#09b909",
715
- lightRed: $e,
716
- yellow: "#ffc107",
717
- boxShadow: `0 0 1em 0 ${Pe("#111", 0.4)}`
718
- }, Ar = {
1312
+ grey: O({
1313
+ color: "#aaaaaa"
1314
+ }),
1315
+ blue: O({
1316
+ color: "#4fadfc"
1317
+ }),
1318
+ green: O({
1319
+ color: "#09b909"
1320
+ }),
1321
+ red: O({ color: "red" }),
1322
+ yellow: O({ color: "#ffc107" }),
1323
+ boxShadow: `0 0 1em 0 ${I("#111", 0.4)}`
1324
+ }, Ot = {
719
1325
  font: "#333",
720
1326
  background: "#f0eef6",
721
- primary: ke,
722
1327
  secondary: "#fff",
723
1328
  black: "#333",
724
1329
  white: "#ffffff",
725
- lightGrey: "#dadce0",
726
- grey: "#777777",
727
- lightestBlue: je,
728
- lightBlue: De,
729
- blue: ke,
730
- darkBlue: Fe,
731
- darkestBlue: Ae,
732
- green: "green",
733
- lightRed: $e,
734
- yellow: "#FF8A08",
735
- boxShadow: `0 0 1em 0 ${Pe("#aaa", 0.4)}`
736
- }, $r = yr({
1330
+ grey: O({
1331
+ color: "#777777"
1332
+ }),
1333
+ blue: O({
1334
+ color: "#3f88c5"
1335
+ }),
1336
+ green: O({
1337
+ color: "green"
1338
+ }),
1339
+ red: O({
1340
+ color: "red"
1341
+ }),
1342
+ yellow: O({
1343
+ color: "#ffc107"
1344
+ }),
1345
+ boxShadow: `0 0 1em 0 ${I("#aaa", 0.4)}`
1346
+ };
1347
+ const Pt = ze({
737
1348
  isDarkTheme: !0,
738
1349
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
739
- toggleDarkTheme: (u) => {
1350
+ toggleDarkTheme: (r) => {
740
1351
  }
741
1352
  });
742
- function Br({
743
- preferDarkTheme: u = !0,
744
- children: m,
745
- onPreferenceChange: h
1353
+ function eo({
1354
+ children: r,
1355
+ onPreferenceChange: t
746
1356
  }) {
747
- const [d, T] = _r(u), x = (_) => {
748
- T(_), h == null || h(_);
1357
+ const [n, a] = Y(() => !!localStorage.getItem(Ne)), s = (c) => {
1358
+ a(c), t == null || t(c);
749
1359
  };
750
- return Er(() => {
751
- localStorage.setItem(Sr, String(d));
752
- }, [d]), /* @__PURE__ */ Se.jsx(
753
- Rr,
1360
+ return Q(() => {
1361
+ localStorage.setItem(Ne, String(n));
1362
+ }, [n]), /* @__PURE__ */ f.jsx(
1363
+ Yr,
754
1364
  {
755
1365
  theme: {
756
- ...jr,
757
- colors: d ? Fr : Ar
1366
+ ...Tt,
1367
+ colors: n ? jt : Ot
758
1368
  },
759
- children: /* @__PURE__ */ Se.jsx(
760
- $r.Provider,
1369
+ children: /* @__PURE__ */ f.jsxs(
1370
+ Pt.Provider,
761
1371
  {
762
1372
  value: {
763
- isDarkTheme: d,
764
- toggleDarkTheme: x
1373
+ isDarkTheme: n,
1374
+ toggleDarkTheme: s
765
1375
  },
766
- children: m
1376
+ children: [
1377
+ /* @__PURE__ */ f.jsx(Dt, {}),
1378
+ r
1379
+ ]
767
1380
  }
768
1381
  )
769
1382
  }
770
1383
  );
771
1384
  }
1385
+ function Dt() {
1386
+ const r = He(), t = J({
1387
+ "*": {
1388
+ boxSizing: "border-box",
1389
+ outline: 0,
1390
+ margin: 0,
1391
+ padding: 0,
1392
+ scrollBehavior: "smooth"
1393
+ },
1394
+ ".reset": {
1395
+ backgroundColor: "inherit",
1396
+ color: "inherit",
1397
+ padding: 0,
1398
+ margin: 0,
1399
+ border: 0
1400
+ },
1401
+ a: {
1402
+ width: "fit-content",
1403
+ color: r.colors.blue.default,
1404
+ textDecoration: "none",
1405
+ borderBottom: "1px solid transparent"
1406
+ },
1407
+ b: {
1408
+ fontWeight: 600,
1409
+ letterSpacing: "0.5px"
1410
+ },
1411
+ "h1, h2, h3, h4, h5, h6": {
1412
+ fontWeight: "500",
1413
+ color: r.colors.blue.default
1414
+ },
1415
+ kbd: {
1416
+ textShadow: "0 1px 0 #fff",
1417
+ fontSize: "12px",
1418
+ color: "rgb(51, 51, 51)",
1419
+ backgroundColor: "rgb(247, 247, 247)",
1420
+ padding: "0.25em 0.5em",
1421
+ borderRadius: "3px",
1422
+ border: "1px solid rgb(204, 204, 204)",
1423
+ boxShadow: "0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px #ffffff inset",
1424
+ display: "inline-block"
1425
+ },
1426
+ hr: {
1427
+ width: "100%",
1428
+ marginBlock: "1em",
1429
+ border: 0,
1430
+ borderTop: `1px solid ${r.colors.background}`
1431
+ }
1432
+ }), n = J({
1433
+ "html, body, #app": {
1434
+ height: "100svh",
1435
+ width: "100%",
1436
+ fontFamily: "'Poppins', sans-serif",
1437
+ fontSize: "14px",
1438
+ color: r.colors.font,
1439
+ backgroundColor: r.colors.background,
1440
+ display: "flex",
1441
+ alignItems: "center",
1442
+ flexDirection: "column"
1443
+ }
1444
+ }), a = J({
1445
+ /* width */
1446
+ "::-webkit-scrollbar": {
1447
+ height: "0.45em",
1448
+ width: "0.45em"
1449
+ },
1450
+ /* Track */
1451
+ "::-webkit-scrollbar-track": {
1452
+ borderRadius: r.borders.radius.m
1453
+ },
1454
+ /* Handle */
1455
+ "::-webkit-scrollbar-thumb": {
1456
+ background: r.colors.blue.default,
1457
+ borderRadius: r.borders.radius.m,
1458
+ "&:hover": {
1459
+ background: r.colors.blue.dark
1460
+ }
1461
+ }
1462
+ }), s = J({
1463
+ table: {
1464
+ height: "auto",
1465
+ width: "100%",
1466
+ borderCollapse: "collapse",
1467
+ borderRadius: r.borders.radius.m,
1468
+ overflow: "hidden"
1469
+ },
1470
+ th: {
1471
+ textAlign: "center",
1472
+ fontWeight: 400,
1473
+ backgroundColor: r.colors.secondary
1474
+ },
1475
+ "td, th": {
1476
+ padding: "0.45em"
1477
+ },
1478
+ "th, td": {
1479
+ whiteSpace: "nowrap"
1480
+ },
1481
+ "tr:nth-of-type(even)": {
1482
+ backgroundColor: r.colors.secondary
1483
+ }
1484
+ });
1485
+ return /* @__PURE__ */ f.jsx(Br, { styles: [t, n, a, s] });
1486
+ }
772
1487
  export {
773
- Mr as Button,
774
- Vr as TextEllipsis,
775
- Br as ThemeContextProvider,
776
- $r as _ThemeContext
1488
+ Nt as Button,
1489
+ qt as Checkbox,
1490
+ zt as Dropdown,
1491
+ Jr as DropdownContainer,
1492
+ Vt as DropdownItemButton,
1493
+ Ut as DropdownItemLink,
1494
+ qr as DropdownLabel,
1495
+ Ht as ExternalLink,
1496
+ Xt as Form,
1497
+ Gt as Modal,
1498
+ at as ModalBody,
1499
+ st as ModalCloseBtn,
1500
+ it as ModalContainer,
1501
+ lt as ModalHeader,
1502
+ ct as ModalWrapper,
1503
+ Kt as RoundedImage,
1504
+ Qt as Selector,
1505
+ Dt as StyleReset,
1506
+ xt as TabItem,
1507
+ wt as TabList,
1508
+ Et as TabPanel,
1509
+ Jt as Tabs,
1510
+ yt as TextEllipsis,
1511
+ Zt as Textbox,
1512
+ eo as ThemeContextProvider,
1513
+ Pt as _ThemeContext
777
1514
  };
778
1515
  //# sourceMappingURL=index.es.js.map