@yungu-fed/componentlibrary 0.0.2 → 0.0.4
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/README.md +3 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +150 -150
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +9 -9
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -3
- package/style.js +3 -0
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var de = { exports: {} },
|
|
1
|
+
import Be, { useState as Le, useRef as We, useEffect as ce } from "react";
|
|
2
|
+
var de = { exports: {} }, V = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,21 +9,21 @@ var de = { exports: {} }, N = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
12
|
+
var Me;
|
|
13
13
|
function hr() {
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var A =
|
|
17
|
-
function j(
|
|
14
|
+
if (Me) return V;
|
|
15
|
+
Me = 1;
|
|
16
|
+
var A = Be, w = Symbol.for("react.element"), x = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, m = A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function j(k, v, g) {
|
|
18
18
|
var h, C = {}, D = null, F = null;
|
|
19
|
-
|
|
20
|
-
for (h in v) d.call(v, h) && !
|
|
21
|
-
if (
|
|
22
|
-
return { $$typeof: w, type:
|
|
19
|
+
g !== void 0 && (D = "" + g), v.key !== void 0 && (D = "" + v.key), v.ref !== void 0 && (F = v.ref);
|
|
20
|
+
for (h in v) d.call(v, h) && !S.hasOwnProperty(h) && (C[h] = v[h]);
|
|
21
|
+
if (k && k.defaultProps) for (h in v = k.defaultProps, v) C[h] === void 0 && (C[h] = v[h]);
|
|
22
|
+
return { $$typeof: w, type: k, key: D, ref: F, props: C, _owner: m.current };
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return V.Fragment = x, V.jsx = j, V.jsxs = j, V;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var U = {};
|
|
27
27
|
/**
|
|
28
28
|
* @license React
|
|
29
29
|
* react-jsx-runtime.development.js
|
|
@@ -33,14 +33,14 @@ var V = {};
|
|
|
33
33
|
* This source code is licensed under the MIT license found in the
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
|
-
var
|
|
36
|
+
var Ye;
|
|
37
37
|
function _r() {
|
|
38
|
-
return
|
|
39
|
-
var A =
|
|
40
|
-
function
|
|
38
|
+
return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
+
var A = Be, w = Symbol.for("react.element"), x = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), k = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), $ = Symbol.iterator, J = "@@iterator";
|
|
40
|
+
function O(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var r = $ && e[$] || e[
|
|
43
|
+
var r = $ && e[$] || e[J];
|
|
44
44
|
return typeof r == "function" ? r : null;
|
|
45
45
|
}
|
|
46
46
|
var R = A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -64,23 +64,23 @@ function _r() {
|
|
|
64
64
|
var Z = !1, Q = !1, ee = !1, re = !1, a = !1, l;
|
|
65
65
|
l = Symbol.for("react.module.reference");
|
|
66
66
|
function _(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === d || e ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === d || e === S || a || e === m || e === g || e === h || re || e === F || Z || Q || ee || typeof e == "object" && e !== null && (e.$$typeof === D || e.$$typeof === C || e.$$typeof === j || e.$$typeof === k || e.$$typeof === v || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
71
71
|
e.$$typeof === l || e.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function b(e, r, t) {
|
|
74
74
|
var n = e.displayName;
|
|
75
75
|
if (n)
|
|
76
76
|
return n;
|
|
77
77
|
var s = r.displayName || r.name || "";
|
|
78
78
|
return s !== "" ? t + "(" + s + ")" : t;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Y(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function P(e) {
|
|
84
84
|
if (e == null)
|
|
85
85
|
return null;
|
|
86
86
|
if (typeof e.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -90,34 +90,34 @@ function _r() {
|
|
|
90
90
|
switch (e) {
|
|
91
91
|
case d:
|
|
92
92
|
return "Fragment";
|
|
93
|
-
case k:
|
|
94
|
-
return "Portal";
|
|
95
93
|
case x:
|
|
94
|
+
return "Portal";
|
|
95
|
+
case S:
|
|
96
96
|
return "Profiler";
|
|
97
97
|
case m:
|
|
98
98
|
return "StrictMode";
|
|
99
|
-
case
|
|
99
|
+
case g:
|
|
100
100
|
return "Suspense";
|
|
101
101
|
case h:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof e == "object")
|
|
105
105
|
switch (e.$$typeof) {
|
|
106
|
-
case
|
|
106
|
+
case k:
|
|
107
107
|
var r = e;
|
|
108
|
-
return
|
|
108
|
+
return Y(r) + ".Consumer";
|
|
109
109
|
case j:
|
|
110
110
|
var t = e;
|
|
111
|
-
return
|
|
111
|
+
return Y(t._context) + ".Provider";
|
|
112
112
|
case v:
|
|
113
|
-
return
|
|
113
|
+
return b(e, e.render, "ForwardRef");
|
|
114
114
|
case C:
|
|
115
115
|
var n = e.displayName || null;
|
|
116
|
-
return n !== null ? n :
|
|
116
|
+
return n !== null ? n : P(e.type) || "Memo";
|
|
117
117
|
case D: {
|
|
118
118
|
var s = e, u = s._payload, i = s._init;
|
|
119
119
|
try {
|
|
120
|
-
return
|
|
120
|
+
return P(i(u));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,14 +125,14 @@ function _r() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var I = Object.assign,
|
|
128
|
+
var I = Object.assign, B = 0, pe, he, _e, be, ge, ye, me;
|
|
129
129
|
function Ee() {
|
|
130
130
|
}
|
|
131
131
|
Ee.__reactDisabledLog = !0;
|
|
132
|
-
function
|
|
132
|
+
function Ne() {
|
|
133
133
|
{
|
|
134
|
-
if (
|
|
135
|
-
pe = console.log, he = console.info, _e = console.warn,
|
|
134
|
+
if (B === 0) {
|
|
135
|
+
pe = console.log, he = console.info, _e = console.warn, be = console.error, ge = console.group, ye = console.groupCollapsed, me = console.groupEnd;
|
|
136
136
|
var e = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
@@ -149,12 +149,12 @@ function _r() {
|
|
|
149
149
|
groupEnd: e
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
B++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Ve() {
|
|
156
156
|
{
|
|
157
|
-
if (
|
|
157
|
+
if (B--, B === 0) {
|
|
158
158
|
var e = {
|
|
159
159
|
configurable: !0,
|
|
160
160
|
enumerable: !0,
|
|
@@ -171,24 +171,24 @@ function _r() {
|
|
|
171
171
|
value: _e
|
|
172
172
|
}),
|
|
173
173
|
error: I({}, e, {
|
|
174
|
-
value:
|
|
174
|
+
value: be
|
|
175
175
|
}),
|
|
176
176
|
group: I({}, e, {
|
|
177
|
-
value:
|
|
177
|
+
value: ge
|
|
178
178
|
}),
|
|
179
179
|
groupCollapsed: I({}, e, {
|
|
180
|
-
value:
|
|
180
|
+
value: ye
|
|
181
181
|
}),
|
|
182
182
|
groupEnd: I({}, e, {
|
|
183
183
|
value: me
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
B < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
var te = R.ReactCurrentDispatcher, ne;
|
|
191
|
-
function
|
|
191
|
+
function K(e, r, t) {
|
|
192
192
|
{
|
|
193
193
|
if (ne === void 0)
|
|
194
194
|
try {
|
|
@@ -201,16 +201,16 @@ function _r() {
|
|
|
201
201
|
` + ne + e;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var ae = !1,
|
|
204
|
+
var ae = !1, z;
|
|
205
205
|
{
|
|
206
|
-
var
|
|
207
|
-
|
|
206
|
+
var Ue = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
z = new Ue();
|
|
208
208
|
}
|
|
209
209
|
function Re(e, r) {
|
|
210
210
|
if (!e || ae)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
213
|
-
var t =
|
|
213
|
+
var t = z.get(e);
|
|
214
214
|
if (t !== void 0)
|
|
215
215
|
return t;
|
|
216
216
|
}
|
|
@@ -219,7 +219,7 @@ function _r() {
|
|
|
219
219
|
var s = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
221
|
var u;
|
|
222
|
-
u = te.current, te.current = null,
|
|
222
|
+
u = te.current, te.current = null, Ne();
|
|
223
223
|
try {
|
|
224
224
|
if (r) {
|
|
225
225
|
var i = function() {
|
|
@@ -255,32 +255,32 @@ function _r() {
|
|
|
255
255
|
} catch (E) {
|
|
256
256
|
if (E && n && typeof E.stack == "string") {
|
|
257
257
|
for (var o = E.stack.split(`
|
|
258
|
-
`),
|
|
259
|
-
`), c = o.length - 1, f =
|
|
258
|
+
`), y = n.stack.split(`
|
|
259
|
+
`), c = o.length - 1, f = y.length - 1; c >= 1 && f >= 0 && o[c] !== y[f]; )
|
|
260
260
|
f--;
|
|
261
261
|
for (; c >= 1 && f >= 0; c--, f--)
|
|
262
|
-
if (o[c] !==
|
|
262
|
+
if (o[c] !== y[f]) {
|
|
263
263
|
if (c !== 1 || f !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (c--, f--, f < 0 || o[c] !==
|
|
265
|
+
if (c--, f--, f < 0 || o[c] !== y[f]) {
|
|
266
266
|
var T = `
|
|
267
267
|
` + o[c].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
268
|
+
return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && z.set(e, T), T;
|
|
269
269
|
}
|
|
270
270
|
while (c >= 1 && f >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
ae = !1, te.current = u,
|
|
275
|
+
ae = !1, te.current = u, Ve(), Error.prepareStackTrace = s;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
278
|
-
return typeof e == "function" &&
|
|
277
|
+
var M = e ? e.displayName || e.name : "", L = M ? K(M) : "";
|
|
278
|
+
return typeof e == "function" && z.set(e, L), L;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function qe(e, r, t) {
|
|
281
281
|
return Re(e, !1);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function Je(e) {
|
|
284
284
|
var r = e.prototype;
|
|
285
285
|
return !!(r && r.isReactComponent);
|
|
286
286
|
}
|
|
@@ -288,19 +288,19 @@ function _r() {
|
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
291
|
-
return Re(e,
|
|
291
|
+
return Re(e, Je(e));
|
|
292
292
|
if (typeof e == "string")
|
|
293
|
-
return
|
|
293
|
+
return K(e);
|
|
294
294
|
switch (e) {
|
|
295
|
-
case
|
|
296
|
-
return
|
|
295
|
+
case g:
|
|
296
|
+
return K("Suspense");
|
|
297
297
|
case h:
|
|
298
|
-
return
|
|
298
|
+
return K("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
302
|
case v:
|
|
303
|
-
return
|
|
303
|
+
return qe(e.render);
|
|
304
304
|
case C:
|
|
305
305
|
return G(e.type, r, t);
|
|
306
306
|
case D: {
|
|
@@ -313,7 +313,7 @@ function _r() {
|
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var
|
|
316
|
+
var N = Object.prototype.hasOwnProperty, we = {}, Ce = R.ReactDebugCurrentFrame;
|
|
317
317
|
function H(e) {
|
|
318
318
|
if (e) {
|
|
319
319
|
var r = e._owner, t = G(e.type, e._source, r ? r.type : null);
|
|
@@ -321,16 +321,16 @@ function _r() {
|
|
|
321
321
|
} else
|
|
322
322
|
Ce.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function Ke(e, r, t, n, s) {
|
|
325
325
|
{
|
|
326
|
-
var u = Function.call.bind(
|
|
326
|
+
var u = Function.call.bind(N);
|
|
327
327
|
for (var i in e)
|
|
328
328
|
if (u(e, i)) {
|
|
329
329
|
var o = void 0;
|
|
330
330
|
try {
|
|
331
331
|
if (typeof e[i] != "function") {
|
|
332
|
-
var
|
|
333
|
-
throw
|
|
332
|
+
var y = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
+
throw y.name = "Invariant Violation", y;
|
|
334
334
|
}
|
|
335
335
|
o = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
336
|
} catch (c) {
|
|
@@ -340,9 +340,9 @@ function _r() {
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
var
|
|
343
|
+
var ze = Array.isArray;
|
|
344
344
|
function oe(e) {
|
|
345
|
-
return
|
|
345
|
+
return ze(e);
|
|
346
346
|
}
|
|
347
347
|
function Ge(e) {
|
|
348
348
|
{
|
|
@@ -360,18 +360,18 @@ function _r() {
|
|
|
360
360
|
function Te(e) {
|
|
361
361
|
return "" + e;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function xe(e) {
|
|
364
364
|
if (He(e))
|
|
365
365
|
return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), Te(e);
|
|
366
366
|
}
|
|
367
|
-
var
|
|
367
|
+
var ke = R.ReactCurrentOwner, Xe = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
|
-
},
|
|
372
|
+
}, Oe, Pe;
|
|
373
373
|
function Ze(e) {
|
|
374
|
-
if (
|
|
374
|
+
if (N.call(e, "ref")) {
|
|
375
375
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
376
|
if (r && r.isReactWarning)
|
|
377
377
|
return !1;
|
|
@@ -379,7 +379,7 @@ function _r() {
|
|
|
379
379
|
return e.ref !== void 0;
|
|
380
380
|
}
|
|
381
381
|
function Qe(e) {
|
|
382
|
-
if (
|
|
382
|
+
if (N.call(e, "key")) {
|
|
383
383
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
384
|
if (r && r.isReactWarning)
|
|
385
385
|
return !1;
|
|
@@ -387,12 +387,12 @@ function _r() {
|
|
|
387
387
|
return e.key !== void 0;
|
|
388
388
|
}
|
|
389
389
|
function er(e, r) {
|
|
390
|
-
typeof e.ref == "string" &&
|
|
390
|
+
typeof e.ref == "string" && ke.current;
|
|
391
391
|
}
|
|
392
392
|
function rr(e, r) {
|
|
393
393
|
{
|
|
394
394
|
var t = function() {
|
|
395
|
-
|
|
395
|
+
Oe || (Oe = !0, p("%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));
|
|
396
396
|
};
|
|
397
397
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
398
|
get: t,
|
|
@@ -403,7 +403,7 @@ function _r() {
|
|
|
403
403
|
function tr(e, r) {
|
|
404
404
|
{
|
|
405
405
|
var t = function() {
|
|
406
|
-
|
|
406
|
+
Pe || (Pe = !0, p("%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));
|
|
407
407
|
};
|
|
408
408
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
409
|
get: t,
|
|
@@ -442,29 +442,29 @@ function _r() {
|
|
|
442
442
|
};
|
|
443
443
|
function ar(e, r, t, n, s) {
|
|
444
444
|
{
|
|
445
|
-
var u, i = {}, o = null,
|
|
446
|
-
t !== void 0 && (
|
|
445
|
+
var u, i = {}, o = null, y = null;
|
|
446
|
+
t !== void 0 && (xe(t), o = "" + t), Qe(r) && (xe(r.key), o = "" + r.key), Ze(r) && (y = r.ref, er(r, s));
|
|
447
447
|
for (u in r)
|
|
448
|
-
|
|
448
|
+
N.call(r, u) && !Xe.hasOwnProperty(u) && (i[u] = r[u]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
450
450
|
var c = e.defaultProps;
|
|
451
451
|
for (u in c)
|
|
452
452
|
i[u] === void 0 && (i[u] = c[u]);
|
|
453
453
|
}
|
|
454
|
-
if (o ||
|
|
454
|
+
if (o || y) {
|
|
455
455
|
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
-
o && rr(i, f),
|
|
456
|
+
o && rr(i, f), y && tr(i, f);
|
|
457
457
|
}
|
|
458
|
-
return nr(e, o,
|
|
458
|
+
return nr(e, o, y, s, n, ke.current, i);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var ie = R.ReactCurrentOwner,
|
|
461
|
+
var ie = R.ReactCurrentOwner, Se = R.ReactDebugCurrentFrame;
|
|
462
462
|
function W(e) {
|
|
463
463
|
if (e) {
|
|
464
464
|
var r = e._owner, t = G(e.type, e._source, r ? r.type : null);
|
|
465
|
-
|
|
465
|
+
Se.setExtraStackFrame(t);
|
|
466
466
|
} else
|
|
467
|
-
|
|
467
|
+
Se.setExtraStackFrame(null);
|
|
468
468
|
}
|
|
469
469
|
var se;
|
|
470
470
|
se = !1;
|
|
@@ -474,7 +474,7 @@ function _r() {
|
|
|
474
474
|
function je() {
|
|
475
475
|
{
|
|
476
476
|
if (ie.current) {
|
|
477
|
-
var e =
|
|
477
|
+
var e = P(ie.current.type);
|
|
478
478
|
if (e)
|
|
479
479
|
return `
|
|
480
480
|
|
|
@@ -509,7 +509,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
509
509
|
return;
|
|
510
510
|
Fe[t] = !0;
|
|
511
511
|
var n = "";
|
|
512
|
-
e && e._owner && e._owner !== ie.current && (n = " It was passed a child from " +
|
|
512
|
+
e && e._owner && e._owner !== ie.current && (n = " It was passed a child from " + P(e._owner.type) + "."), W(e), p('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), W(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
function Ae(e, r) {
|
|
@@ -524,7 +524,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
524
524
|
else if (ue(e))
|
|
525
525
|
e._store && (e._store.validated = !0);
|
|
526
526
|
else if (e) {
|
|
527
|
-
var s =
|
|
527
|
+
var s = O(e);
|
|
528
528
|
if (typeof s == "function" && s !== e.entries)
|
|
529
529
|
for (var u = s.call(e), i; !(i = u.next()).done; )
|
|
530
530
|
ue(i.value) && De(i.value, r);
|
|
@@ -546,11 +546,11 @@ Check the top-level render call using <` + t + ">.");
|
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
548
548
|
if (t) {
|
|
549
|
-
var n =
|
|
550
|
-
|
|
549
|
+
var n = P(r);
|
|
550
|
+
Ke(t, e.props, "prop", n, e);
|
|
551
551
|
} else if (r.PropTypes !== void 0 && !se) {
|
|
552
552
|
se = !0;
|
|
553
|
-
var s =
|
|
553
|
+
var s = P(r);
|
|
554
554
|
p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
|
|
555
555
|
}
|
|
556
556
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -575,10 +575,10 @@ Check the top-level render call using <` + t + ">.");
|
|
|
575
575
|
if (!i) {
|
|
576
576
|
var o = "";
|
|
577
577
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
|
-
var
|
|
579
|
-
|
|
578
|
+
var y = or();
|
|
579
|
+
y ? o += y : o += je();
|
|
580
580
|
var c;
|
|
581
|
-
e === null ? c = "null" : oe(e) ? c = "array" : e !== void 0 && e.$$typeof === w ? (c = "<" + (
|
|
581
|
+
e === null ? c = "null" : oe(e) ? c = "array" : e !== void 0 && e.$$typeof === w ? (c = "<" + (P(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : c = typeof e, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", c, o);
|
|
582
582
|
}
|
|
583
583
|
var f = ar(e, r, t, s, u);
|
|
584
584
|
if (f == null)
|
|
@@ -588,16 +588,16 @@ Check the top-level render call using <` + t + ">.");
|
|
|
588
588
|
if (T !== void 0)
|
|
589
589
|
if (n)
|
|
590
590
|
if (oe(T)) {
|
|
591
|
-
for (var
|
|
592
|
-
Ae(T[
|
|
591
|
+
for (var M = 0; M < T.length; M++)
|
|
592
|
+
Ae(T[M], e);
|
|
593
593
|
Object.freeze && Object.freeze(T);
|
|
594
594
|
} else
|
|
595
595
|
p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
596
|
else
|
|
597
597
|
Ae(T, e);
|
|
598
598
|
}
|
|
599
|
-
if (
|
|
600
|
-
var L =
|
|
599
|
+
if (N.call(r, "key")) {
|
|
600
|
+
var L = P(e), E = Object.keys(r).filter(function(pr) {
|
|
601
601
|
return pr !== "key";
|
|
602
602
|
}), le = E.length > 0 ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
603
|
if (!$e[L + le]) {
|
|
@@ -620,41 +620,41 @@ React keys must be passed directly to JSX without using spread:
|
|
|
620
620
|
return Ie(e, r, t, !1);
|
|
621
621
|
}
|
|
622
622
|
var fr = cr, dr = lr;
|
|
623
|
-
|
|
624
|
-
}()),
|
|
623
|
+
U.Fragment = d, U.jsx = fr, U.jsxs = dr;
|
|
624
|
+
}()), U;
|
|
625
625
|
}
|
|
626
626
|
process.env.NODE_ENV === "production" ? de.exports = hr() : de.exports = _r();
|
|
627
627
|
var ve = de.exports;
|
|
628
|
-
const
|
|
629
|
-
btn:
|
|
630
|
-
small:
|
|
631
|
-
middle:
|
|
628
|
+
const br = "_btn_9ybrx_1", gr = "_small_9ybrx_25", yr = "_middle_9ybrx_32", mr = "_large_9ybrx_39", Er = "_danger_9ybrx_46", Rr = "_primary_9ybrx_50", wr = "_link_9ybrx_50", Cr = "_text_9ybrx_50", Tr = "_dashed_9ybrx_50", xr = "_ghost_9ybrx_50", kr = "_warning_9ybrx_60", Or = "_info_9ybrx_74", Pr = "_success_9ybrx_88", Sr = "_disabled_9ybrx_157", q = {
|
|
629
|
+
btn: br,
|
|
630
|
+
small: gr,
|
|
631
|
+
middle: yr,
|
|
632
632
|
large: mr,
|
|
633
633
|
danger: Er,
|
|
634
634
|
primary: Rr,
|
|
635
635
|
link: wr,
|
|
636
636
|
text: Cr,
|
|
637
637
|
dashed: Tr,
|
|
638
|
-
ghost:
|
|
639
|
-
default: "
|
|
640
|
-
warning:
|
|
641
|
-
info:
|
|
642
|
-
success:
|
|
643
|
-
disabled:
|
|
638
|
+
ghost: xr,
|
|
639
|
+
default: "_default_9ybrx_50",
|
|
640
|
+
warning: kr,
|
|
641
|
+
info: Or,
|
|
642
|
+
success: Pr,
|
|
643
|
+
disabled: Sr
|
|
644
644
|
}, $r = ({
|
|
645
645
|
type: A,
|
|
646
646
|
size: w = "middle",
|
|
647
|
-
color:
|
|
647
|
+
color: x = "primary",
|
|
648
648
|
disabled: d = !1,
|
|
649
649
|
onClick: m,
|
|
650
|
-
className:
|
|
650
|
+
className: S = "",
|
|
651
651
|
style: j,
|
|
652
|
-
children:
|
|
652
|
+
children: k,
|
|
653
653
|
...v
|
|
654
654
|
}) => {
|
|
655
|
-
const
|
|
656
|
-
w && w !== "middle" &&
|
|
657
|
-
const h =
|
|
655
|
+
const g = [q.btn];
|
|
656
|
+
w && w !== "middle" && g.push(q[w]), A && g.push(q[A]), x && x !== "primary" && g.push(q[x]), S && g.push(S), d && g.push(q.disabled);
|
|
657
|
+
const h = g.filter(Boolean).join(" ");
|
|
658
658
|
return /* @__PURE__ */ ve.jsx(
|
|
659
659
|
"span",
|
|
660
660
|
{
|
|
@@ -662,70 +662,70 @@ const gr = "_btn_y7ghq_41", yr = "_small_y7ghq_65", br = "_middle_y7ghq_72", mr
|
|
|
662
662
|
onClick: d ? void 0 : m,
|
|
663
663
|
style: j,
|
|
664
664
|
...v,
|
|
665
|
-
children:
|
|
665
|
+
children: k
|
|
666
666
|
}
|
|
667
667
|
);
|
|
668
|
-
}, jr = "
|
|
668
|
+
}, jr = "_popoverWrapper_yvnlm_1", Fr = "_popoverContent_yvnlm_8", Dr = "_popoverFadeIn_yvnlm_1", fe = {
|
|
669
669
|
popoverWrapper: jr,
|
|
670
670
|
popoverContent: Fr,
|
|
671
671
|
popoverFadeIn: Dr
|
|
672
672
|
}, Ir = ({
|
|
673
673
|
children: A,
|
|
674
674
|
content: w,
|
|
675
|
-
placement:
|
|
675
|
+
placement: x = "BL",
|
|
676
676
|
offset: d = 8,
|
|
677
677
|
trigger: m = "click",
|
|
678
|
-
visible:
|
|
678
|
+
visible: S,
|
|
679
679
|
onVisibleChange: j,
|
|
680
|
-
className:
|
|
680
|
+
className: k = "",
|
|
681
681
|
style: v
|
|
682
682
|
}) => {
|
|
683
|
-
const [
|
|
684
|
-
|
|
683
|
+
const [g, h] = Le(!1), [C, D] = Le({ top: 0, left: 0 }), F = We(null), $ = We(null), J = S !== void 0, O = J ? S : g, R = (a) => {
|
|
684
|
+
J || h(a), j && j(a);
|
|
685
685
|
}, p = () => {
|
|
686
|
-
if (!F.current || !$.current || !
|
|
686
|
+
if (!F.current || !$.current || !O)
|
|
687
687
|
return;
|
|
688
688
|
const a = F.current.getBoundingClientRect(), l = $.current.getBoundingClientRect();
|
|
689
|
-
let _ = 0,
|
|
690
|
-
switch (
|
|
689
|
+
let _ = 0, b = 0;
|
|
690
|
+
switch (x) {
|
|
691
691
|
case "TL":
|
|
692
|
-
_ = a.top - l.height - d,
|
|
692
|
+
_ = a.top - l.height - d, b = a.left;
|
|
693
693
|
break;
|
|
694
694
|
case "TC":
|
|
695
|
-
_ = a.top - l.height - d,
|
|
695
|
+
_ = a.top - l.height - d, b = a.left + (a.width - l.width) / 2;
|
|
696
696
|
break;
|
|
697
697
|
case "TR":
|
|
698
|
-
_ = a.top - l.height - d,
|
|
698
|
+
_ = a.top - l.height - d, b = a.left + a.width - l.width;
|
|
699
699
|
break;
|
|
700
700
|
case "CL":
|
|
701
|
-
_ = a.top + (a.height - l.height) / 2,
|
|
701
|
+
_ = a.top + (a.height - l.height) / 2, b = a.left - l.width - d;
|
|
702
702
|
break;
|
|
703
703
|
case "CC":
|
|
704
|
-
_ = a.top + (a.height - l.height) / 2,
|
|
704
|
+
_ = a.top + (a.height - l.height) / 2, b = a.left + (a.width - l.width) / 2;
|
|
705
705
|
break;
|
|
706
706
|
case "CR":
|
|
707
|
-
_ = a.top + (a.height - l.height) / 2,
|
|
707
|
+
_ = a.top + (a.height - l.height) / 2, b = a.left + a.width + d;
|
|
708
708
|
break;
|
|
709
709
|
case "BL":
|
|
710
710
|
default:
|
|
711
|
-
_ = a.bottom + d,
|
|
711
|
+
_ = a.bottom + d, b = a.left;
|
|
712
712
|
break;
|
|
713
713
|
case "BC":
|
|
714
|
-
_ = a.bottom + d,
|
|
714
|
+
_ = a.bottom + d, b = a.left + (a.width - l.width) / 2;
|
|
715
715
|
break;
|
|
716
716
|
case "BR":
|
|
717
|
-
_ = a.bottom + d,
|
|
717
|
+
_ = a.bottom + d, b = a.left + a.width - l.width;
|
|
718
718
|
break;
|
|
719
719
|
}
|
|
720
|
-
const
|
|
721
|
-
|
|
720
|
+
const Y = window.innerWidth, P = window.innerHeight;
|
|
721
|
+
b < 8 && (b = 8), b + l.width > Y - 8 && (b = Y - l.width - 8), _ < 8 && (_ = 8), _ + l.height > P - 8 && (_ = P - l.height - 8), D({ top: _, left: b });
|
|
722
722
|
};
|
|
723
723
|
ce(() => {
|
|
724
|
-
|
|
724
|
+
O && requestAnimationFrame(() => {
|
|
725
725
|
p();
|
|
726
726
|
});
|
|
727
|
-
}, [
|
|
728
|
-
if (!
|
|
727
|
+
}, [O, x, d]), ce(() => {
|
|
728
|
+
if (!O) return;
|
|
729
729
|
const a = () => {
|
|
730
730
|
p();
|
|
731
731
|
}, l = () => {
|
|
@@ -734,8 +734,8 @@ const gr = "_btn_y7ghq_41", yr = "_small_y7ghq_65", br = "_middle_y7ghq_72", mr
|
|
|
734
734
|
return window.addEventListener("resize", a), window.addEventListener("scroll", l, !0), () => {
|
|
735
735
|
window.removeEventListener("resize", a), window.removeEventListener("scroll", l, !0);
|
|
736
736
|
};
|
|
737
|
-
}, [
|
|
738
|
-
if (m !== "click" || !
|
|
737
|
+
}, [O]), ce(() => {
|
|
738
|
+
if (m !== "click" || !O) return;
|
|
739
739
|
const a = (l) => {
|
|
740
740
|
F.current && $.current && !F.current.contains(l.target) && !$.current.contains(l.target) && R(!1);
|
|
741
741
|
};
|
|
@@ -744,9 +744,9 @@ const gr = "_btn_y7ghq_41", yr = "_small_y7ghq_65", br = "_middle_y7ghq_72", mr
|
|
|
744
744
|
}, 0), () => {
|
|
745
745
|
document.removeEventListener("click", a);
|
|
746
746
|
};
|
|
747
|
-
}, [m,
|
|
747
|
+
}, [m, O]);
|
|
748
748
|
const X = (a) => {
|
|
749
|
-
m === "click" && (a.stopPropagation(), R(!
|
|
749
|
+
m === "click" && (a.stopPropagation(), R(!O));
|
|
750
750
|
}, Z = () => {
|
|
751
751
|
m === "hover" && R(!0);
|
|
752
752
|
}, Q = () => {
|
|
@@ -760,18 +760,18 @@ const gr = "_btn_y7ghq_41", yr = "_small_y7ghq_65", br = "_middle_y7ghq_72", mr
|
|
|
760
760
|
"div",
|
|
761
761
|
{
|
|
762
762
|
ref: F,
|
|
763
|
-
className: `${fe.popoverWrapper} ${
|
|
763
|
+
className: `${fe.popoverWrapper} ${k}`,
|
|
764
764
|
style: v,
|
|
765
765
|
onClick: X,
|
|
766
766
|
onMouseEnter: Z,
|
|
767
767
|
onMouseLeave: Q,
|
|
768
768
|
children: [
|
|
769
769
|
A,
|
|
770
|
-
|
|
770
|
+
O && w && /* @__PURE__ */ ve.jsx(
|
|
771
771
|
"div",
|
|
772
772
|
{
|
|
773
773
|
ref: $,
|
|
774
|
-
className: `${fe.popoverContent} ${fe[`placement-${
|
|
774
|
+
className: `${fe.popoverContent} ${fe[`placement-${x}`]}`,
|
|
775
775
|
style: {
|
|
776
776
|
top: `${C.top}px`,
|
|
777
777
|
left: `${C.left}px`
|