xtreme-ui 0.0.11 → 0.0.12
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.
|
@@ -6,11 +6,14 @@ export type TSiderProps = {
|
|
|
6
6
|
showMiniLeftSider?: boolean;
|
|
7
7
|
rightSider?: ReactNode;
|
|
8
8
|
showMiniRightSider?: boolean;
|
|
9
|
-
open?:
|
|
9
|
+
open?: TSiderModes;
|
|
10
10
|
setOpen?: (open: boolean) => void;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type TSiderModes = keyof typeof EOpenModes;
|
|
13
|
+
declare enum EOpenModes {
|
|
13
14
|
left = "left",
|
|
14
15
|
right = "right",
|
|
15
16
|
closed = "closed"
|
|
16
17
|
}
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Sider/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAClC,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,UAAU,CAAC;AAClD,aAAK,UAAU;IACd,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;CACjB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,6 @@ export { type IProgressBarProps } from './components/base/ProgressBar/types';
|
|
|
8
8
|
export { Textfield } from './components/base/Textfield/Textfield';
|
|
9
9
|
export { type TTextfieldProps } from './components/base/Textfield/types';
|
|
10
10
|
export { Sider } from './components/layout/Sider/Sider';
|
|
11
|
-
export { type TSiderProps,
|
|
11
|
+
export { type TSiderProps, type TSiderModes } from './components/layout/Sider/types';
|
|
12
12
|
export { Navigation } from './components/layout/Navigation/Navigation';
|
|
13
13
|
export { type TNavigationProps, type TNavigationRoute } from './components/layout/Navigation/types';
|
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, Te = (r, n) => he ? getComputedStyle((n == null ? void 0 : n.current) || document.documentElement).getPropertyValue(r) : "",
|
|
2
|
+
const he = typeof window < "u", Y = he ? window : void 0, Te = (r, n) => he ? getComputedStyle((n == null ? void 0 : n.current) || document.documentElement).getPropertyValue(r) : "", aa = (r, n) => parseInt(Te(r, n).replace(/px/g, "")), ia = (r, n) => {
|
|
3
3
|
const i = parseInt(Te(r, n).replace(/vh/g, ""));
|
|
4
4
|
return [((Y == null ? void 0 : Y.innerHeight) ?? 0) * i / 100, i];
|
|
5
|
-
},
|
|
5
|
+
}, oa = (r, n) => {
|
|
6
6
|
const i = parseInt(Te(r, n).replace(/vw/g, ""));
|
|
7
7
|
return [((Y == null ? void 0 : Y.innerWidth) ?? 0) * i / 100, i];
|
|
8
|
-
},
|
|
8
|
+
}, sa = (r, n, i) => he ? ((i == null ? void 0 : i.current) || document.documentElement).style.setProperty(r, n) : "", ca = (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
|
+
}), la = (r, n) => {
|
|
17
17
|
var i;
|
|
18
18
|
(i = n == null ? void 0 : n.forEach) == null || i.call(n, (o) => {
|
|
19
|
-
let
|
|
19
|
+
let c;
|
|
20
20
|
new MutationObserver((_) => {
|
|
21
|
-
var
|
|
22
|
-
document.querySelector(o) && (
|
|
23
|
-
m.type === "childList" && (Array.from(m.addedNodes).indexOf(
|
|
21
|
+
var l;
|
|
22
|
+
document.querySelector(o) && (c = document.querySelector(o)), (l = _ == null ? void 0 : _.forEach) == null || l.call(_, (m) => {
|
|
23
|
+
m.type === "childList" && (Array.from(m.addedNodes).indexOf(c) > -1 && r(c, "added", m), Array.from(m.removedNodes).indexOf(c) > -1 && r(c, "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,
|
|
51
|
+
var r = ar, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, c = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
52
|
+
function _(d, l, m) {
|
|
53
53
|
var y, b = {}, x = null, w = null;
|
|
54
|
-
m !== void 0 && (x = "" + m),
|
|
55
|
-
for (y in
|
|
56
|
-
o.call(
|
|
54
|
+
m !== void 0 && (x = "" + m), l.key !== void 0 && (x = "" + l.key), l.ref !== void 0 && (w = l.ref);
|
|
55
|
+
for (y in l)
|
|
56
|
+
o.call(l, y) && !g.hasOwnProperty(y) && (b[y] = l[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: x, ref: w, props: b, _owner:
|
|
58
|
+
for (y in l = d.defaultProps, l)
|
|
59
|
+
b[y] === void 0 && (b[y] = l[y]);
|
|
60
|
+
return { $$typeof: n, type: d, key: x, ref: w, props: b, _owner: c.current };
|
|
61
61
|
}
|
|
62
62
|
return K.Fragment = i, K.jsx = _, K.jsxs = _, K;
|
|
63
63
|
}
|
|
@@ -74,7 +74,7 @@ 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"), c = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), d = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), x = 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;
|
|
@@ -102,7 +102,7 @@ function Ur() {
|
|
|
102
102
|
var se = !1, G = !1, S = !1, P = !1, F = !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 || F || e ===
|
|
105
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === g || F || e === c || e === m || e === y || P || e === w || se || G || S || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === b || e.$$typeof === _ || e.$$typeof === d || e.$$typeof === l || // 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.
|
|
@@ -132,7 +132,7 @@ function Ur() {
|
|
|
132
132
|
return "Portal";
|
|
133
133
|
case g:
|
|
134
134
|
return "Profiler";
|
|
135
|
-
case
|
|
135
|
+
case c:
|
|
136
136
|
return "StrictMode";
|
|
137
137
|
case m:
|
|
138
138
|
return "Suspense";
|
|
@@ -147,7 +147,7 @@ function Ur() {
|
|
|
147
147
|
case _:
|
|
148
148
|
var a = e;
|
|
149
149
|
return Ee(a._context) + ".Provider";
|
|
150
|
-
case
|
|
150
|
+
case l:
|
|
151
151
|
return dr(e, e.render, "ForwardRef");
|
|
152
152
|
case b:
|
|
153
153
|
var s = e.displayName || null;
|
|
@@ -225,18 +225,18 @@ function Ur() {
|
|
|
225
225
|
X < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
var
|
|
228
|
+
var ce = j.ReactCurrentDispatcher, le;
|
|
229
229
|
function ee(e, t, a) {
|
|
230
230
|
{
|
|
231
|
-
if (
|
|
231
|
+
if (le === 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
|
+
le = s && s[1] || "";
|
|
237
237
|
}
|
|
238
238
|
return `
|
|
239
|
-
` +
|
|
239
|
+
` + le + e;
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
var ue = !1, re;
|
|
@@ -257,7 +257,7 @@ function Ur() {
|
|
|
257
257
|
var p = Error.prepareStackTrace;
|
|
258
258
|
Error.prepareStackTrace = void 0;
|
|
259
259
|
var v;
|
|
260
|
-
v =
|
|
260
|
+
v = ce.current, ce.current = null, pr();
|
|
261
261
|
try {
|
|
262
262
|
if (t) {
|
|
263
263
|
var f = function() {
|
|
@@ -310,7 +310,7 @@ function Ur() {
|
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
} finally {
|
|
313
|
-
ue = !1,
|
|
313
|
+
ue = !1, ce.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,7 +337,7 @@ function Ur() {
|
|
|
337
337
|
}
|
|
338
338
|
if (typeof e == "object")
|
|
339
339
|
switch (e.$$typeof) {
|
|
340
|
-
case
|
|
340
|
+
case l:
|
|
341
341
|
return gr(e.render);
|
|
342
342
|
case b:
|
|
343
343
|
return te(e.type, t, a);
|
|
@@ -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 === l || // 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;
|
|
@@ -694,7 +694,7 @@ 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, ct = or, lt = ct.Symbol, sr = lt, Xe = sr, cr = Object.prototype, ut = cr.hasOwnProperty, ft = cr.toString, Q = Xe ? Xe.toStringTag : void 0;
|
|
698
698
|
function dt(r) {
|
|
699
699
|
var n = ut.call(r, Q), i = r[Q];
|
|
700
700
|
try {
|
|
@@ -702,8 +702,8 @@ function dt(r) {
|
|
|
702
702
|
var o = !0;
|
|
703
703
|
} catch {
|
|
704
704
|
}
|
|
705
|
-
var
|
|
706
|
-
return o && (n ? r[Q] = i : delete r[Q]),
|
|
705
|
+
var c = ft.call(r);
|
|
706
|
+
return o && (n ? r[Q] = i : delete r[Q]), c;
|
|
707
707
|
}
|
|
708
708
|
var pt = dt, _t = Object.prototype, vt = _t.toString;
|
|
709
709
|
function gt(r) {
|
|
@@ -739,24 +739,24 @@ function Lt(r) {
|
|
|
739
739
|
}
|
|
740
740
|
var At = Lt, Wt = Se, 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, c, g, _, d, l, m = 0, y = !1, b = !1, x = !0;
|
|
743
743
|
if (typeof r != "function")
|
|
744
744
|
throw new TypeError(qt);
|
|
745
745
|
n = er(n) || 0, Wt(i) && (y = !!i.leading, b = "maxWait" in i, g = b ? zt(er(i.maxWait) || 0, n) : g, x = "trailing" in i ? !!i.trailing : x);
|
|
746
746
|
function w(S) {
|
|
747
|
-
var P = o, F =
|
|
748
|
-
return o =
|
|
747
|
+
var P = o, F = c;
|
|
748
|
+
return o = c = void 0, m = S, _ = r.apply(F, P), _;
|
|
749
749
|
}
|
|
750
750
|
function W(S) {
|
|
751
751
|
return m = S, d = setTimeout(j, n), y ? w(S) : _;
|
|
752
752
|
}
|
|
753
753
|
function q(S) {
|
|
754
|
-
var P = S -
|
|
754
|
+
var P = S - l, F = S - m, J = n - P;
|
|
755
755
|
return b ? Mt(J, g - F) : J;
|
|
756
756
|
}
|
|
757
757
|
function z(S) {
|
|
758
|
-
var P = S -
|
|
759
|
-
return
|
|
758
|
+
var P = S - l, F = S - m;
|
|
759
|
+
return l === void 0 || P >= n || P < 0 || b && F >= g;
|
|
760
760
|
}
|
|
761
761
|
function j() {
|
|
762
762
|
var S = ge();
|
|
@@ -765,21 +765,21 @@ function Vt(r, n, i) {
|
|
|
765
765
|
d = setTimeout(j, q(S));
|
|
766
766
|
}
|
|
767
767
|
function T(S) {
|
|
768
|
-
return d = void 0, x && o ? w(S) : (o =
|
|
768
|
+
return d = void 0, x && o ? w(S) : (o = c = 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 = l = c = d = void 0;
|
|
772
772
|
}
|
|
773
773
|
function se() {
|
|
774
774
|
return d === void 0 ? _ : T(ge());
|
|
775
775
|
}
|
|
776
776
|
function G() {
|
|
777
777
|
var S = ge(), P = z(S);
|
|
778
|
-
if (o = arguments,
|
|
778
|
+
if (o = arguments, c = this, l = S, P) {
|
|
779
779
|
if (d === void 0)
|
|
780
|
-
return W(
|
|
780
|
+
return W(l);
|
|
781
781
|
if (b)
|
|
782
|
-
return clearTimeout(d), d = setTimeout(j, n), w(
|
|
782
|
+
return clearTimeout(d), d = setTimeout(j, n), w(l);
|
|
783
783
|
}
|
|
784
784
|
return d === void 0 && (d = setTimeout(j, n)), _;
|
|
785
785
|
}
|
|
@@ -787,13 +787,13 @@ function Vt(r, n, i) {
|
|
|
787
787
|
}
|
|
788
788
|
var Yt = Vt, Ut = Yt, Bt = Se, Gt = "Expected a function";
|
|
789
789
|
function Jt(r, n, i) {
|
|
790
|
-
var o = !0,
|
|
790
|
+
var o = !0, c = !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, c = "trailing" in i ? !!i.trailing : c), Ut(r, n, {
|
|
794
794
|
leading: o,
|
|
795
795
|
maxWait: n,
|
|
796
|
-
trailing:
|
|
796
|
+
trailing: c
|
|
797
797
|
});
|
|
798
798
|
}
|
|
799
799
|
var Xt = Jt;
|
|
@@ -809,25 +809,25 @@ 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 lr = /* @__PURE__ */ ((r) => (r[r.mini = 12] = "mini", r[r.default = 18] = "default", r[r.large = 24] = "large", r))(lr || {});
|
|
813
813
|
const Re = U((r, n) => {
|
|
814
|
-
const { className: i, code: o, type:
|
|
814
|
+
const { className: i, code: o, type: c = "light", size: g } = r, _ = g ? `${typeof g == "number" ? g : lr[g]}px` : void 0, d = B(
|
|
815
815
|
rr.icon,
|
|
816
|
-
|
|
816
|
+
c && rr[c],
|
|
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:
|
|
822
|
+
const cn = "_progressBar_luf46_1", ln = "_progress_luf46_1", un = "_intermediate_luf46_31", fn = "_barberPole_luf46_1", me = {
|
|
823
|
+
progressBar: cn,
|
|
824
|
+
progress: ln,
|
|
825
825
|
intermediate: un,
|
|
826
826
|
barberPole: fn
|
|
827
827
|
}, ur = U((r, n) => {
|
|
828
|
-
const { className: i, progress: o = 100, intermediate:
|
|
828
|
+
const { className: i, progress: o = 100, intermediate: c = !1 } = r, g = c ? 150 : Math.min(Math.max(o, 0), 100), _ = B(
|
|
829
829
|
me.progressBar,
|
|
830
|
-
|
|
830
|
+
c && 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}%` } }) });
|
|
@@ -861,11 +861,11 @@ const kn = U((r, n) => {
|
|
|
861
861
|
const {
|
|
862
862
|
className: i,
|
|
863
863
|
label: o,
|
|
864
|
-
type:
|
|
864
|
+
type: c = "primary",
|
|
865
865
|
size: g = "default",
|
|
866
866
|
disabled: _ = !1,
|
|
867
867
|
loading: d = !1,
|
|
868
|
-
icon:
|
|
868
|
+
icon: l,
|
|
869
869
|
iconType: m,
|
|
870
870
|
iconPosition: y = "left",
|
|
871
871
|
onClick: b
|
|
@@ -876,17 +876,17 @@ const kn = U((r, n) => {
|
|
|
876
876
|
(T = x.current) == null || T.classList.remove(k.clicked);
|
|
877
877
|
}, 600 + tr);
|
|
878
878
|
}, tr), W = (j) => {
|
|
879
|
-
b == null || b(j),
|
|
880
|
-
}, q = () =>
|
|
879
|
+
b == null || b(j), c.includes(be.link) || w();
|
|
880
|
+
}, q = () => l ? /* @__PURE__ */ h.jsx(Re, { className: k.icon, code: l, type: m, size: g }) : null, z = B(
|
|
881
881
|
k.button,
|
|
882
|
-
k[`${
|
|
882
|
+
k[`${c}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 && !l ? null : /* @__PURE__ */ h.jsxs("button", { className: z, ref: qr([x, n]), onClick: W, disabled: _, children: [
|
|
889
|
+
c.includes(be.link) && /* @__PURE__ */ h.jsx(ur, { 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, {})
|
|
@@ -905,35 +905,35 @@ const Nn = "_textfield_7y99a_1", $n = "_icon_7y99a_27", Dn = "_input_7y99a_36",
|
|
|
905
905
|
const {
|
|
906
906
|
className: i,
|
|
907
907
|
type: o = "text",
|
|
908
|
-
textarea:
|
|
908
|
+
textarea: c,
|
|
909
909
|
placeholder: g,
|
|
910
910
|
autoComplete: _ = "off",
|
|
911
911
|
autoFocus: d,
|
|
912
|
-
icon:
|
|
912
|
+
icon: l,
|
|
913
913
|
iconType: m = "regular",
|
|
914
914
|
value: y,
|
|
915
915
|
onChange: b
|
|
916
916
|
} = r, x = Wr(() => {
|
|
917
|
-
if (
|
|
917
|
+
if (c === !0)
|
|
918
918
|
return null;
|
|
919
|
-
if (
|
|
920
|
-
return
|
|
919
|
+
if (l)
|
|
920
|
+
return l;
|
|
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
|
+
}, [c, l, o]), w = B(
|
|
928
928
|
D.textfield,
|
|
929
929
|
x && D.withIcon,
|
|
930
|
-
|
|
930
|
+
c && 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
|
-
!!x && !
|
|
936
|
-
|
|
935
|
+
!!x && !c && /* @__PURE__ */ h.jsx(Re, { className: D.icon, code: x, type: m }),
|
|
936
|
+
c ? /* @__PURE__ */ h.jsx(
|
|
937
937
|
"textarea",
|
|
938
938
|
{
|
|
939
939
|
className: D.input,
|
|
@@ -970,42 +970,41 @@ const qn = "_sider_9guyz_1", zn = "_leftSiderContainer_9guyz_13", Mn = "_rightSi
|
|
|
970
970
|
const {
|
|
971
971
|
className: i,
|
|
972
972
|
children: o,
|
|
973
|
-
leftSider:
|
|
973
|
+
leftSider: c,
|
|
974
974
|
showMiniLeftSider: g = !0,
|
|
975
975
|
rightSider: _,
|
|
976
976
|
showMiniRightSider: d = !1,
|
|
977
|
-
open:
|
|
977
|
+
open: l = "closed"
|
|
978
978
|
// setOpen,
|
|
979
979
|
} = r, m = B(
|
|
980
980
|
I.sider,
|
|
981
|
-
|
|
981
|
+
l === "left" && I.leftOpen,
|
|
982
982
|
g && I.miniLeftSider,
|
|
983
|
-
|
|
983
|
+
l === "right" && I.rightOpen,
|
|
984
984
|
d && I.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: I.leftSiderContainer, children:
|
|
988
|
+
/* @__PURE__ */ h.jsx("div", { className: I.leftSiderContainer, children: c }),
|
|
989
989
|
/* @__PURE__ */ h.jsx("div", { className: I.rightSiderContainer, children: _ }),
|
|
990
990
|
/* @__PURE__ */ h.jsx("div", { className: I.content, children: o })
|
|
991
991
|
] });
|
|
992
992
|
});
|
|
993
993
|
Jn.displayName = "Sider";
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
const { className: i, Routes: o } = r, l = B(
|
|
994
|
+
const Xn = "_navigation_zrgjp_1", Hn = "_brand_zrgjp_9", Kn = "_routeList_zrgjp_18", Zn = "_route_zrgjp_18", Qn = "_icon_zrgjp_59", ea = "_label_zrgjp_65", ra = "_active_zrgjp_77", A = {
|
|
995
|
+
navigation: Xn,
|
|
996
|
+
brand: Hn,
|
|
997
|
+
routeList: Kn,
|
|
998
|
+
route: Zn,
|
|
999
|
+
icon: Qn,
|
|
1000
|
+
label: ea,
|
|
1001
|
+
active: ra
|
|
1002
|
+
}, ta = U((r, n) => {
|
|
1003
|
+
const { className: i, Routes: o } = r, c = B(
|
|
1005
1004
|
A.navigation,
|
|
1006
1005
|
i
|
|
1007
1006
|
);
|
|
1008
|
-
return /* @__PURE__ */ h.jsxs("section", { className:
|
|
1007
|
+
return /* @__PURE__ */ h.jsxs("section", { className: c, ref: n, role: "navigation", children: [
|
|
1009
1008
|
/* @__PURE__ */ h.jsx("div", { className: A.brand, children: "🎲 XtremeUI" }),
|
|
1010
1009
|
/* @__PURE__ */ h.jsx("div", { className: A.routeList, children: !!o && /* @__PURE__ */ h.jsx(
|
|
1011
1010
|
o,
|
|
@@ -1018,27 +1017,26 @@ const Hn = "_navigation_zrgjp_1", Kn = "_brand_zrgjp_9", Zn = "_routeList_zrgjp_
|
|
|
1018
1017
|
) })
|
|
1019
1018
|
] });
|
|
1020
1019
|
});
|
|
1021
|
-
|
|
1020
|
+
ta.displayName = "Navigation";
|
|
1022
1021
|
export {
|
|
1023
1022
|
kn as Button,
|
|
1024
1023
|
be as EButtonTypes,
|
|
1025
|
-
|
|
1026
|
-
Xn as EOpenModes,
|
|
1024
|
+
lr as EIconSize,
|
|
1027
1025
|
Re as Icon,
|
|
1028
|
-
|
|
1026
|
+
ta as Navigation,
|
|
1029
1027
|
ur as ProgressBar,
|
|
1030
1028
|
Jn as Sider,
|
|
1031
1029
|
Wn as Textfield,
|
|
1032
1030
|
Y as dom,
|
|
1033
|
-
|
|
1031
|
+
la as elementObserver,
|
|
1034
1032
|
Te as getCssProperty,
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1033
|
+
aa as getCssPropertyPx,
|
|
1034
|
+
ia as getCssPropertyVh,
|
|
1035
|
+
oa as getCssPropertyVw,
|
|
1038
1036
|
he as isClient,
|
|
1039
1037
|
qr as mergeRefs,
|
|
1040
1038
|
zr as safeStringFromCodePoint,
|
|
1041
|
-
|
|
1039
|
+
sa as setCssProperty,
|
|
1042
1040
|
Mr as unicodeToString,
|
|
1043
1041
|
ca as waitForElement
|
|
1044
1042
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(_=typeof globalThis<"u"?globalThis:_||self,x(_.XtremeUI={},_.require$$0))})(this,function(_,x){"use strict";const on="",re=typeof window<"u",A=re?window:void 0,te=(r,n)=>re?getComputedStyle((n==null?void 0:n.current)||document.documentElement).getPropertyValue(r):"",yr=(r,n)=>parseInt(te(r,n).replace(/px/g,"")),br=(r,n)=>{const i=parseInt(te(r,n).replace(/vh/g,""));return[((A==null?void 0:A.innerHeight)??0)*i/100,i]},hr=(r,n)=>{const i=parseInt(te(r,n).replace(/vw/g,""));return[((A==null?void 0:A.innerWidth)??0)*i/100,i]},Tr=(r,n,i)=>re?((i==null?void 0:i.current)||document.documentElement).style.setProperty(r,n):"",Sr=r=>new Promise(n=>{let i=document.querySelector(r);if(i)return n(i);const o=new MutationObserver(()=>{i=document.querySelector(r),i&&(n(i),o.disconnect())});o.observe(document.body,{childList:!0,subtree:!0})}),Rr=(r,n)=>{var i;(i=n==null?void 0:n.forEach)==null||i.call(n,o=>{let l;new MutationObserver(g=>{var c;document.querySelector(o)&&(l=document.querySelector(o)),(c=g==null?void 0:g.forEach)==null||c.call(g,y=>{y.type==="childList"&&(Array.from(y.addedNodes).indexOf(l)>-1&&r(l,"added",y),Array.from(y.removedNodes).indexOf(l)>-1&&r(l,"removed",y))})}).observe(document.body,{childList:!0,subtree:!0})})},we=r=>n=>{r.forEach(i=>{typeof i=="function"?i(n):i!=null&&(i.current=n)})},Ce=r=>isNaN(r)||r<0||r>1114111||Math.floor(r)!==r?"":String.fromCodePoint(r),xe=r=>Ce(parseInt(`0x${r}`,16));var ne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Er(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var fe={exports:{}},J={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Pe;function
|
|
9
|
+
*/var Pe;function jr(){if(Pe)return J;Pe=1;var r=x,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,m={key:!0,ref:!0,__self:!0,__source:!0};function g(d,c,y){var b,h={},O=null,P=null;y!==void 0&&(O=""+y),c.key!==void 0&&(O=""+c.key),c.ref!==void 0&&(P=c.ref);for(b in c)o.call(c,b)&&!m.hasOwnProperty(b)&&(h[b]=c[b]);if(d&&d.defaultProps)for(b in c=d.defaultProps,c)h[b]===void 0&&(h[b]=c[b]);return{$$typeof:n,type:d,key:O,ref:P,props:h,_owner:l.current}}return J.Fragment=i,J.jsx=g,J.jsxs=g,J}var X={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ke;function
|
|
18
|
-
`+he+e}}var Te=!1,se;{var
|
|
17
|
+
*/var ke;function Or(){return ke||(ke=1,process.env.NODE_ENV!=="production"&&function(){var r=x,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),d=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),q=Symbol.iterator,Y="@@iterator";function B(e){if(e===null||typeof e!="object")return null;var t=q&&e[q]||e[Y];return typeof t=="function"?t:null}var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(e){{for(var t=arguments.length,a=new Array(t>1?t-1:0),s=1;s<t;s++)a[s-1]=arguments[s];me("error",e,a)}}function me(e,t,a){{var s=w.ReactDebugCurrentFrame,p=s.getStackAddendum();p!==""&&(t+="%s",a=a.concat([p]));var v=a.map(function(f){return String(f)});v.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,v)}}var ye=!1,K=!1,R=!1,D=!1,W=!1,Z;Z=Symbol.for("react.module.reference");function Nt(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===m||W||e===l||e===y||e===b||D||e===P||ye||K||R||typeof e=="object"&&e!==null&&(e.$$typeof===O||e.$$typeof===h||e.$$typeof===g||e.$$typeof===d||e.$$typeof===c||e.$$typeof===Z||e.getModuleId!==void 0))}function Dt(e,t,a){var s=e.displayName;if(s)return s;var p=t.displayName||t.name||"";return p!==""?a+"("+p+")":a}function Xe(e){return e.displayName||"Context"}function $(e){if(e==null)return null;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")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o:return"Fragment";case i:return"Portal";case m:return"Profiler";case l:return"StrictMode";case y:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d:var t=e;return Xe(t)+".Consumer";case g:var a=e;return Xe(a._context)+".Provider";case c:return Dt(e,e.render,"ForwardRef");case h:var s=e.displayName||null;return s!==null?s:$(e.type)||"Memo";case O:{var p=e,v=p._payload,f=p._init;try{return $(f(v))}catch{return null}}}return null}var M=Object.assign,Q=0,He,Ke,Ze,Qe,er,rr,tr;function nr(){}nr.__reactDisabledLog=!0;function $t(){{if(Q===0){He=console.log,Ke=console.info,Ze=console.warn,Qe=console.error,er=console.group,rr=console.groupCollapsed,tr=console.groupEnd;var e={configurable:!0,enumerable:!0,value:nr,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Q++}}function It(){{if(Q--,Q===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:He}),info:M({},e,{value:Ke}),warn:M({},e,{value:Ze}),error:M({},e,{value:Qe}),group:M({},e,{value:er}),groupCollapsed:M({},e,{value:rr}),groupEnd:M({},e,{value:tr})})}Q<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var be=w.ReactCurrentDispatcher,he;function oe(e,t,a){{if(he===void 0)try{throw Error()}catch(p){var s=p.stack.trim().match(/\n( *(at )?)/);he=s&&s[1]||""}return`
|
|
18
|
+
`+he+e}}var Te=!1,se;{var Ft=typeof WeakMap=="function"?WeakMap:Map;se=new Ft}function ar(e,t){if(!e||Te)return"";{var a=se.get(e);if(a!==void 0)return a}var s;Te=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=be.current,be.current=null,$t();try{if(t){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(I){s=I}Reflect.construct(e,[],f)}else{try{f.call()}catch(I){s=I}e.call(f.prototype)}}else{try{throw Error()}catch(I){s=I}e()}}catch(I){if(I&&s&&typeof I.stack=="string"){for(var u=I.stack.split(`
|
|
19
19
|
`),C=s.stack.split(`
|
|
20
20
|
`),E=u.length-1,j=C.length-1;E>=1&&j>=0&&u[E]!==C[j];)j--;for(;E>=1&&j>=0;E--,j--)if(u[E]!==C[j]){if(E!==1||j!==1)do if(E--,j--,j<0||u[E]!==C[j]){var k=`
|
|
21
|
-
`+u[E].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),typeof e=="function"&&se.set(e,k),k}while(E>=1&&j>=0);break}}}finally{Te=!1,be.current=
|
|
21
|
+
`+u[E].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),typeof e=="function"&&se.set(e,k),k}while(E>=1&&j>=0);break}}}finally{Te=!1,be.current=v,It(),Error.prepareStackTrace=p}var G=e?e.displayName||e.name:"",mr=G?oe(G):"";return typeof e=="function"&&se.set(e,mr),mr}function Lt(e,t,a){return ar(e,!1)}function At(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function le(e,t,a){if(e==null)return"";if(typeof e=="function")return ar(e,At(e));if(typeof e=="string")return oe(e);switch(e){case y:return oe("Suspense");case b:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return Lt(e.render);case h:return le(e.type,t,a);case O:{var s=e,p=s._payload,v=s._init;try{return le(v(p),t,a)}catch{}}}return""}var ce=Object.prototype.hasOwnProperty,ir={},or=w.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,a=le(e.type,e._source,t?t.type:null);or.setExtraStackFrame(a)}else or.setExtraStackFrame(null)}function zt(e,t,a,s,p){{var v=Function.call.bind(ce);for(var f in e)if(v(e,f)){var u=void 0;try{if(typeof e[f]!="function"){var C=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`.");throw C.name="Invariant Violation",C}u=e[f](t,f,s,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(E){u=E}u&&!(u instanceof Error)&&(ue(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 u),ue(null)),u instanceof Error&&!(u.message in ir)&&(ir[u.message]=!0,ue(p),S("Failed %s type: %s",a,u.message),ue(null))}}}var Wt=Array.isArray;function Se(e){return Wt(e)}function Mt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,a=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function Vt(e){try{return sr(e),!1}catch{return!0}}function sr(e){return""+e}function lr(e){if(Vt(e))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Mt(e)),sr(e)}var ee=w.ReactCurrentOwner,qt={key:!0,ref:!0,__self:!0,__source:!0},cr,ur,Re;Re={};function Yt(e){if(ce.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Bt(e){if(ce.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Ut(e,t){if(typeof e.ref=="string"&&ee.current&&t&&ee.current.stateNode!==t){var a=$(ee.current.type);Re[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',$(ee.current.type),e.ref),Re[a]=!0)}}function Gt(e,t){{var a=function(){cr||(cr=!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))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Jt(e,t){{var a=function(){ur||(ur=!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))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Xt=function(e,t,a,s,p,v,f){var u={$$typeof:n,type:e,key:t,ref:a,props:f,_owner:v};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Ht(e,t,a,s,p){{var v,f={},u=null,C=null;a!==void 0&&(lr(a),u=""+a),Bt(t)&&(lr(t.key),u=""+t.key),Yt(t)&&(C=t.ref,Ut(t,p));for(v in t)ce.call(t,v)&&!qt.hasOwnProperty(v)&&(f[v]=t[v]);if(e&&e.defaultProps){var E=e.defaultProps;for(v in E)f[v]===void 0&&(f[v]=E[v])}if(u||C){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&Gt(f,j),C&&Jt(f,j)}return Xt(e,u,C,p,s,ee.current,f)}}var Ee=w.ReactCurrentOwner,fr=w.ReactDebugCurrentFrame;function U(e){if(e){var t=e._owner,a=le(e.type,e._source,t?t.type:null);fr.setExtraStackFrame(a)}else fr.setExtraStackFrame(null)}var je;je=!1;function Oe(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function dr(){{if(Ee.current){var e=$(Ee.current.type);if(e)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function Kt(e){{if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),a=e.lineNumber;return`
|
|
24
24
|
|
|
25
|
-
Check your code at `+t+":"+a+"."}return""}}var
|
|
25
|
+
Check your code at `+t+":"+a+"."}return""}}var pr={};function Zt(e){{var t=dr();if(!t){var a=typeof e=="string"?e:e.displayName||e.name;a&&(t=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+a+">.")}return t}}function vr(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Qt(t);if(gr[a])return;gr[a]=!0;var s="";e&&e._owner&&e._owner!==Ee.current&&(s=" It was passed a child from "+$(e._owner.type)+"."),U(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),U(null)}}function _r(e,t){{if(typeof e!="object")return;if(Se(e))for(var a=0;a<e.length;a++){var s=e[a];Oe(s)&&vr(s,t)}else if(Oe(e))e._store&&(e._store.validated=!0);else if(e){var p=B(e);if(typeof p=="function"&&p!==e.entries)for(var _=p.call(e),f;!(f=_.next()).done;)Oe(f.value)&&vr(f.value,t)}}}function en(e){{var t=e.type;if(t==null||typeof t=="string")return;var a;if(typeof t=="function")a=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===c||t.$$typeof===h))a=t.propTypes;else return;if(a){var s=$(t);Wt(a,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!je){je=!0;var p=$(t);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function rn(e){{for(var t=Object.keys(e.props),a=0;a<t.length;a++){var s=t[a];if(s!=="children"&&s!=="key"){U(e),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),U(null);break}}e.ref!==null&&(U(e),S("Invalid attribute `ref` supplied to `React.Fragment`."),U(null))}}function mr(e,t,a,s,p,_){{var f=Dt(e);if(!f){var u="";(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.");var C=Zt(p);C?u+=C:u+=pr();var E;e===null?E="null":Se(e)?E="array":e!==void 0&&e.$$typeof===n?(E="<"+($(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):E=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",E,u)}var j=Kt(e,t,a,p,_);if(j==null)return j;if(f){var k=t.children;if(k!==void 0)if(s)if(Se(k)){for(var G=0;G<k.length;G++)_r(k[G],e);Object.freeze&&Object.freeze(k)}else 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.");else _r(k,e)}return e===o?rn(j):en(j),j}}function tn(e,t,a){return mr(e,t,a,!0)}function nn(e,t,a){return mr(e,t,a,!1)}var an=nn,on=tn;X.Fragment=o,X.jsx=an,X.jsxs=on}()),X}process.env.NODE_ENV==="production"?fe.exports=Or():fe.exports=wr();var T=fe.exports;function Ne(r){var n,i,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r))for(n=0;n<r.length;n++)r[n]&&(i=Ne(r[n]))&&(o&&(o+=" "),o+=i);else for(n in r)r[n]&&(o&&(o+=" "),o+=n);return o}function V(){for(var r,n,i=0,o="";i<arguments.length;)(r=arguments[i++])&&(n=Ne(r))&&(o&&(o+=" "),o+=n);return o}function Cr(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}var de=Cr,xr=typeof ne=="object"&&ne&&ne.Object===Object&&ne,Pr=xr,kr=Pr,Nr=typeof self=="object"&&self&&self.Object===Object&&self,Dr=kr||Nr||Function("return this")(),De=Dr,$r=De,Ir=function(){return $r.Date.now()},Fr=Ir,Lr=/\s/;function Ar(r){for(var n=r.length;n--&&Lr.test(r.charAt(n)););return n}var zr=Ar,Wr=zr,Mr=/^\s+/;function Vr(r){return r&&r.slice(0,Wr(r)+1).replace(Mr,"")}var qr=Vr,Yr=De,Br=Yr.Symbol,$e=Br,Ie=$e,Fe=Object.prototype,Ur=Fe.hasOwnProperty,Gr=Fe.toString,H=Ie?Ie.toStringTag:void 0;function Jr(r){var n=Ur.call(r,H),i=r[H];try{r[H]=void 0;var o=!0}catch{}var l=Gr.call(r);return o&&(n?r[H]=i:delete r[H]),l}var Xr=Jr,Hr=Object.prototype,Kr=Hr.toString;function Zr(r){return Kr.call(r)}var Qr=Zr,Le=$e,et=Xr,rt=Qr,tt="[object Null]",nt="[object Undefined]",Ae=Le?Le.toStringTag:void 0;function at(r){return r==null?r===void 0?nt:tt:Ae&&Ae in Object(r)?et(r):rt(r)}var it=at;function ot(r){return r!=null&&typeof r=="object"}var st=ot,lt=it,ct=st,ut="[object Symbol]";function ft(r){return typeof r=="symbol"||ct(r)&<(r)==ut}var dt=ft,pt=qr,ze=de,gt=dt,We=0/0,vt=/^[-+]0x[0-9a-f]+$/i,_t=/^0b[01]+$/i,mt=/^0o[0-7]+$/i,yt=parseInt;function bt(r){if(typeof r=="number")return r;if(gt(r))return We;if(ze(r)){var n=typeof r.valueOf=="function"?r.valueOf():r;r=ze(n)?n+"":n}if(typeof r!="string")return r===0?r:+r;r=pt(r);var i=_t.test(r);return i||mt.test(r)?yt(r.slice(2),i?2:8):vt.test(r)?We:+r}var ht=bt,Tt=de,pe=Fr,Me=ht,St="Expected a function",Rt=Math.max,Et=Math.min;function jt(r,n,i){var o,l,m,g,d,c,y=0,b=!1,h=!1,O=!0;if(typeof r!="function")throw new TypeError(St);n=Me(n)||0,Tt(i)&&(b=!!i.leading,h="maxWait"in i,m=h?Rt(Me(i.maxWait)||0,n):m,O="trailing"in i?!!i.trailing:O);function P(R){var D=o,W=l;return o=l=void 0,y=R,g=r.apply(W,D),g}function q(R){return y=R,d=setTimeout(w,n),b?P(R):g}function Y(R){var D=R-c,W=R-y,Z=n-D;return h?Et(Z,m-W):Z}function B(R){var D=R-c,W=R-y;return c===void 0||D>=n||D<0||h&&W>=m}function w(){var R=pe();if(B(R))return S(R);d=setTimeout(w,Y(R))}function S(R){return d=void 0,O&&o?P(R):(o=l=void 0,g)}function me(){d!==void 0&&clearTimeout(d),y=0,o=c=l=d=void 0}function ye(){return d===void 0?g:S(pe())}function K(){var R=pe(),D=B(R);if(o=arguments,l=this,c=R,D){if(d===void 0)return q(c);if(h)return clearTimeout(d),d=setTimeout(w,n),P(c)}return d===void 0&&(d=setTimeout(w,n)),g}return K.cancel=me,K.flush=ye,K}var Ot=jt,wt=Ot,Ct=de,xt="Expected a function";function Pt(r,n,i){var o=!0,l=!0;if(typeof r!="function")throw new TypeError(xt);return Ct(i)&&(o="leading"in i?!!i.leading:o,l="trailing"in i?!!i.trailing:l),wt(r,n,{leading:o,maxWait:n,trailing:l})}var kt=Pt;const Nt=jr(kt),Ve={icon:"_icon_awnbf_2",thin:"_thin_awnbf_25",light:"_light_awnbf_29",regular:"_regular_awnbf_33",solid:"_solid_awnbf_37",duotone:"_duotone_awnbf_41",sharpSolid:"_sharpSolid_awnbf_52",sharpRegular:"_sharpRegular_awnbf_56",sharpLight:"_sharpLight_awnbf_60",brand:"_brand_awnbf_64"};var ge=(r=>(r[r.mini=12]="mini",r[r.default=18]="default",r[r.large=24]="large",r))(ge||{});const ae=x.forwardRef((r,n)=>{const{className:i,code:o,type:l="light",size:m}=r,g=m?`${typeof m=="number"?m:ge[m]}px`:void 0,d=V(Ve.icon,l&&Ve[l],i);return T.jsx("span",{className:d,ref:n,style:{"--iconSize":g},"data-content":xe(o)})});ae.displayName="Icon";const ve={progressBar:"_progressBar_luf46_1",progress:"_progress_luf46_1",intermediate:"_intermediate_luf46_31",barberPole:"_barberPole_luf46_1"},_e=x.forwardRef((r,n)=>{const{className:i,progress:o=100,intermediate:l=!1}=r,m=l?150:Math.min(Math.max(o,0),100),g=V(ve.progressBar,l&&ve.intermediate,i);return T.jsx("div",{className:g,ref:n,children:T.jsx("span",{className:ve.progress,style:{width:`${m}%`}})})});_e.displayName="ProgressBar";const N={button:"_button_6uqr8_1",label:"_label_6uqr8_17",icon:"_icon_6uqr8_23",underline:"_underline_6uqr8_26",primaryType:"_primaryType_6uqr8_49",primaryDangerType:"_primaryDangerType_6uqr8_49",secondaryType:"_secondaryType_6uqr8_54",secondaryDangerType:"_secondaryDangerType_6uqr8_54",linkType:"_linkType_6uqr8_59",linkDangerType:"_linkDangerType_6uqr8_59",miniSize:"_miniSize_6uqr8_88",iconOnly:"_iconOnly_6uqr8_99",defaultSize:"_defaultSize_6uqr8_106",largeSize:"_largeSize_6uqr8_124",clicked:"_clicked_6uqr8_157",ripple:"_ripple_6uqr8_1",loading:"_loading_6uqr8_166",barberPole:"_barberPole_6uqr8_1",spin:"_spin_6uqr8_1"};var ie=(r=>(r.primary="primary",r.primaryDanger="primaryDanger",r.secondary="secondary",r.secondaryDanger="secondaryDanger",r.link="link",r.linkDanger="linkDanger",r))(ie||{});const qe=100;let Ye;const Be=x.forwardRef((r,n)=>{const{className:i,label:o,type:l="primary",size:m="default",disabled:g=!1,loading:d=!1,icon:c,iconType:y,iconPosition:b="left",onClick:h}=r,O=x.useRef(null),P=Nt(()=>{var w;clearTimeout(Ye),(w=O.current)==null||w.classList.add(N.clicked),Ye=window.setTimeout(()=>{var S;(S=O.current)==null||S.classList.remove(N.clicked)},600+qe)},qe),q=w=>{h==null||h(w),l.includes(ie.link)||P()},Y=()=>c?T.jsx(ae,{className:N.icon,code:c,type:y,size:m}):null,B=V(N.button,N[`${l}Type`],N[`${m}Size`],!o&&N.iconOnly,d&&N.loading,i);return!o&&!c?null:T.jsxs("button",{className:B,ref:we([O,n]),onClick:q,disabled:g,children:[l.includes(ie.link)&&T.jsx(_e,{className:N.underline,intermediate:d}),b==="left"&&T.jsx(Y,{}),o&&T.jsx("span",{className:N.label,children:o}),b==="right"&&T.jsx(Y,{})]})});Be.displayName="Button";const F={textfield:"_textfield_7y99a_1",icon:"_icon_7y99a_27",input:"_input_7y99a_36",placeholder:"_placeholder_7y99a_49",withIcon:"_withIcon_7y99a_73",textarea:"_textarea_7y99a_83",hasValue:"_hasValue_7y99a_92"},Ue=x.forwardRef((r,n)=>{const{className:i,type:o="text",textarea:l,placeholder:m,autoComplete:g="off",autoFocus:d,icon:c,iconType:y="regular",value:b,onChange:h}=r,O=x.useMemo(()=>{if(l===!0)return null;if(c)return c;if(o==="number")return"23";if(o==="search")return"f002";if(o==="password")return"f30d"},[l,c,o]),P=V(F.textfield,O&&F.withIcon,l&&F.textarea,b&&F.hasValue,i);return T.jsxs("div",{className:P,ref:n,children:[!!O&&!l&&T.jsx(ae,{className:F.icon,code:O,type:y}),l?T.jsx("textarea",{className:F.input,autoFocus:d,autoComplete:g,value:b,onChange:h}):T.jsx("input",{className:F.input,type:o,autoFocus:d,autoComplete:g,value:b,onChange:h}),T.jsx("span",{className:F.placeholder,children:m})]})});Ue.displayName="Textfield";const L={sider:"_sider_9guyz_1",leftSiderContainer:"_leftSiderContainer_9guyz_13",rightSiderContainer:"_rightSiderContainer_9guyz_20",content:"_content_9guyz_27",miniLeftSider:"_miniLeftSider_9guyz_37",miniRightSider:"_miniRightSider_9guyz_44",leftOpen:"_leftOpen_9guyz_51",rightOpen:"_rightOpen_9guyz_57"},Ge=x.forwardRef((r,n)=>{const{className:i,children:o,leftSider:l,showMiniLeftSider:m=!0,rightSider:g,showMiniRightSider:d=!1,open:c="closed"}=r,y=V(L.sider,c==="left"&&L.leftOpen,m&&L.miniLeftSider,c==="right"&&L.rightOpen,d&&L.miniRightSider,i);return T.jsxs("section",{className:y,ref:n,role:"sider",children:[T.jsx("div",{className:L.leftSiderContainer,children:l}),T.jsx("div",{className:L.rightSiderContainer,children:g}),T.jsx("div",{className:L.content,children:o})]})});Ge.displayName="Sider";var Je=(r=>(r.left="left",r.right="right",r.closed="closed",r))(Je||{});const z={navigation:"_navigation_zrgjp_1",brand:"_brand_zrgjp_9",routeList:"_routeList_zrgjp_18",route:"_route_zrgjp_18",icon:"_icon_zrgjp_59",label:"_label_zrgjp_65",active:"_active_zrgjp_77"},Xe=x.forwardRef((r,n)=>{const{className:i,Routes:o}=r,l=V(z.navigation,i);return T.jsxs("section",{className:l,ref:n,role:"navigation",children:[T.jsx("div",{className:z.brand,children:"🎲 XtremeUI"}),T.jsx("div",{className:z.routeList,children:!!o&&T.jsx(o,{className:z.route,activeClassName:z.active,iconClassName:z.icon,labelClassName:z.label})})]})});Xe.displayName="Navigation",v.Button=Be,v.EButtonTypes=ie,v.EIconSize=ge,v.EOpenModes=Je,v.Icon=ae,v.Navigation=Xe,v.ProgressBar=_e,v.Sider=Ge,v.Textfield=Ue,v.dom=A,v.elementObserver=Er,v.getCssProperty=te,v.getCssPropertyPx=br,v.getCssPropertyVh=hr,v.getCssPropertyVw=Tr,v.isClient=re,v.mergeRefs=we,v.safeStringFromCodePoint=Ce,v.setCssProperty=Sr,v.unicodeToString=xe,v.waitForElement=Rr,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
|
|
27
|
+
Check the top-level render call using <`+a+">.")}return t}}function gr(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Zt(t);if(pr[a])return;pr[a]=!0;var s="";e&&e._owner&&e._owner!==Ee.current&&(s=" It was passed a child from "+$(e._owner.type)+"."),U(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),U(null)}}function vr(e,t){{if(typeof e!="object")return;if(Se(e))for(var a=0;a<e.length;a++){var s=e[a];Oe(s)&&gr(s,t)}else if(Oe(e))e._store&&(e._store.validated=!0);else if(e){var p=B(e);if(typeof p=="function"&&p!==e.entries)for(var v=p.call(e),f;!(f=v.next()).done;)Oe(f.value)&&gr(f.value,t)}}}function Qt(e){{var t=e.type;if(t==null||typeof t=="string")return;var a;if(typeof t=="function")a=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===c||t.$$typeof===h))a=t.propTypes;else return;if(a){var s=$(t);zt(a,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!je){je=!0;var p=$(t);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function en(e){{for(var t=Object.keys(e.props),a=0;a<t.length;a++){var s=t[a];if(s!=="children"&&s!=="key"){U(e),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),U(null);break}}e.ref!==null&&(U(e),S("Invalid attribute `ref` supplied to `React.Fragment`."),U(null))}}function _r(e,t,a,s,p,v){{var f=Nt(e);if(!f){var u="";(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.");var C=Kt(p);C?u+=C:u+=dr();var E;e===null?E="null":Se(e)?E="array":e!==void 0&&e.$$typeof===n?(E="<"+($(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):E=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",E,u)}var j=Ht(e,t,a,p,v);if(j==null)return j;if(f){var k=t.children;if(k!==void 0)if(s)if(Se(k)){for(var G=0;G<k.length;G++)vr(k[G],e);Object.freeze&&Object.freeze(k)}else 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.");else vr(k,e)}return e===o?en(j):Qt(j),j}}function rn(e,t,a){return _r(e,t,a,!0)}function tn(e,t,a){return _r(e,t,a,!1)}var nn=tn,an=rn;X.Fragment=o,X.jsx=nn,X.jsxs=an}()),X}process.env.NODE_ENV==="production"?fe.exports=jr():fe.exports=Or();var T=fe.exports;function Ne(r){var n,i,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r))for(n=0;n<r.length;n++)r[n]&&(i=Ne(r[n]))&&(o&&(o+=" "),o+=i);else for(n in r)r[n]&&(o&&(o+=" "),o+=n);return o}function V(){for(var r,n,i=0,o="";i<arguments.length;)(r=arguments[i++])&&(n=Ne(r))&&(o&&(o+=" "),o+=n);return o}function wr(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}var de=wr,Cr=typeof ne=="object"&&ne&&ne.Object===Object&&ne,xr=Cr,Pr=xr,kr=typeof self=="object"&&self&&self.Object===Object&&self,Nr=Pr||kr||Function("return this")(),De=Nr,Dr=De,$r=function(){return Dr.Date.now()},Ir=$r,Fr=/\s/;function Lr(r){for(var n=r.length;n--&&Fr.test(r.charAt(n)););return n}var Ar=Lr,zr=Ar,Wr=/^\s+/;function Mr(r){return r&&r.slice(0,zr(r)+1).replace(Wr,"")}var Vr=Mr,qr=De,Yr=qr.Symbol,$e=Yr,Ie=$e,Fe=Object.prototype,Br=Fe.hasOwnProperty,Ur=Fe.toString,H=Ie?Ie.toStringTag:void 0;function Gr(r){var n=Br.call(r,H),i=r[H];try{r[H]=void 0;var o=!0}catch{}var l=Ur.call(r);return o&&(n?r[H]=i:delete r[H]),l}var Jr=Gr,Xr=Object.prototype,Hr=Xr.toString;function Kr(r){return Hr.call(r)}var Zr=Kr,Le=$e,Qr=Jr,et=Zr,rt="[object Null]",tt="[object Undefined]",Ae=Le?Le.toStringTag:void 0;function nt(r){return r==null?r===void 0?tt:rt:Ae&&Ae in Object(r)?Qr(r):et(r)}var at=nt;function it(r){return r!=null&&typeof r=="object"}var ot=it,st=at,lt=ot,ct="[object Symbol]";function ut(r){return typeof r=="symbol"||lt(r)&&st(r)==ct}var ft=ut,dt=Vr,ze=de,pt=ft,We=0/0,gt=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,_t=/^0o[0-7]+$/i,mt=parseInt;function yt(r){if(typeof r=="number")return r;if(pt(r))return We;if(ze(r)){var n=typeof r.valueOf=="function"?r.valueOf():r;r=ze(n)?n+"":n}if(typeof r!="string")return r===0?r:+r;r=dt(r);var i=vt.test(r);return i||_t.test(r)?mt(r.slice(2),i?2:8):gt.test(r)?We:+r}var bt=yt,ht=de,pe=Ir,Me=bt,Tt="Expected a function",St=Math.max,Rt=Math.min;function Et(r,n,i){var o,l,m,g,d,c,y=0,b=!1,h=!1,O=!0;if(typeof r!="function")throw new TypeError(Tt);n=Me(n)||0,ht(i)&&(b=!!i.leading,h="maxWait"in i,m=h?St(Me(i.maxWait)||0,n):m,O="trailing"in i?!!i.trailing:O);function P(R){var D=o,W=l;return o=l=void 0,y=R,g=r.apply(W,D),g}function q(R){return y=R,d=setTimeout(w,n),b?P(R):g}function Y(R){var D=R-c,W=R-y,Z=n-D;return h?Rt(Z,m-W):Z}function B(R){var D=R-c,W=R-y;return c===void 0||D>=n||D<0||h&&W>=m}function w(){var R=pe();if(B(R))return S(R);d=setTimeout(w,Y(R))}function S(R){return d=void 0,O&&o?P(R):(o=l=void 0,g)}function me(){d!==void 0&&clearTimeout(d),y=0,o=c=l=d=void 0}function ye(){return d===void 0?g:S(pe())}function K(){var R=pe(),D=B(R);if(o=arguments,l=this,c=R,D){if(d===void 0)return q(c);if(h)return clearTimeout(d),d=setTimeout(w,n),P(c)}return d===void 0&&(d=setTimeout(w,n)),g}return K.cancel=me,K.flush=ye,K}var jt=Et,Ot=jt,wt=de,Ct="Expected a function";function xt(r,n,i){var o=!0,l=!0;if(typeof r!="function")throw new TypeError(Ct);return wt(i)&&(o="leading"in i?!!i.leading:o,l="trailing"in i?!!i.trailing:l),Ot(r,n,{leading:o,maxWait:n,trailing:l})}var Pt=xt;const kt=Er(Pt),Ve={icon:"_icon_awnbf_2",thin:"_thin_awnbf_25",light:"_light_awnbf_29",regular:"_regular_awnbf_33",solid:"_solid_awnbf_37",duotone:"_duotone_awnbf_41",sharpSolid:"_sharpSolid_awnbf_52",sharpRegular:"_sharpRegular_awnbf_56",sharpLight:"_sharpLight_awnbf_60",brand:"_brand_awnbf_64"};var ge=(r=>(r[r.mini=12]="mini",r[r.default=18]="default",r[r.large=24]="large",r))(ge||{});const ae=x.forwardRef((r,n)=>{const{className:i,code:o,type:l="light",size:m}=r,g=m?`${typeof m=="number"?m:ge[m]}px`:void 0,d=V(Ve.icon,l&&Ve[l],i);return T.jsx("span",{className:d,ref:n,style:{"--iconSize":g},"data-content":xe(o)})});ae.displayName="Icon";const ve={progressBar:"_progressBar_luf46_1",progress:"_progress_luf46_1",intermediate:"_intermediate_luf46_31",barberPole:"_barberPole_luf46_1"},_e=x.forwardRef((r,n)=>{const{className:i,progress:o=100,intermediate:l=!1}=r,m=l?150:Math.min(Math.max(o,0),100),g=V(ve.progressBar,l&&ve.intermediate,i);return T.jsx("div",{className:g,ref:n,children:T.jsx("span",{className:ve.progress,style:{width:`${m}%`}})})});_e.displayName="ProgressBar";const N={button:"_button_6uqr8_1",label:"_label_6uqr8_17",icon:"_icon_6uqr8_23",underline:"_underline_6uqr8_26",primaryType:"_primaryType_6uqr8_49",primaryDangerType:"_primaryDangerType_6uqr8_49",secondaryType:"_secondaryType_6uqr8_54",secondaryDangerType:"_secondaryDangerType_6uqr8_54",linkType:"_linkType_6uqr8_59",linkDangerType:"_linkDangerType_6uqr8_59",miniSize:"_miniSize_6uqr8_88",iconOnly:"_iconOnly_6uqr8_99",defaultSize:"_defaultSize_6uqr8_106",largeSize:"_largeSize_6uqr8_124",clicked:"_clicked_6uqr8_157",ripple:"_ripple_6uqr8_1",loading:"_loading_6uqr8_166",barberPole:"_barberPole_6uqr8_1",spin:"_spin_6uqr8_1"};var ie=(r=>(r.primary="primary",r.primaryDanger="primaryDanger",r.secondary="secondary",r.secondaryDanger="secondaryDanger",r.link="link",r.linkDanger="linkDanger",r))(ie||{});const qe=100;let Ye;const Be=x.forwardRef((r,n)=>{const{className:i,label:o,type:l="primary",size:m="default",disabled:g=!1,loading:d=!1,icon:c,iconType:y,iconPosition:b="left",onClick:h}=r,O=x.useRef(null),P=kt(()=>{var w;clearTimeout(Ye),(w=O.current)==null||w.classList.add(N.clicked),Ye=window.setTimeout(()=>{var S;(S=O.current)==null||S.classList.remove(N.clicked)},600+qe)},qe),q=w=>{h==null||h(w),l.includes(ie.link)||P()},Y=()=>c?T.jsx(ae,{className:N.icon,code:c,type:y,size:m}):null,B=V(N.button,N[`${l}Type`],N[`${m}Size`],!o&&N.iconOnly,d&&N.loading,i);return!o&&!c?null:T.jsxs("button",{className:B,ref:we([O,n]),onClick:q,disabled:g,children:[l.includes(ie.link)&&T.jsx(_e,{className:N.underline,intermediate:d}),b==="left"&&T.jsx(Y,{}),o&&T.jsx("span",{className:N.label,children:o}),b==="right"&&T.jsx(Y,{})]})});Be.displayName="Button";const F={textfield:"_textfield_7y99a_1",icon:"_icon_7y99a_27",input:"_input_7y99a_36",placeholder:"_placeholder_7y99a_49",withIcon:"_withIcon_7y99a_73",textarea:"_textarea_7y99a_83",hasValue:"_hasValue_7y99a_92"},Ue=x.forwardRef((r,n)=>{const{className:i,type:o="text",textarea:l,placeholder:m,autoComplete:g="off",autoFocus:d,icon:c,iconType:y="regular",value:b,onChange:h}=r,O=x.useMemo(()=>{if(l===!0)return null;if(c)return c;if(o==="number")return"23";if(o==="search")return"f002";if(o==="password")return"f30d"},[l,c,o]),P=V(F.textfield,O&&F.withIcon,l&&F.textarea,b&&F.hasValue,i);return T.jsxs("div",{className:P,ref:n,children:[!!O&&!l&&T.jsx(ae,{className:F.icon,code:O,type:y}),l?T.jsx("textarea",{className:F.input,autoFocus:d,autoComplete:g,value:b,onChange:h}):T.jsx("input",{className:F.input,type:o,autoFocus:d,autoComplete:g,value:b,onChange:h}),T.jsx("span",{className:F.placeholder,children:m})]})});Ue.displayName="Textfield";const L={sider:"_sider_9guyz_1",leftSiderContainer:"_leftSiderContainer_9guyz_13",rightSiderContainer:"_rightSiderContainer_9guyz_20",content:"_content_9guyz_27",miniLeftSider:"_miniLeftSider_9guyz_37",miniRightSider:"_miniRightSider_9guyz_44",leftOpen:"_leftOpen_9guyz_51",rightOpen:"_rightOpen_9guyz_57"},Ge=x.forwardRef((r,n)=>{const{className:i,children:o,leftSider:l,showMiniLeftSider:m=!0,rightSider:g,showMiniRightSider:d=!1,open:c="closed"}=r,y=V(L.sider,c==="left"&&L.leftOpen,m&&L.miniLeftSider,c==="right"&&L.rightOpen,d&&L.miniRightSider,i);return T.jsxs("section",{className:y,ref:n,role:"sider",children:[T.jsx("div",{className:L.leftSiderContainer,children:l}),T.jsx("div",{className:L.rightSiderContainer,children:g}),T.jsx("div",{className:L.content,children:o})]})});Ge.displayName="Sider";const z={navigation:"_navigation_zrgjp_1",brand:"_brand_zrgjp_9",routeList:"_routeList_zrgjp_18",route:"_route_zrgjp_18",icon:"_icon_zrgjp_59",label:"_label_zrgjp_65",active:"_active_zrgjp_77"},Je=x.forwardRef((r,n)=>{const{className:i,Routes:o}=r,l=V(z.navigation,i);return T.jsxs("section",{className:l,ref:n,role:"navigation",children:[T.jsx("div",{className:z.brand,children:"🎲 XtremeUI"}),T.jsx("div",{className:z.routeList,children:!!o&&T.jsx(o,{className:z.route,activeClassName:z.active,iconClassName:z.icon,labelClassName:z.label})})]})});Je.displayName="Navigation",_.Button=Be,_.EButtonTypes=ie,_.EIconSize=ge,_.Icon=ae,_.Navigation=Je,_.ProgressBar=_e,_.Sider=Ge,_.Textfield=Ue,_.dom=A,_.elementObserver=Rr,_.getCssProperty=te,_.getCssPropertyPx=yr,_.getCssPropertyVh=br,_.getCssPropertyVw=hr,_.isClient=re,_.mergeRefs=we,_.safeStringFromCodePoint=Ce,_.setCssProperty=Tr,_.unicodeToString=xe,_.waitForElement=Sr,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
|