@minimalstuff/ui 0.0.15 → 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,43 +1,38 @@
1
- import Oe from "@emotion/styled";
2
- import Pe, { createContext as gr, useState as mr, useEffect as yr } from "react";
3
- import { ThemeProvider as hr } from "@emotion/react";
4
- import _r from "hex-rgb";
5
- import je from "tinycolor2";
6
- const Wr = Oe.button(
7
- ({ theme: i, danger: c = !1, secondary: p = !1 }) => {
8
- const d = c ? i.colors.red.default : i.colors.blue.default, T = c ? i.colors.red.dark : i.colors.blue.dark, w = p ? d : i.colors.white, _ = p ? "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;
9
13
  return {
10
14
  cursor: "pointer",
11
15
  width: "100%",
12
16
  textTransform: "uppercase",
13
- fontSize: i.fontSizes.m,
14
- color: w,
15
- background: _,
17
+ fontSize: r.fontSizes.m,
18
+ color: c,
19
+ background: m,
16
20
  padding: "0.75em",
17
- border: `1px solid ${d}`,
18
- borderRadius: i.borders.radius.m,
19
- transition: i.transitions.delay.fast,
21
+ border: `1px solid ${a}`,
22
+ borderRadius: r.borders.radius.m,
23
+ transition: r.transitions.delay.fast,
20
24
  "&:disabled": {
21
25
  cursor: "not-allowed",
22
26
  opacity: "0.5"
23
27
  },
24
28
  "&:not(:disabled):hover": {
25
- background: p ? i.colors.secondary : T,
26
- borderColor: p ? i.colors.secondary : T
29
+ background: n ? r.colors.secondary : s,
30
+ borderColor: n ? r.colors.secondary : s
27
31
  }
28
32
  };
29
33
  }
30
- ), Yr = Oe.p(({ lines: i = 1 }) => i > 1 ? {
31
- overflow: "hidden",
32
- display: "-webkit-box",
33
- WebkitLineClamp: i,
34
- WebkitBoxOrient: "vertical"
35
- } : {
36
- textOverflow: "ellipsis",
37
- whiteSpace: "nowrap",
38
- overflow: "hidden"
39
- });
40
- var ee = { exports: {} }, W = {};
34
+ );
35
+ var ce = { exports: {} }, z = {};
41
36
  /**
42
37
  * @license React
43
38
  * react-jsx-runtime.production.min.js
@@ -47,21 +42,21 @@ var ee = { exports: {} }, W = {};
47
42
  * This source code is licensed under the MIT license found in the
48
43
  * LICENSE file in the root directory of this source tree.
49
44
  */
50
- var Se;
51
- function Er() {
52
- if (Se) return W;
53
- Se = 1;
54
- var i = Pe, c = Symbol.for("react.element"), p = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, T = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
55
- function _(S, b, P) {
56
- var y, x = {}, k = null, L = null;
57
- P !== void 0 && (k = "" + P), b.key !== void 0 && (k = "" + b.key), b.ref !== void 0 && (L = b.ref);
58
- for (y in b) d.call(b, y) && !w.hasOwnProperty(y) && (x[y] = b[y]);
59
- if (S && S.defaultProps) for (y in b = S.defaultProps, b) x[y] === void 0 && (x[y] = b[y]);
60
- return { $$typeof: c, type: S, key: k, ref: L, props: x, _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 };
61
56
  }
62
- return W.Fragment = p, W.jsx = _, W.jsxs = _, W;
57
+ return z.Fragment = n, z.jsx = m, z.jsxs = m, z;
63
58
  }
64
- var Y = {};
59
+ var V = {};
65
60
  /**
66
61
  * @license React
67
62
  * react-jsx-runtime.development.js
@@ -71,91 +66,91 @@ var Y = {};
71
66
  * This source code is licensed under the MIT license found in the
72
67
  * LICENSE file in the root directory of this source tree.
73
68
  */
74
- var ke;
75
- function Rr() {
76
- return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
77
- var i = Pe, c = Symbol.for("react.element"), p = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), S = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), L = Symbol.for("react.offscreen"), re = Symbol.iterator, Fe = "@@iterator";
78
- function Ae(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) {
79
74
  if (e === null || typeof e != "object")
80
75
  return null;
81
- var r = re && e[re] || e[Fe];
82
- return typeof r == "function" ? r : null;
76
+ var o = pe && e[pe] || e[rr];
77
+ return typeof o == "function" ? o : null;
83
78
  }
