@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.d.ts +198 -23
- package/dist/index.es.js +1159 -422
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +10 -8
package/dist/index.es.js
CHANGED
|
@@ -1,41 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { ThemeProvider as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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:
|
|
13
|
-
color:
|
|
14
|
-
background:
|
|
17
|
+
fontSize: r.fontSizes.m,
|
|
18
|
+
color: c,
|
|
19
|
+
background: m,
|
|
15
20
|
padding: "0.75em",
|
|
16
|
-
border: `1px solid ${
|
|
17
|
-
borderRadius:
|
|
18
|
-
transition:
|
|
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:
|
|
29
|
+
background: n ? r.colors.secondary : s,
|
|
30
|
+
borderColor: n ? r.colors.secondary : s
|
|
25
31
|
}
|
|
26
32
|
};
|
|
27
33
|
}
|
|
28
|
-
)
|
|
29
|
-
|
|
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
|
|
49
|
-
function
|
|
50
|
-
if (
|
|
51
|
-
|
|
52
|
-
var
|
|
53
|
-
function
|
|
54
|
-
var
|
|
55
|
-
|
|
56
|
-
for (
|
|
57
|
-
if (
|
|
58
|
-
return { $$typeof:
|
|
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
|
|
57
|
+
return z.Fragment = n, z.jsx = m, z.jsxs = m, z;
|
|
61
58
|
}
|
|
62
|
-
var
|
|
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
|
|
73
|
-
function
|
|
74
|
-
return
|
|
75
|
-
var
|
|
76
|
-
function
|
|
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
|
|
80
|
-
return typeof
|
|
76
|
+
var o = pe && e[pe] || e[rr];
|
|
77
|
+
return typeof o == "function" ? o : null;
|
|
81
78
|
}
|
|
82
|
-
var
|
|
83
|
-
function
|
|
79
|
+
var $ = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
80
|
+
function _(e) {
|
|
84
81
|
{
|
|
85
|
-
for (var
|
|
86
|
-
|
|
87
|
-
|
|
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
|
|
87
|
+
function or(e, o, i) {
|
|
91
88
|
{
|
|
92
|
-
var
|
|
93
|
-
|
|
94
|
-
var
|
|
95
|
-
return String(
|
|
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
|
-
|
|
94
|
+
v.unshift("Warning: " + o), Function.prototype.apply.call(console[e], console, v);
|
|
98
95
|
}
|
|
99
96
|
}
|
|
100
|
-
var
|
|
101
|
-
|
|
102
|
-
function
|
|
103
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
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 ===
|
|
104
|
+
e.$$typeof === be || e.getModuleId !== void 0));
|
|
108
105
|
}
|
|
109
|
-
function
|
|
110
|
-
var
|
|
111
|
-
if (
|
|
112
|
-
return
|
|
113
|
-
var
|
|
114
|
-
return
|
|
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
|
|
113
|
+
function ge(e) {
|
|
117
114
|
return e.displayName || "Context";
|
|
118
115
|
}
|
|
119
|
-
function
|
|
116
|
+
function j(e) {
|
|
120
117
|
if (e == null)
|
|
121
118
|
return null;
|
|
122
|
-
if (typeof e.tag == "number" &&
|
|
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
|
|
124
|
+
case a:
|
|
128
125
|
return "Fragment";
|
|
129
|
-
case
|
|
126
|
+
case n:
|
|
130
127
|
return "Portal";
|
|
131
|
-
case
|
|
128
|
+
case c:
|
|
132
129
|
return "Profiler";
|
|
133
|
-
case
|
|
130
|
+
case s:
|
|
134
131
|
return "StrictMode";
|
|
135
|
-
case
|
|
132
|
+
case S:
|
|
136
133
|
return "Suspense";
|
|
137
|
-
case
|
|
134
|
+
case p:
|
|
138
135
|
return "SuspenseList";
|
|
139
136
|
}
|
|
140
137
|
if (typeof e == "object")
|
|
141
138
|
switch (e.$$typeof) {
|
|
142
|
-
case
|
|
143
|
-
var
|
|
144
|
-
return
|
|
145
|
-
case
|
|
146
|
-
var
|
|
147
|
-
return
|
|
148
|
-
case
|
|
149
|
-
return
|
|
150
|
-
case
|
|
151
|
-
var
|
|
152
|
-
return
|
|
153
|
-
case
|
|
154
|
-
var
|
|
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
|
|
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
|
|
165
|
-
function
|
|
161
|
+
var F = Object.assign, B = 0, ve, me, he, ye, xe, we, Ee;
|
|
162
|
+
function _e() {
|
|
166
163
|
}
|
|
167
|
-
|
|
168
|
-
function
|
|
164
|
+
_e.__reactDisabledLog = !0;
|
|
165
|
+
function dr() {
|
|
169
166
|
{
|
|
170
|
-
if (
|
|
171
|
-
|
|
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:
|
|
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
|
-
|
|
185
|
+
B++;
|
|
189
186
|
}
|
|
190
187
|
}
|
|
191
|
-
function
|
|
188
|
+
function fr() {
|
|
192
189
|
{
|
|
193
|
-
if (
|
|
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:
|
|
201
|
-
value:
|
|
197
|
+
log: F({}, e, {
|
|
198
|
+
value: ve
|
|
202
199
|
}),
|
|
203
|
-
info:
|
|
204
|
-
value:
|
|
200
|
+
info: F({}, e, {
|
|
201
|
+
value: me
|
|
205
202
|
}),
|
|
206
|
-
warn:
|
|
207
|
-
value:
|
|
203
|
+
warn: F({}, e, {
|
|
204
|
+
value: he
|
|
208
205
|
}),
|
|
209
|
-
error:
|
|
210
|
-
value:
|
|
206
|
+
error: F({}, e, {
|
|
207
|
+
value: ye
|
|
211
208
|
}),
|
|
212
|
-
group:
|
|
213
|
-
value:
|
|
209
|
+
group: F({}, e, {
|
|
210
|
+
value: xe
|
|
214
211
|
}),
|
|
215
|
-
groupCollapsed:
|
|
216
|
-
value:
|
|
212
|
+
groupCollapsed: F({}, e, {
|
|
213
|
+
value: we
|
|
217
214
|
}),
|
|
218
|
-
groupEnd:
|
|
219
|
-
value:
|
|
215
|
+
groupEnd: F({}, e, {
|
|
216
|
+
value: Ee
|
|
220
217
|
})
|
|
221
218
|
});
|
|
222
219
|
}
|
|
223
|
-
|
|
220
|
+
B < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
224
221
|
}
|
|
225
222
|
}
|
|
226
|
-
var
|
|
227
|
-
function
|
|
223
|
+
var ee = $.ReactCurrentDispatcher, re;
|
|
224
|
+
function U(e, o, i) {
|
|
228
225
|
{
|
|
229
|
-
if (
|
|
226
|
+
if (re === void 0)
|
|
230
227
|
try {
|
|
231
228
|
throw Error();
|
|
232
|
-
} catch (
|
|
233
|
-
var
|
|
234
|
-
|
|
229
|
+
} catch (b) {
|
|
230
|
+
var l = b.stack.trim().match(/\n( *(at )?)/);
|
|
231
|
+
re = l && l[1] || "";
|
|
235
232
|
}
|
|
236
233
|
return `
|
|
237
|
-
` +
|
|
234
|
+
` + re + e;
|
|
238
235
|
}
|
|
239
236
|
}
|
|
240
|
-
var
|
|
237
|
+
var te = !1, H;
|
|
241
238
|
{
|
|
242
|
-
var
|
|
243
|
-
|
|
239
|
+
var pr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
240
|
+
H = new pr();
|
|
244
241
|
}
|
|
245
|
-
function
|
|
246
|
-
if (!e ||
|
|
242
|
+
function ke(e, o) {
|
|
243
|
+
if (!e || te)
|
|
247
244
|
return "";
|
|
248
245
|
{
|
|
249
|
-
var
|
|
250
|
-
if (
|
|
251
|
-
return
|
|
246
|
+
var i = H.get(e);
|
|
247
|
+
if (i !== void 0)
|
|
248
|
+
return i;
|
|
252
249
|
}
|
|
253
|
-
var
|
|
254
|
-
|
|
255
|
-
var
|
|
250
|
+
var l;
|
|
251
|
+
te = !0;
|
|
252
|
+
var b = Error.prepareStackTrace;
|
|
256
253
|
Error.prepareStackTrace = void 0;
|
|
257
|
-
var
|
|
258
|
-
|
|
254
|
+
var v;
|
|
255
|
+
v = ee.current, ee.current = null, dr();
|
|
259
256
|
try {
|
|
260
|
-
if (
|
|
261
|
-
var
|
|
257
|
+
if (o) {
|
|
258
|
+
var d = function() {
|
|
262
259
|
throw Error();
|
|
263
260
|
};
|
|
264
|
-
if (Object.defineProperty(
|
|
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(
|
|
271
|
-
} catch (
|
|
272
|
-
|
|
267
|
+
Reflect.construct(d, []);
|
|
268
|
+
} catch (R) {
|
|
269
|
+
l = R;
|
|
273
270
|
}
|
|
274
|
-
Reflect.construct(e, [],
|
|
271
|
+
Reflect.construct(e, [], d);
|
|
275
272
|
} else {
|
|
276
273
|
try {
|
|
277
|
-
|
|
278
|
-
} catch (
|
|
279
|
-
|
|
274
|
+
d.call();
|
|
275
|
+
} catch (R) {
|
|
276
|
+
l = R;
|
|
280
277
|
}
|
|
281
|
-
e.call(
|
|
278
|
+
e.call(d.prototype);
|
|
282
279
|
}
|
|
283
280
|
} else {
|
|
284
281
|
try {
|
|
285
282
|
throw Error();
|
|
286
|
-
} catch (
|
|
287
|
-
|
|
283
|
+
} catch (R) {
|
|
284
|
+
l = R;
|
|
288
285
|
}
|
|
289
286
|
e();
|
|
290
287
|
}
|
|
291
|
-
} catch (
|
|
292
|
-
if (
|
|
293
|
-
for (var
|
|
294
|
-
`),
|
|
295
|
-
`),
|
|
296
|
-
|
|
297
|
-
for (;
|
|
298
|
-
if (
|
|
299
|
-
if (
|
|
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 (
|
|
302
|
-
var
|
|
303
|
-
` +
|
|
304
|
-
return e.displayName &&
|
|
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 (
|
|
303
|
+
while (x >= 1 && w >= 0);
|
|
307
304
|
break;
|
|
308
305
|
}
|
|
309
306
|
}
|
|
310
307
|
} finally {
|
|
311
|
-
|
|
308
|
+
te = !1, ee.current = v, fr(), Error.prepareStackTrace = b;
|
|
312
309
|
}
|
|
313
|
-
var
|
|
314
|
-
return typeof e == "function" &&
|
|
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
|
|
317
|
-
return
|
|
313
|
+
function br(e, o, i) {
|
|
314
|
+
return ke(e, !1);
|
|
318
315
|
}
|
|
319
|
-
function
|
|
320
|
-
var
|
|
321
|
-
return !!(
|
|
316
|
+
function gr(e) {
|
|
317
|
+
var o = e.prototype;
|
|
318
|
+
return !!(o && o.isReactComponent);
|
|
322
319
|
}
|
|
323
|
-
function
|
|
320
|
+
function G(e, o, i) {
|
|
324
321
|
if (e == null)
|
|
325
322
|
return "";
|
|
326
323
|
if (typeof e == "function")
|
|
327
|
-
return
|
|
324
|
+
return ke(e, gr(e));
|
|
328
325
|
if (typeof e == "string")
|
|
329
|
-
return
|
|
326
|
+
return U(e);
|
|
330
327
|
switch (e) {
|
|
331
|
-
case
|
|
332
|
-
return
|
|
333
|
-
case
|
|
334
|
-
return
|
|
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
|
|
339
|
-
return
|
|
340
|
-
case
|
|
341
|
-
return
|
|
342
|
-
case
|
|
343
|
-
var
|
|
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
|
|
342
|
+
return G(v(b), o, i);
|
|
346
343
|
} catch {
|
|
347
344
|
}
|
|
348
345
|
}
|
|
349
346
|
}
|
|
350
347
|
return "";
|
|
351
348
|
}
|
|
352
|
-
var
|
|
353
|
-
function
|
|
349
|
+
var M = Object.prototype.hasOwnProperty, Re = {}, Se = $.ReactDebugCurrentFrame;
|
|
350
|
+
function K(e) {
|
|
354
351
|
if (e) {
|
|
355
|
-
var
|
|
356
|
-
|
|
352
|
+
var o = e._owner, i = G(e.type, e._source, o ? o.type : null);
|
|
353
|
+
Se.setExtraStackFrame(i);
|
|
357
354
|
} else
|
|
358
|
-
|
|
355
|
+
Se.setExtraStackFrame(null);
|
|
359
356
|
}
|
|
360
|
-
function
|
|
357
|
+
function vr(e, o, i, l, b) {
|
|
361
358
|
{
|
|
362
|
-
var
|
|
363
|
-
for (var
|
|
364
|
-
if (
|
|
365
|
-
var
|
|
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[
|
|
368
|
-
var
|
|
369
|
-
throw
|
|
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
|
-
|
|
372
|
-
} catch (
|
|
373
|
-
|
|
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
|
-
|
|
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
|
|
380
|
-
function
|
|
381
|
-
return
|
|
376
|
+
var mr = Array.isArray;
|
|
377
|
+
function oe(e) {
|
|
378
|
+
return mr(e);
|
|
382
379
|
}
|
|
383
|
-
function
|
|
380
|
+
function hr(e) {
|
|
384
381
|
{
|
|
385
|
-
var
|
|
386
|
-
return
|
|
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
|
|
386
|
+
function yr(e) {
|
|
390
387
|
try {
|
|
391
|
-
return
|
|
388
|
+
return Ce(e), !1;
|
|
392
389
|
} catch {
|
|
393
390
|
return !0;
|
|
394
391
|
}
|
|
395
392
|
}
|
|
396
|
-
function
|
|
393
|
+
function Ce(e) {
|
|
397
394
|
return "" + e;
|
|
398
395
|
}
|
|
399
|
-
function
|
|
400
|
-
if (
|
|
401
|
-
return
|
|
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
|
|
400
|
+
var N = $.ReactCurrentOwner, xr = {
|
|
404
401
|
key: !0,
|
|
405
402
|
ref: !0,
|
|
406
403
|
__self: !0,
|
|
407
404
|
__source: !0
|
|
408
|
-
},
|
|
409
|
-
|
|
410
|
-
function
|
|
411
|
-
if (
|
|
412
|
-
var
|
|
413
|
-
if (
|
|
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
|
|
419
|
-
if (
|
|
420
|
-
var
|
|
421
|
-
if (
|
|
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
|
|
427
|
-
if (typeof e.ref == "string" &&
|
|
428
|
-
var
|
|
429
|
-
|
|
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
|
|
429
|
+
function kr(e, o) {
|
|
433
430
|
{
|
|
434
|
-
var
|
|
435
|
-
|
|
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
|
-
|
|
438
|
-
get:
|
|
434
|
+
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
435
|
+
get: i,
|
|
439
436
|
configurable: !0
|
|
440
437
|
});
|
|
441
438
|
}
|
|
442
439
|
}
|
|
443
|
-
function
|
|
440
|
+
function Rr(e, o) {
|
|
444
441
|
{
|
|
445
|
-
var
|
|
446
|
-
|
|
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
|
-
|
|
449
|
-
get:
|
|
445
|
+
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
446
|
+
get: i,
|
|
450
447
|
configurable: !0
|
|
451
448
|
});
|
|
452
449
|
}
|
|
453
450
|
}
|
|
454
|
-
var
|
|
455
|
-
var
|
|
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:
|
|
454
|
+
$$typeof: t,
|
|
458
455
|
// Built-in properties that belong on the element
|
|
459
456
|
type: e,
|
|
460
|
-
key:
|
|
461
|
-
ref:
|
|
462
|
-
props:
|
|
457
|
+
key: o,
|
|
458
|
+
ref: i,
|
|
459
|
+
props: d,
|
|
463
460
|
// Record the component responsible for creating this element.
|
|
464
|
-
_owner:
|
|
461
|
+
_owner: v
|
|
465
462
|
};
|
|
466
|
-
return
|
|
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(
|
|
468
|
+
}), Object.defineProperty(u, "_self", {
|
|
472
469
|
configurable: !1,
|
|
473
470
|
enumerable: !1,
|
|
474
471
|
writable: !1,
|
|
475
|
-
value:
|
|
476
|
-
}), Object.defineProperty(
|
|
472
|
+
value: l
|
|
473
|
+
}), Object.defineProperty(u, "_source", {
|
|
477
474
|
configurable: !1,
|
|
478
475
|
enumerable: !1,
|
|
479
476
|
writable: !1,
|
|
480
|
-
value:
|
|
481
|
-
}), Object.freeze && (Object.freeze(
|
|
477
|
+
value: b
|
|
478
|
+
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
482
479
|
};
|
|
483
|
-
function
|
|
480
|
+
function Cr(e, o, i, l, b) {
|
|
484
481
|
{
|
|
485
|
-
var
|
|
486
|
-
|
|
487
|
-
for (
|
|
488
|
-
|
|
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
|
|
491
|
-
for (
|
|
492
|
-
|
|
487
|
+
var x = e.defaultProps;
|
|
488
|
+
for (v in x)
|
|
489
|
+
d[v] === void 0 && (d[v] = x[v]);
|
|
493
490
|
}
|
|
494
|
-
if (
|
|
495
|
-
var
|
|
496
|
-
|
|
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
|
|
495
|
+
return Sr(e, u, k, b, l, N.current, d);
|
|
499
496
|
}
|
|
500
497
|
}
|
|
501
|
-
var
|
|
502
|
-
function
|
|
498
|
+
var ae = $.ReactCurrentOwner, Pe = $.ReactDebugCurrentFrame;
|
|
499
|
+
function W(e) {
|
|
503
500
|
if (e) {
|
|
504
|
-
var
|
|
505
|
-
|
|
501
|
+
var o = e._owner, i = G(e.type, e._source, o ? o.type : null);
|
|
502
|
+
Pe.setExtraStackFrame(i);
|
|
506
503
|
} else
|
|
507
|
-
|
|
504
|
+
Pe.setExtraStackFrame(null);
|
|
508
505
|
}
|
|
509
|
-
var
|
|
510
|
-
|
|
511
|
-
function
|
|
512
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
506
|
+
var ie;
|
|
507
|
+
ie = !1;
|
|
508
|
+
function le(e) {
|
|
509
|
+
return typeof e == "object" && e !== null && e.$$typeof === t;
|
|
513
510
|
}
|
|
514
|
-
function
|
|
511
|
+
function De() {
|
|
515
512
|
{
|
|
516
|
-
if (
|
|
517
|
-
var e =
|
|
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
|
|
523
|
+
function Tr(e) {
|
|
527
524
|
return "";
|
|
528
525
|
}
|
|
529
|
-
var
|
|
530
|
-
function
|
|
526
|
+
var Ie = {};
|
|
527
|
+
function jr(e) {
|
|
531
528
|
{
|
|
532
|
-
var
|
|
533
|
-
if (!
|
|
534
|
-
var
|
|
535
|
-
|
|
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 <` +
|
|
534
|
+
Check the top-level render call using <` + i + ">.");
|
|
538
535
|
}
|
|
539
|
-
return
|
|
536
|
+
return o;
|
|
540
537
|
}
|
|
541
538
|
}
|
|
542
|
-
function
|
|
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
|
|
548
|
-
if (
|
|
544
|
+
var i = jr(o);
|
|
545
|
+
if (Ie[i])
|
|
549
546
|
return;
|
|
550
|
-
|
|
551
|
-
var
|
|
552
|
-
e && e._owner && e._owner !==
|
|
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
|
|
552
|
+
function Ae(e, o) {
|
|
556
553
|
{
|
|
557
554
|
if (typeof e != "object")
|
|
558
555
|
return;
|
|
559
|
-
if (
|
|
560
|
-
for (var
|
|
561
|
-
var
|
|
562
|
-
|
|
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 (
|
|
561
|
+
else if (le(e))
|
|
565
562
|
e._store && (e._store.validated = !0);
|
|
566
563
|
else if (e) {
|
|
567
|
-
var
|
|
568
|
-
if (typeof
|
|
569
|
-
for (var
|
|
570
|
-
|
|
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
|
|
571
|
+
function Or(e) {
|
|
575
572
|
{
|
|
576
|
-
var
|
|
577
|
-
if (
|
|
573
|
+
var o = e.type;
|
|
574
|
+
if (o == null || typeof o == "string")
|
|
578
575
|
return;
|
|
579
|
-
var
|
|
580
|
-
if (typeof
|
|
581
|
-
|
|
582
|
-
else if (typeof
|
|
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
|
-
|
|
585
|
-
|
|
581
|
+
o.$$typeof === T))
|
|
582
|
+
i = o.propTypes;
|
|
586
583
|
else
|
|
587
584
|
return;
|
|
588
|
-
if (
|
|
589
|
-
var
|
|
590
|
-
|
|
591
|
-
} else if (
|
|
592
|
-
|
|
593
|
-
var
|
|
594
|
-
|
|
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
|
|
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
|
|
596
|
+
function Pr(e) {
|
|
600
597
|
{
|
|
601
|
-
for (var
|
|
602
|
-
var
|
|
603
|
-
if (
|
|
604
|
-
|
|
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 && (
|
|
605
|
+
e.ref !== null && (W(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
|
|
609
606
|
}
|
|
610
607
|
}
|
|
611
|
-
var
|
|
612
|
-
function
|
|
608
|
+
var $e = {};
|
|
609
|
+
function We(e, o, i, l, b, v) {
|
|
613
610
|
{
|
|
614
|
-
var
|
|
615
|
-
if (!
|
|
616
|
-
var
|
|
617
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
618
|
-
var
|
|
619
|
-
|
|
620
|
-
var
|
|
621
|
-
e === null ?
|
|
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
|
|
624
|
-
if (
|
|
625
|
-
return
|
|
626
|
-
if (
|
|
627
|
-
var
|
|
628
|
-
if (
|
|
629
|
-
if (
|
|
630
|
-
if (
|
|
631
|
-
for (var
|
|
632
|
-
|
|
633
|
-
Object.freeze && Object.freeze(
|
|
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
|
-
|
|
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
|
-
|
|
634
|
+
Ae(C, e);
|
|
638
635
|
}
|
|
639
|
-
if (
|
|
640
|
-
var
|
|
641
|
-
return
|
|
642
|
-
}),
|
|
643
|
-
if (
|
|
644
|
-
var
|
|
645
|
-
|
|
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} />`,
|
|
647
|
+
<%s key={someKey} {...props} />`, se, A, $r, A), $e[A + se] = !0;
|
|
651
648
|
}
|
|
652
649
|
}
|
|
653
|
-
return e ===
|
|
650
|
+
return e === a ? Pr(w) : Or(w), w;
|
|
654
651
|
}
|
|
655
652
|
}
|
|
656
|
-
function
|
|
657
|
-
return
|
|
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
|
-
|
|
660
|
-
|
|
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
|
-
|
|
663
|
-
|
|
664
|
-
|
|
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
|
-
|
|
667
|
-
var
|
|
668
|
-
|
|
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
|
-
},
|
|
1282
|
+
}, Rt = {
|
|
677
1283
|
xs: "10px",
|
|
678
1284
|
s: "12px",
|
|
679
1285
|
m: "14px",
|
|
680
1286
|
l: "16px",
|
|
681
1287
|
xl: "18px"
|
|
682
|
-
},
|
|
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
|
-
},
|
|
1295
|
+
}, Ct = {
|
|
690
1296
|
delay: {
|
|
691
1297
|
fast: "0.075s",
|
|
692
1298
|
normal: "0.15s",
|
|
693
1299
|
slow: "0.3s"
|
|
694
1300
|
}
|
|
695
|
-
},
|
|
696
|
-
borders:
|
|
697
|
-
medias:
|
|
698
|
-
transitions:
|
|
699
|
-
fontSizes:
|
|
700
|
-
},
|
|
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
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
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
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
},
|
|
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: (
|
|
1350
|
+
toggleDarkTheme: (r) => {
|
|
740
1351
|
}
|
|
741
1352
|
});
|
|
742
|
-
function
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
onPreferenceChange: h
|
|
1353
|
+
function eo({
|
|
1354
|
+
children: r,
|
|
1355
|
+
onPreferenceChange: t
|
|
746
1356
|
}) {
|
|
747
|
-
const [
|
|
748
|
-
|
|
1357
|
+
const [n, a] = Y(() => !!localStorage.getItem(Ne)), s = (c) => {
|
|
1358
|
+
a(c), t == null || t(c);
|
|
749
1359
|
};
|
|
750
|
-
return
|
|
751
|
-
localStorage.setItem(
|
|
752
|
-
}, [
|
|
753
|
-
|
|
1360
|
+
return Q(() => {
|
|
1361
|
+
localStorage.setItem(Ne, String(n));
|
|
1362
|
+
}, [n]), /* @__PURE__ */ f.jsx(
|
|
1363
|
+
Yr,
|
|
754
1364
|
{
|
|
755
1365
|
theme: {
|
|
756
|
-
...
|
|
757
|
-
colors:
|
|
1366
|
+
...Tt,
|
|
1367
|
+
colors: n ? jt : Ot
|
|
758
1368
|
},
|
|
759
|
-
children: /* @__PURE__ */
|
|
760
|
-
|
|
1369
|
+
children: /* @__PURE__ */ f.jsxs(
|
|
1370
|
+
Pt.Provider,
|
|
761
1371
|
{
|
|
762
1372
|
value: {
|
|
763
|
-
isDarkTheme:
|
|
764
|
-
toggleDarkTheme:
|
|
1373
|
+
isDarkTheme: n,
|
|
1374
|
+
toggleDarkTheme: s
|
|
765
1375
|
},
|
|
766
|
-
children:
|
|
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
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
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
|