xtreme-ui 0.0.6 → 0.0.8
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 +221 -7
- package/dist/index.es.js +277 -274
- package/dist/index.umd.js +8 -8
- package/package.json +1 -1
- package/dist/components/base/Button/Button.d.ts +0 -3
- package/dist/components/base/Button/types.d.ts +0 -35
- package/dist/components/base/Icon/Icon.d.ts +0 -3
- package/dist/components/base/Icon/types.d.ts +0 -22
- package/dist/components/base/ProgressBar/ProgressBar.d.ts +0 -3
- package/dist/components/base/ProgressBar/types.d.ts +0 -6
- package/dist/components/base/ProgressBar/types.d.ts.map +0 -1
- package/dist/components/base/Textfield/Textfield.d.ts +0 -3
- package/dist/components/base/Textfield/types.d.ts +0 -68
- package/dist/components/base/Textfield/types.d.ts.map +0 -1
- package/dist/components/layout/Navigation/Navigation.d.ts +0 -3
- package/dist/components/layout/Navigation/types.d.ts +0 -12
- package/dist/components/layout/Navigation/types.d.ts.map +0 -1
- package/dist/components/layout/Sider/Sider.d.ts +0 -3
- package/dist/components/layout/Sider/types.d.ts +0 -18
- package/dist/components/layout/Sider/types.d.ts.map +0 -1
- package/dist/utils/function/mergeRefs.d.ts +0 -2
- package/dist/utils/function/string.d.ts +0 -2
- package/dist/utils/helper/domHelper.d.ts +0 -16
- package/dist/utils/index.d.ts +0 -3
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import ar, { forwardRef as U, useRef as Ar, useMemo as Wr } from "react";
|
|
2
|
-
const he = typeof window < "u", Y = he ? window : void 0,
|
|
3
|
-
const i = parseInt(
|
|
2
|
+
const he = typeof window < "u", Y = he ? window : void 0, Se = (r, n) => he ? getComputedStyle((n == null ? void 0 : n.current) || document.documentElement).getPropertyValue(r) : "", ia = (r, n) => parseInt(Se(r, n).replace(/px/g, "")), oa = (r, n) => {
|
|
3
|
+
const i = parseInt(Se(r, n).replace(/vh/g, ""));
|
|
4
4
|
return [((Y == null ? void 0 : Y.innerHeight) ?? 0) * i / 100, i];
|
|
5
|
-
},
|
|
6
|
-
const i = parseInt(
|
|
5
|
+
}, sa = (r, n) => {
|
|
6
|
+
const i = parseInt(Se(r, n).replace(/vw/g, ""));
|
|
7
7
|
return [((Y == null ? void 0 : Y.innerWidth) ?? 0) * i / 100, i];
|
|
8
|
-
},
|
|
8
|
+
}, la = (r, n, i) => he ? ((i == null ? void 0 : i.current) || document.documentElement).style.setProperty(r, n) : "", ua = (r) => new Promise((n) => {
|
|
9
9
|
let i = document.querySelector(r);
|
|
10
10
|
if (i)
|
|
11
11
|
return n(i);
|
|
@@ -13,14 +13,14 @@ const he = typeof window < "u", Y = he ? window : void 0, Te = (r, n) => he ? ge
|
|
|
13
13
|
i = document.querySelector(r), i && (n(i), o.disconnect());
|
|
14
14
|
});
|
|
15
15
|
o.observe(document.body, { childList: !0, subtree: !0 });
|
|
16
|
-
}),
|
|
16
|
+
}), ca = (r, n) => {
|
|
17
17
|
var i;
|
|
18
18
|
(i = n == null ? void 0 : n.forEach) == null || i.call(n, (o) => {
|
|
19
|
-
let
|
|
19
|
+
let l;
|
|
20
20
|
new MutationObserver((_) => {
|
|
21
|
-
var
|
|
22
|
-
document.querySelector(o) && (
|
|
23
|
-
m.type === "childList" && (Array.from(m.addedNodes).indexOf(
|
|
21
|
+
var u;
|
|
22
|
+
document.querySelector(o) && (l = document.querySelector(o)), (u = _ == null ? void 0 : _.forEach) == null || u.call(_, (m) => {
|
|
23
|
+
m.type === "childList" && (Array.from(m.addedNodes).indexOf(l) > -1 && r(l, "added", m), Array.from(m.removedNodes).indexOf(l) > -1 && r(l, "removed", m));
|
|
24
24
|
});
|
|
25
25
|
}).observe(document.body, { childList: !0, subtree: !0 });
|
|
26
26
|
});
|
|
@@ -48,16 +48,16 @@ function Yr() {
|
|
|
48
48
|
if (Ge)
|
|
49
49
|
return K;
|
|
50
50
|
Ge = 1;
|
|
51
|
-
var r = ar, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty,
|
|
52
|
-
function _(d,
|
|
53
|
-
var y, b = {},
|
|
54
|
-
m !== void 0 && (
|
|
55
|
-
for (y in
|
|
56
|
-
o.call(
|
|
51
|
+
var r = ar, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, l = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
52
|
+
function _(d, u, m) {
|
|
53
|
+
var y, b = {}, j = null, w = null;
|
|
54
|
+
m !== void 0 && (j = "" + m), u.key !== void 0 && (j = "" + u.key), u.ref !== void 0 && (w = u.ref);
|
|
55
|
+
for (y in u)
|
|
56
|
+
o.call(u, y) && !g.hasOwnProperty(y) && (b[y] = u[y]);
|
|
57
57
|
if (d && d.defaultProps)
|
|
58
|
-
for (y in
|
|
59
|
-
b[y] === void 0 && (b[y] =
|
|
60
|
-
return { $$typeof: n, type: d, key:
|
|
58
|
+
for (y in u = d.defaultProps, u)
|
|
59
|
+
b[y] === void 0 && (b[y] = u[y]);
|
|
60
|
+
return { $$typeof: n, type: d, key: j, ref: w, props: b, _owner: l.current };
|
|
61
61
|
}
|
|
62
62
|
return K.Fragment = i, K.jsx = _, K.jsxs = _, K;
|
|
63
63
|
}
|
|
@@ -74,15 +74,15 @@ var Z = {};
|
|
|
74
74
|
var Je;
|
|
75
75
|
function Ur() {
|
|
76
76
|
return Je || (Je = 1, process.env.NODE_ENV !== "production" && function() {
|
|
77
|
-
var r = ar, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), o = Symbol.for("react.fragment"),
|
|
77
|
+
var r = ar, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), d = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), W = Symbol.iterator, q = "@@iterator";
|
|
78
78
|
function z(e) {
|
|
79
79
|
if (e === null || typeof e != "object")
|
|
80
80
|
return null;
|
|
81
81
|
var t = W && e[W] || e[q];
|
|
82
82
|
return typeof t == "function" ? t : null;
|
|
83
83
|
}
|
|
84
|
-
var
|
|
85
|
-
function
|
|
84
|
+
var E = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
85
|
+
function S(e) {
|
|
86
86
|
{
|
|
87
87
|
for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
88
88
|
a[s - 1] = arguments[s];
|
|
@@ -91,7 +91,7 @@ function Ur() {
|
|
|
91
91
|
}
|
|
92
92
|
function oe(e, t, a) {
|
|
93
93
|
{
|
|
94
|
-
var s =
|
|
94
|
+
var s = E.ReactDebugCurrentFrame, p = s.getStackAddendum();
|
|
95
95
|
p !== "" && (t += "%s", a = a.concat([p]));
|
|
96
96
|
var v = a.map(function(f) {
|
|
97
97
|
return String(f);
|
|
@@ -99,10 +99,10 @@ function Ur() {
|
|
|
99
99
|
v.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, v);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
var se = !1, G = !1,
|
|
102
|
+
var se = !1, G = !1, T = !1, P = !1, L = !1, J;
|
|
103
103
|
J = Symbol.for("react.module.reference");
|
|
104
104
|
function fr(e) {
|
|
105
|
-
return !!(typeof e == "string" || typeof e == "function" || e === o || e === g ||
|
|
105
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === g || L || e === l || e === m || e === y || P || e === w || se || G || T || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === b || e.$$typeof === _ || e.$$typeof === d || e.$$typeof === u || // This needs to include all possible module reference object
|
|
106
106
|
// types supported by any Flight configuration anywhere since
|
|
107
107
|
// we don't know which Flight build this will end up being used
|
|
108
108
|
// with.
|
|
@@ -115,13 +115,13 @@ function Ur() {
|
|
|
115
115
|
var p = t.displayName || t.name || "";
|
|
116
116
|
return p !== "" ? a + "(" + p + ")" : a;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function xe(e) {
|
|
119
119
|
return e.displayName || "Context";
|
|
120
120
|
}
|
|
121
121
|
function N(e) {
|
|
122
122
|
if (e == null)
|
|
123
123
|
return null;
|
|
124
|
-
if (typeof e.tag == "number" &&
|
|
124
|
+
if (typeof e.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
125
125
|
return e.displayName || e.name || null;
|
|
126
126
|
if (typeof e == "string")
|
|
127
127
|
return e;
|
|
@@ -132,7 +132,7 @@ function Ur() {
|
|
|
132
132
|
return "Portal";
|
|
133
133
|
case g:
|
|
134
134
|
return "Profiler";
|
|
135
|
-
case
|
|
135
|
+
case l:
|
|
136
136
|
return "StrictMode";
|
|
137
137
|
case m:
|
|
138
138
|
return "Suspense";
|
|
@@ -143,16 +143,16 @@ function Ur() {
|
|
|
143
143
|
switch (e.$$typeof) {
|
|
144
144
|
case d:
|
|
145
145
|
var t = e;
|
|
146
|
-
return
|
|
146
|
+
return xe(t) + ".Consumer";
|
|
147
147
|
case _:
|
|
148
148
|
var a = e;
|
|
149
|
-
return
|
|
150
|
-
case
|
|
149
|
+
return xe(a._context) + ".Provider";
|
|
150
|
+
case u:
|
|
151
151
|
return dr(e, e.render, "ForwardRef");
|
|
152
152
|
case b:
|
|
153
153
|
var s = e.displayName || null;
|
|
154
154
|
return s !== null ? s : N(e.type) || "Memo";
|
|
155
|
-
case
|
|
155
|
+
case j: {
|
|
156
156
|
var p = e, v = p._payload, f = p._init;
|
|
157
157
|
try {
|
|
158
158
|
return N(f(v));
|
|
@@ -163,14 +163,14 @@ function Ur() {
|
|
|
163
163
|
}
|
|
164
164
|
return null;
|
|
165
165
|
}
|
|
166
|
-
var
|
|
166
|
+
var I = Object.assign, X = 0, je, Ee, Oe, we, Ce, Pe, ke;
|
|
167
167
|
function Ne() {
|
|
168
168
|
}
|
|
169
169
|
Ne.__reactDisabledLog = !0;
|
|
170
170
|
function pr() {
|
|
171
171
|
{
|
|
172
172
|
if (X === 0) {
|
|
173
|
-
|
|
173
|
+
je = console.log, Ee = console.info, Oe = console.warn, we = console.error, Ce = console.group, Pe = console.groupCollapsed, ke = console.groupEnd;
|
|
174
174
|
var e = {
|
|
175
175
|
configurable: !0,
|
|
176
176
|
enumerable: !0,
|
|
@@ -199,53 +199,53 @@ function Ur() {
|
|
|
199
199
|
writable: !0
|
|
200
200
|
};
|
|
201
201
|
Object.defineProperties(console, {
|
|
202
|
-
log:
|
|
203
|
-
value: xe
|
|
204
|
-
}),
|
|
205
|
-
info: L({}, e, {
|
|
202
|
+
log: I({}, e, {
|
|
206
203
|
value: je
|
|
207
204
|
}),
|
|
208
|
-
|
|
205
|
+
info: I({}, e, {
|
|
206
|
+
value: Ee
|
|
207
|
+
}),
|
|
208
|
+
warn: I({}, e, {
|
|
209
209
|
value: Oe
|
|
210
210
|
}),
|
|
211
|
-
error:
|
|
211
|
+
error: I({}, e, {
|
|
212
212
|
value: we
|
|
213
213
|
}),
|
|
214
|
-
group:
|
|
214
|
+
group: I({}, e, {
|
|
215
215
|
value: Ce
|
|
216
216
|
}),
|
|
217
|
-
groupCollapsed:
|
|
217
|
+
groupCollapsed: I({}, e, {
|
|
218
218
|
value: Pe
|
|
219
219
|
}),
|
|
220
|
-
groupEnd:
|
|
220
|
+
groupEnd: I({}, e, {
|
|
221
221
|
value: ke
|
|
222
222
|
})
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
|
-
X < 0 &&
|
|
225
|
+
X < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
var
|
|
228
|
+
var le = E.ReactCurrentDispatcher, ue;
|
|
229
229
|
function ee(e, t, a) {
|
|
230
230
|
{
|
|
231
|
-
if (
|
|
231
|
+
if (ue === void 0)
|
|
232
232
|
try {
|
|
233
233
|
throw Error();
|
|
234
234
|
} catch (p) {
|
|
235
235
|
var s = p.stack.trim().match(/\n( *(at )?)/);
|
|
236
|
-
|
|
236
|
+
ue = s && s[1] || "";
|
|
237
237
|
}
|
|
238
238
|
return `
|
|
239
|
-
` +
|
|
239
|
+
` + ue + e;
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
var
|
|
242
|
+
var ce = !1, re;
|
|
243
243
|
{
|
|
244
244
|
var vr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
245
245
|
re = new vr();
|
|
246
246
|
}
|
|
247
247
|
function $e(e, t) {
|
|
248
|
-
if (!e ||
|
|
248
|
+
if (!e || ce)
|
|
249
249
|
return "";
|
|
250
250
|
{
|
|
251
251
|
var a = re.get(e);
|
|
@@ -253,11 +253,11 @@ function Ur() {
|
|
|
253
253
|
return a;
|
|
254
254
|
}
|
|
255
255
|
var s;
|
|
256
|
-
|
|
256
|
+
ce = !0;
|
|
257
257
|
var p = Error.prepareStackTrace;
|
|
258
258
|
Error.prepareStackTrace = void 0;
|
|
259
259
|
var v;
|
|
260
|
-
v =
|
|
260
|
+
v = le.current, le.current = null, pr();
|
|
261
261
|
try {
|
|
262
262
|
if (t) {
|
|
263
263
|
var f = function() {
|
|
@@ -292,25 +292,25 @@ function Ur() {
|
|
|
292
292
|
}
|
|
293
293
|
} catch ($) {
|
|
294
294
|
if ($ && s && typeof $.stack == "string") {
|
|
295
|
-
for (var
|
|
295
|
+
for (var c = $.stack.split(`
|
|
296
296
|
`), O = s.stack.split(`
|
|
297
|
-
`), R =
|
|
298
|
-
|
|
299
|
-
for (; R >= 1 &&
|
|
300
|
-
if (
|
|
301
|
-
if (R !== 1 ||
|
|
297
|
+
`), R = c.length - 1, x = O.length - 1; R >= 1 && x >= 0 && c[R] !== O[x]; )
|
|
298
|
+
x--;
|
|
299
|
+
for (; R >= 1 && x >= 0; R--, x--)
|
|
300
|
+
if (c[R] !== O[x]) {
|
|
301
|
+
if (R !== 1 || x !== 1)
|
|
302
302
|
do
|
|
303
|
-
if (R--,
|
|
303
|
+
if (R--, x--, x < 0 || c[R] !== O[x]) {
|
|
304
304
|
var C = `
|
|
305
|
-
` +
|
|
305
|
+
` + c[R].replace(" at new ", " at ");
|
|
306
306
|
return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && re.set(e, C), C;
|
|
307
307
|
}
|
|
308
|
-
while (R >= 1 &&
|
|
308
|
+
while (R >= 1 && x >= 0);
|
|
309
309
|
break;
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
} finally {
|
|
313
|
-
|
|
313
|
+
ce = !1, le.current = v, _r(), Error.prepareStackTrace = p;
|
|
314
314
|
}
|
|
315
315
|
var V = e ? e.displayName || e.name : "", Be = V ? ee(V) : "";
|
|
316
316
|
return typeof e == "function" && re.set(e, Be), Be;
|
|
@@ -337,11 +337,11 @@ function Ur() {
|
|
|
337
337
|
}
|
|
338
338
|
if (typeof e == "object")
|
|
339
339
|
switch (e.$$typeof) {
|
|
340
|
-
case
|
|
340
|
+
case u:
|
|
341
341
|
return gr(e.render);
|
|
342
342
|
case b:
|
|
343
343
|
return te(e.type, t, a);
|
|
344
|
-
case
|
|
344
|
+
case j: {
|
|
345
345
|
var s = e, p = s._payload, v = s._init;
|
|
346
346
|
try {
|
|
347
347
|
return te(v(p), t, a);
|
|
@@ -351,30 +351,30 @@ function Ur() {
|
|
|
351
351
|
}
|
|
352
352
|
return "";
|
|
353
353
|
}
|
|
354
|
-
var ne = Object.prototype.hasOwnProperty, De = {},
|
|
354
|
+
var ne = Object.prototype.hasOwnProperty, De = {}, Fe = E.ReactDebugCurrentFrame;
|
|
355
355
|
function ae(e) {
|
|
356
356
|
if (e) {
|
|
357
357
|
var t = e._owner, a = te(e.type, e._source, t ? t.type : null);
|
|
358
|
-
|
|
358
|
+
Fe.setExtraStackFrame(a);
|
|
359
359
|
} else
|
|
360
|
-
|
|
360
|
+
Fe.setExtraStackFrame(null);
|
|
361
361
|
}
|
|
362
362
|
function yr(e, t, a, s, p) {
|
|
363
363
|
{
|
|
364
364
|
var v = Function.call.bind(ne);
|
|
365
365
|
for (var f in e)
|
|
366
366
|
if (v(e, f)) {
|
|
367
|
-
var
|
|
367
|
+
var c = void 0;
|
|
368
368
|
try {
|
|
369
369
|
if (typeof e[f] != "function") {
|
|
370
370
|
var O = Error((s || "React class") + ": " + a + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
371
371
|
throw O.name = "Invariant Violation", O;
|
|
372
372
|
}
|
|
373
|
-
|
|
373
|
+
c = e[f](t, f, s, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
374
374
|
} catch (R) {
|
|
375
|
-
|
|
375
|
+
c = R;
|
|
376
376
|
}
|
|
377
|
-
|
|
377
|
+
c && !(c instanceof Error) && (ae(p), S("%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).", s || "React class", a, f, typeof c), ae(null)), c instanceof Error && !(c.message in De) && (De[c.message] = !0, ae(p), S("Failed %s type: %s", a, c.message), ae(null));
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
}
|
|
@@ -388,21 +388,21 @@ function Ur() {
|
|
|
388
388
|
return a;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function Sr(e) {
|
|
392
392
|
try {
|
|
393
|
-
return
|
|
393
|
+
return Le(e), !1;
|
|
394
394
|
} catch {
|
|
395
395
|
return !0;
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function Le(e) {
|
|
399
399
|
return "" + e;
|
|
400
400
|
}
|
|
401
|
-
function
|
|
402
|
-
if (
|
|
403
|
-
return
|
|
401
|
+
function Ie(e) {
|
|
402
|
+
if (Sr(e))
|
|
403
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", hr(e)), Le(e);
|
|
404
404
|
}
|
|
405
|
-
var H =
|
|
405
|
+
var H = E.ReactCurrentOwner, Tr = {
|
|
406
406
|
key: !0,
|
|
407
407
|
ref: !0,
|
|
408
408
|
__self: !0,
|
|
@@ -417,7 +417,7 @@ function Ur() {
|
|
|
417
417
|
}
|
|
418
418
|
return e.ref !== void 0;
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function xr(e) {
|
|
421
421
|
if (ne.call(e, "key")) {
|
|
422
422
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
423
423
|
if (t && t.isReactWarning)
|
|
@@ -425,16 +425,16 @@ function Ur() {
|
|
|
425
425
|
}
|
|
426
426
|
return e.key !== void 0;
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function jr(e, t) {
|
|
429
429
|
if (typeof e.ref == "string" && H.current && t && H.current.stateNode !== t) {
|
|
430
430
|
var a = N(H.current.type);
|
|
431
|
-
de[a] || (
|
|
431
|
+
de[a] || (S('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', N(H.current.type), e.ref), de[a] = !0);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function Er(e, t) {
|
|
435
435
|
{
|
|
436
436
|
var a = function() {
|
|
437
|
-
Ae || (Ae = !0,
|
|
437
|
+
Ae || (Ae = !0, S("%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)", t));
|
|
438
438
|
};
|
|
439
439
|
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
440
440
|
get: a,
|
|
@@ -445,7 +445,7 @@ function Ur() {
|
|
|
445
445
|
function Or(e, t) {
|
|
446
446
|
{
|
|
447
447
|
var a = function() {
|
|
448
|
-
We || (We = !0,
|
|
448
|
+
We || (We = !0, S("%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)", t));
|
|
449
449
|
};
|
|
450
450
|
a.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
451
451
|
get: a,
|
|
@@ -454,7 +454,7 @@ function Ur() {
|
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
456
|
var wr = function(e, t, a, s, p, v, f) {
|
|
457
|
-
var
|
|
457
|
+
var c = {
|
|
458
458
|
// This tag allows us to uniquely identify this as a React Element
|
|
459
459
|
$$typeof: n,
|
|
460
460
|
// Built-in properties that belong on the element
|
|
@@ -465,42 +465,42 @@ function Ur() {
|
|
|
465
465
|
// Record the component responsible for creating this element.
|
|
466
466
|
_owner: v
|
|
467
467
|
};
|
|
468
|
-
return
|
|
468
|
+
return c._store = {}, Object.defineProperty(c._store, "validated", {
|
|
469
469
|
configurable: !1,
|
|
470
470
|
enumerable: !1,
|
|
471
471
|
writable: !0,
|
|
472
472
|
value: !1
|
|
473
|
-
}), Object.defineProperty(
|
|
473
|
+
}), Object.defineProperty(c, "_self", {
|
|
474
474
|
configurable: !1,
|
|
475
475
|
enumerable: !1,
|
|
476
476
|
writable: !1,
|
|
477
477
|
value: s
|
|
478
|
-
}), Object.defineProperty(
|
|
478
|
+
}), Object.defineProperty(c, "_source", {
|
|
479
479
|
configurable: !1,
|
|
480
480
|
enumerable: !1,
|
|
481
481
|
writable: !1,
|
|
482
482
|
value: p
|
|
483
|
-
}), Object.freeze && (Object.freeze(
|
|
483
|
+
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
484
484
|
};
|
|
485
485
|
function Cr(e, t, a, s, p) {
|
|
486
486
|
{
|
|
487
|
-
var v, f = {},
|
|
488
|
-
a !== void 0 && (
|
|
487
|
+
var v, f = {}, c = null, O = null;
|
|
488
|
+
a !== void 0 && (Ie(a), c = "" + a), xr(t) && (Ie(t.key), c = "" + t.key), Rr(t) && (O = t.ref, jr(t, p));
|
|
489
489
|
for (v in t)
|
|
490
|
-
ne.call(t, v) && !
|
|
490
|
+
ne.call(t, v) && !Tr.hasOwnProperty(v) && (f[v] = t[v]);
|
|
491
491
|
if (e && e.defaultProps) {
|
|
492
492
|
var R = e.defaultProps;
|
|
493
493
|
for (v in R)
|
|
494
494
|
f[v] === void 0 && (f[v] = R[v]);
|
|
495
495
|
}
|
|
496
|
-
if (
|
|
497
|
-
var
|
|
498
|
-
|
|
496
|
+
if (c || O) {
|
|
497
|
+
var x = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
498
|
+
c && Er(f, x), O && Or(f, x);
|
|
499
499
|
}
|
|
500
|
-
return wr(e,
|
|
500
|
+
return wr(e, c, O, p, s, H.current, f);
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
var pe =
|
|
503
|
+
var pe = E.ReactCurrentOwner, qe = E.ReactDebugCurrentFrame;
|
|
504
504
|
function M(e) {
|
|
505
505
|
if (e) {
|
|
506
506
|
var t = e._owner, a = te(e.type, e._source, t ? t.type : null);
|
|
@@ -559,7 +559,7 @@ Check the top-level render call using <` + a + ">.");
|
|
|
559
559
|
return;
|
|
560
560
|
Me[a] = !0;
|
|
561
561
|
var s = "";
|
|
562
|
-
e && e._owner && e._owner !== pe.current && (s = " It was passed a child from " + N(e._owner.type) + "."), M(e),
|
|
562
|
+
e && e._owner && e._owner !== pe.current && (s = " It was passed a child from " + N(e._owner.type) + "."), M(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, s), M(null);
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
function Ye(e, t) {
|
|
@@ -589,7 +589,7 @@ Check the top-level render call using <` + a + ">.");
|
|
|
589
589
|
var a;
|
|
590
590
|
if (typeof t == "function")
|
|
591
591
|
a = t.propTypes;
|
|
592
|
-
else if (typeof t == "object" && (t.$$typeof ===
|
|
592
|
+
else if (typeof t == "object" && (t.$$typeof === u || // Note: Memo only checks outer props here.
|
|
593
593
|
// Inner props are checked in the reconciler.
|
|
594
594
|
t.$$typeof === b))
|
|
595
595
|
a = t.propTypes;
|
|
@@ -601,9 +601,9 @@ Check the top-level render call using <` + a + ">.");
|
|
|
601
601
|
} else if (t.PropTypes !== void 0 && !_e) {
|
|
602
602
|
_e = !0;
|
|
603
603
|
var p = N(t);
|
|
604
|
-
|
|
604
|
+
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
|
|
605
605
|
}
|
|
606
|
-
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved &&
|
|
606
|
+
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
function $r(e) {
|
|
@@ -611,27 +611,27 @@ Check the top-level render call using <` + a + ">.");
|
|
|
611
611
|
for (var t = Object.keys(e.props), a = 0; a < t.length; a++) {
|
|
612
612
|
var s = t[a];
|
|
613
613
|
if (s !== "children" && s !== "key") {
|
|
614
|
-
M(e),
|
|
614
|
+
M(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), M(null);
|
|
615
615
|
break;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
e.ref !== null && (M(e),
|
|
618
|
+
e.ref !== null && (M(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), M(null));
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
function Ue(e, t, a, s, p, v) {
|
|
622
622
|
{
|
|
623
623
|
var f = fr(e);
|
|
624
624
|
if (!f) {
|
|
625
|
-
var
|
|
626
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
625
|
+
var c = "";
|
|
626
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (c += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
627
627
|
var O = Pr(p);
|
|
628
|
-
O ?
|
|
628
|
+
O ? c += O : c += ze();
|
|
629
629
|
var R;
|
|
630
|
-
e === null ? R = "null" : fe(e) ? R = "array" : e !== void 0 && e.$$typeof === n ? (R = "<" + (N(e.type) || "Unknown") + " />",
|
|
630
|
+
e === null ? R = "null" : fe(e) ? R = "array" : e !== void 0 && e.$$typeof === n ? (R = "<" + (N(e.type) || "Unknown") + " />", c = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, c);
|
|
631
631
|
}
|
|
632
|
-
var
|
|
633
|
-
if (
|
|
634
|
-
return
|
|
632
|
+
var x = Cr(e, t, a, p, v);
|
|
633
|
+
if (x == null)
|
|
634
|
+
return x;
|
|
635
635
|
if (f) {
|
|
636
636
|
var C = t.children;
|
|
637
637
|
if (C !== void 0)
|
|
@@ -641,21 +641,21 @@ Check the top-level render call using <` + a + ">.");
|
|
|
641
641
|
Ye(C[V], e);
|
|
642
642
|
Object.freeze && Object.freeze(C);
|
|
643
643
|
} else
|
|
644
|
-
|
|
644
|
+
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
645
645
|
else
|
|
646
646
|
Ye(C, e);
|
|
647
647
|
}
|
|
648
|
-
return e === o ? $r(
|
|
648
|
+
return e === o ? $r(x) : Nr(x), x;
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
651
|
function Dr(e, t, a) {
|
|
652
652
|
return Ue(e, t, a, !0);
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function Fr(e, t, a) {
|
|
655
655
|
return Ue(e, t, a, !1);
|
|
656
656
|
}
|
|
657
|
-
var
|
|
658
|
-
Z.Fragment = o, Z.jsx =
|
|
657
|
+
var Lr = Fr, Ir = Dr;
|
|
658
|
+
Z.Fragment = o, Z.jsx = Lr, Z.jsxs = Ir;
|
|
659
659
|
}()), Z;
|
|
660
660
|
}
|
|
661
661
|
process.env.NODE_ENV === "production" ? ye.exports = Yr() : ye.exports = Ur();
|
|
@@ -682,7 +682,7 @@ function Br(r) {
|
|
|
682
682
|
var n = typeof r;
|
|
683
683
|
return r != null && (n == "object" || n == "function");
|
|
684
684
|
}
|
|
685
|
-
var
|
|
685
|
+
var Te = Br, Gr = typeof ie == "object" && ie && ie.Object === Object && ie, Jr = Gr, Xr = Jr, Hr = typeof self == "object" && self && self.Object === Object && self, Kr = Xr || Hr || Function("return this")(), or = Kr, Zr = or, Qr = function() {
|
|
686
686
|
return Zr.Date.now();
|
|
687
687
|
}, et = Qr, rt = /\s/;
|
|
688
688
|
function tt(r) {
|
|
@@ -694,35 +694,35 @@ var nt = tt, at = nt, it = /^\s+/;
|
|
|
694
694
|
function ot(r) {
|
|
695
695
|
return r && r.slice(0, at(r) + 1).replace(it, "");
|
|
696
696
|
}
|
|
697
|
-
var st = ot,
|
|
697
|
+
var st = ot, lt = or, ut = lt.Symbol, sr = ut, Xe = sr, lr = Object.prototype, ct = lr.hasOwnProperty, ft = lr.toString, Q = Xe ? Xe.toStringTag : void 0;
|
|
698
698
|
function dt(r) {
|
|
699
|
-
var n =
|
|
699
|
+
var n = ct.call(r, Q), i = r[Q];
|
|
700
700
|
try {
|
|
701
701
|
r[Q] = void 0;
|
|
702
702
|
var o = !0;
|
|
703
703
|
} catch {
|
|
704
704
|
}
|
|
705
|
-
var
|
|
706
|
-
return o && (n ? r[Q] = i : delete r[Q]),
|
|
705
|
+
var l = ft.call(r);
|
|
706
|
+
return o && (n ? r[Q] = i : delete r[Q]), l;
|
|
707
707
|
}
|
|
708
708
|
var pt = dt, _t = Object.prototype, vt = _t.toString;
|
|
709
709
|
function gt(r) {
|
|
710
710
|
return vt.call(r);
|
|
711
711
|
}
|
|
712
|
-
var mt = gt, He = sr, yt = pt, bt = mt, ht = "[object Null]",
|
|
713
|
-
function
|
|
714
|
-
return r == null ? r === void 0 ?
|
|
712
|
+
var mt = gt, He = sr, yt = pt, bt = mt, ht = "[object Null]", St = "[object Undefined]", Ke = He ? He.toStringTag : void 0;
|
|
713
|
+
function Tt(r) {
|
|
714
|
+
return r == null ? r === void 0 ? St : ht : Ke && Ke in Object(r) ? yt(r) : bt(r);
|
|
715
715
|
}
|
|
716
|
-
var Rt =
|
|
717
|
-
function
|
|
716
|
+
var Rt = Tt;
|
|
717
|
+
function xt(r) {
|
|
718
718
|
return r != null && typeof r == "object";
|
|
719
719
|
}
|
|
720
|
-
var
|
|
720
|
+
var jt = xt, Et = Rt, Ot = jt, wt = "[object Symbol]";
|
|
721
721
|
function Ct(r) {
|
|
722
|
-
return typeof r == "symbol" || Ot(r) &&
|
|
722
|
+
return typeof r == "symbol" || Ot(r) && Et(r) == wt;
|
|
723
723
|
}
|
|
724
|
-
var Pt = Ct, kt = st, Ze =
|
|
725
|
-
function
|
|
724
|
+
var Pt = Ct, kt = st, Ze = Te, Nt = Pt, Qe = 0 / 0, $t = /^[-+]0x[0-9a-f]+$/i, Dt = /^0b[01]+$/i, Ft = /^0o[0-7]+$/i, Lt = parseInt;
|
|
725
|
+
function It(r) {
|
|
726
726
|
if (typeof r == "number")
|
|
727
727
|
return r;
|
|
728
728
|
if (Nt(r))
|
|
@@ -735,65 +735,65 @@ function Lt(r) {
|
|
|
735
735
|
return r === 0 ? r : +r;
|
|
736
736
|
r = kt(r);
|
|
737
737
|
var i = Dt.test(r);
|
|
738
|
-
return i ||
|
|
738
|
+
return i || Ft.test(r) ? Lt(r.slice(2), i ? 2 : 8) : $t.test(r) ? Qe : +r;
|
|
739
739
|
}
|
|
740
|
-
var At =
|
|
740
|
+
var At = It, Wt = Te, ge = et, er = At, qt = "Expected a function", zt = Math.max, Mt = Math.min;
|
|
741
741
|
function Vt(r, n, i) {
|
|
742
|
-
var o,
|
|
742
|
+
var o, l, g, _, d, u, m = 0, y = !1, b = !1, j = !0;
|
|
743
743
|
if (typeof r != "function")
|
|
744
744
|
throw new TypeError(qt);
|
|
745
|
-
n = er(n) || 0, Wt(i) && (y = !!i.leading, b = "maxWait" in i, g = b ? zt(er(i.maxWait) || 0, n) : g,
|
|
746
|
-
function w(
|
|
747
|
-
var P = o,
|
|
748
|
-
return o =
|
|
745
|
+
n = er(n) || 0, Wt(i) && (y = !!i.leading, b = "maxWait" in i, g = b ? zt(er(i.maxWait) || 0, n) : g, j = "trailing" in i ? !!i.trailing : j);
|
|
746
|
+
function w(T) {
|
|
747
|
+
var P = o, L = l;
|
|
748
|
+
return o = l = void 0, m = T, _ = r.apply(L, P), _;
|
|
749
749
|
}
|
|
750
|
-
function W(
|
|
751
|
-
return m =
|
|
750
|
+
function W(T) {
|
|
751
|
+
return m = T, d = setTimeout(E, n), y ? w(T) : _;
|
|
752
752
|
}
|
|
753
|
-
function q(
|
|
754
|
-
var P =
|
|
755
|
-
return b ? Mt(J, g -
|
|
753
|
+
function q(T) {
|
|
754
|
+
var P = T - u, L = T - m, J = n - P;
|
|
755
|
+
return b ? Mt(J, g - L) : J;
|
|
756
756
|
}
|
|
757
|
-
function z(
|
|
758
|
-
var P =
|
|
759
|
-
return
|
|
757
|
+
function z(T) {
|
|
758
|
+
var P = T - u, L = T - m;
|
|
759
|
+
return u === void 0 || P >= n || P < 0 || b && L >= g;
|
|
760
760
|
}
|
|
761
|
-
function
|
|
762
|
-
var
|
|
763
|
-
if (z(
|
|
764
|
-
return T
|
|
765
|
-
d = setTimeout(
|
|
761
|
+
function E() {
|
|
762
|
+
var T = ge();
|
|
763
|
+
if (z(T))
|
|
764
|
+
return S(T);
|
|
765
|
+
d = setTimeout(E, q(T));
|
|
766
766
|
}
|
|
767
|
-
function T
|
|
768
|
-
return d = void 0,
|
|
767
|
+
function S(T) {
|
|
768
|
+
return d = void 0, j && o ? w(T) : (o = l = void 0, _);
|
|
769
769
|
}
|
|
770
770
|
function oe() {
|
|
771
|
-
d !== void 0 && clearTimeout(d), m = 0, o =
|
|
771
|
+
d !== void 0 && clearTimeout(d), m = 0, o = u = l = d = void 0;
|
|
772
772
|
}
|
|
773
773
|
function se() {
|
|
774
|
-
return d === void 0 ? _ :
|
|
774
|
+
return d === void 0 ? _ : S(ge());
|
|
775
775
|
}
|
|
776
776
|
function G() {
|
|
777
|
-
var
|
|
778
|
-
if (o = arguments,
|
|
777
|
+
var T = ge(), P = z(T);
|
|
778
|
+
if (o = arguments, l = this, u = T, P) {
|
|
779
779
|
if (d === void 0)
|
|
780
|
-
return W(
|
|
780
|
+
return W(u);
|
|
781
781
|
if (b)
|
|
782
|
-
return clearTimeout(d), d = setTimeout(
|
|
782
|
+
return clearTimeout(d), d = setTimeout(E, n), w(u);
|
|
783
783
|
}
|
|
784
|
-
return d === void 0 && (d = setTimeout(
|
|
784
|
+
return d === void 0 && (d = setTimeout(E, n)), _;
|
|
785
785
|
}
|
|
786
786
|
return G.cancel = oe, G.flush = se, G;
|
|
787
787
|
}
|
|
788
|
-
var Yt = Vt, Ut = Yt, Bt =
|
|
788
|
+
var Yt = Vt, Ut = Yt, Bt = Te, Gt = "Expected a function";
|
|
789
789
|
function Jt(r, n, i) {
|
|
790
|
-
var o = !0,
|
|
790
|
+
var o = !0, l = !0;
|
|
791
791
|
if (typeof r != "function")
|
|
792
792
|
throw new TypeError(Gt);
|
|
793
|
-
return Bt(i) && (o = "leading" in i ? !!i.leading : o,
|
|
793
|
+
return Bt(i) && (o = "leading" in i ? !!i.leading : o, l = "trailing" in i ? !!i.trailing : l), Ut(r, n, {
|
|
794
794
|
leading: o,
|
|
795
795
|
maxWait: n,
|
|
796
|
-
trailing:
|
|
796
|
+
trailing: l
|
|
797
797
|
});
|
|
798
798
|
}
|
|
799
799
|
var Xt = Jt;
|
|
@@ -809,131 +809,131 @@ const Ht = /* @__PURE__ */ Vr(Xt), Kt = "_icon_awnbf_2", Zt = "_thin_awnbf_25",
|
|
|
809
809
|
sharpLight: on,
|
|
810
810
|
brand: sn
|
|
811
811
|
};
|
|
812
|
-
var
|
|
812
|
+
var ln = /* @__PURE__ */ ((r) => (r.thin = "thin", r.light = "light", r.regular = "regular", r.solid = "solid", r.duotone = "duotone", r.sharpSolid = "sharpSolid", r.sharpRegular = "sharpRegular", r.sharpLight = "sharpLight", r.brand = "brand", r))(ln || {}), ur = /* @__PURE__ */ ((r) => (r[r.mini = 12] = "mini", r[r.default = 18] = "default", r[r.large = 24] = "large", r))(ur || {});
|
|
813
813
|
const Re = U((r, n) => {
|
|
814
|
-
const { className: i, code: o, type:
|
|
814
|
+
const { className: i, code: o, type: l = "light", size: g } = r, _ = g ? `${typeof g == "number" ? g : ur[g]}px` : void 0, d = B(
|
|
815
815
|
rr.icon,
|
|
816
|
-
|
|
816
|
+
l && rr[l],
|
|
817
817
|
i
|
|
818
818
|
);
|
|
819
819
|
return /* @__PURE__ */ h.jsx("span", { className: d, ref: n, style: { "--iconSize": _ }, "data-content": Mr(o) });
|
|
820
820
|
});
|
|
821
821
|
Re.displayName = "Icon";
|
|
822
|
-
const
|
|
823
|
-
progressBar:
|
|
824
|
-
progress:
|
|
825
|
-
intermediate:
|
|
826
|
-
barberPole:
|
|
827
|
-
},
|
|
828
|
-
const { className: i, progress: o = 100, intermediate:
|
|
822
|
+
const un = "_progressBar_luf46_1", cn = "_progress_luf46_1", fn = "_intermediate_luf46_31", dn = "_barberPole_luf46_1", me = {
|
|
823
|
+
progressBar: un,
|
|
824
|
+
progress: cn,
|
|
825
|
+
intermediate: fn,
|
|
826
|
+
barberPole: dn
|
|
827
|
+
}, cr = U((r, n) => {
|
|
828
|
+
const { className: i, progress: o = 100, intermediate: l = !1 } = r, g = l ? 150 : Math.min(Math.max(o, 0), 100), _ = B(
|
|
829
829
|
me.progressBar,
|
|
830
|
-
|
|
830
|
+
l && me.intermediate,
|
|
831
831
|
i
|
|
832
832
|
);
|
|
833
833
|
return /* @__PURE__ */ h.jsx("div", { className: _, ref: n, children: /* @__PURE__ */ h.jsx("span", { className: me.progress, style: { width: `${g}%` } }) });
|
|
834
834
|
});
|
|
835
|
-
|
|
836
|
-
const
|
|
837
|
-
button:
|
|
838
|
-
label:
|
|
839
|
-
icon:
|
|
840
|
-
underline:
|
|
841
|
-
primaryType:
|
|
842
|
-
primaryDangerType:
|
|
843
|
-
secondaryType:
|
|
844
|
-
secondaryDangerType:
|
|
845
|
-
linkType:
|
|
835
|
+
cr.displayName = "ProgressBar";
|
|
836
|
+
const pn = "_button_6uqr8_1", _n = "_label_6uqr8_17", vn = "_icon_6uqr8_23", gn = "_underline_6uqr8_26", mn = "_primaryType_6uqr8_49", yn = "_primaryDangerType_6uqr8_49", bn = "_secondaryType_6uqr8_54", hn = "_secondaryDangerType_6uqr8_54", Sn = "_linkType_6uqr8_59", Tn = "_linkDangerType_6uqr8_59", Rn = "_miniSize_6uqr8_88", xn = "_iconOnly_6uqr8_99", jn = "_defaultSize_6uqr8_106", En = "_largeSize_6uqr8_124", On = "_clicked_6uqr8_157", wn = "_ripple_6uqr8_1", Cn = "_loading_6uqr8_166", Pn = "_barberPole_6uqr8_1", kn = "_spin_6uqr8_1", k = {
|
|
837
|
+
button: pn,
|
|
838
|
+
label: _n,
|
|
839
|
+
icon: vn,
|
|
840
|
+
underline: gn,
|
|
841
|
+
primaryType: mn,
|
|
842
|
+
primaryDangerType: yn,
|
|
843
|
+
secondaryType: bn,
|
|
844
|
+
secondaryDangerType: hn,
|
|
845
|
+
linkType: Sn,
|
|
846
846
|
linkDangerType: Tn,
|
|
847
|
-
miniSize:
|
|
848
|
-
iconOnly:
|
|
849
|
-
defaultSize:
|
|
850
|
-
largeSize:
|
|
851
|
-
clicked:
|
|
852
|
-
ripple:
|
|
853
|
-
loading:
|
|
854
|
-
barberPole:
|
|
855
|
-
spin:
|
|
847
|
+
miniSize: Rn,
|
|
848
|
+
iconOnly: xn,
|
|
849
|
+
defaultSize: jn,
|
|
850
|
+
largeSize: En,
|
|
851
|
+
clicked: On,
|
|
852
|
+
ripple: wn,
|
|
853
|
+
loading: Cn,
|
|
854
|
+
barberPole: Pn,
|
|
855
|
+
spin: kn
|
|
856
856
|
};
|
|
857
857
|
var be = /* @__PURE__ */ ((r) => (r.primary = "primary", r.primaryDanger = "primaryDanger", r.secondary = "secondary", r.secondaryDanger = "secondaryDanger", r.link = "link", r.linkDanger = "linkDanger", r))(be || {});
|
|
858
858
|
const tr = 100;
|
|
859
859
|
let nr;
|
|
860
|
-
const
|
|
860
|
+
const Nn = U((r, n) => {
|
|
861
861
|
const {
|
|
862
862
|
className: i,
|
|
863
863
|
label: o,
|
|
864
|
-
type:
|
|
864
|
+
type: l = "primary",
|
|
865
865
|
size: g = "default",
|
|
866
866
|
disabled: _ = !1,
|
|
867
867
|
loading: d = !1,
|
|
868
|
-
icon:
|
|
868
|
+
icon: u,
|
|
869
869
|
iconType: m,
|
|
870
870
|
iconPosition: y = "left",
|
|
871
871
|
onClick: b
|
|
872
|
-
} = r,
|
|
873
|
-
var
|
|
874
|
-
clearTimeout(nr), (
|
|
875
|
-
var
|
|
876
|
-
(
|
|
872
|
+
} = r, j = Ar(null), w = Ht(() => {
|
|
873
|
+
var E;
|
|
874
|
+
clearTimeout(nr), (E = j.current) == null || E.classList.add(k.clicked), nr = window.setTimeout(() => {
|
|
875
|
+
var S;
|
|
876
|
+
(S = j.current) == null || S.classList.remove(k.clicked);
|
|
877
877
|
}, 600 + tr);
|
|
878
|
-
}, tr), W = (
|
|
879
|
-
b == null || b(
|
|
880
|
-
}, q = () =>
|
|
878
|
+
}, tr), W = (E) => {
|
|
879
|
+
b == null || b(E), l.includes(be.link) || w();
|
|
880
|
+
}, q = () => u ? /* @__PURE__ */ h.jsx(Re, { className: k.icon, code: u, type: m, size: g }) : null, z = B(
|
|
881
881
|
k.button,
|
|
882
|
-
k[`${
|
|
882
|
+
k[`${l}Type`],
|
|
883
883
|
k[`${g}Size`],
|
|
884
884
|
!o && k.iconOnly,
|
|
885
885
|
d && k.loading,
|
|
886
886
|
i
|
|
887
887
|
);
|
|
888
|
-
return !o && !
|
|
889
|
-
|
|
888
|
+
return !o && !u ? null : /* @__PURE__ */ h.jsxs("button", { className: z, ref: qr([j, n]), onClick: W, disabled: _, children: [
|
|
889
|
+
l.includes(be.link) && /* @__PURE__ */ h.jsx(cr, { className: k.underline, intermediate: d }),
|
|
890
890
|
y === "left" && /* @__PURE__ */ h.jsx(q, {}),
|
|
891
891
|
o && /* @__PURE__ */ h.jsx("span", { className: k.label, children: o }),
|
|
892
892
|
y === "right" && /* @__PURE__ */ h.jsx(q, {})
|
|
893
893
|
] });
|
|
894
894
|
});
|
|
895
|
-
|
|
896
|
-
const
|
|
897
|
-
textfield:
|
|
898
|
-
icon:
|
|
899
|
-
input:
|
|
900
|
-
placeholder:
|
|
901
|
-
withIcon:
|
|
902
|
-
textarea:
|
|
903
|
-
hasValue:
|
|
904
|
-
},
|
|
895
|
+
Nn.displayName = "Button";
|
|
896
|
+
const $n = "_textfield_7y99a_1", Dn = "_icon_7y99a_27", Fn = "_input_7y99a_36", Ln = "_placeholder_7y99a_49", In = "_withIcon_7y99a_73", An = "_textarea_7y99a_83", Wn = "_hasValue_7y99a_92", D = {
|
|
897
|
+
textfield: $n,
|
|
898
|
+
icon: Dn,
|
|
899
|
+
input: Fn,
|
|
900
|
+
placeholder: Ln,
|
|
901
|
+
withIcon: In,
|
|
902
|
+
textarea: An,
|
|
903
|
+
hasValue: Wn
|
|
904
|
+
}, qn = U((r, n) => {
|
|
905
905
|
const {
|
|
906
906
|
className: i,
|
|
907
907
|
type: o = "text",
|
|
908
|
-
textarea:
|
|
908
|
+
textarea: l,
|
|
909
909
|
placeholder: g,
|
|
910
910
|
autoComplete: _ = "off",
|
|
911
911
|
autoFocus: d,
|
|
912
|
-
icon:
|
|
912
|
+
icon: u,
|
|
913
913
|
iconType: m = "regular",
|
|
914
914
|
value: y,
|
|
915
915
|
onChange: b
|
|
916
|
-
} = r,
|
|
917
|
-
if (
|
|
916
|
+
} = r, j = Wr(() => {
|
|
917
|
+
if (l === !0)
|
|
918
918
|
return null;
|
|
919
|
-
if (
|
|
920
|
-
return
|
|
919
|
+
if (u)
|
|
920
|
+
return u;
|
|
921
921
|
if (o === "number")
|
|
922
922
|
return "23";
|
|
923
923
|
if (o === "search")
|
|
924
924
|
return "f002";
|
|
925
925
|
if (o === "password")
|
|
926
926
|
return "f30d";
|
|
927
|
-
}, [
|
|
927
|
+
}, [l, u, o]), w = B(
|
|
928
928
|
D.textfield,
|
|
929
|
-
|
|
930
|
-
|
|
929
|
+
j && D.withIcon,
|
|
930
|
+
l && D.textarea,
|
|
931
931
|
y && D.hasValue,
|
|
932
932
|
i
|
|
933
933
|
);
|
|
934
934
|
return /* @__PURE__ */ h.jsxs("div", { className: w, ref: n, children: [
|
|
935
|
-
!!
|
|
936
|
-
|
|
935
|
+
!!j && !l && /* @__PURE__ */ h.jsx(Re, { className: D.icon, code: j, type: m }),
|
|
936
|
+
l ? /* @__PURE__ */ h.jsx(
|
|
937
937
|
"textarea",
|
|
938
938
|
{
|
|
939
939
|
className: D.input,
|
|
@@ -956,55 +956,55 @@ const Nn = "_textfield_7y99a_1", $n = "_icon_7y99a_27", Dn = "_input_7y99a_36",
|
|
|
956
956
|
/* @__PURE__ */ h.jsx("span", { className: D.placeholder, children: g })
|
|
957
957
|
] });
|
|
958
958
|
});
|
|
959
|
-
|
|
960
|
-
const
|
|
961
|
-
sider:
|
|
962
|
-
leftSiderContainer:
|
|
963
|
-
rightSiderContainer:
|
|
964
|
-
content:
|
|
965
|
-
miniLeftSider:
|
|
966
|
-
miniRightSider:
|
|
967
|
-
leftOpen:
|
|
968
|
-
rightOpen:
|
|
969
|
-
},
|
|
959
|
+
qn.displayName = "Textfield";
|
|
960
|
+
const zn = "_sider_9guyz_1", Mn = "_leftSiderContainer_9guyz_13", Vn = "_rightSiderContainer_9guyz_20", Yn = "_content_9guyz_27", Un = "_miniLeftSider_9guyz_37", Bn = "_miniRightSider_9guyz_44", Gn = "_leftOpen_9guyz_51", Jn = "_rightOpen_9guyz_57", F = {
|
|
961
|
+
sider: zn,
|
|
962
|
+
leftSiderContainer: Mn,
|
|
963
|
+
rightSiderContainer: Vn,
|
|
964
|
+
content: Yn,
|
|
965
|
+
miniLeftSider: Un,
|
|
966
|
+
miniRightSider: Bn,
|
|
967
|
+
leftOpen: Gn,
|
|
968
|
+
rightOpen: Jn
|
|
969
|
+
}, Xn = U((r, n) => {
|
|
970
970
|
const {
|
|
971
971
|
className: i,
|
|
972
972
|
children: o,
|
|
973
|
-
leftSider:
|
|
973
|
+
leftSider: l,
|
|
974
974
|
showMiniLeftSider: g = !0,
|
|
975
975
|
rightSider: _,
|
|
976
976
|
showMiniRightSider: d = !1,
|
|
977
|
-
open:
|
|
977
|
+
open: u = "closed"
|
|
978
978
|
// setOpen,
|
|
979
979
|
} = r, m = B(
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
g &&
|
|
983
|
-
|
|
984
|
-
d &&
|
|
980
|
+
F.sider,
|
|
981
|
+
u === "left" && F.leftOpen,
|
|
982
|
+
g && F.miniLeftSider,
|
|
983
|
+
u === "right" && F.rightOpen,
|
|
984
|
+
d && F.miniRightSider,
|
|
985
985
|
i
|
|
986
986
|
);
|
|
987
987
|
return /* @__PURE__ */ h.jsxs("section", { className: m, ref: n, role: "sider", children: [
|
|
988
|
-
/* @__PURE__ */ h.jsx("div", { className:
|
|
989
|
-
/* @__PURE__ */ h.jsx("div", { className:
|
|
990
|
-
/* @__PURE__ */ h.jsx("div", { className:
|
|
988
|
+
/* @__PURE__ */ h.jsx("div", { className: F.leftSiderContainer, children: l }),
|
|
989
|
+
/* @__PURE__ */ h.jsx("div", { className: F.rightSiderContainer, children: _ }),
|
|
990
|
+
/* @__PURE__ */ h.jsx("div", { className: F.content, children: o })
|
|
991
991
|
] });
|
|
992
992
|
});
|
|
993
|
-
|
|
994
|
-
const
|
|
995
|
-
navigation:
|
|
996
|
-
brand:
|
|
997
|
-
routeList:
|
|
998
|
-
route:
|
|
999
|
-
icon:
|
|
1000
|
-
label:
|
|
1001
|
-
active:
|
|
1002
|
-
},
|
|
1003
|
-
const { className: i, Routes: o } = r,
|
|
993
|
+
Xn.displayName = "Sider";
|
|
994
|
+
const Hn = "_navigation_zrgjp_1", Kn = "_brand_zrgjp_9", Zn = "_routeList_zrgjp_18", Qn = "_route_zrgjp_18", ea = "_icon_zrgjp_59", ra = "_label_zrgjp_65", ta = "_active_zrgjp_77", A = {
|
|
995
|
+
navigation: Hn,
|
|
996
|
+
brand: Kn,
|
|
997
|
+
routeList: Zn,
|
|
998
|
+
route: Qn,
|
|
999
|
+
icon: ea,
|
|
1000
|
+
label: ra,
|
|
1001
|
+
active: ta
|
|
1002
|
+
}, na = U((r, n) => {
|
|
1003
|
+
const { className: i, Routes: o } = r, l = B(
|
|
1004
1004
|
A.navigation,
|
|
1005
1005
|
i
|
|
1006
1006
|
);
|
|
1007
|
-
return /* @__PURE__ */ h.jsxs("section", { className:
|
|
1007
|
+
return /* @__PURE__ */ h.jsxs("section", { className: l, ref: n, role: "navigation", children: [
|
|
1008
1008
|
/* @__PURE__ */ h.jsx("div", { className: A.brand, children: "🎲 XtremeUI" }),
|
|
1009
1009
|
/* @__PURE__ */ h.jsx("div", { className: A.routeList, children: !!o && /* @__PURE__ */ h.jsx(
|
|
1010
1010
|
o,
|
|
@@ -1017,24 +1017,27 @@ const Xn = "_navigation_zrgjp_1", Hn = "_brand_zrgjp_9", Kn = "_routeList_zrgjp_
|
|
|
1017
1017
|
) })
|
|
1018
1018
|
] });
|
|
1019
1019
|
});
|
|
1020
|
-
|
|
1020
|
+
na.displayName = "Navigation";
|
|
1021
1021
|
export {
|
|
1022
|
-
|
|
1022
|
+
Nn as Button,
|
|
1023
|
+
be as EButtonTypes,
|
|
1024
|
+
ur as EIconSize,
|
|
1025
|
+
ln as EIconType,
|
|
1023
1026
|
Re as Icon,
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1027
|
+
na as Navigation,
|
|
1028
|
+
cr as ProgressBar,
|
|
1029
|
+
Xn as Sider,
|
|
1030
|
+
qn as Textfield,
|
|
1028
1031
|
Y as dom,
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1032
|
+
ca as elementObserver,
|
|
1033
|
+
Se as getCssProperty,
|
|
1034
|
+
ia as getCssPropertyPx,
|
|
1035
|
+
oa as getCssPropertyVh,
|
|
1036
|
+
sa as getCssPropertyVw,
|
|
1034
1037
|
he as isClient,
|
|
1035
1038
|
qr as mergeRefs,
|
|
1036
1039
|
zr as safeStringFromCodePoint,
|
|
1037
|
-
|
|
1040
|
+
la as setCssProperty,
|
|
1038
1041
|
Mr as unicodeToString,
|
|
1039
|
-
|
|
1042
|
+
ua as waitForElement
|
|
1040
1043
|
};
|