alex-evo-sh-ui-kit 1.0.21 → 1.0.22
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Oe, { forwardRef as Pn, createElement as Xe, useRef as
|
|
1
|
+
import Oe, { forwardRef as Pn, createElement as Xe, useRef as W, useState as C, useMemo as he, useCallback as _, useEffect as F } from "react";
|
|
2
2
|
import kt from "react-dom";
|
|
3
3
|
import { NavLink as Ke } from "react-router-dom";
|
|
4
4
|
import './index.css';var Ue = { exports: {} }, me = {};
|
|
@@ -52,14 +52,14 @@ function _t() {
|
|
|
52
52
|
var p = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
53
|
function b(a) {
|
|
54
54
|
{
|
|
55
|
-
for (var g = arguments.length, y = new Array(g > 1 ? g - 1 : 0),
|
|
56
|
-
y[
|
|
55
|
+
for (var g = arguments.length, y = new Array(g > 1 ? g - 1 : 0), w = 1; w < g; w++)
|
|
56
|
+
y[w - 1] = arguments[w];
|
|
57
57
|
$("error", a, y);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
function $(a, g, y) {
|
|
61
61
|
{
|
|
62
|
-
var
|
|
62
|
+
var w = p.ReactDebugCurrentFrame, D = w.getStackAddendum();
|
|
63
63
|
D !== "" && (g += "%s", y = y.concat([D]));
|
|
64
64
|
var P = y.map(function(O) {
|
|
65
65
|
return String(O);
|
|
@@ -67,26 +67,26 @@ function _t() {
|
|
|
67
67
|
P.unshift("Warning: " + g), Function.prototype.apply.call(console[a], console, P);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var k = !1,
|
|
70
|
+
var k = !1, E = !1, T = !1, A = !1, S = !1, B;
|
|
71
71
|
B = Symbol.for("react.module.reference");
|
|
72
|
-
function
|
|
73
|
-
return !!(typeof a == "string" || typeof a == "function" || a === s || a === i ||
|
|
72
|
+
function G(a) {
|
|
73
|
+
return !!(typeof a == "string" || typeof a == "function" || a === s || a === i || S || a === c || a === d || a === f || A || a === v || k || E || T || typeof a == "object" && a !== null && (a.$$typeof === x || a.$$typeof === h || a.$$typeof === u || a.$$typeof === o || a.$$typeof === l || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
77
|
a.$$typeof === B || a.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
var
|
|
81
|
-
if (
|
|
82
|
-
return
|
|
79
|
+
function I(a, g, y) {
|
|
80
|
+
var w = a.displayName;
|
|
81
|
+
if (w)
|
|
82
|
+
return w;
|
|
83
83
|
var D = g.displayName || g.name || "";
|
|
84
84
|
return D !== "" ? y + "(" + D + ")" : y;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function X(a) {
|
|
87
87
|
return a.displayName || "Context";
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Y(a) {
|
|
90
90
|
if (a == null)
|
|
91
91
|
return null;
|
|
92
92
|
if (typeof a.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
|
|
@@ -111,19 +111,19 @@ function _t() {
|
|
|
111
111
|
switch (a.$$typeof) {
|
|
112
112
|
case o:
|
|
113
113
|
var g = a;
|
|
114
|
-
return
|
|
114
|
+
return X(g) + ".Consumer";
|
|
115
115
|
case u:
|
|
116
116
|
var y = a;
|
|
117
|
-
return
|
|
117
|
+
return X(y._context) + ".Provider";
|
|
118
118
|
case l:
|
|
119
|
-
return
|
|
119
|
+
return I(a, a.render, "ForwardRef");
|
|
120
120
|
case h:
|
|
121
|
-
var
|
|
122
|
-
return
|
|
121
|
+
var w = a.displayName || null;
|
|
122
|
+
return w !== null ? w : Y(a.type) || "Memo";
|
|
123
123
|
case x: {
|
|
124
124
|
var D = a, P = D._payload, O = D._init;
|
|
125
125
|
try {
|
|
126
|
-
return
|
|
126
|
+
return Y(O(P));
|
|
127
127
|
} catch {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
@@ -131,14 +131,14 @@ function _t() {
|
|
|
131
131
|
}
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
var ee = Object.assign,
|
|
134
|
+
var ee = Object.assign, L = 0, U, ke, en, nn, tn, rn, sn;
|
|
135
135
|
function cn() {
|
|
136
136
|
}
|
|
137
137
|
cn.__reactDisabledLog = !0;
|
|
138
138
|
function Kn() {
|
|
139
139
|
{
|
|
140
|
-
if (
|
|
141
|
-
|
|
140
|
+
if (L === 0) {
|
|
141
|
+
U = console.log, ke = console.info, en = console.warn, nn = console.error, tn = console.group, rn = console.groupCollapsed, sn = console.groupEnd;
|
|
142
142
|
var a = {
|
|
143
143
|
configurable: !0,
|
|
144
144
|
enumerable: !0,
|
|
@@ -155,12 +155,12 @@ function _t() {
|
|
|
155
155
|
groupEnd: a
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
L++;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
function Jn() {
|
|
162
162
|
{
|
|
163
|
-
if (
|
|
163
|
+
if (L--, L === 0) {
|
|
164
164
|
var a = {
|
|
165
165
|
configurable: !0,
|
|
166
166
|
enumerable: !0,
|
|
@@ -168,7 +168,7 @@ function _t() {
|
|
|
168
168
|
};
|
|
169
169
|
Object.defineProperties(console, {
|
|
170
170
|
log: ee({}, a, {
|
|
171
|
-
value:
|
|
171
|
+
value: U
|
|
172
172
|
}),
|
|
173
173
|
info: ee({}, a, {
|
|
174
174
|
value: ke
|
|
@@ -190,7 +190,7 @@ function _t() {
|
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
L < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
var Fe = p.ReactCurrentDispatcher, Pe;
|
|
@@ -200,8 +200,8 @@ function _t() {
|
|
|
200
200
|
try {
|
|
201
201
|
throw Error();
|
|
202
202
|
} catch (D) {
|
|
203
|
-
var
|
|
204
|
-
Pe =
|
|
203
|
+
var w = D.stack.trim().match(/\n( *(at )?)/);
|
|
204
|
+
Pe = w && w[1] || "";
|
|
205
205
|
}
|
|
206
206
|
return `
|
|
207
207
|
` + Pe + a;
|
|
@@ -220,7 +220,7 @@ function _t() {
|
|
|
220
220
|
if (y !== void 0)
|
|
221
221
|
return y;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var w;
|
|
224
224
|
Ae = !0;
|
|
225
225
|
var D = Error.prepareStackTrace;
|
|
226
226
|
Error.prepareStackTrace = void 0;
|
|
@@ -239,14 +239,14 @@ function _t() {
|
|
|
239
239
|
try {
|
|
240
240
|
Reflect.construct(O, []);
|
|
241
241
|
} catch (J) {
|
|
242
|
-
|
|
242
|
+
w = J;
|
|
243
243
|
}
|
|
244
244
|
Reflect.construct(a, [], O);
|
|
245
245
|
} else {
|
|
246
246
|
try {
|
|
247
247
|
O.call();
|
|
248
248
|
} catch (J) {
|
|
249
|
-
|
|
249
|
+
w = J;
|
|
250
250
|
}
|
|
251
251
|
a.call(O.prototype);
|
|
252
252
|
}
|
|
@@ -254,26 +254,26 @@ function _t() {
|
|
|
254
254
|
try {
|
|
255
255
|
throw Error();
|
|
256
256
|
} catch (J) {
|
|
257
|
-
|
|
257
|
+
w = J;
|
|
258
258
|
}
|
|
259
259
|
a();
|
|
260
260
|
}
|
|
261
261
|
} catch (J) {
|
|
262
|
-
if (J &&
|
|
262
|
+
if (J && w && typeof J.stack == "string") {
|
|
263
263
|
for (var R = J.stack.split(`
|
|
264
|
-
`), K =
|
|
265
|
-
`),
|
|
266
|
-
|
|
267
|
-
for (;
|
|
268
|
-
if (R[
|
|
269
|
-
if (
|
|
264
|
+
`), K = w.stack.split(`
|
|
265
|
+
`), V = R.length - 1, z = K.length - 1; V >= 1 && z >= 0 && R[V] !== K[z]; )
|
|
266
|
+
z--;
|
|
267
|
+
for (; V >= 1 && z >= 0; V--, z--)
|
|
268
|
+
if (R[V] !== K[z]) {
|
|
269
|
+
if (V !== 1 || z !== 1)
|
|
270
270
|
do
|
|
271
|
-
if (
|
|
271
|
+
if (V--, z--, z < 0 || R[V] !== K[z]) {
|
|
272
272
|
var ne = `
|
|
273
|
-
` + R[
|
|
273
|
+
` + R[V].replace(" at new ", " at ");
|
|
274
274
|
return a.displayName && ne.includes("<anonymous>") && (ne = ne.replace("<anonymous>", a.displayName)), typeof a == "function" && _e.set(a, ne), ne;
|
|
275
275
|
}
|
|
276
|
-
while (
|
|
276
|
+
while (V >= 1 && z >= 0);
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
@@ -310,7 +310,7 @@ function _t() {
|
|
|
310
310
|
case h:
|
|
311
311
|
return we(a.type, g, y);
|
|
312
312
|
case x: {
|
|
313
|
-
var
|
|
313
|
+
var w = a, D = w._payload, P = w._init;
|
|
314
314
|
try {
|
|
315
315
|
return we(P(D), g, y);
|
|
316
316
|
} catch {
|
|
@@ -327,7 +327,7 @@ function _t() {
|
|
|
327
327
|
} else
|
|
328
328
|
on.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function nt(a, g, y,
|
|
330
|
+
function nt(a, g, y, w, D) {
|
|
331
331
|
{
|
|
332
332
|
var P = Function.call.bind(fe);
|
|
333
333
|
for (var O in a)
|
|
@@ -335,14 +335,14 @@ function _t() {
|
|
|
335
335
|
var R = void 0;
|
|
336
336
|
try {
|
|
337
337
|
if (typeof a[O] != "function") {
|
|
338
|
-
var K = Error((
|
|
338
|
+
var K = Error((w || "React class") + ": " + y + " type `" + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[O] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
339
|
throw K.name = "Invariant Violation", K;
|
|
340
340
|
}
|
|
341
|
-
R = a[O](g, O,
|
|
342
|
-
} catch (
|
|
343
|
-
R =
|
|
341
|
+
R = a[O](g, O, w, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
|
+
} catch (V) {
|
|
343
|
+
R = V;
|
|
344
344
|
}
|
|
345
|
-
R && !(R instanceof Error) && (Se(D), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",
|
|
345
|
+
R && !(R instanceof Error) && (Se(D), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", w || "React class", y, O, typeof R), Se(null)), R instanceof Error && !(R.message in ln) && (ln[R.message] = !0, Se(D), b("Failed %s type: %s", y, R.message), Se(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
@@ -395,8 +395,8 @@ function _t() {
|
|
|
395
395
|
}
|
|
396
396
|
function lt(a, g) {
|
|
397
397
|
if (typeof a.ref == "string" && xe.current && g && xe.current.stateNode !== g) {
|
|
398
|
-
var y =
|
|
399
|
-
Le[y] || (b('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',
|
|
398
|
+
var y = Y(xe.current.type);
|
|
399
|
+
Le[y] || (b('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', Y(xe.current.type), a.ref), Le[y] = !0);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
function ot(a, g) {
|
|
@@ -421,7 +421,7 @@ function _t() {
|
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
var dt = function(a, g, y,
|
|
424
|
+
var dt = function(a, g, y, w, D, P, O) {
|
|
425
425
|
var R = {
|
|
426
426
|
// This tag allows us to uniquely identify this as a React Element
|
|
427
427
|
$$typeof: t,
|
|
@@ -442,7 +442,7 @@ function _t() {
|
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !1,
|
|
445
|
-
value:
|
|
445
|
+
value: w
|
|
446
446
|
}), Object.defineProperty(R, "_source", {
|
|
447
447
|
configurable: !1,
|
|
448
448
|
enumerable: !1,
|
|
@@ -450,22 +450,22 @@ function _t() {
|
|
|
450
450
|
value: D
|
|
451
451
|
}), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
|
|
452
452
|
};
|
|
453
|
-
function ht(a, g, y,
|
|
453
|
+
function ht(a, g, y, w, D) {
|
|
454
454
|
{
|
|
455
455
|
var P, O = {}, R = null, K = null;
|
|
456
456
|
y !== void 0 && (dn(y), R = "" + y), at(g) && (dn(g.key), R = "" + g.key), it(g) && (K = g.ref, lt(g, D));
|
|
457
457
|
for (P in g)
|
|
458
458
|
fe.call(g, P) && !ct.hasOwnProperty(P) && (O[P] = g[P]);
|
|
459
459
|
if (a && a.defaultProps) {
|
|
460
|
-
var
|
|
461
|
-
for (P in
|
|
462
|
-
O[P] === void 0 && (O[P] =
|
|
460
|
+
var V = a.defaultProps;
|
|
461
|
+
for (P in V)
|
|
462
|
+
O[P] === void 0 && (O[P] = V[P]);
|
|
463
463
|
}
|
|
464
464
|
if (R || K) {
|
|
465
|
-
var
|
|
466
|
-
R && ot(O,
|
|
465
|
+
var z = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
466
|
+
R && ot(O, z), K && ut(O, z);
|
|
467
467
|
}
|
|
468
|
-
return dt(a, R, K, D,
|
|
468
|
+
return dt(a, R, K, D, w, xe.current, O);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
var Ve = p.ReactCurrentOwner, xn = p.ReactDebugCurrentFrame;
|
|
@@ -484,7 +484,7 @@ function _t() {
|
|
|
484
484
|
function mn() {
|
|
485
485
|
{
|
|
486
486
|
if (Ve.current) {
|
|
487
|
-
var a =
|
|
487
|
+
var a = Y(Ve.current.type);
|
|
488
488
|
if (a)
|
|
489
489
|
return `
|
|
490
490
|
|
|
@@ -526,8 +526,8 @@ Check the top-level render call using <` + y + ">.");
|
|
|
526
526
|
if (jn[y])
|
|
527
527
|
return;
|
|
528
528
|
jn[y] = !0;
|
|
529
|
-
var
|
|
530
|
-
a && a._owner && a._owner !== Ve.current && (
|
|
529
|
+
var w = "";
|
|
530
|
+
a && a._owner && a._owner !== Ve.current && (w = " It was passed a child from " + Y(a._owner.type) + "."), oe(a), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, w), oe(null);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
function gn(a, g) {
|
|
@@ -536,8 +536,8 @@ Check the top-level render call using <` + y + ">.");
|
|
|
536
536
|
return;
|
|
537
537
|
if (Be(a))
|
|
538
538
|
for (var y = 0; y < a.length; y++) {
|
|
539
|
-
var
|
|
540
|
-
ze(
|
|
539
|
+
var w = a[y];
|
|
540
|
+
ze(w) && vn(w, g);
|
|
541
541
|
}
|
|
542
542
|
else if (ze(a))
|
|
543
543
|
a._store && (a._store.validated = !0);
|
|
@@ -564,11 +564,11 @@ Check the top-level render call using <` + y + ">.");
|
|
|
564
564
|
else
|
|
565
565
|
return;
|
|
566
566
|
if (y) {
|
|
567
|
-
var
|
|
568
|
-
nt(y, a.props, "prop",
|
|
567
|
+
var w = Y(g);
|
|
568
|
+
nt(y, a.props, "prop", w, a);
|
|
569
569
|
} else if (g.PropTypes !== void 0 && !Ie) {
|
|
570
570
|
Ie = !0;
|
|
571
|
-
var D =
|
|
571
|
+
var D = Y(g);
|
|
572
572
|
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", D || "Unknown");
|
|
573
573
|
}
|
|
574
574
|
typeof g.getDefaultProps == "function" && !g.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -577,9 +577,9 @@ Check the top-level render call using <` + y + ">.");
|
|
|
577
577
|
function jt(a) {
|
|
578
578
|
{
|
|
579
579
|
for (var g = Object.keys(a.props), y = 0; y < g.length; y++) {
|
|
580
|
-
var
|
|
581
|
-
if (
|
|
582
|
-
oe(a), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
580
|
+
var w = g[y];
|
|
581
|
+
if (w !== "children" && w !== "key") {
|
|
582
|
+
oe(a), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), oe(null);
|
|
583
583
|
break;
|
|
584
584
|
}
|
|
585
585
|
}
|
|
@@ -587,24 +587,24 @@ Check the top-level render call using <` + y + ">.");
|
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
589
|
var pn = {};
|
|
590
|
-
function yn(a, g, y,
|
|
590
|
+
function yn(a, g, y, w, D, P) {
|
|
591
591
|
{
|
|
592
|
-
var O =
|
|
592
|
+
var O = G(a);
|
|
593
593
|
if (!O) {
|
|
594
594
|
var R = "";
|
|
595
595
|
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
596
596
|
var K = ft(D);
|
|
597
597
|
K ? R += K : R += mn();
|
|
598
|
-
var
|
|
599
|
-
a === null ?
|
|
598
|
+
var V;
|
|
599
|
+
a === null ? V = "null" : Be(a) ? V = "array" : a !== void 0 && a.$$typeof === t ? (V = "<" + (Y(a.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : V = typeof a, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", V, R);
|
|
600
600
|
}
|
|
601
|
-
var
|
|
602
|
-
if (
|
|
603
|
-
return
|
|
601
|
+
var z = ht(a, g, y, D, P);
|
|
602
|
+
if (z == null)
|
|
603
|
+
return z;
|
|
604
604
|
if (O) {
|
|
605
605
|
var ne = g.children;
|
|
606
606
|
if (ne !== void 0)
|
|
607
|
-
if (
|
|
607
|
+
if (w)
|
|
608
608
|
if (Be(ne)) {
|
|
609
609
|
for (var ue = 0; ue < ne.length; ue++)
|
|
610
610
|
gn(ne[ue], a);
|
|
@@ -615,7 +615,7 @@ Check the top-level render call using <` + y + ">.");
|
|
|
615
615
|
gn(ne, a);
|
|
616
616
|
}
|
|
617
617
|
if (fe.call(g, "key")) {
|
|
618
|
-
var le =
|
|
618
|
+
var le = Y(a), J = Object.keys(g).filter(function(Nt) {
|
|
619
619
|
return Nt !== "key";
|
|
620
620
|
}), Ye = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
621
621
|
if (!pn[le + Ye]) {
|
|
@@ -628,7 +628,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
628
628
|
<%s key={someKey} {...props} />`, Ye, le, bt, le), pn[le + Ye] = !0;
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
|
-
return a === s ? jt(
|
|
631
|
+
return a === s ? jt(z) : mt(z), z;
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
function vt(a, g, y) {
|
|
@@ -643,7 +643,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
643
643
|
}
|
|
644
644
|
process.env.NODE_ENV === "production" ? Ue.exports = Ct() : Ue.exports = _t();
|
|
645
645
|
var e = Ue.exports;
|
|
646
|
-
const wt = (n) => Ne({ ...n, className: (n.className ?? "") + " outline-button" }),
|
|
646
|
+
const wt = (n) => Ne({ ...n, className: (n.className ?? "") + " outline-button" }), q = (n) => Ne({ ...n, className: (n.className ?? "") + " text-button" }), St = (n) => Ne({ ...n, className: (n.className ?? "") + " total-button" }), Et = (n) => Ne({ ...n, className: (n.className ?? "") + " filled-button" }), Ne = (n) => {
|
|
647
647
|
const t = (r) => {
|
|
648
648
|
n.onClick && n.onClick(r);
|
|
649
649
|
let s = document.createElement("span");
|
|
@@ -654,7 +654,7 @@ const wt = (n) => Ne({ ...n, className: (n.className ?? "") + " outline-button"
|
|
|
654
654
|
}, 500);
|
|
655
655
|
};
|
|
656
656
|
return /* @__PURE__ */ e.jsx("button", { ...n, className: (n.className ?? "") + " btn", onClick: t, children: /* @__PURE__ */ e.jsx("span", { children: n.children }) });
|
|
657
|
-
}, An = ({ styleType: n = "base", ...t }) => n === "outline" ? wt({ ...t }) : n === "text" ?
|
|
657
|
+
}, An = ({ styleType: n = "base", ...t }) => n === "outline" ? wt({ ...t }) : n === "text" ? q({ ...t }) : n === "filledTotal" ? St({ ...t }) : n === "filled" ? Et({ ...t }) : Ne({ ...t });
|
|
658
658
|
/**
|
|
659
659
|
* @license lucide-react v0.378.0 - ISC
|
|
660
660
|
*
|
|
@@ -719,7 +719,7 @@ const Rt = Pn(
|
|
|
719
719
|
* This source code is licensed under the ISC license.
|
|
720
720
|
* See the LICENSE file in the root directory of this source tree.
|
|
721
721
|
*/
|
|
722
|
-
const
|
|
722
|
+
const H = (n, t) => {
|
|
723
723
|
const r = Pn(
|
|
724
724
|
({ className: s, ...c }, i) => Xe(Rt, {
|
|
725
725
|
ref: i,
|
|
@@ -736,7 +736,7 @@ const W = (n, t) => {
|
|
|
736
736
|
* This source code is licensed under the ISC license.
|
|
737
737
|
* See the LICENSE file in the root directory of this source tree.
|
|
738
738
|
*/
|
|
739
|
-
const Ln =
|
|
739
|
+
const Ln = H("AlignJustify", [
|
|
740
740
|
["line", { x1: "3", x2: "21", y1: "6", y2: "6", key: "4m8b97" }],
|
|
741
741
|
["line", { x1: "3", x2: "21", y1: "12", y2: "12", key: "10d38w" }],
|
|
742
742
|
["line", { x1: "3", x2: "21", y1: "18", y2: "18", key: "kwyyxn" }]
|
|
@@ -747,7 +747,7 @@ const Ln = W("AlignJustify", [
|
|
|
747
747
|
* This source code is licensed under the ISC license.
|
|
748
748
|
* See the LICENSE file in the root directory of this source tree.
|
|
749
749
|
*/
|
|
750
|
-
const Ot =
|
|
750
|
+
const Ot = H("ArrowLeft", [
|
|
751
751
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
752
752
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
753
753
|
]);
|
|
@@ -757,7 +757,7 @@ const Ot = W("ArrowLeft", [
|
|
|
757
757
|
* This source code is licensed under the ISC license.
|
|
758
758
|
* See the LICENSE file in the root directory of this source tree.
|
|
759
759
|
*/
|
|
760
|
-
const Mt =
|
|
760
|
+
const Mt = H("CalendarDays", [
|
|
761
761
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
762
762
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
763
763
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
@@ -775,14 +775,14 @@ const Mt = W("CalendarDays", [
|
|
|
775
775
|
* This source code is licensed under the ISC license.
|
|
776
776
|
* See the LICENSE file in the root directory of this source tree.
|
|
777
777
|
*/
|
|
778
|
-
const ye =
|
|
778
|
+
const ye = H("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
|
|
779
779
|
/**
|
|
780
780
|
* @license lucide-react v0.378.0 - ISC
|
|
781
781
|
*
|
|
782
782
|
* This source code is licensed under the ISC license.
|
|
783
783
|
* See the LICENSE file in the root directory of this source tree.
|
|
784
784
|
*/
|
|
785
|
-
const kn =
|
|
785
|
+
const kn = H("ChevronDown", [
|
|
786
786
|
["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
|
|
787
787
|
]);
|
|
788
788
|
/**
|
|
@@ -791,7 +791,7 @@ const kn = W("ChevronDown", [
|
|
|
791
791
|
* This source code is licensed under the ISC license.
|
|
792
792
|
* See the LICENSE file in the root directory of this source tree.
|
|
793
793
|
*/
|
|
794
|
-
const Je =
|
|
794
|
+
const Je = H("CircleMinus", [
|
|
795
795
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
796
796
|
["path", { d: "M8 12h8", key: "1wcyev" }]
|
|
797
797
|
]);
|
|
@@ -801,7 +801,7 @@ const Je = W("CircleMinus", [
|
|
|
801
801
|
* This source code is licensed under the ISC license.
|
|
802
802
|
* See the LICENSE file in the root directory of this source tree.
|
|
803
803
|
*/
|
|
804
|
-
const Vn =
|
|
804
|
+
const Vn = H("CirclePlus", [
|
|
805
805
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
806
806
|
["path", { d: "M8 12h8", key: "1wcyev" }],
|
|
807
807
|
["path", { d: "M12 8v8", key: "napkw2" }]
|
|
@@ -812,7 +812,7 @@ const Vn = W("CirclePlus", [
|
|
|
812
812
|
* This source code is licensed under the ISC license.
|
|
813
813
|
* See the LICENSE file in the root directory of this source tree.
|
|
814
814
|
*/
|
|
815
|
-
const In =
|
|
815
|
+
const In = H("CircleX", [
|
|
816
816
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
817
817
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
818
818
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
@@ -823,7 +823,7 @@ const In = W("CircleX", [
|
|
|
823
823
|
* This source code is licensed under the ISC license.
|
|
824
824
|
* See the LICENSE file in the root directory of this source tree.
|
|
825
825
|
*/
|
|
826
|
-
const zn =
|
|
826
|
+
const zn = H("Clock3", [
|
|
827
827
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
828
828
|
["polyline", { points: "12 6 12 12 16.5 12", key: "1aq6pp" }]
|
|
829
829
|
]);
|
|
@@ -833,7 +833,7 @@ const zn = W("Clock3", [
|
|
|
833
833
|
* This source code is licensed under the ISC license.
|
|
834
834
|
* See the LICENSE file in the root directory of this source tree.
|
|
835
835
|
*/
|
|
836
|
-
const Dt =
|
|
836
|
+
const Dt = H("EllipsisVertical", [
|
|
837
837
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
838
838
|
["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
|
|
839
839
|
["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
|
|
@@ -844,7 +844,7 @@ const Dt = W("EllipsisVertical", [
|
|
|
844
844
|
* This source code is licensed under the ISC license.
|
|
845
845
|
* See the LICENSE file in the root directory of this source tree.
|
|
846
846
|
*/
|
|
847
|
-
const qe =
|
|
847
|
+
const qe = H("Ellipsis", [
|
|
848
848
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
849
849
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
850
850
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
@@ -855,7 +855,7 @@ const qe = W("Ellipsis", [
|
|
|
855
855
|
* This source code is licensed under the ISC license.
|
|
856
856
|
* See the LICENSE file in the root directory of this source tree.
|
|
857
857
|
*/
|
|
858
|
-
const Ft =
|
|
858
|
+
const Ft = H("Keyboard", [
|
|
859
859
|
["path", { d: "M10 8h.01", key: "1r9ogq" }],
|
|
860
860
|
["path", { d: "M12 12h.01", key: "1mp3jc" }],
|
|
861
861
|
["path", { d: "M14 8h.01", key: "1primd" }],
|
|
@@ -872,14 +872,14 @@ const Ft = W("Keyboard", [
|
|
|
872
872
|
* This source code is licensed under the ISC license.
|
|
873
873
|
* See the LICENSE file in the root directory of this source tree.
|
|
874
874
|
*/
|
|
875
|
-
const Pt =
|
|
875
|
+
const Pt = H("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]);
|
|
876
876
|
/**
|
|
877
877
|
* @license lucide-react v0.378.0 - ISC
|
|
878
878
|
*
|
|
879
879
|
* This source code is licensed under the ISC license.
|
|
880
880
|
* See the LICENSE file in the root directory of this source tree.
|
|
881
881
|
*/
|
|
882
|
-
const At =
|
|
882
|
+
const At = H("Palette", [
|
|
883
883
|
["circle", { cx: "13.5", cy: "6.5", r: ".5", fill: "currentColor", key: "1okk4w" }],
|
|
884
884
|
["circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor", key: "f64h9f" }],
|
|
885
885
|
["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }],
|
|
@@ -898,7 +898,7 @@ const At = W("Palette", [
|
|
|
898
898
|
* This source code is licensed under the ISC license.
|
|
899
899
|
* See the LICENSE file in the root directory of this source tree.
|
|
900
900
|
*/
|
|
901
|
-
const Bt =
|
|
901
|
+
const Bt = H("Pen", [
|
|
902
902
|
["path", { d: "M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z", key: "5qss01" }]
|
|
903
903
|
]);
|
|
904
904
|
/**
|
|
@@ -907,7 +907,7 @@ const Bt = W("Pen", [
|
|
|
907
907
|
* This source code is licensed under the ISC license.
|
|
908
908
|
* See the LICENSE file in the root directory of this source tree.
|
|
909
909
|
*/
|
|
910
|
-
const Lt =
|
|
910
|
+
const Lt = H("Plus", [
|
|
911
911
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
912
912
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
913
913
|
]);
|
|
@@ -917,7 +917,7 @@ const Lt = W("Plus", [
|
|
|
917
917
|
* This source code is licensed under the ISC license.
|
|
918
918
|
* See the LICENSE file in the root directory of this source tree.
|
|
919
919
|
*/
|
|
920
|
-
const Vt =
|
|
920
|
+
const Vt = H("Search", [
|
|
921
921
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
922
922
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
923
923
|
]);
|
|
@@ -927,7 +927,7 @@ const Vt = W("Search", [
|
|
|
927
927
|
* This source code is licensed under the ISC license.
|
|
928
928
|
* See the LICENSE file in the root directory of this source tree.
|
|
929
929
|
*/
|
|
930
|
-
const It =
|
|
930
|
+
const It = H("Trash2", [
|
|
931
931
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
932
932
|
["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
|
|
933
933
|
["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
|
|
@@ -940,7 +940,7 @@ const It = W("Trash2", [
|
|
|
940
940
|
* This source code is licensed under the ISC license.
|
|
941
941
|
* See the LICENSE file in the root directory of this source tree.
|
|
942
942
|
*/
|
|
943
|
-
const Me =
|
|
943
|
+
const Me = H("X", [
|
|
944
944
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
945
945
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
946
946
|
]);
|
|
@@ -1134,59 +1134,59 @@ const Ze = ({ children: n, onHide: t }) => {
|
|
|
1134
1134
|
"#5BA8C4",
|
|
1135
1135
|
"#E64AA9"
|
|
1136
1136
|
], Jt = ({ onHide: n, beginColor: t, onChange: r, onAddColor: s, userColor: c = [] }) => {
|
|
1137
|
-
const i =
|
|
1138
|
-
function b(
|
|
1139
|
-
if (!(!
|
|
1137
|
+
const i = W(null), u = W(null), o = W(null), l = W(null), [d, f] = C(t ? Ee(pe(t)) : { h: 0, s: 1, v: 0.5 }), h = he(() => ve(d), [d]), x = he(() => "#" + de(h), [h]), [v, m] = C(!1), [j, N] = C(x), p = he(() => j[0] != "#" ? "#" + j : j, [j]);
|
|
1138
|
+
function b(S, B, G, I, X) {
|
|
1139
|
+
if (!(!S || !G))
|
|
1140
1140
|
try {
|
|
1141
|
-
const
|
|
1142
|
-
Yn(B,
|
|
1141
|
+
const Y = S.getBoundingClientRect(), ee = G.getBoundingClientRect(), L = Math.round(X.s * Y.width), U = Math.round((1 - X.v) * Y.height), ke = (360 - X.h * 360) / 360 * ee.height;
|
|
1142
|
+
Yn(B, L, U), Wn(I, ke);
|
|
1143
1143
|
} catch {
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
|
-
const $ = (
|
|
1147
|
-
f(Ee(pe(
|
|
1146
|
+
const $ = (S) => {
|
|
1147
|
+
f(Ee(pe(S))), N(S);
|
|
1148
1148
|
}, k = _(() => {
|
|
1149
1149
|
s && s([...c, x]);
|
|
1150
|
-
}, [s, c, x]),
|
|
1150
|
+
}, [s, c, x]), E = _(() => {
|
|
1151
1151
|
r && r(x);
|
|
1152
|
-
}, [r, x]), T = _((
|
|
1153
|
-
f(Ee({ ...h, [
|
|
1154
|
-
}, [h]),
|
|
1155
|
-
N(
|
|
1152
|
+
}, [r, x]), T = _((S, B) => {
|
|
1153
|
+
f(Ee({ ...h, [S]: B })), N(de({ ...h, [S]: B }));
|
|
1154
|
+
}, [h]), A = _((S) => {
|
|
1155
|
+
N(S);
|
|
1156
1156
|
}, []);
|
|
1157
1157
|
return F(() => {
|
|
1158
1158
|
(j.length === 4 || j.length === 7) && f(Ee(pe(j)));
|
|
1159
1159
|
}, [j]), F(() => {
|
|
1160
1160
|
if (!o.current || !i.current || !u.current || !l.current)
|
|
1161
1161
|
return;
|
|
1162
|
-
const
|
|
1163
|
-
zt(
|
|
1162
|
+
const S = o.current.getContext("2d");
|
|
1163
|
+
zt(S, o.current, `#${de(ve(d.h, 1, 1))}`), b(o.current, l.current, i.current, u.current, d);
|
|
1164
1164
|
}, [d]), F(() => {
|
|
1165
1165
|
if (!o.current || !l.current)
|
|
1166
1166
|
return;
|
|
1167
|
-
const
|
|
1168
|
-
Yt(o.current,
|
|
1169
|
-
f((
|
|
1170
|
-
const
|
|
1171
|
-
return N(de(ve(
|
|
1167
|
+
const S = o.current.getContext("2d");
|
|
1168
|
+
Yt(o.current, S, l.current, (B, G) => {
|
|
1169
|
+
f((I) => {
|
|
1170
|
+
const X = { ...I, s: B / 100, v: G / 100 };
|
|
1171
|
+
return N(de(ve(X))), X;
|
|
1172
1172
|
});
|
|
1173
1173
|
});
|
|
1174
1174
|
}, []), F(() => {
|
|
1175
1175
|
if (!i.current || !u.current)
|
|
1176
1176
|
return;
|
|
1177
|
-
const
|
|
1178
|
-
Ht(
|
|
1179
|
-
f((
|
|
1180
|
-
const
|
|
1181
|
-
return N(de(ve(
|
|
1177
|
+
const S = i.current.getContext("2d");
|
|
1178
|
+
Ht(S, i.current), Gt(S, i.current, u.current, (B) => {
|
|
1179
|
+
f((G) => {
|
|
1180
|
+
const I = { ...G, h: B / 360 };
|
|
1181
|
+
return N(de(ve(I))), I;
|
|
1182
1182
|
});
|
|
1183
1183
|
});
|
|
1184
1184
|
}, []), F(() => {
|
|
1185
1185
|
console.log(d, h);
|
|
1186
1186
|
}, [d]), /* @__PURE__ */ e.jsxs(ae, { className: "color-picker-panel", onHide: n, clearStyle: !0, children: [
|
|
1187
1187
|
/* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
|
|
1188
|
-
/* @__PURE__ */ e.jsx("div", { className: "swatches default-swatches", children: Kt.map((
|
|
1189
|
-
/* @__PURE__ */ e.jsx("button", { className: "button-color-picker eyedropper", onClick:
|
|
1188
|
+
/* @__PURE__ */ e.jsx("div", { className: "swatches default-swatches", children: Kt.map((S, B) => /* @__PURE__ */ e.jsx("button", { onClick: () => $(S), className: "swatch", style: { backgroundColor: S } }, B)) }),
|
|
1189
|
+
/* @__PURE__ */ e.jsx("button", { className: "button-color-picker eyedropper", onClick: E, children: "Get Color" })
|
|
1190
1190
|
] }),
|
|
1191
1191
|
/* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
|
|
1192
1192
|
/* @__PURE__ */ e.jsxs("div", { className: "spectrum-map spectrum-cursor", children: [
|
|
@@ -1202,26 +1202,26 @@ const Ze = ({ children: n, onHide: t }) => {
|
|
|
1202
1202
|
/* @__PURE__ */ e.jsxs("div", { className: `field-group value-fields rgb-fields ${v ? "" : "active"}`, children: [
|
|
1203
1203
|
/* @__PURE__ */ e.jsxs("div", { className: "field-group", children: [
|
|
1204
1204
|
/* @__PURE__ */ e.jsx("label", { className: "field-label", children: "R:" }),
|
|
1205
|
-
/* @__PURE__ */ e.jsx("input", { type: "number", max: "255", min: "0", value: h.r, onChange: (
|
|
1205
|
+
/* @__PURE__ */ e.jsx("input", { type: "number", max: "255", min: "0", value: h.r, onChange: (S) => T("r", Number(S.target.value)), className: "field-input rgb-input" })
|
|
1206
1206
|
] }),
|
|
1207
1207
|
/* @__PURE__ */ e.jsxs("div", { className: "field-group", children: [
|
|
1208
1208
|
/* @__PURE__ */ e.jsx("label", { className: "field-label", children: "G:" }),
|
|
1209
|
-
/* @__PURE__ */ e.jsx("input", { type: "number", max: "255", min: "0", value: h.g, onChange: (
|
|
1209
|
+
/* @__PURE__ */ e.jsx("input", { type: "number", max: "255", min: "0", value: h.g, onChange: (S) => T("g", Number(S.target.value)), className: "field-input rgb-input" })
|
|
1210
1210
|
] }),
|
|
1211
1211
|
/* @__PURE__ */ e.jsxs("div", { className: "field-group", children: [
|
|
1212
1212
|
/* @__PURE__ */ e.jsx("label", { className: "field-label", children: "B:" }),
|
|
1213
|
-
/* @__PURE__ */ e.jsx("input", { type: "number", max: "255", min: "0", value: h.b, onChange: (
|
|
1213
|
+
/* @__PURE__ */ e.jsx("input", { type: "number", max: "255", min: "0", value: h.b, onChange: (S) => T("b", Number(S.target.value)), className: "field-input rgb-input" })
|
|
1214
1214
|
] })
|
|
1215
1215
|
] }),
|
|
1216
1216
|
/* @__PURE__ */ e.jsxs("div", { className: `field-group value-fields hex-field ${v ? "active" : ""}`, children: [
|
|
1217
1217
|
/* @__PURE__ */ e.jsx("label", { className: "field-label", children: "Hex:" }),
|
|
1218
|
-
/* @__PURE__ */ e.jsx("input", { type: "text", className: "field-input", value: p, onChange: (
|
|
1218
|
+
/* @__PURE__ */ e.jsx("input", { type: "text", className: "field-input", value: p, onChange: (S) => A(S.target.value) })
|
|
1219
1219
|
] }),
|
|
1220
|
-
/* @__PURE__ */ e.jsx("button", { className: "button-color-picker mode-toggle", onClick: () => m((
|
|
1220
|
+
/* @__PURE__ */ e.jsx("button", { className: "button-color-picker mode-toggle", onClick: () => m((S) => !S), children: "Mode" })
|
|
1221
1221
|
] }),
|
|
1222
1222
|
/* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
|
|
1223
1223
|
/* @__PURE__ */ e.jsx("h2", { className: "panel-header", children: "User Colors" }),
|
|
1224
|
-
/* @__PURE__ */ e.jsx("div", { id: "user-swatches", className: "swatches custom-swatches", children: c ? c.map((
|
|
1224
|
+
/* @__PURE__ */ e.jsx("div", { id: "user-swatches", className: "swatches custom-swatches", children: c ? c.map((S, B) => /* @__PURE__ */ e.jsx("button", { onClick: () => $(S), className: "swatch", style: { backgroundColor: S } }, B)) : null }),
|
|
1225
1225
|
/* @__PURE__ */ e.jsxs("button", { onClick: k, className: "button-color-picker add-swatch", children: [
|
|
1226
1226
|
/* @__PURE__ */ e.jsx("span", { style: { backgroundColor: `#${de(ve(d))}` }, className: "color-indicator" }),
|
|
1227
1227
|
/* @__PURE__ */ e.jsx("span", { children: "Add to Swatches" })
|
|
@@ -1361,7 +1361,7 @@ const Ur = ({ children: n, className: t, id: r, height: s, width: c, pozMove: i
|
|
|
1361
1361
|
}, [i]), /* @__PURE__ */ e.jsx("div", { id: r, style: { height: s, width: c }, className: `big-container ${t}`, onMouseDown: v, onMouseUp: x, onMouseMove: m, children: /* @__PURE__ */ e.jsx("div", { className: "big-container-content", style: { left: f.x, top: f.y }, children: n }) });
|
|
1362
1362
|
};
|
|
1363
1363
|
const nr = (n) => {
|
|
1364
|
-
const [t, r] = C(!1), [s, c] = C(!0), i =
|
|
1364
|
+
const [t, r] = C(!1), [s, c] = C(!0), i = W(null), u = _(() => {
|
|
1365
1365
|
r(!0), setTimeout(() => {
|
|
1366
1366
|
n.onHide(), r(!1), c(!0);
|
|
1367
1367
|
}, 200);
|
|
@@ -1399,16 +1399,16 @@ const tr = ({ text: n, onDelete: t, big: r, onClick: s, screenSize: c }) => {
|
|
|
1399
1399
|
] });
|
|
1400
1400
|
};
|
|
1401
1401
|
const Gn = ({ styleContainer: n, type: t = "text", transparent: r, readOnly: s, password: c, border: i, onClear: u, icon: o, onChange: l, name: d, value: f, placeholder: h, className: x, validEmptyValue: v, onFocus: m, onBlur: j, error: N, max: p, min: b }) => {
|
|
1402
|
-
const $ =
|
|
1402
|
+
const $ = W(null), [k, E] = C(!1), [T, A] = C(!1), S = _((X, Y) => E(!!(N || X && (!Y || Y === ""))), []);
|
|
1403
1403
|
F(() => {
|
|
1404
|
-
|
|
1405
|
-
}, [f, v,
|
|
1404
|
+
S(v, f);
|
|
1405
|
+
}, [f, v, S]);
|
|
1406
1406
|
const B = () => {
|
|
1407
1407
|
$.current && $.current.focus();
|
|
1408
|
-
},
|
|
1409
|
-
m && m(
|
|
1410
|
-
},
|
|
1411
|
-
j && j(
|
|
1408
|
+
}, G = (X) => {
|
|
1409
|
+
m && m(X), A(!0);
|
|
1410
|
+
}, I = (X) => {
|
|
1411
|
+
j && j(X), A(!1);
|
|
1412
1412
|
};
|
|
1413
1413
|
return /* @__PURE__ */ e.jsxs("div", { style: n, className: `input-field text-field ${i ? "border" : ""} ${T ? "active" : ""} ${r ? "transparent" : ""} ${x}`, children: [
|
|
1414
1414
|
o ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", onClick: B, children: o }) : null,
|
|
@@ -1426,8 +1426,8 @@ const Gn = ({ styleContainer: n, type: t = "text", transparent: r, readOnly: s,
|
|
|
1426
1426
|
name: d,
|
|
1427
1427
|
value: f,
|
|
1428
1428
|
onChange: l,
|
|
1429
|
-
onFocus:
|
|
1430
|
-
onBlur:
|
|
1429
|
+
onFocus: G,
|
|
1430
|
+
onBlur: I
|
|
1431
1431
|
}
|
|
1432
1432
|
),
|
|
1433
1433
|
/* @__PURE__ */ e.jsx("label", { children: h ? /* @__PURE__ */ e.jsx("span", { children: h }) : null })
|
|
@@ -1436,33 +1436,33 @@ const Gn = ({ styleContainer: n, type: t = "text", transparent: r, readOnly: s,
|
|
|
1436
1436
|
] });
|
|
1437
1437
|
};
|
|
1438
1438
|
const Kr = ({ styleContainer: n, transparent: t, readOnly: r, border: s, onClear: c, icon: i, onChange: u, name: o, value: l, placeholder: d, className: f, validEmptyValue: h, onFocus: x, onBlur: v, error: m, max: j, min: N }) => {
|
|
1439
|
-
const p =
|
|
1439
|
+
const p = W(null), [b, $] = C(!1), k = W(null), E = W(null), [T, A] = C(l ?? 0), S = _((L, U) => $(!!(m || L && (!U || U === ""))), []), B = () => {
|
|
1440
1440
|
p.current && p.current.focus();
|
|
1441
|
-
},
|
|
1442
|
-
|
|
1443
|
-
let
|
|
1444
|
-
return typeof j == "number" &&
|
|
1441
|
+
}, G = _(() => {
|
|
1442
|
+
A((L) => {
|
|
1443
|
+
let U = L ? L + 1 : 1;
|
|
1444
|
+
return typeof j == "number" && U > j && (U = j), setTimeout(() => u && u(U, o), 100), U;
|
|
1445
1445
|
});
|
|
1446
|
-
}, [u, o, j]),
|
|
1447
|
-
|
|
1448
|
-
let
|
|
1449
|
-
return typeof N == "number" &&
|
|
1446
|
+
}, [u, o, j]), I = _(() => {
|
|
1447
|
+
A((L) => {
|
|
1448
|
+
let U = L ? L - 1 : -1;
|
|
1449
|
+
return typeof N == "number" && U < N && (U = N), setTimeout(() => u && u(U, o), 100), U;
|
|
1450
1450
|
});
|
|
1451
|
-
}, [u, o, N]),
|
|
1452
|
-
Number(
|
|
1453
|
-
}, [o, u, T, j, N]),
|
|
1454
|
-
k.current && clearTimeout(k.current),
|
|
1455
|
-
}, []), ee = _((
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1451
|
+
}, [u, o, N]), X = _((L) => {
|
|
1452
|
+
Number(L.target.value), A(Number(L.target.value)), setTimeout(() => u && u(Number(L.target.value), o), 0);
|
|
1453
|
+
}, [o, u, T, j, N]), Y = _(() => {
|
|
1454
|
+
k.current && clearTimeout(k.current), E.current && clearInterval(E.current), document.removeEventListener("mouseup", Y);
|
|
1455
|
+
}, []), ee = _((L) => {
|
|
1456
|
+
L === "p" ? G() : L === "m" && I(), k.current && clearTimeout(k.current), E.current && clearInterval(E.current), document.addEventListener("mouseup", Y), k.current = setTimeout(() => {
|
|
1457
|
+
E.current = setInterval(() => {
|
|
1458
|
+
L === "p" ? G() : L === "m" && I();
|
|
1459
1459
|
}, 100);
|
|
1460
1460
|
}, 500);
|
|
1461
|
-
}, [
|
|
1461
|
+
}, [G, I]);
|
|
1462
1462
|
return F(() => {
|
|
1463
|
-
|
|
1464
|
-
}, [l, h,
|
|
1465
|
-
l &&
|
|
1463
|
+
S(h, l);
|
|
1464
|
+
}, [l, h, S]), F(() => {
|
|
1465
|
+
l && A(l);
|
|
1466
1466
|
}, [l]), /* @__PURE__ */ e.jsxs("div", { style: n, className: `input-field number-field ${s ? "border" : ""} ${t ? "transparent" : ""} ${f}`, children: [
|
|
1467
1467
|
i ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", onClick: B, children: i }) : null,
|
|
1468
1468
|
/* @__PURE__ */ e.jsxs("div", { className: "input-container", onClick: B, children: [
|
|
@@ -1478,7 +1478,7 @@ const Kr = ({ styleContainer: n, transparent: t, readOnly: r, border: s, onClear
|
|
|
1478
1478
|
className: `alex-evo-number-field ${b ? "error" : ""}`,
|
|
1479
1479
|
name: o,
|
|
1480
1480
|
value: T,
|
|
1481
|
-
onChange:
|
|
1481
|
+
onChange: X,
|
|
1482
1482
|
onFocus: x,
|
|
1483
1483
|
onBlur: v
|
|
1484
1484
|
}
|
|
@@ -1494,7 +1494,7 @@ const Kr = ({ styleContainer: n, transparent: t, readOnly: r, border: s, onClear
|
|
|
1494
1494
|
] });
|
|
1495
1495
|
};
|
|
1496
1496
|
const Jr = ({ styleContainer: n, transparent: t, readOnly: r, border: s, icon: c, onChange: i, name: u, value: o, placeholder: l, className: d, validEmptyValue: f, onFocus: h, onBlur: x, error: v }) => {
|
|
1497
|
-
const m =
|
|
1497
|
+
const m = W(null), [j, N] = C(!1), p = _(($, k) => N(!!(v || $ && (!k || k === ""))), []);
|
|
1498
1498
|
F(() => {
|
|
1499
1499
|
p(f, o);
|
|
1500
1500
|
}, [o, f, p]);
|
|
@@ -1548,7 +1548,7 @@ const De = (n) => n ? {
|
|
|
1548
1548
|
let i = Number(window.getComputedStyle(r).getPropertyValue("height").replace("px", "")), u = Number(window.getComputedStyle(r).getPropertyValue("width").replace("px", "")), o = t + i - document.documentElement.scrollHeight, l = n + u - document.documentElement.clientWidth;
|
|
1549
1549
|
return o > 0 && (c.y = c.y - o - ((s == null ? void 0 : s.marginBottom) ?? 0)), l > 0 && (c.x = c.x - l - ((s == null ? void 0 : s.marginRight) ?? 0)), c;
|
|
1550
1550
|
}, sr = 10, Tn = 2e-3, es = ({ children: n, label: t, className: r, style: s, border: c, hiding: i, defaultVisible: u = !1 }) => {
|
|
1551
|
-
const [o, l] = C(i ? u : !0), d =
|
|
1551
|
+
const [o, l] = C(i ? u : !0), d = W(null), f = (j) => {
|
|
1552
1552
|
if (!j)
|
|
1553
1553
|
return;
|
|
1554
1554
|
const N = De(j);
|
|
@@ -1609,7 +1609,7 @@ const ns = ({ minWidth: n, value: t, onChange: r, border: s }) => {
|
|
|
1609
1609
|
] });
|
|
1610
1610
|
};
|
|
1611
1611
|
const ts = ({ style: n, text: t, className: r, onClick: s, onContextMenu: c }) => {
|
|
1612
|
-
const i =
|
|
1612
|
+
const i = W(null), u = _(() => {
|
|
1613
1613
|
if (!i.current)
|
|
1614
1614
|
return;
|
|
1615
1615
|
let o = i.current.getElementsByTagName("p");
|
|
@@ -1621,7 +1621,7 @@ const ts = ({ style: n, text: t, className: r, onClick: s, onContextMenu: c }) =
|
|
|
1621
1621
|
};
|
|
1622
1622
|
const rs = ({ className: n, children: t, height: r }) => /* @__PURE__ */ e.jsx("div", { className: `scroll-container ${n}`, style: { height: r }, children: t });
|
|
1623
1623
|
const ss = ({ onMenu: n, onSearch: t, placeholder: r, autoChenge: s }) => {
|
|
1624
|
-
const c =
|
|
1624
|
+
const c = W(null), [i, u] = C(""), [o, l] = C(!1), d = () => {
|
|
1625
1625
|
c.current && (c.current.focus(), l(!0));
|
|
1626
1626
|
}, f = () => {
|
|
1627
1627
|
c.current && (c.current.focus(), c.current.value = ""), u(""), l(!0), s && t("");
|
|
@@ -1645,12 +1645,12 @@ const cs = ({ visible: n, text: t, option: r }) => {
|
|
|
1645
1645
|
return n ? /* @__PURE__ */ e.jsxs("div", { className: `snackbar-container ${r == null ? void 0 : r.className}`, style: { backgroundColor: r == null ? void 0 : r.backgroundColor, color: r == null ? void 0 : r.color }, children: [
|
|
1646
1646
|
/* @__PURE__ */ e.jsxs("div", { className: "snackbar-content-container", children: [
|
|
1647
1647
|
/* @__PURE__ */ e.jsx("div", { className: "snackbar-text", children: t }),
|
|
1648
|
-
r != null && r.onClick ? /* @__PURE__ */ e.jsx("div", { className: "snackbar-button-container", children: /* @__PURE__ */ e.jsx(
|
|
1648
|
+
r != null && r.onClick ? /* @__PURE__ */ e.jsx("div", { className: "snackbar-button-container", children: /* @__PURE__ */ e.jsx(q, { className: "snackbar-btn", onClick: r.onClick, children: r.buttonText ?? "Action" }) }) : null
|
|
1649
1649
|
] }),
|
|
1650
1650
|
r != null && r.closeButton ? /* @__PURE__ */ e.jsx("div", { className: "snackbar-close", children: /* @__PURE__ */ e.jsx("span", { onClick: s, children: /* @__PURE__ */ e.jsx(Me, {}) }) }) : null
|
|
1651
1651
|
] }) : null;
|
|
1652
1652
|
};
|
|
1653
|
-
const is = ({
|
|
1653
|
+
const is = ({ style: n, name: t, onChange: r, checked: s, className: c }) => /* @__PURE__ */ e.jsx("div", { className: `swich-container ${c}`, style: n, children: /* @__PURE__ */ e.jsx("input", { type: "checkbox", name: t, onChange: r, checked: s }) });
|
|
1654
1654
|
const ir = (n) => n === void 0 ? [] : Array.isArray(n) ? n : [n], as = ({ style: n, multiple: t, value: r, items: s, className: c, onClick: i, onContextMenu: u, onChange: o }) => {
|
|
1655
1655
|
const [l, d] = C(ir(r)), f = (h) => {
|
|
1656
1656
|
i && i(h);
|
|
@@ -1674,7 +1674,7 @@ function ar(n, t, r, s, c) {
|
|
|
1674
1674
|
return s + (c - s) * ((n - t) / (r - t));
|
|
1675
1675
|
}
|
|
1676
1676
|
const He = 0, Ge = 100, ls = (n) => {
|
|
1677
|
-
const [t, r] = C(0), [s, c] = C(!1), i =
|
|
1677
|
+
const [t, r] = C(0), [s, c] = C(!1), i = W(null), u = W(null);
|
|
1678
1678
|
F(() => {
|
|
1679
1679
|
n.value ? r(n.value) : r(0);
|
|
1680
1680
|
}, [n.value]);
|
|
@@ -1692,7 +1692,7 @@ const He = 0, Ge = 100, ls = (n) => {
|
|
|
1692
1692
|
}, [n.onFocus]), f = _((h) => {
|
|
1693
1693
|
c(!1), n.onBlur && n.onBlur(h);
|
|
1694
1694
|
}, [n.onBlur]);
|
|
1695
|
-
return /* @__PURE__ */ e.jsx("div", { className: "range", children: /* @__PURE__ */ e.jsxs("div", { className: "field", children: [
|
|
1695
|
+
return /* @__PURE__ */ e.jsx("div", { className: "range", children: /* @__PURE__ */ e.jsxs("div", { className: "field", style: n.style, children: [
|
|
1696
1696
|
n.maxMinDisplay ? /* @__PURE__ */ e.jsx("div", { className: "value left", children: n.min ?? He }) : null,
|
|
1697
1697
|
/* @__PURE__ */ e.jsxs("div", { className: "field-range-container", children: [
|
|
1698
1698
|
/* @__PURE__ */ e.jsx("div", { className: "slider-value", ref: i, style: { width: l(t, n.min ?? He, n.max ?? Ge) }, children: /* @__PURE__ */ e.jsxs("div", { className: "slider-tooltip", style: { display: s ? "block" : "none" }, children: [
|
|
@@ -1704,8 +1704,8 @@ const He = 0, Ge = 100, ls = (n) => {
|
|
|
1704
1704
|
n.maxMinDisplay ? /* @__PURE__ */ e.jsx("div", { className: "value right", children: n.max ?? Ge }) : null
|
|
1705
1705
|
] }) });
|
|
1706
1706
|
}, lr = ({ onHide: n, onSave: t }) => /* @__PURE__ */ e.jsxs("div", { className: "dialog-button-container", children: [
|
|
1707
|
-
/* @__PURE__ */ e.jsx(
|
|
1708
|
-
t ? /* @__PURE__ */ e.jsx(
|
|
1707
|
+
/* @__PURE__ */ e.jsx(q, { onClick: n, children: "cancel" }),
|
|
1708
|
+
t ? /* @__PURE__ */ e.jsx(q, { onClick: t, children: "save" }) : null
|
|
1709
1709
|
] }), os = ({ style: n, className: t, header: r, children: s, onSave: c, onHide: i, marginBottom: u }) => {
|
|
1710
1710
|
const [o, l] = C(!1), d = _(() => {
|
|
1711
1711
|
window.innerWidth < 720 ? l(!0) : l(!1);
|
|
@@ -1724,7 +1724,7 @@ const He = 0, Ge = 100, ls = (n) => {
|
|
|
1724
1724
|
/* @__PURE__ */ e.jsxs("div", { className: "full-screen-dialog-header", children: [
|
|
1725
1725
|
/* @__PURE__ */ e.jsx("div", { className: "dialog-icon-container", children: /* @__PURE__ */ e.jsx(ge, { transparent: !0, onClick: f, icon: /* @__PURE__ */ e.jsx(Me, {}) }) }),
|
|
1726
1726
|
/* @__PURE__ */ e.jsx("div", { className: "header", children: r }),
|
|
1727
|
-
/* @__PURE__ */ e.jsx("div", { className: "save-container", children: c ? /* @__PURE__ */ e.jsx(
|
|
1727
|
+
/* @__PURE__ */ e.jsx("div", { className: "save-container", children: c ? /* @__PURE__ */ e.jsx(q, { onClick: h, children: "save" }) : null })
|
|
1728
1728
|
] }),
|
|
1729
1729
|
/* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog-content", style: { overflowY: "auto" }, children: s })
|
|
1730
1730
|
] }) : /* @__PURE__ */ e.jsx(ae, { style: n, header: r, className: `full-screen-dialog-base-format ${t}`, onHide: f, children: s, action: /* @__PURE__ */ e.jsx(lr, { onHide: f, onSave: c ? h : void 0 }) });
|
|
@@ -1738,8 +1738,8 @@ const He = 0, Ge = 100, ls = (n) => {
|
|
|
1738
1738
|
};
|
|
1739
1739
|
function or({ actionText: n, onSuccess: t, onHide: r }) {
|
|
1740
1740
|
return /* @__PURE__ */ e.jsxs("div", { className: "dialog-button-container", children: [
|
|
1741
|
-
/* @__PURE__ */ e.jsx(
|
|
1742
|
-
/* @__PURE__ */ e.jsx(
|
|
1741
|
+
/* @__PURE__ */ e.jsx(q, { onClick: r, children: "cancel" }),
|
|
1742
|
+
/* @__PURE__ */ e.jsx(q, { onClick: t, children: n ?? "OK" })
|
|
1743
1743
|
] });
|
|
1744
1744
|
}
|
|
1745
1745
|
function ds({ onSuccess: n, items: t, header: r, onHide: s, noHide: c = !1, name: i = "dailog_name" }) {
|
|
@@ -1756,8 +1756,8 @@ function ds({ onSuccess: n, items: t, header: r, onHide: s, noHide: c = !1, name
|
|
|
1756
1756
|
}
|
|
1757
1757
|
function ur({ onSuccess: n, onHide: t, disabled: r }) {
|
|
1758
1758
|
return /* @__PURE__ */ e.jsxs("div", { className: "dialog-button-container", children: [
|
|
1759
|
-
/* @__PURE__ */ e.jsx(
|
|
1760
|
-
/* @__PURE__ */ e.jsx(
|
|
1759
|
+
/* @__PURE__ */ e.jsx(q, { onClick: t, children: "cancel" }),
|
|
1760
|
+
/* @__PURE__ */ e.jsx(q, { onClick: n, disabled: r, children: "OK" })
|
|
1761
1761
|
] });
|
|
1762
1762
|
}
|
|
1763
1763
|
const hs = ({ styleContainer: n, text: t, header: r, onSuccess: s, onHide: c, placeholder: i, type: u = "text", min: o = 0, max: l = 100 }) => {
|
|
@@ -1773,8 +1773,8 @@ const hs = ({ styleContainer: n, text: t, header: r, onSuccess: s, onHide: c, pl
|
|
|
1773
1773
|
};
|
|
1774
1774
|
function dr({ onSuccess: n, onHide: t }) {
|
|
1775
1775
|
return /* @__PURE__ */ e.jsxs("div", { className: "dialog-button-container", children: [
|
|
1776
|
-
/* @__PURE__ */ e.jsx(
|
|
1777
|
-
/* @__PURE__ */ e.jsx(
|
|
1776
|
+
/* @__PURE__ */ e.jsx(q, { onClick: t, children: "cancel" }),
|
|
1777
|
+
/* @__PURE__ */ e.jsx(q, { onClick: n, children: "OK" })
|
|
1778
1778
|
] });
|
|
1779
1779
|
}
|
|
1780
1780
|
const hr = ({ setHours: n, setMinutes: t, switchMode: r, hours: s, minutes: c, onCancel: i, onOK: u }) => {
|
|
@@ -1801,8 +1801,8 @@ const hr = ({ setHours: n, setMinutes: t, switchMode: r, hours: s, minutes: c, o
|
|
|
1801
1801
|
/* @__PURE__ */ e.jsx("div", { className: "clock-input-container", children: o ? /* @__PURE__ */ e.jsx(xr, { setMinutes: f }) : /* @__PURE__ */ e.jsx(fr, { setHours: d }) }),
|
|
1802
1802
|
/* @__PURE__ */ e.jsxs("div", { className: "enter-time-action", children: [
|
|
1803
1803
|
/* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => r(), children: /* @__PURE__ */ e.jsx(Ft, {}) }),
|
|
1804
|
-
/* @__PURE__ */ e.jsx(
|
|
1805
|
-
/* @__PURE__ */ e.jsx(
|
|
1804
|
+
/* @__PURE__ */ e.jsx(q, { className: "little", onClick: h, children: "Cancel" }),
|
|
1805
|
+
/* @__PURE__ */ e.jsx(q, { className: "little", onClick: u, children: "OK" })
|
|
1806
1806
|
] })
|
|
1807
1807
|
] });
|
|
1808
1808
|
};
|
|
@@ -1881,8 +1881,8 @@ const mr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: c, o
|
|
|
1881
1881
|
] }),
|
|
1882
1882
|
/* @__PURE__ */ e.jsxs("div", { className: "enter-time-action", children: [
|
|
1883
1883
|
/* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => r(), children: /* @__PURE__ */ e.jsx(zn, {}) }),
|
|
1884
|
-
/* @__PURE__ */ e.jsx(
|
|
1885
|
-
/* @__PURE__ */ e.jsx(
|
|
1884
|
+
/* @__PURE__ */ e.jsx(q, { className: "little", onClick: i, children: "Cancel" }),
|
|
1885
|
+
/* @__PURE__ */ e.jsx(q, { className: "little", onClick: u, children: "OK" })
|
|
1886
1886
|
] })
|
|
1887
1887
|
] });
|
|
1888
1888
|
}, jr = (n) => {
|
|
@@ -1951,9 +1951,9 @@ const vr = 2050, Rn = 1900, se = [
|
|
|
1951
1951
|
}), [h, x] = C(
|
|
1952
1952
|
"DAYS"
|
|
1953
1953
|
/* DAYS */
|
|
1954
|
-
), v = (k,
|
|
1955
|
-
let T = Array(v(k,
|
|
1956
|
-
return T = Array(m(k,
|
|
1954
|
+
), v = (k, E) => new Date(k, E + 1, 0).getDate(), m = (k, E, T) => new Date(k, E, T).getDay(), j = (k, E) => {
|
|
1955
|
+
let T = Array(v(k, E)).fill(0).map((G, I) => ({ type: "NOW_MONTH", day: I + 1 })), A = m(k, E, v(k, E)), S = Array(7 - A).fill(0).map((G, I) => ({ type: "NEXT_MONTH", day: I + 1 }));
|
|
1956
|
+
return T = Array(m(k, E, 0)).fill(0).map((G, I) => ({ type: "PREV_MONTH", day: v(E ? k : k - 1, E ? E - 1 : 11) - I })).reverse().concat(T).concat(S), T;
|
|
1957
1957
|
}, N = (k) => {
|
|
1958
1958
|
x(
|
|
1959
1959
|
"DAYS"
|
|
@@ -1989,13 +1989,13 @@ const vr = 2050, Rn = 1900, se = [
|
|
|
1989
1989
|
/* @__PURE__ */ e.jsx(kn, {})
|
|
1990
1990
|
] }) })
|
|
1991
1991
|
] }),
|
|
1992
|
-
h === "MONTHS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-months-container", children: se.map((k,
|
|
1992
|
+
h === "MONTHS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-months-container", children: se.map((k, E) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-months-item", onClick: () => p(k), children: [
|
|
1993
1993
|
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: i === k ? /* @__PURE__ */ e.jsx(ye, {}) : null }),
|
|
1994
1994
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: k })
|
|
1995
|
-
] },
|
|
1995
|
+
] }, E)) }) : h === "YEARS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-years-container", children: gr().map((k, E) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-year-item", onClick: () => N(k), children: [
|
|
1996
1996
|
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: o === k ? /* @__PURE__ */ e.jsx(ye, {}) : null }),
|
|
1997
1997
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: k })
|
|
1998
|
-
] },
|
|
1998
|
+
] }, E)) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1999
1999
|
/* @__PURE__ */ e.jsxs("div", { className: "calendar-body-dayofweek-container", children: [
|
|
2000
2000
|
/* @__PURE__ */ e.jsx("span", { children: "M" }),
|
|
2001
2001
|
/* @__PURE__ */ e.jsx("span", { children: "T" }),
|
|
@@ -2005,11 +2005,11 @@ const vr = 2050, Rn = 1900, se = [
|
|
|
2005
2005
|
/* @__PURE__ */ e.jsx("span", { children: "S" }),
|
|
2006
2006
|
/* @__PURE__ */ e.jsx("span", { children: "S" })
|
|
2007
2007
|
] }),
|
|
2008
|
-
/* @__PURE__ */ e.jsx("div", { className: "calendar-body-days-container", children: j(o, se.indexOf(i)).map((k,
|
|
2008
|
+
/* @__PURE__ */ e.jsx("div", { className: "calendar-body-days-container", children: j(o, se.indexOf(i)).map((k, E) => /* @__PURE__ */ e.jsx("div", { className: `day ${k.type !== "NOW_MONTH" ? "other" : ""} ${c === k.day && o === s && i === r ? "now" : ""} ${k.day === d.day && k.type === d.type ? "select" : ""}`, onClick: () => b(k), children: k.day }, E)) })
|
|
2009
2009
|
] }),
|
|
2010
2010
|
/* @__PURE__ */ e.jsxs("div", { className: "calendar-body-action-container", children: [
|
|
2011
|
-
/* @__PURE__ */ e.jsx(
|
|
2012
|
-
/* @__PURE__ */ e.jsx(
|
|
2011
|
+
/* @__PURE__ */ e.jsx(q, { className: "little m-0", onClick: t, children: "Cancel" }),
|
|
2012
|
+
/* @__PURE__ */ e.jsx(q, { className: "little m-0", onClick: $, children: "OK" })
|
|
2013
2013
|
] })
|
|
2014
2014
|
] });
|
|
2015
2015
|
}, xs = ({ border: n, onChange: t, name: r, value: s, className: c, validEmptyValue: i, error: u, container: o }) => {
|
|
@@ -2082,7 +2082,7 @@ const ms = ({ onChange: n, value: t, className: r }) => {
|
|
|
2082
2082
|
] }) });
|
|
2083
2083
|
};
|
|
2084
2084
|
const js = ({ children: n }) => /* @__PURE__ */ e.jsx("div", { className: "adaptiv-grid-item", children: /* @__PURE__ */ e.jsx("div", { className: "adaptiv-grid-item-container", children: n }) }), vs = ({ minWith: n, children: t, className: r, gridRowGap: s = "10px", gridColumnGap: c = "5px", itemMinWith: i, itemMaxWith: u, itemWith: o = "400px" }) => {
|
|
2085
|
-
const l =
|
|
2085
|
+
const l = W(null), [d, f] = C([]), h = _(() => {
|
|
2086
2086
|
if (!l.current)
|
|
2087
2087
|
return;
|
|
2088
2088
|
l.current.style.display = "grid", l.current.style.gridRowGap = s, l.current.style.gridColumnGap = c;
|
|
@@ -2139,7 +2139,7 @@ const yr = ({ item: n, isIcon: t, globalClick: r }) => {
|
|
|
2139
2139
|
/* @__PURE__ */ e.jsx("div", { className: "menu-status-container", children: n.activated ? /* @__PURE__ */ e.jsx(ye, {}) : null })
|
|
2140
2140
|
] });
|
|
2141
2141
|
}, br = ({ items: n, onHide: t, smallDisplay: r, globalClick: s }) => {
|
|
2142
|
-
const c =
|
|
2142
|
+
const c = W(null), [i, u] = C({ left: "0px", top: "0px" });
|
|
2143
2143
|
function o(l) {
|
|
2144
2144
|
for (let d of l)
|
|
2145
2145
|
if (d.icon)
|
|
@@ -2184,7 +2184,7 @@ function Un({ block: n, smallDisplay: t, onHide: r, globalClick: s, autoHide: c
|
|
|
2184
2184
|
return /* @__PURE__ */ e.jsx("div", { className: "menu-block", children: n.items.map((u, o) => /* @__PURE__ */ e.jsx(Nr, { globalClick: s, autoHide: c, onHide: r, item: u, isIcon: i(n), smallDisplay: t }, o)) });
|
|
2185
2185
|
}
|
|
2186
2186
|
const kr = 100, Cr = (n) => {
|
|
2187
|
-
const t =
|
|
2187
|
+
const t = W(null), [r, s] = C({ left: "0px", top: "0px" }), c = () => {
|
|
2188
2188
|
n.onHide && n.onHide();
|
|
2189
2189
|
};
|
|
2190
2190
|
return F(() => {
|
|
@@ -2247,7 +2247,7 @@ const Er = ({ data: n, column: t, color: r, backgroundColor: s, H: c }) => {
|
|
|
2247
2247
|
] }) }) : null
|
|
2248
2248
|
] });
|
|
2249
2249
|
}, ps = ({ data: n, columns: t, onDelete: r, onContextMenu: s, onEdit: c, actions: i, onClickRow: u, adaptive: o }) => {
|
|
2250
|
-
const l = he(() => t ?? Sr(n), [n, t]), d =
|
|
2250
|
+
const l = he(() => t ?? Sr(n), [n, t]), d = W(null), f = _(() => {
|
|
2251
2251
|
var N, p;
|
|
2252
2252
|
if (!d.current)
|
|
2253
2253
|
return;
|
|
@@ -2255,8 +2255,8 @@ const Er = ({ data: n, column: t, color: r, backgroundColor: s, H: c }) => {
|
|
|
2255
2255
|
if (x) {
|
|
2256
2256
|
for (const b of x.children)
|
|
2257
2257
|
for (let $ = 0; $ < b.children.length; $++) {
|
|
2258
|
-
const
|
|
2259
|
-
j[$] <
|
|
2258
|
+
const E = b.children[$].getBoundingClientRect().height;
|
|
2259
|
+
j[$] < E && (j[$] = E);
|
|
2260
2260
|
}
|
|
2261
2261
|
return j;
|
|
2262
2262
|
}
|
|
@@ -2589,9 +2589,9 @@ const Ar = (n) => `--${qn(n, "_", "-")}`, Br = (n) => qn(n, "-", "_").slice(2),
|
|
|
2589
2589
|
m && document.body.style.setProperty(Ar(v), m);
|
|
2590
2590
|
}, d = (v, m, j = !1) => {
|
|
2591
2591
|
var N, p, b, $, k;
|
|
2592
|
-
if (t((
|
|
2593
|
-
const
|
|
2594
|
-
(N =
|
|
2592
|
+
if (t((E) => ({ ...E, [v]: m })), l(v, m), v in Mn) {
|
|
2593
|
+
const E = Mn[v];
|
|
2594
|
+
(N = E.container) == null || N.forEach((T) => d(T, ce(m, j), j)), (p = E.text) == null || p.forEach((T) => d(T, Z(m), j)), (b = E.low) == null || b.forEach((T) => d(T, Q(j ? -0.1 : 0.1, m) ?? m, j)), ($ = E.high) == null || $.forEach((T) => d(T, Q(j ? 0.01 : -0.01, m) ?? m, j)), (k = E.variant) == null || k.forEach((T) => d(T, Q(j ? -0.3 : 0.3, m) ?? m, j));
|
|
2595
2595
|
}
|
|
2596
2596
|
}, f = _(async (v) => {
|
|
2597
2597
|
console.log(v);
|
|
@@ -2625,37 +2625,37 @@ const Ar = (n) => `--${qn(n, "_", "-")}`, Br = (n) => qn(n, "-", "_").slice(2),
|
|
|
2625
2625
|
return r.title;
|
|
2626
2626
|
}
|
|
2627
2627
|
return "";
|
|
2628
|
-
}, ws = ({
|
|
2629
|
-
const [
|
|
2628
|
+
}, ws = ({ style: n, screensize: t = te.STANDART, items: r, onChange: s, value: c, placeholder: i, className: u, border: o, name: l, error: d, onBlur: f, onFocus: h, container: x }) => {
|
|
2629
|
+
const [v, m] = C(""), [j, N] = C({ x: 0, y: 0, width: 100 }), [p, b] = C(!1);
|
|
2630
2630
|
F(() => {
|
|
2631
|
-
|
|
2632
|
-
}, [
|
|
2633
|
-
const
|
|
2634
|
-
|
|
2635
|
-
}, [
|
|
2636
|
-
|
|
2637
|
-
let
|
|
2638
|
-
|
|
2639
|
-
}, [
|
|
2631
|
+
m(Dn(r, c ?? ""));
|
|
2632
|
+
}, [c, r]);
|
|
2633
|
+
const $ = _((T) => {
|
|
2634
|
+
m(Dn(r, T)), s && s(T), b(!1);
|
|
2635
|
+
}, [r, s]), k = _((T) => typeof T == "string" ? { title: T, onClick: () => $(T) } : { title: T.title, onClick: () => $(T.value) }, [$]), E = _((T) => {
|
|
2636
|
+
T.preventDefault();
|
|
2637
|
+
let A = De(T.currentTarget), S = (A == null ? void 0 : A.left) ?? T.pageX, B = A != null && A.top ? A.top + A.height : T.pageY;
|
|
2638
|
+
N({ x: S, y: B, width: (A == null ? void 0 : A.width) ?? 150 }), b(!0);
|
|
2639
|
+
}, [r, k]);
|
|
2640
2640
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2641
|
-
/* @__PURE__ */ e.jsx("div", { className: `input-field select-field ${
|
|
2641
|
+
/* @__PURE__ */ e.jsx("div", { style: n, className: `input-field select-field ${u} ${o ? "border" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "input-container", onClick: E, children: [
|
|
2642
2642
|
/* @__PURE__ */ e.jsx(
|
|
2643
2643
|
"input",
|
|
2644
2644
|
{
|
|
2645
2645
|
required: !0,
|
|
2646
2646
|
type: "text",
|
|
2647
|
-
className: `${
|
|
2648
|
-
name:
|
|
2649
|
-
value:
|
|
2650
|
-
placeholder:
|
|
2651
|
-
onFocus:
|
|
2652
|
-
onBlur:
|
|
2647
|
+
className: `${d ? "error" : ""}`,
|
|
2648
|
+
name: l,
|
|
2649
|
+
value: v,
|
|
2650
|
+
placeholder: i,
|
|
2651
|
+
onFocus: h,
|
|
2652
|
+
onBlur: f,
|
|
2653
2653
|
readOnly: !0
|
|
2654
2654
|
}
|
|
2655
2655
|
),
|
|
2656
2656
|
/* @__PURE__ */ e.jsx("span", { className: "text-field-line" })
|
|
2657
2657
|
] }) }),
|
|
2658
|
-
/* @__PURE__ */ e.jsx(wr, { width:
|
|
2658
|
+
/* @__PURE__ */ e.jsx(wr, { width: j.width, screensize: t, x: j.x, y: j.y, onHide: () => b(!1), container: x, blocks: [{ items: r.map(k) }], visible: p })
|
|
2659
2659
|
] });
|
|
2660
2660
|
}, Fn = {
|
|
2661
2661
|
mobileSize: 720,
|
|
@@ -2729,7 +2729,7 @@ export {
|
|
|
2729
2729
|
is as Switch,
|
|
2730
2730
|
ps as Table,
|
|
2731
2731
|
Jr as TextArea,
|
|
2732
|
-
|
|
2732
|
+
q as TextButton,
|
|
2733
2733
|
hs as TextDialog,
|
|
2734
2734
|
Gn as TextField,
|
|
2735
2735
|
fs as TimeField,
|