84
- var j = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
85
- function v(e) {
79
+ var $ = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
80
+ function _(e) {
86
81
  {
87
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
88
- t[n - 1] = arguments[n];
89
- $e("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);
90
85
  }
91
86
  }
92
- function $e(e, r, t) {
87
+ function or(e, o, i) {
93
88
  {
94
- var n = j.ReactDebugCurrentFrame, s = n.getStackAddendum();
95
- s !== "" && (r += "%s", t = t.concat([s]));
96
- var u = t.map(function(o) {
97
- 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);
98
93
  });
99
- u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
94
+ v.unshift("Warning: " + o), Function.prototype.apply.call(console[e], console, v);
100
95
  }
101
96
  }
102
- var Ie = !1, We = !1, Ye = !1, Le = !1, Ve = !1, te;
103
- te = Symbol.for("react.module.reference");
104
- function Me(e) {
105
- return !!(typeof e == "string" || typeof e == "function" || e === d || e === w || Ve || e === T || e === P || e === y || Le || e === L || Ie || We || Ye || typeof e == "object" && e !== null && (e.$$typeof === k || e.$$typeof === x || e.$$typeof === _ || e.$$typeof === S || e.$$typeof === b || // 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
106
101
  // types supported by any Flight configuration anywhere since
107
102
  // we don't know which Flight build this will end up being used
108
103
  // with.
109
- e.$$typeof === te || e.getModuleId !== void 0));
104
+ e.$$typeof === be || e.getModuleId !== void 0));
110
105
  }
111
- function Ue(e, r, t) {
112
- var n = e.displayName;
113
- if (n)
114
- return n;
115
- var s = r.displayName || r.name || "";
116
- return s !== "" ? t + "(" + s + ")" : 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;
117
112
  }
118
- function ne(e) {
113
+ function ge(e) {
119
114
  return e.displayName || "Context";
120
115
  }
121
- function E(e) {
116
+ function j(e) {
122
117
  if (e == null)
123
118
  return null;
124
- if (typeof e.tag == "number" && v("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")
125
120
  return e.displayName || e.name || null;
126
121
  if (typeof e == "string")
127
122
  return e;
128
123
  switch (e) {
129
- case d:
124
+ case a:
130
125
  return "Fragment";
131
- case p:
126
+ case n:
132
127
  return "Portal";
133
- case w:
128
+ case c:
134
129
  return "Profiler";
135
- case T:
130
+ case s:
136
131
  return "StrictMode";
137
- case P:
132
+ case S:
138
133
  return "Suspense";
139
- case y:
134
+ case p:
140
135
  return "SuspenseList";
141
136
  }
142
137
  if (typeof e == "object")
143
138
  switch (e.$$typeof) {
144
- case S:
145
- var r = e;
146
- return ne(r) + ".Consumer";
147
- case _:
148
- var t = e;
149
- return ne(t._context) + ".Provider";
150
- case b:
151
- return Ue(e, e.render, "ForwardRef");
152
- case x:
153
- var n = e.displayName || null;
154
- return n !== null ? n : E(e.type) || "Memo";
155
- case k: {
156
- var s = e, u = s._payload, o = s._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;
157
152
  try {
158
- return E(o(u));
153
+ return j(d(v));
159
154
  } catch {
160
155
  return null;
161
156
  }
@@ -163,18 +158,18 @@ function Rr() {
163
158
  }
164
159
  return null;
165
160
  }
166
- var C = Object.assign, A = 0, ae, oe, ie, se, ue, le, fe;
167
- function ce() {
161
+ var F = Object.assign, B = 0, ve, me, he, ye, xe, we, Ee;
162
+ function _e() {
168
163
  }
169
- ce.__reactDisabledLog = !0;
170
- function Ne() {
164
+ _e.__reactDisabledLog = !0;
165
+ function dr() {
171
166
  {
172
- if (A === 0) {
173
- ae = console.log, oe = console.info, ie = console.warn, se = console.error, ue = console.group, le = console.groupCollapsed, fe = 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;
174
169
  var e = {
175
170
  configurable: !0,
176
171
  enumerable: !0,
177
- value: ce,
172
+ value: _e,
178
173
  writable: !0
179
174
  };
180
175
  Object.defineProperties(console, {
@@ -187,336 +182,336 @@ function Rr() {
187
182
  groupEnd: e
188
183
  });
189
184
  }
190
- A++;
185
+ B++;
191
186
  }
192
187
  }
193
- function Be() {
188
+ function fr() {
194
189
  {
195
- if (A--, A === 0) {
190
+ if (B--, B === 0) {
196
191
  var e = {
197
192
  configurable: !0,
198
193
  enumerable: !0,
199
194
  writable: !0
200
195
  };
201
196
  Object.defineProperties(console, {
202
- log: C({}, e, {
203
- value: ae
197
+ log: F({}, e, {
198
+ value: ve
204
199
  }),
205
- info: C({}, e, {
206
- value: oe
200
+ info: F({}, e, {
201
+ value: me
207
202
  }),
208
- warn: C({}, e, {
209
- value: ie
203
+ warn: F({}, e, {
204
+ value: he
210
205
  }),
211
- error: C({}, e, {
212
- value: se
206
+ error: F({}, e, {
207
+ value: ye
213
208
  }),
214
- group: C({}, e, {
215
- value: ue
209
+ group: F({}, e, {
210
+ value: xe
216
211
  }),
217
- groupCollapsed: C({}, e, {
218
- value: le
212
+ groupCollapsed: F({}, e, {
213
+ value: we
219
214
  }),
220
- groupEnd: C({}, e, {
221
- value: fe
215
+ groupEnd: F({}, e, {
216
+ value: Ee
222
217
  })
223
218
  });
224
219
  }
225
- A < 0 && v("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.");
226
221
  }
227
222
  }
228
- var J = j.ReactCurrentDispatcher, K;
229
- function V(e, r, t) {
223
+ var ee = $.ReactCurrentDispatcher, re;
224
+ function U(e, o, i) {
230
225
  {
231
- if (K === void 0)
226
+ if (re === void 0)
232
227
  try {
233
228
  throw Error();
234
- } catch (s) {
235
- var n = s.stack.trim().match(/\n( *(at )?)/);
236
- K = n && n[1] || "";
229
+ } catch (b) {
230
+ var l = b.stack.trim().match(/\n( *(at )?)/);
231
+ re = l && l[1] || "";
237
232
  }
238
233
  return `
239
- ` + K + e;
234
+ ` + re + e;
240
235
  }
241
236
  }
242
- var q = !1, M;
237
+ var te = !1, H;
243
238
  {
244
- var Je = typeof WeakMap == "function" ? WeakMap : Map;
245
- M = new Je();
239
+ var pr = typeof WeakMap == "function" ? WeakMap : Map;
240
+ H = new pr();
246
241
  }
247
- function de(e, r) {
248
- if (!e || q)
242
+ function ke(e, o) {
243
+ if (!e || te)
249
244
  return "";
250
245
  {
251
- var t = M.get(e);
252
- if (t !== void 0)
253
- return t;
246
+ var i = H.get(e);
247
+ if (i !== void 0)
248
+ return i;
254
249
  }
255
- var n;
256
- q = !0;
257
- var s = Error.prepareStackTrace;
250
+ var l;
251
+ te = !0;
252
+ var b = Error.prepareStackTrace;
258
253
  Error.prepareStackTrace = void 0;
259
- var u;
260
- u = J.current, J.current = null, Ne();
254
+ var v;
255
+ v = ee.current, ee.current = null, dr();
261
256
  try {
262
- if (r) {
263
- var o = function() {
257
+ if (o) {
258
+ var d = function() {
264
259
  throw Error();
265
260
  };
266
- if (Object.defineProperty(o.prototype, "props", {
261
+ if (Object.defineProperty(d.prototype, "props", {
267
262
  set: function() {
268
263
  throw Error();
269
264
  }
270
265
  }), typeof Reflect == "object" && Reflect.construct) {
271
266
  try {
272
- Reflect.construct(o, []);
273
- } catch (m) {
274
- n = m;
267
+ Reflect.construct(d, []);
268
+ } catch (R) {
269
+ l = R;
275
270
  }
276
- Reflect.construct(e, [], o);
271
+ Reflect.construct(e, [], d);
277
272
  } else {
278
273
  try {
279
- o.call();
280
- } catch (m) {
281
- n = m;
274
+ d.call();
275
+ } catch (R) {
276
+ l = R;
282
277
  }
283
- e.call(o.prototype);
278
+ e.call(d.prototype);
284
279
  }
285
280
  } else {
286
281
  try {
287
282
  throw Error();
288
- } catch (m) {
289
- n = m;
283
+ } catch (R) {
284
+ l = R;
290
285
  }
291
286
  e();
292
287
  }
293
- } catch (m) {
294
- if (m && n && typeof m.stack == "string") {
295
- for (var a = m.stack.split(`
296
- `), g = n.stack.split(`
297
- `), l = a.length - 1, f = g.length - 1; l >= 1 && f >= 0 && a[l] !== g[f]; )
298
- f--;
299
- for (; l >= 1 && f >= 0; l--, f--)
300
- if (a[l] !== g[f]) {
301
- 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)
302
297
  do
303
- if (l--, f--, f < 0 || a[l] !== g[f]) {
304
- var h = `
305
- ` + a[l].replace(" at new ", " at ");
306
- return e.displayName && h.includes("<anonymous>") && (h = h.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, h), h;
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;
307
302
  }
308
- while (l >= 1 && f >= 0);
303
+ while (x >= 1 && w >= 0);
309
304
  break;
310
305
  }
311
306
  }
312
307
  } finally {
313
- q = !1, J.current = u, Be(), Error.prepareStackTrace = s;
308
+ te = !1, ee.current = v, fr(), Error.prepareStackTrace = b;
314
309
  }
315
- var F = e ? e.displayName || e.name : "", O = F ? V(F) : "";
316
- return typeof e == "function" && M.set(e, O), O;
310
+ var L = e ? e.displayName || e.name : "", A = L ? U(L) : "";
311
+ return typeof e == "function" && H.set(e, A), A;
317
312
  }
318
- function Ke(e, r, t) {
319
- return de(e, !1);
313
+ function br(e, o, i) {
314
+ return ke(e, !1);
320
315
  }
321
- function qe(e) {
322
- var r = e.prototype;
323
- return !!(r && r.isReactComponent);
316
+ function gr(e) {
317
+ var o = e.prototype;
318
+ return !!(o && o.isReactComponent);
324
319
  }
325
- function U(e, r, t) {
320
+ function G(e, o, i) {
326
321
  if (e == null)
327
322
  return "";
328
323
  if (typeof e == "function")
329
- return de(e, qe(e));
324
+ return ke(e, gr(e));
330
325
  if (typeof e == "string")
331
- return V(e);
326
+ return U(e);
332
327
  switch (e) {
333
- case P:
334
- return V("Suspense");
335
- case y:
336
- return V("SuspenseList");
328
+ case S:
329
+ return U("Suspense");
330
+ case p:
331
+ return U("SuspenseList");
337
332
  }
338
333
  if (typeof e == "object")
339
334
  switch (e.$$typeof) {
340
- case b:
341
- return Ke(e.render);
342
- case x:
343
- return U(e.type, r, t);
344
- case k: {
345
- var n = e, s = n._payload, u = 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;
346
341
  try {
347
- return U(u(s), r, t);
342
+ return G(v(b), o, i);
348
343
  } catch {
349
344
  }
350
345
  }
351
346
  }
352
347
  return "";
353
348
  }
354
- var $ = Object.prototype.hasOwnProperty, ve = {}, pe = j.ReactDebugCurrentFrame;
355
- function N(e) {
349
+ var M = Object.prototype.hasOwnProperty, Re = {}, Se = $.ReactDebugCurrentFrame;
350
+ function K(e) {
356
351
  if (e) {
357
- var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
358
- pe.setExtraStackFrame(t);
352
+ var o = e._owner, i = G(e.type, e._source, o ? o.type : null);
353
+ Se.setExtraStackFrame(i);
359
354
  } else
360
- pe.setExtraStackFrame(null);
355
+ Se.setExtraStackFrame(null);
361
356
  }
362
- function ze(e, r, t, n, s) {
357
+ function vr(e, o, i, l, b) {
363
358
  {
364
- var u = Function.call.bind($);
365
- for (var o in e)
366
- if (u(e, o)) {
367
- 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;
368
363
  try {
369
- if (typeof e[o] != "function") {
370
- var g = 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`.");
371
- throw g.name = "Invariant Violation", g;
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;
372
367
  }
373
- a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
374
- } catch (l) {
375
- 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;
376
371
  }
377
- a && !(a instanceof Error) && (N(s), v("%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), N(null)), a instanceof Error && !(a.message in ve) && (ve[a.message] = !0, N(s), v("Failed %s type: %s", t, a.message), N(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));
378
373
  }
379
374
  }
380
375
  }
381
- var Ge = Array.isArray;
382
- function z(e) {
383
- return Ge(e);
376
+ var mr = Array.isArray;
377
+ function oe(e) {
378
+ return mr(e);
384
379
  }
385
- function He(e) {
380
+ function hr(e) {
386
381
  {
387
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
388
- return t;
382
+ var o = typeof Symbol == "function" && Symbol.toStringTag, i = o && e[Symbol.toStringTag] || e.constructor.name || "Object";
383
+ return i;
389
384
  }
390
385
  }
391
- function Xe(e) {
386
+ function yr(e) {
392
387
  try {
393
- return be(e), !1;
388
+ return Ce(e), !1;
394
389
  } catch {
395
390
  return !0;
396
391
  }
397
392
  }
398
- function be(e) {
393
+ function Ce(e) {
399
394
  return "" + e;
400
395
  }
401
- function ge(e) {
402
- if (Xe(e))
403
- return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), be(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);
404
399
  }
405
- var I = j.ReactCurrentOwner, Ze = {
400
+ var N = $.ReactCurrentOwner, xr = {
406
401
  key: !0,
407
402
  ref: !0,
408
403
  __self: !0,
409
404
  __source: !0
410
- }, me, ye, G;
411
- G = {};
412
- function Qe(e) {
413
- if ($.call(e, "ref")) {
414
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
415
- 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)
416
411
  return !1;
417
412
  }
418
413
  return e.ref !== void 0;
419
414
  }
420
- function er(e) {
421
- if ($.call(e, "key")) {
422
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
423
- 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)
424
419
  return !1;
425
420
  }
426
421
  return e.key !== void 0;
427
422
  }
428
- function rr(e, r) {
429
- if (typeof e.ref == "string" && I.current && r && I.current.stateNode !== r) {
430
- var t = E(I.current.type);
431
- G[t] || (v('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(I.current.type), e.ref), G[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);
432
427
  }
433
428
  }
434
- function tr(e, r) {
429
+ function kr(e, o) {
435
430
  {
436
- var t = function() {
437
- me || (me = !0, v("%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));
438
433
  };
439
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
440
- get: t,
434
+ i.isReactWarning = !0, Object.defineProperty(e, "key", {
435
+ get: i,
441
436
  configurable: !0
442
437
  });
443
438
  }
444
439
  }
445
- function nr(e, r) {
440
+ function Rr(e, o) {
446
441
  {
447
- var t = function() {
448
- ye || (ye = !0, v("%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));
449
444
  };
450
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
451
- get: t,
445
+ i.isReactWarning = !0, Object.defineProperty(e, "ref", {
446
+ get: i,
452
447
  configurable: !0
453
448
  });
454
449
  }
455
450
  }
456
- var ar = function(e, r, t, n, s, u, o) {
457
- var a = {
451
+ var Sr = function(e, o, i, l, b, v, d) {
452
+ var u = {
458
453
  // This tag allows us to uniquely identify this as a React Element
459
- $$typeof: c,
454
+ $$typeof: t,
460
455
  // Built-in properties that belong on the element
461
456
  type: e,
462
- key: r,
463
- ref: t,
464
- props: o,
457
+ key: o,
458
+ ref: i,
459
+ props: d,
465
460
  // Record the component responsible for creating this element.
466
- _owner: u
461
+ _owner: v
467
462
  };
468
- return a._store = {}, Object.defineProperty(a._store, "validated", {
463
+ return u._store = {}, Object.defineProperty(u._store, "validated", {
469
464
  configurable: !1,
470
465
  enumerable: !1,
471
466
  writable: !0,
472
467
  value: !1
473
- }), Object.defineProperty(a, "_self", {
468
+ }), Object.defineProperty(u, "_self", {
474
469
  configurable: !1,
475
470
  enumerable: !1,
476
471
  writable: !1,
477
- value: n
478
- }), Object.defineProperty(a, "_source", {
472
+ value: l
473
+ }), Object.defineProperty(u, "_source", {
479
474
  configurable: !1,
480
475
  enumerable: !1,
481
476
  writable: !1,
482
- value: s
483
- }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
477
+ value: b
478
+ }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
484
479
  };
485
- function or(e, r, t, n, s) {
480
+ function Cr(e, o, i, l, b) {
486
481
  {
487
- var u, o = {}, a = null, g = null;
488
- t !== void 0 && (ge(t), a = "" + t), er(r) && (ge(r.key), a = "" + r.key), Qe(r) && (g = r.ref, rr(r, s));
489
- for (u in r)
490
- $.call(r, u) && !Ze.hasOwnProperty(u) && (o[u] = r[u]);
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]);
491
486
  if (e && e.defaultProps) {
492
- var l = e.defaultProps;
493
- for (u in l)
494
- o[u] === void 0 && (o[u] = l[u]);
487
+ var x = e.defaultProps;
488
+ for (v in x)
489
+ d[v] === void 0 && (d[v] = x[v]);
495
490
  }
496
- if (a || g) {
497
- var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
498
- a && tr(o, f), g && nr(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);
499
494
  }
500
- return ar(e, a, g, s, n, I.current, o);
495
+ return Sr(e, u, k, b, l, N.current, d);
501
496
  }
502
497
  }
503
- var H = j.ReactCurrentOwner, he = j.ReactDebugCurrentFrame;
504
- function D(e) {
498
+ var ae = $.ReactCurrentOwner, Pe = $.ReactDebugCurrentFrame;
499
+ function W(e) {
505
500
  if (e) {
506
- var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
507
- he.setExtraStackFrame(t);
501
+ var o = e._owner, i = G(e.type, e._source, o ? o.type : null);
502
+ Pe.setExtraStackFrame(i);
508
503
  } else
509
- he.setExtraStackFrame(null);
504
+ Pe.setExtraStackFrame(null);
510
505
  }
511
- var X;
512
- X = !1;
513
- function Z(e) {
514
- return typeof e == "object" && e !== null && e.$$typeof === c;
506
+ var ie;
507
+ ie = !1;
508
+ function le(e) {
509
+ return typeof e == "object" && e !== null && e.$$typeof === t;
515
510
  }
516
- function _e() {
511
+ function De() {
517
512
  {
518
- if (H.current) {
519
- var e = E(H.current.type);
513
+ if (ae.current) {
514
+ var e = j(ae.current.type);
520
515
  if (e)
521
516
  return `
522
517
 
@@ -525,149 +520,758 @@ Check the render method of \`` + e + "`.";
525
520
  return "";
526
521
  }
527
522
  }
528
- function ir(e) {
523
+ function Tr(e) {
529
524
  return "";
530
525
  }
531
- var Ee = {};
532
- function sr(e) {
526
+ var Ie = {};
527
+ function jr(e) {
533
528
  {
534
- var r = _e();
535
- if (!r) {
536
- var t = typeof e == "string" ? e : e.displayName || e.name;
537
- t && (r = `
529
+ var o = De();
530
+ if (!o) {
531
+ var i = typeof e == "string" ? e : e.displayName || e.name;
532
+ i && (o = `
538
533
 
539
- Check the top-level render call using <` + t + ">.");
534
+ Check the top-level render call using <` + i + ">.");
540
535
  }
541
- return r;
536
+ return o;
542
537
  }
543
538
  }
544
- function Re(e, r) {
539
+ function Fe(e, o) {
545
540
  {
546
541
  if (!e._store || e._store.validated || e.key != null)
547
542
  return;
548
543
  e._store.validated = !0;
549
- var t = sr(r);
550
- if (Ee[t])
544
+ var i = jr(o);
545
+ if (Ie[i])
551
546
  return;
552
- Ee[t] = !0;
553
- var n = "";
554
- e && e._owner && e._owner !== H.current && (n = " It was passed a child from " + E(e._owner.type) + "."), D(e), v('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), D(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);
555
550
  }
556
551
  }
557
- function Te(e, r) {
552
+ function Ae(e, o) {
558
553
  {
559
554
  if (typeof e != "object")
560
555
  return;
561
- if (z(e))
562
- for (var t = 0; t < e.length; t++) {
563
- var n = e[t];
564
- Z(n) && Re(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);
565
560
  }
566
- else if (Z(e))
561
+ else if (le(e))
567
562
  e._store && (e._store.validated = !0);
568
563
  else if (e) {
569
- var s = Ae(e);
570
- if (typeof s == "function" && s !== e.entries)
571
- for (var u = s.call(e), o; !(o = u.next()).done; )
572
- Z(o.value) && Re(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);
573
568
  }
574
569
  }
575
570
  }
576
- function ur(e) {
571
+ function Or(e) {
577
572
  {
578
- var r = e.type;
579
- if (r == null || typeof r == "string")
573
+ var o = e.type;
574
+ if (o == null || typeof o == "string")
580
575
  return;
581
- var t;
582
- if (typeof r == "function")
583
- t = r.propTypes;
584
- else if (typeof r == "object" && (r.$$typeof === b || // 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.
585
580
  // Inner props are checked in the reconciler.
586
- r.$$typeof === x))
587
- t = r.propTypes;
581
+ o.$$typeof === T))
582
+ i = o.propTypes;
588
583
  else
589
584
  return;
590
- if (t) {
591
- var n = E(r);
592
- ze(t, e.props, "prop", n, e);
593
- } else if (r.PropTypes !== void 0 && !X) {
594
- X = !0;
595
- var s = E(r);
596
- v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "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");
597
592
  }
598
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("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.");
599
594
  }
600
595
  }
601
- function lr(e) {
596
+ function Pr(e) {
602
597
  {
603
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
604
- var n = r[t];
605
- if (n !== "children" && n !== "key") {
606
- D(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), D(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);
607
602
  break;
608
603
  }
609
604
  }
610
- e.ref !== null && (D(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
605
+ e.ref !== null && (W(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
611
606
  }
612
607
  }
613
- var xe = {};
614
- function we(e, r, t, n, s, u) {
608
+ var $e = {};
609
+ function We(e, o, i, l, b, v) {
615
610
  {
616
- var o = Me(e);
617
- if (!o) {
618
- var a = "";
619
- (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.");
620
- var g = ir();
621
- g ? a += g : a += _e();
622
- var l;
623
- e === null ? l = "null" : z(e) ? l = "array" : e !== void 0 && e.$$typeof === c ? (l = "<" + (E(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, v("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);
624
619
  }
625
- var f = or(e, r, t, s, u);
626
- if (f == null)
627
- return f;
628
- if (o) {
629
- var h = r.children;
630
- if (h !== void 0)
631
- if (n)
632
- if (z(h)) {
633
- for (var F = 0; F < h.length; F++)
634
- Te(h[F], e);
635
- Object.freeze && Object.freeze(h);
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);
636
631
  } else
637
- v("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.");
638
633
  else
639
- Te(h, e);
634
+ Ae(C, e);
640
635
  }
641
- if ($.call(r, "key")) {
642
- var O = E(e), m = Object.keys(r).filter(function(br) {
643
- return br !== "key";
644
- }), Q = m.length > 0 ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}";
645
- if (!xe[O + Q]) {
646
- var pr = m.length > 0 ? "{" + m.join(": ..., ") + ": ...}" : "{}";
647
- v(`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:
648
643
  let props = %s;
649
644
  <%s {...props} />
650
645
  React keys must be passed directly to JSX without using spread:
651
646
  let props = %s;
652
- <%s key={someKey} {...props} />`, Q, O, pr, O), xe[O + Q] = !0;
647
+ <%s key={someKey} {...props} />`, se, A, $r, A), $e[A + se] = !0;
653
648
  }
654
649
  }
655
- return e === d ? lr(f) : ur(f), f;
650
+ return e === a ? Pr(w) : Or(w), w;
656
651
  }
657
652
  }
658
- function fr(e, r, t) {
659
- return we(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
+ }
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();
719
+ }
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;
963
+ }
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}`
660
1076
  }
661
- function cr(e, r, t) {
662
- return we(e, r, t, !1);
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
+ ]
663
1183
  }
664
- var dr = cr, vr = fr;
665
- Y.Fragment = d, Y.jsx = dr, Y.jsxs = vr;
666
- }()), Y;
1184
+ );
667
1185
  }
668
- process.env.NODE_ENV === "production" ? ee.exports = Er() : ee.exports = Rr();
669
- var Ce = ee.exports;
670
- const Tr = "__minimstuff_dark_theme__", xr = {
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 = {
671
1275
  radius: {
672
1276
  xs: "1px",
673
1277
  s: "2px",
@@ -675,147 +1279,237 @@ const Tr = "__minimstuff_dark_theme__", xr = {
675
1279
  l: "4px",
676
1280
  xl: "5px"
677
1281
  }
678
- }, wr = {
1282
+ }, Rt = {
679
1283
  xs: "10px",
680
1284
  s: "12px",
681
1285
  m: "14px",
682
1286
  l: "16px",
683
1287
  xl: "18px"
684
- }, Sr = {
1288
+ }, St = {
685
1289
  mobile: "768px",
686
1290
  tablet: "1024px",
687
1291
  small_desktop: "1280px",
688
1292
  medium_desktop: "1440px",
689
1293
  large_desktop: "1920px",
690
1294
  xlarge_desktop: "2560px"
691
- }, kr = {
1295
+ }, Ct = {
692
1296
  delay: {
693
1297
  fast: "0.075s",
694
1298
  normal: "0.15s",
695
1299
  slow: "0.3s"
696
1300
  }
697
- }, Cr = {
698
- borders: xr,
699
- medias: Sr,
700
- transitions: kr,
701
- fontSizes: wr
702
- }, De = (i, c) => `rgba(${_r(i, { format: "array" }).slice(0, -1).join(",")},${c})`;
703
- function R(i) {
704
- const c = je(i.color);
705
- if (!c.isValid())
706
- throw new Error("Invalid color provided");
707
- return {
708
- lightest: B({
709
- ...i,
710
- multiplicator: 2,
711
- type: "lighten"
712
- }),
713
- light: B({
714
- ...i,
715
- multiplicator: 1,
716
- type: "lighten"
717
- }),
718
- default: c.toString(),
719
- dark: B({
720
- ...i,
721
- multiplicator: 1,
722
- type: "darken"
723
- }),
724
- darkest: B({
725
- ...i,
726
- multiplicator: 2,
727
- type: "darken"
728
- })
729
- };
730
- }
731
- function B({
732
- color: i,
733
- fadeStep: c = 15,
734
- multiplicator: p,
735
- type: d
736
- }) {
737
- return je(i)[d](c * p).toString();
738
- }
739
- const Or = {
1301
+ }, Tt = {
1302
+ borders: kt,
1303
+ medias: St,
1304
+ transitions: Ct,
1305
+ fontSizes: Rt
1306
+ }, jt = {
740
1307
  font: "#f0eef6",
741
1308
  background: "#222831",
742
1309
  secondary: "#323a47",
743
1310
  black: "#333333",
744
1311
  white: "#ffffff",
745
- grey: R({
1312
+ grey: O({
746
1313
  color: "#aaaaaa"
747
1314
  }),
748
- blue: R({
1315
+ blue: O({
749
1316
  color: "#4fadfc"
750
1317
  }),
751
- green: R({
1318
+ green: O({
752
1319
  color: "#09b909"
753
1320
  }),
754
- red: R({ color: "red" }),
755
- yellow: R({ color: "#ffc107" }),
756
- boxShadow: `0 0 1em 0 ${De("#111", 0.4)}`
757
- }, Pr = {
1321
+ red: O({ color: "red" }),
1322
+ yellow: O({ color: "#ffc107" }),
1323
+ boxShadow: `0 0 1em 0 ${I("#111", 0.4)}`
1324
+ }, Ot = {
758
1325
  font: "#333",
759
1326
  background: "#f0eef6",
760
1327
  secondary: "#fff",
761
1328
  black: "#333",
762
1329
  white: "#ffffff",
763
- grey: R({
1330
+ grey: O({
764
1331
  color: "#777777"
765
1332
  }),
766
- blue: R({
1333
+ blue: O({
767
1334
  color: "#3f88c5"
768
1335
  }),
769
- green: R({
1336
+ green: O({
770
1337
  color: "green"
771
1338
  }),
772
- red: R({
1339
+ red: O({
773
1340
  color: "red"
774
1341
  }),
775
- yellow: R({
1342
+ yellow: O({
776
1343
  color: "#ffc107"
777
1344
  }),
778
- boxShadow: `0 0 1em 0 ${De("#aaa", 0.4)}`
779
- }, jr = gr({
1345
+ boxShadow: `0 0 1em 0 ${I("#aaa", 0.4)}`
1346
+ };
1347
+ const Pt = ze({
780
1348
  isDarkTheme: !0,
781
1349
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
782
- toggleDarkTheme: (i) => {
1350
+ toggleDarkTheme: (r) => {
783
1351
  }
784
1352
  });
785
- function Lr({
786
- preferDarkTheme: i = !0,
787
- children: c,
788
- onPreferenceChange: p
1353
+ function eo({
1354
+ children: r,
1355
+ onPreferenceChange: t
789
1356
  }) {
790
- const [d, T] = mr(i), w = (_) => {
791
- T(_), p == null || p(_);
1357
+ const [n, a] = Y(() => !!localStorage.getItem(Ne)), s = (c) => {
1358
+ a(c), t == null || t(c);
792
1359
  };
793
- return yr(() => {
794
- localStorage.setItem(Tr, String(d));
795
- }, [d]), /* @__PURE__ */ Ce.jsx(
796
- hr,
1360
+ return Q(() => {
1361
+ localStorage.setItem(Ne, String(n));
1362
+ }, [n]), /* @__PURE__ */ f.jsx(
1363
+ Yr,
797
1364
  {
798
1365
  theme: {
799
- ...Cr,
800
- colors: d ? Or : Pr
1366
+ ...Tt,
1367
+ colors: n ? jt : Ot
801
1368
  },
802
- children: /* @__PURE__ */ Ce.jsx(
803
- jr.Provider,
1369
+ children: /* @__PURE__ */ f.jsxs(
1370
+ Pt.Provider,
804
1371
  {
805
1372
  value: {
806
- isDarkTheme: d,
807
- toggleDarkTheme: w
1373
+ isDarkTheme: n,
1374
+ toggleDarkTheme: s
808
1375
  },
809
- children: c
1376
+ children: [
1377
+ /* @__PURE__ */ f.jsx(Dt, {}),
1378
+ r
1379
+ ]
810
1380
  }
811
1381
  )
812
1382
  }
813
1383
  );
814
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
+ }
815
1487
  export {
816
- Wr as Button,
817
- Yr as TextEllipsis,
818
- Lr as ThemeContextProvider,
819
- jr 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
820
1514
  };
821
1515
  //# sourceMappingURL=index.es.js.map