chop-logic-components 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__mocks__/select-values.d.ts +5 -0
- package/dist/components/inputs/multi-select/MultiSelect.d.ts +16 -0
- package/dist/components/inputs/multi-select/__docs__/Example.d.ts +5 -0
- package/dist/components/inputs/multi-select/__docs__/MultiSelect.stories.d.ts +7 -0
- package/dist/components/inputs/multi-select/__tests__/MultiSelect.test.d.ts +1 -0
- package/dist/components/inputs/multi-select/elements/Combobox.d.ts +15 -0
- package/dist/components/inputs/multi-select/elements/Dropdown.d.ts +11 -0
- package/dist/components/inputs/multi-select/elements/Option.d.ts +8 -0
- package/dist/components/inputs/select/Select.d.ts +1 -1
- package/dist/index.cjs.js +8 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +185 -185
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +10 -11
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import qe, { useState as ee, useEffect as
|
|
2
|
-
var
|
|
1
|
+
import qe, { useState as ee, useEffect as Er, useRef as wr } from "react";
|
|
2
|
+
var ve = { exports: {} }, I = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,13 +9,13 @@ var _e = { exports: {} }, I = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
12
|
+
var Ue;
|
|
13
13
|
function Rr() {
|
|
14
|
-
if (
|
|
14
|
+
if (Ue)
|
|
15
15
|
return I;
|
|
16
|
-
|
|
16
|
+
Ue = 1;
|
|
17
17
|
var n = qe, f = Symbol.for("react.element"), o = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, l = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, b = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
-
function
|
|
18
|
+
function p(m, d, y) {
|
|
19
19
|
var c, R = {}, C = null, g = null;
|
|
20
20
|
y !== void 0 && (C = "" + y), d.key !== void 0 && (C = "" + d.key), d.ref !== void 0 && (g = d.ref);
|
|
21
21
|
for (c in d)
|
|
@@ -25,7 +25,7 @@ function Rr() {
|
|
|
25
25
|
R[c] === void 0 && (R[c] = d[c]);
|
|
26
26
|
return { $$typeof: f, type: m, key: C, ref: g, props: R, _owner: l.current };
|
|
27
27
|
}
|
|
28
|
-
return I.Fragment = o, I.jsx =
|
|
28
|
+
return I.Fragment = o, I.jsx = p, I.jsxs = p, I;
|
|
29
29
|
}
|
|
30
30
|
var J = {};
|
|
31
31
|
/**
|
|
@@ -37,10 +37,10 @@ var J = {};
|
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
|
-
var
|
|
40
|
+
var Ve;
|
|
41
41
|
function Cr() {
|
|
42
|
-
return
|
|
43
|
-
var n = qe, f = Symbol.for("react.element"), o = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"),
|
|
42
|
+
return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var n = qe, f = Symbol.for("react.element"), o = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), m = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), k = Symbol.iterator, N = "@@iterator";
|
|
44
44
|
function M(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
@@ -48,7 +48,7 @@ function Cr() {
|
|
|
48
48
|
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
50
|
var S = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
-
function
|
|
51
|
+
function E(e) {
|
|
52
52
|
{
|
|
53
53
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
54
54
|
t[a - 1] = arguments[a];
|
|
@@ -57,37 +57,37 @@ function Cr() {
|
|
|
57
57
|
}
|
|
58
58
|
function re(e, r, t) {
|
|
59
59
|
{
|
|
60
|
-
var a = S.ReactDebugCurrentFrame,
|
|
61
|
-
|
|
60
|
+
var a = S.ReactDebugCurrentFrame, _ = a.getStackAddendum();
|
|
61
|
+
_ !== "" && (r += "%s", t = t.concat([_]));
|
|
62
62
|
var v = t.map(function(u) {
|
|
63
63
|
return String(u);
|
|
64
64
|
});
|
|
65
65
|
v.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, v);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var ne = !1, G = !1, te = !1, Ke = !1, Ie = !1,
|
|
69
|
-
|
|
68
|
+
var ne = !1, G = !1, te = !1, Ke = !1, Ie = !1, be;
|
|
69
|
+
be = Symbol.for("react.module.reference");
|
|
70
70
|
function Je(e) {
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e === b || Ie || e === l || e === y || e === c || Ke || e === g || ne || G || te || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === R || e.$$typeof ===
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === b || Ie || e === l || e === y || e === c || Ke || e === g || ne || G || te || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === R || e.$$typeof === p || e.$$typeof === m || e.$$typeof === d || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
75
|
-
e.$$typeof ===
|
|
75
|
+
e.$$typeof === be || e.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
77
|
function Ge(e, r, t) {
|
|
78
78
|
var a = e.displayName;
|
|
79
79
|
if (a)
|
|
80
80
|
return a;
|
|
81
|
-
var
|
|
82
|
-
return
|
|
81
|
+
var _ = r.displayName || r.name || "";
|
|
82
|
+
return _ !== "" ? t + "(" + _ + ")" : t;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function me(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
86
86
|
}
|
|
87
87
|
function D(e) {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof e.tag == "number" &&
|
|
90
|
+
if (typeof e.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
91
91
|
return e.displayName || e.name || null;
|
|
92
92
|
if (typeof e == "string")
|
|
93
93
|
return e;
|
|
@@ -109,17 +109,17 @@ function Cr() {
|
|
|
109
109
|
switch (e.$$typeof) {
|
|
110
110
|
case m:
|
|
111
111
|
var r = e;
|
|
112
|
-
return
|
|
113
|
-
case
|
|
112
|
+
return me(r) + ".Consumer";
|
|
113
|
+
case p:
|
|
114
114
|
var t = e;
|
|
115
|
-
return
|
|
115
|
+
return me(t._context) + ".Provider";
|
|
116
116
|
case d:
|
|
117
117
|
return Ge(e, e.render, "ForwardRef");
|
|
118
118
|
case R:
|
|
119
119
|
var a = e.displayName || null;
|
|
120
120
|
return a !== null ? a : D(e.type) || "Memo";
|
|
121
121
|
case C: {
|
|
122
|
-
var
|
|
122
|
+
var _ = e, v = _._payload, u = _._init;
|
|
123
123
|
try {
|
|
124
124
|
return D(u(v));
|
|
125
125
|
} catch {
|
|
@@ -129,18 +129,18 @@ function Cr() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var $ = Object.assign, B = 0,
|
|
133
|
-
function
|
|
132
|
+
var $ = Object.assign, B = 0, ge, ye, xe, Ee, we, Re, Ce;
|
|
133
|
+
function ke() {
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
ke.__reactDisabledLog = !0;
|
|
136
136
|
function Xe() {
|
|
137
137
|
{
|
|
138
138
|
if (B === 0) {
|
|
139
|
-
|
|
139
|
+
ge = console.log, ye = console.info, xe = console.warn, Ee = console.error, we = console.group, Re = console.groupCollapsed, Ce = console.groupEnd;
|
|
140
140
|
var e = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
|
-
value:
|
|
143
|
+
value: ke,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
@@ -166,29 +166,29 @@ function Cr() {
|
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
168
|
log: $({}, e, {
|
|
169
|
-
value:
|
|
169
|
+
value: ge
|
|
170
170
|
}),
|
|
171
171
|
info: $({}, e, {
|
|
172
|
-
value:
|
|
172
|
+
value: ye
|
|
173
173
|
}),
|
|
174
174
|
warn: $({}, e, {
|
|
175
|
-
value:
|
|
175
|
+
value: xe
|
|
176
176
|
}),
|
|
177
177
|
error: $({}, e, {
|
|
178
178
|
value: Ee
|
|
179
179
|
}),
|
|
180
180
|
group: $({}, e, {
|
|
181
|
-
value:
|
|
181
|
+
value: we
|
|
182
182
|
}),
|
|
183
183
|
groupCollapsed: $({}, e, {
|
|
184
|
-
value:
|
|
184
|
+
value: Re
|
|
185
185
|
}),
|
|
186
186
|
groupEnd: $({}, e, {
|
|
187
|
-
value:
|
|
187
|
+
value: Ce
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
B < 0 &&
|
|
191
|
+
B < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
var ae = S.ReactCurrentDispatcher, oe;
|
|
@@ -197,8 +197,8 @@ function Cr() {
|
|
|
197
197
|
if (oe === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var a =
|
|
200
|
+
} catch (_) {
|
|
201
|
+
var a = _.stack.trim().match(/\n( *(at )?)/);
|
|
202
202
|
oe = a && a[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
@@ -210,7 +210,7 @@ function Cr() {
|
|
|
210
210
|
var He = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
211
|
z = new He();
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function je(e, r) {
|
|
214
214
|
if (!e || ie)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
@@ -220,7 +220,7 @@ function Cr() {
|
|
|
220
220
|
}
|
|
221
221
|
var a;
|
|
222
222
|
ie = !0;
|
|
223
|
-
var
|
|
223
|
+
var _ = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
225
|
var v;
|
|
226
226
|
v = ae.current, ae.current = null, Xe();
|
|
@@ -260,29 +260,29 @@ function Cr() {
|
|
|
260
260
|
if (T && a && typeof T.stack == "string") {
|
|
261
261
|
for (var i = T.stack.split(`
|
|
262
262
|
`), j = a.stack.split(`
|
|
263
|
-
`),
|
|
263
|
+
`), x = i.length - 1, w = j.length - 1; x >= 1 && w >= 0 && i[x] !== j[w]; )
|
|
264
264
|
w--;
|
|
265
|
-
for (;
|
|
266
|
-
if (i[
|
|
267
|
-
if (
|
|
265
|
+
for (; x >= 1 && w >= 0; x--, w--)
|
|
266
|
+
if (i[x] !== j[w]) {
|
|
267
|
+
if (x !== 1 || w !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (
|
|
269
|
+
if (x--, w--, w < 0 || i[x] !== j[w]) {
|
|
270
270
|
var O = `
|
|
271
|
-
` + i[
|
|
271
|
+
` + i[x].replace(" at new ", " at ");
|
|
272
272
|
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && z.set(e, O), O;
|
|
273
273
|
}
|
|
274
|
-
while (
|
|
274
|
+
while (x >= 1 && w >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
ie = !1, ae.current = v, ze(), Error.prepareStackTrace =
|
|
279
|
+
ie = !1, ae.current = v, ze(), Error.prepareStackTrace = _;
|
|
280
280
|
}
|
|
281
281
|
var Y = e ? e.displayName || e.name : "", A = Y ? X(Y) : "";
|
|
282
282
|
return typeof e == "function" && z.set(e, A), A;
|
|
283
283
|
}
|
|
284
284
|
function Ze(e, r, t) {
|
|
285
|
-
return
|
|
285
|
+
return je(e, !1);
|
|
286
286
|
}
|
|
287
287
|
function Qe(e) {
|
|
288
288
|
var r = e.prototype;
|
|
@@ -292,7 +292,7 @@ function Cr() {
|
|
|
292
292
|
if (e == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof e == "function")
|
|
295
|
-
return
|
|
295
|
+
return je(e, Qe(e));
|
|
296
296
|
if (typeof e == "string")
|
|
297
297
|
return X(e);
|
|
298
298
|
switch (e) {
|
|
@@ -308,24 +308,24 @@ function Cr() {
|
|
|
308
308
|
case R:
|
|
309
309
|
return H(e.type, r, t);
|
|
310
310
|
case C: {
|
|
311
|
-
var a = e,
|
|
311
|
+
var a = e, _ = a._payload, v = a._init;
|
|
312
312
|
try {
|
|
313
|
-
return H(v(
|
|
313
|
+
return H(v(_), r, t);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var q = Object.prototype.hasOwnProperty,
|
|
320
|
+
var q = Object.prototype.hasOwnProperty, Te = {}, Se = S.ReactDebugCurrentFrame;
|
|
321
321
|
function Z(e) {
|
|
322
322
|
if (e) {
|
|
323
323
|
var r = e._owner, t = H(e.type, e._source, r ? r.type : null);
|
|
324
|
-
|
|
324
|
+
Se.setExtraStackFrame(t);
|
|
325
325
|
} else
|
|
326
|
-
|
|
326
|
+
Se.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function er(e, r, t, a,
|
|
328
|
+
function er(e, r, t, a, _) {
|
|
329
329
|
{
|
|
330
330
|
var v = Function.call.bind(q);
|
|
331
331
|
for (var u in e)
|
|
@@ -337,10 +337,10 @@ function Cr() {
|
|
|
337
337
|
throw j.name = "Invariant Violation", j;
|
|
338
338
|
}
|
|
339
339
|
i = e[u](r, u, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
-
} catch (
|
|
341
|
-
i =
|
|
340
|
+
} catch (x) {
|
|
341
|
+
i = x;
|
|
342
342
|
}
|
|
343
|
-
i && !(i instanceof Error) && (Z(
|
|
343
|
+
i && !(i instanceof Error) && (Z(_), E("%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).", a || "React class", t, u, typeof i), Z(null)), i instanceof Error && !(i.message in Te) && (Te[i.message] = !0, Z(_), E("Failed %s type: %s", t, i.message), Z(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -356,24 +356,24 @@ function Cr() {
|
|
|
356
356
|
}
|
|
357
357
|
function tr(e) {
|
|
358
358
|
try {
|
|
359
|
-
return
|
|
359
|
+
return Oe(e), !1;
|
|
360
360
|
} catch {
|
|
361
361
|
return !0;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function Oe(e) {
|
|
365
365
|
return "" + e;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function Pe(e) {
|
|
368
368
|
if (tr(e))
|
|
369
|
-
return
|
|
369
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nr(e)), Oe(e);
|
|
370
370
|
}
|
|
371
371
|
var K = S.ReactCurrentOwner, ar = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
|
-
},
|
|
376
|
+
}, De, Fe, ce;
|
|
377
377
|
ce = {};
|
|
378
378
|
function or(e) {
|
|
379
379
|
if (q.call(e, "ref")) {
|
|
@@ -394,13 +394,13 @@ function Cr() {
|
|
|
394
394
|
function sr(e, r) {
|
|
395
395
|
if (typeof e.ref == "string" && K.current && r && K.current.stateNode !== r) {
|
|
396
396
|
var t = D(K.current.type);
|
|
397
|
-
ce[t] || (
|
|
397
|
+
ce[t] || (E('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', D(K.current.type), e.ref), ce[t] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function cr(e, r) {
|
|
401
401
|
{
|
|
402
402
|
var t = function() {
|
|
403
|
-
|
|
403
|
+
De || (De = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
404
404
|
};
|
|
405
405
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
406
|
get: t,
|
|
@@ -411,7 +411,7 @@ function Cr() {
|
|
|
411
411
|
function lr(e, r) {
|
|
412
412
|
{
|
|
413
413
|
var t = function() {
|
|
414
|
-
|
|
414
|
+
Fe || (Fe = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
415
415
|
};
|
|
416
416
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
417
|
get: t,
|
|
@@ -419,7 +419,7 @@ function Cr() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var ur = function(e, r, t, a,
|
|
422
|
+
var ur = function(e, r, t, a, _, v, u) {
|
|
423
423
|
var i = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: f,
|
|
@@ -445,41 +445,41 @@ function Cr() {
|
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
|
-
value:
|
|
448
|
+
value: _
|
|
449
449
|
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
450
450
|
};
|
|
451
|
-
function fr(e, r, t, a,
|
|
451
|
+
function fr(e, r, t, a, _) {
|
|
452
452
|
{
|
|
453
453
|
var v, u = {}, i = null, j = null;
|
|
454
|
-
t !== void 0 && (
|
|
454
|
+
t !== void 0 && (Pe(t), i = "" + t), ir(r) && (Pe(r.key), i = "" + r.key), or(r) && (j = r.ref, sr(r, _));
|
|
455
455
|
for (v in r)
|
|
456
456
|
q.call(r, v) && !ar.hasOwnProperty(v) && (u[v] = r[v]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
|
-
var
|
|
459
|
-
for (v in
|
|
460
|
-
u[v] === void 0 && (u[v] =
|
|
458
|
+
var x = e.defaultProps;
|
|
459
|
+
for (v in x)
|
|
460
|
+
u[v] === void 0 && (u[v] = x[v]);
|
|
461
461
|
}
|
|
462
462
|
if (i || j) {
|
|
463
463
|
var w = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
464
|
i && cr(u, w), j && lr(u, w);
|
|
465
465
|
}
|
|
466
|
-
return ur(e, i, j,
|
|
466
|
+
return ur(e, i, j, _, a, K.current, u);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
var le = S.ReactCurrentOwner,
|
|
469
|
+
var le = S.ReactCurrentOwner, Ne = S.ReactDebugCurrentFrame;
|
|
470
470
|
function W(e) {
|
|
471
471
|
if (e) {
|
|
472
472
|
var r = e._owner, t = H(e.type, e._source, r ? r.type : null);
|
|
473
|
-
|
|
473
|
+
Ne.setExtraStackFrame(t);
|
|
474
474
|
} else
|
|
475
|
-
|
|
475
|
+
Ne.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
477
477
|
var ue;
|
|
478
478
|
ue = !1;
|
|
479
479
|
function fe(e) {
|
|
480
480
|
return typeof e == "object" && e !== null && e.$$typeof === f;
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function $e() {
|
|
483
483
|
{
|
|
484
484
|
if (le.current) {
|
|
485
485
|
var e = D(le.current.type);
|
|
@@ -494,10 +494,10 @@ Check the render method of \`` + e + "`.";
|
|
|
494
494
|
function dr(e) {
|
|
495
495
|
return "";
|
|
496
496
|
}
|
|
497
|
-
var
|
|
498
|
-
function
|
|
497
|
+
var Ae = {};
|
|
498
|
+
function _r(e) {
|
|
499
499
|
{
|
|
500
|
-
var r =
|
|
500
|
+
var r = $e();
|
|
501
501
|
if (!r) {
|
|
502
502
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
503
503
|
t && (r = `
|
|
@@ -507,39 +507,39 @@ Check the top-level render call using <` + t + ">.");
|
|
|
507
507
|
return r;
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function Le(e, r) {
|
|
511
511
|
{
|
|
512
512
|
if (!e._store || e._store.validated || e.key != null)
|
|
513
513
|
return;
|
|
514
514
|
e._store.validated = !0;
|
|
515
|
-
var t =
|
|
516
|
-
if (
|
|
515
|
+
var t = _r(r);
|
|
516
|
+
if (Ae[t])
|
|
517
517
|
return;
|
|
518
|
-
|
|
518
|
+
Ae[t] = !0;
|
|
519
519
|
var a = "";
|
|
520
|
-
e && e._owner && e._owner !== le.current && (a = " It was passed a child from " + D(e._owner.type) + "."), W(e),
|
|
520
|
+
e && e._owner && e._owner !== le.current && (a = " It was passed a child from " + D(e._owner.type) + "."), W(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), W(null);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Me(e, r) {
|
|
524
524
|
{
|
|
525
525
|
if (typeof e != "object")
|
|
526
526
|
return;
|
|
527
527
|
if (se(e))
|
|
528
528
|
for (var t = 0; t < e.length; t++) {
|
|
529
529
|
var a = e[t];
|
|
530
|
-
fe(a) &&
|
|
530
|
+
fe(a) && Le(a, r);
|
|
531
531
|
}
|
|
532
532
|
else if (fe(e))
|
|
533
533
|
e._store && (e._store.validated = !0);
|
|
534
534
|
else if (e) {
|
|
535
|
-
var
|
|
536
|
-
if (typeof
|
|
537
|
-
for (var v =
|
|
538
|
-
fe(u.value) &&
|
|
535
|
+
var _ = M(e);
|
|
536
|
+
if (typeof _ == "function" && _ !== e.entries)
|
|
537
|
+
for (var v = _.call(e), u; !(u = v.next()).done; )
|
|
538
|
+
fe(u.value) && Le(u.value, r);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function pr(e) {
|
|
543
543
|
{
|
|
544
544
|
var r = e.type;
|
|
545
545
|
if (r == null || typeof r == "string")
|
|
@@ -558,10 +558,10 @@ Check the top-level render call using <` + t + ">.");
|
|
|
558
558
|
er(t, e.props, "prop", a, e);
|
|
559
559
|
} else if (r.PropTypes !== void 0 && !ue) {
|
|
560
560
|
ue = !0;
|
|
561
|
-
var
|
|
562
|
-
|
|
561
|
+
var _ = D(r);
|
|
562
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _ || "Unknown");
|
|
563
563
|
}
|
|
564
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
564
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
function vr(e) {
|
|
@@ -569,26 +569,26 @@ Check the top-level render call using <` + t + ">.");
|
|
|
569
569
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
570
570
|
var a = r[t];
|
|
571
571
|
if (a !== "children" && a !== "key") {
|
|
572
|
-
W(e),
|
|
572
|
+
W(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), W(null);
|
|
573
573
|
break;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
e.ref !== null && (W(e),
|
|
576
|
+
e.ref !== null && (W(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
var
|
|
580
|
-
function
|
|
579
|
+
var We = {};
|
|
580
|
+
function Ye(e, r, t, a, _, v) {
|
|
581
581
|
{
|
|
582
582
|
var u = Je(e);
|
|
583
583
|
if (!u) {
|
|
584
584
|
var i = "";
|
|
585
585
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
586
586
|
var j = dr();
|
|
587
|
-
j ? i += j : i +=
|
|
588
|
-
var
|
|
589
|
-
e === null ?
|
|
587
|
+
j ? i += j : i += $e();
|
|
588
|
+
var x;
|
|
589
|
+
e === null ? x = "null" : se(e) ? x = "array" : e !== void 0 && e.$$typeof === f ? (x = "<" + (D(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : x = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", x, i);
|
|
590
590
|
}
|
|
591
|
-
var w = fr(e, r, t,
|
|
591
|
+
var w = fr(e, r, t, _, v);
|
|
592
592
|
if (w == null)
|
|
593
593
|
return w;
|
|
594
594
|
if (u) {
|
|
@@ -597,42 +597,42 @@ Check the top-level render call using <` + t + ">.");
|
|
|
597
597
|
if (a)
|
|
598
598
|
if (se(O)) {
|
|
599
599
|
for (var Y = 0; Y < O.length; Y++)
|
|
600
|
-
|
|
600
|
+
Me(O[Y], e);
|
|
601
601
|
Object.freeze && Object.freeze(O);
|
|
602
602
|
} else
|
|
603
|
-
|
|
603
|
+
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
604
604
|
else
|
|
605
|
-
|
|
605
|
+
Me(O, e);
|
|
606
606
|
}
|
|
607
607
|
if (q.call(r, "key")) {
|
|
608
|
-
var A = D(e), T = Object.keys(r).filter(function(
|
|
609
|
-
return
|
|
608
|
+
var A = D(e), T = Object.keys(r).filter(function(xr) {
|
|
609
|
+
return xr !== "key";
|
|
610
610
|
}), de = T.length > 0 ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
|
-
if (!
|
|
611
|
+
if (!We[A + de]) {
|
|
612
612
|
var yr = T.length > 0 ? "{" + T.join(": ..., ") + ": ...}" : "{}";
|
|
613
|
-
|
|
613
|
+
E(`A props object containing a "key" prop is being spread into JSX:
|
|
614
614
|
let props = %s;
|
|
615
615
|
<%s {...props} />
|
|
616
616
|
React keys must be passed directly to JSX without using spread:
|
|
617
617
|
let props = %s;
|
|
618
|
-
<%s key={someKey} {...props} />`, de, A, yr, A),
|
|
618
|
+
<%s key={someKey} {...props} />`, de, A, yr, A), We[A + de] = !0;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
return e === s ? vr(w) :
|
|
621
|
+
return e === s ? vr(w) : pr(w), w;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
function hr(e, r, t) {
|
|
625
|
-
return
|
|
625
|
+
return Ye(e, r, t, !0);
|
|
626
626
|
}
|
|
627
627
|
function br(e, r, t) {
|
|
628
|
-
return
|
|
628
|
+
return Ye(e, r, t, !1);
|
|
629
629
|
}
|
|
630
630
|
var mr = br, gr = hr;
|
|
631
631
|
J.Fragment = s, J.jsx = mr, J.jsxs = gr;
|
|
632
632
|
}()), J;
|
|
633
633
|
}
|
|
634
|
-
process.env.NODE_ENV === "production" ?
|
|
635
|
-
var h =
|
|
634
|
+
process.env.NODE_ENV === "production" ? ve.exports = Rr() : ve.exports = Cr();
|
|
635
|
+
var h = ve.exports;
|
|
636
636
|
const kr = "_button_rrb70_1", jr = "_text_rrb70_21", Tr = "_primary_rrb70_26", Sr = "_danger_rrb70_27", Or = "_secondary_rrb70_50", Pr = "_disabled_rrb70_66", U = {
|
|
637
637
|
button: kr,
|
|
638
638
|
text: jr,
|
|
@@ -653,10 +653,10 @@ function P(n) {
|
|
|
653
653
|
}
|
|
654
654
|
}).filter((o) => !!o).join(" ");
|
|
655
655
|
}
|
|
656
|
-
const
|
|
656
|
+
const ln = ({ disabled: n, onClick: f, text: o = "Ok", type: s = "button", view: l = "primary", icon: b, ...p }) => {
|
|
657
657
|
const m = P([
|
|
658
658
|
U.button,
|
|
659
|
-
|
|
659
|
+
p == null ? void 0 : p.className,
|
|
660
660
|
{
|
|
661
661
|
[U.primary]: l === "primary",
|
|
662
662
|
[U.secondary]: l === "secondary",
|
|
@@ -664,7 +664,7 @@ const cn = ({ disabled: n, onClick: f, text: o = "Ok", type: s = "button", view:
|
|
|
664
664
|
[U.disabled]: !!n
|
|
665
665
|
}
|
|
666
666
|
]);
|
|
667
|
-
return /* @__PURE__ */ h.jsxs("button", { type: s, className: m, onClick: n ? void 0 : f, disabled: n, ...
|
|
667
|
+
return /* @__PURE__ */ h.jsxs("button", { type: s, className: m, onClick: n ? void 0 : f, disabled: n, ...p, children: [
|
|
668
668
|
b && /* @__PURE__ */ h.jsx("span", { className: b, "aria-hidden": "true" }),
|
|
669
669
|
/* @__PURE__ */ h.jsx("span", { className: U.text, children: o })
|
|
670
670
|
] });
|
|
@@ -675,34 +675,35 @@ const cn = ({ disabled: n, onClick: f, text: o = "Ok", type: s = "button", view:
|
|
|
675
675
|
invalid: $r,
|
|
676
676
|
error: Ar,
|
|
677
677
|
disabled: Lr
|
|
678
|
-
}, Mr = "
|
|
678
|
+
}, Mr = "_label_16gin_1", Wr = "_text_16gin_10", Yr = "_required_16gin_16", _e = {
|
|
679
679
|
label: Mr,
|
|
680
|
-
|
|
681
|
-
|
|
680
|
+
text: Wr,
|
|
681
|
+
required: Yr
|
|
682
|
+
}, he = ({
|
|
682
683
|
label: n,
|
|
683
684
|
required: f,
|
|
684
685
|
inputId: o,
|
|
685
686
|
className: s,
|
|
686
687
|
isTextHidden: l = !1
|
|
687
|
-
}) => /* @__PURE__ */ h.jsxs("label", { htmlFor: o, className: P([
|
|
688
|
-
!l && /* @__PURE__ */ h.jsx("span", { children: n }),
|
|
689
|
-
f && /* @__PURE__ */ h.jsx("abbr", { title: "required", className:
|
|
690
|
-
] }),
|
|
691
|
-
message:
|
|
692
|
-
visible:
|
|
693
|
-
},
|
|
688
|
+
}) => /* @__PURE__ */ h.jsxs("label", { htmlFor: o, className: P([_e.label, s]), children: [
|
|
689
|
+
!l && /* @__PURE__ */ h.jsx("span", { className: _e.text, children: n }),
|
|
690
|
+
f && /* @__PURE__ */ h.jsx("abbr", { title: "required", className: _e.required, children: "*" })
|
|
691
|
+
] }), Ur = "_message_1ly5l_1", Vr = "_visible_1ly5l_8", Be = {
|
|
692
|
+
message: Ur,
|
|
693
|
+
visible: Vr
|
|
694
|
+
}, Br = ({
|
|
694
695
|
errorId: n,
|
|
695
696
|
message: f = "Invalid input",
|
|
696
697
|
className: o,
|
|
697
698
|
visible: s = !1
|
|
698
|
-
}) => /* @__PURE__ */ h.jsx("span", { id: n, className: P([Be.message, o, { [Be.visible]: s }]), children: f }),
|
|
699
|
+
}) => /* @__PURE__ */ h.jsx("span", { id: n, className: P([Be.message, o, { [Be.visible]: s }]), children: f }), un = ({
|
|
699
700
|
id: n,
|
|
700
701
|
name: f,
|
|
701
702
|
label: o,
|
|
702
703
|
disabled: s,
|
|
703
704
|
placeholder: l = "Type here...",
|
|
704
705
|
valid: b = !0,
|
|
705
|
-
required:
|
|
706
|
+
required: p = !1,
|
|
706
707
|
errorMessage: m,
|
|
707
708
|
defaultValue: d,
|
|
708
709
|
onChange: y,
|
|
@@ -715,12 +716,12 @@ const cn = ({ disabled: n, onClick: f, text: o = "Ok", type: s = "button", view:
|
|
|
715
716
|
[L.invalid]: !b
|
|
716
717
|
}
|
|
717
718
|
]), M = (S) => {
|
|
718
|
-
const { value:
|
|
719
|
-
C(
|
|
719
|
+
const { value: E = "" } = S.target;
|
|
720
|
+
C(E), y && y(S);
|
|
720
721
|
};
|
|
721
722
|
return /* @__PURE__ */ h.jsxs("div", { className: k, children: [
|
|
722
723
|
/* @__PURE__ */ h.jsxs("div", { className: N, children: [
|
|
723
|
-
/* @__PURE__ */ h.jsx(
|
|
724
|
+
/* @__PURE__ */ h.jsx(he, { label: o, required: p, inputId: n, className: L.label }),
|
|
724
725
|
/* @__PURE__ */ h.jsx(
|
|
725
726
|
"input",
|
|
726
727
|
{
|
|
@@ -730,7 +731,7 @@ const cn = ({ disabled: n, onClick: f, text: o = "Ok", type: s = "button", view:
|
|
|
730
731
|
className: L.input,
|
|
731
732
|
disabled: s,
|
|
732
733
|
placeholder: l,
|
|
733
|
-
required:
|
|
734
|
+
required: p,
|
|
734
735
|
"aria-invalid": !b,
|
|
735
736
|
"aria-errormessage": g,
|
|
736
737
|
value: R,
|
|
@@ -739,23 +740,23 @@ const cn = ({ disabled: n, onClick: f, text: o = "Ok", type: s = "button", view:
|
|
|
739
740
|
}
|
|
740
741
|
)
|
|
741
742
|
] }),
|
|
742
|
-
/* @__PURE__ */ h.jsx(
|
|
743
|
+
/* @__PURE__ */ h.jsx(Br, { errorId: g, message: m, className: L.error, visible: !b })
|
|
743
744
|
] });
|
|
744
|
-
},
|
|
745
|
-
wrapper:
|
|
746
|
-
combobox:
|
|
747
|
-
combobox_label:
|
|
748
|
-
dropdown:
|
|
749
|
-
dropdown_opened:
|
|
750
|
-
option:
|
|
751
|
-
active:
|
|
752
|
-
disabled:
|
|
753
|
-
icon:
|
|
754
|
-
},
|
|
755
|
-
|
|
745
|
+
}, qr = "_wrapper_gevmw_1", Kr = "_combobox_gevmw_17", Ir = "_combobox_label_gevmw_42", Jr = "_dropdown_gevmw_47", Gr = "_dropdown_opened_gevmw_68", Xr = "_option_gevmw_73", zr = "_active_gevmw_82", Hr = "_disabled_gevmw_91", Zr = "_icon_gevmw_97", F = {
|
|
746
|
+
wrapper: qr,
|
|
747
|
+
combobox: Kr,
|
|
748
|
+
combobox_label: Ir,
|
|
749
|
+
dropdown: Jr,
|
|
750
|
+
dropdown_opened: Gr,
|
|
751
|
+
option: Xr,
|
|
752
|
+
active: zr,
|
|
753
|
+
disabled: Hr,
|
|
754
|
+
icon: Zr
|
|
755
|
+
}, Qr = ({ ref: n, onClickOutsideHandler: f, dependentRef: o }) => {
|
|
756
|
+
Er(() => {
|
|
756
757
|
const s = (l) => {
|
|
757
|
-
const b = (n == null ? void 0 : n.current) && !n.current.contains(l.target),
|
|
758
|
-
b &&
|
|
758
|
+
const b = (n == null ? void 0 : n.current) && !n.current.contains(l.target), p = o != null && o.current ? !o.current.contains(l.target) : !0;
|
|
759
|
+
b && p && f();
|
|
759
760
|
};
|
|
760
761
|
return document.addEventListener("mousedown", s), () => {
|
|
761
762
|
document.removeEventListener("mousedown", s);
|
|
@@ -763,14 +764,14 @@ const cn = ({ disabled: n, onClick: f, text: o = "Ok", type: s = "button", view:
|
|
|
763
764
|
}, [n, o, f]);
|
|
764
765
|
};
|
|
765
766
|
var V = /* @__PURE__ */ ((n) => (n.CheckMark = "chop-icon__check", n.Home = "chop-icon__home", n.Menu = "chop-icon__menu", n.Enlarge = "chop-icon__enlarge2", n.Shrink = "chop-icon__shrink2", n.Settings = "chop-icon__cog", n.Delete = "chop-icon__bin2", n.Up = "chop-icon__circle-up", n.Down = "chop-icon__circle-down", n.Right = "chop-icon__circle-right", n.Left = "chop-icon__circle-left", n.Sound = "chop-icon__volume-medium", n.NoSound = "chop-icon__volume-mute2", n.LightMode = "chop-icon__sun", n.DarkMode = "chop-icon__contrast", n.Cancel = "chop-icon__close", n.Sidebar = "chop-icon__magic-wand", n.Telegram = "chop-icon__telegram", n.Github = "chop-icon__github", n.Mail = "chop-icon__mail4", n.Propositions = "chop-icon__cube", n.Resolution = "chop-icon__libreoffice", n.Predicates = "chop-icon__cubes", n.TruthTables = "chop-icon__delicious", n.Syllogisms = "chop-icon__dice", n.English = "chop-icon__english-lang", n.Russian = "chop-icon__russian-lang", n.Required = "chop-icon__fire", n.Checked = "chop-icon__checkbox-checked", n.Unchecked = "chop-icon__checkbox-unchecked", n.Info = "chop-icon__exclamation-triangle", n.LinkedIn = "chop-icon__linkedin-square", n.File = "chop-icon__file-empty", n.Files = "chop-icon__files-empty", n.Facebook = "chop-icon__facebook2", n.CaretUp = "chop-icon__caret-up", n.CaretDown = "chop-icon__caret-down", n.SavePDF = "chop-icon__file-pdf", n.ExportXML = "chop-icon__download", n.ImportXML = "chop-icon__upload", n.Copy = "chop-icon__copy", n.Paste = "chop-icon__paste", n.Cut = "chop-icon__scissors", n.Reset = "chop-icon__trash", n.Clear = "chop-icon__cross", n))(V || {});
|
|
766
|
-
const
|
|
767
|
+
const en = ({
|
|
767
768
|
isOpened: n,
|
|
768
769
|
onClick: f,
|
|
769
770
|
comboboxId: o,
|
|
770
771
|
dropdownId: s,
|
|
771
772
|
selected: l,
|
|
772
773
|
name: b,
|
|
773
|
-
placeholder:
|
|
774
|
+
placeholder: p,
|
|
774
775
|
disabled: m,
|
|
775
776
|
required: d
|
|
776
777
|
}) => {
|
|
@@ -783,7 +784,6 @@ const Qr = ({
|
|
|
783
784
|
value: l == null ? void 0 : l.id,
|
|
784
785
|
role: "combobox",
|
|
785
786
|
"aria-haspopup": "listbox",
|
|
786
|
-
"aria-label": "Select one of the options",
|
|
787
787
|
"aria-expanded": n,
|
|
788
788
|
"aria-controls": s,
|
|
789
789
|
id: o,
|
|
@@ -792,7 +792,7 @@ const Qr = ({
|
|
|
792
792
|
disabled: m,
|
|
793
793
|
"aria-required": d,
|
|
794
794
|
children: [
|
|
795
|
-
/* @__PURE__ */ h.jsx("span", { className: F.combobox_label, children: (l == null ? void 0 : l.label) ??
|
|
795
|
+
/* @__PURE__ */ h.jsx("span", { className: F.combobox_label, children: (l == null ? void 0 : l.label) ?? p }),
|
|
796
796
|
/* @__PURE__ */ h.jsx("span", { className: y, "aria-hidden": "true" })
|
|
797
797
|
]
|
|
798
798
|
}
|
|
@@ -802,8 +802,8 @@ function pe(n) {
|
|
|
802
802
|
const f = document.getElementById(n);
|
|
803
803
|
f && f.focus();
|
|
804
804
|
}
|
|
805
|
-
const
|
|
806
|
-
const { id: s, label: l } = n, b = P([F.icon, V.CheckMark]),
|
|
805
|
+
const rn = ({ value: n, isSelected: f, onSelect: o }) => {
|
|
806
|
+
const { id: s, label: l } = n, b = P([F.icon, V.CheckMark]), p = (m) => (d) => {
|
|
807
807
|
switch (d.key) {
|
|
808
808
|
case " ":
|
|
809
809
|
case "SpaceBar":
|
|
@@ -820,7 +820,7 @@ const en = ({ value: n, isSelected: f, onSelect: o }) => {
|
|
|
820
820
|
className: F.option,
|
|
821
821
|
"aria-selected": f,
|
|
822
822
|
tabIndex: 0,
|
|
823
|
-
onKeyDown:
|
|
823
|
+
onKeyDown: p(s),
|
|
824
824
|
onClick: () => o(s),
|
|
825
825
|
children: [
|
|
826
826
|
/* @__PURE__ */ h.jsx("span", { children: l }),
|
|
@@ -828,7 +828,7 @@ const en = ({ value: n, isSelected: f, onSelect: o }) => {
|
|
|
828
828
|
]
|
|
829
829
|
}
|
|
830
830
|
);
|
|
831
|
-
},
|
|
831
|
+
}, nn = ({ values: n, isOpened: f, onClose: o, onSelect: s, dropdownId: l, comboboxId: b, selected: p }) => {
|
|
832
832
|
const m = P([F.dropdown, { [F.dropdown_opened]: f }]), d = (c) => {
|
|
833
833
|
s(c), o(), pe(b);
|
|
834
834
|
}, y = (c) => {
|
|
@@ -856,40 +856,40 @@ const en = ({ value: n, isSelected: f, onSelect: o }) => {
|
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
858
|
};
|
|
859
|
-
return /* @__PURE__ */ h.jsx("ul", { className: m, role: "listbox", id: l, tabIndex: -1, onKeyDown: y, children: n.map((c) => /* @__PURE__ */ h.jsx(
|
|
860
|
-
},
|
|
859
|
+
return /* @__PURE__ */ h.jsx("ul", { className: m, role: "listbox", id: l, tabIndex: -1, onKeyDown: y, children: n.map((c) => /* @__PURE__ */ h.jsx(rn, { value: c, onSelect: () => d(c.id), isSelected: c.id === (p == null ? void 0 : p.id) }, c.id)) });
|
|
860
|
+
}, fn = ({
|
|
861
861
|
id: n,
|
|
862
862
|
values: f,
|
|
863
|
-
|
|
863
|
+
onSelectChange: o,
|
|
864
864
|
name: s,
|
|
865
865
|
label: l,
|
|
866
866
|
required: b = !1,
|
|
867
|
-
placeholder:
|
|
867
|
+
placeholder: p = "Not selected",
|
|
868
868
|
disabled: m = !1,
|
|
869
869
|
...d
|
|
870
870
|
}) => {
|
|
871
|
-
const [y, c] = ee(!1), [R, C] = ee(), g = `${n}_combobox`, k = `${n}_dropdown`, N = P([F.wrapper, d == null ? void 0 : d.className, { [F.disabled]: m }]), M = wr(null), S = () => c(!1),
|
|
871
|
+
const [y, c] = ee(!1), [R, C] = ee(), g = `${n}_combobox`, k = `${n}_dropdown`, N = P([F.wrapper, d == null ? void 0 : d.className, { [F.disabled]: m }]), M = wr(null), S = () => c(!1), E = () => c(!y), re = (ne) => {
|
|
872
872
|
const G = f.find((te) => te.id === ne);
|
|
873
873
|
C(G), o == null || o(G);
|
|
874
874
|
};
|
|
875
|
-
return
|
|
876
|
-
/* @__PURE__ */ h.jsx(
|
|
875
|
+
return Qr({ ref: M, onClickOutsideHandler: S }), /* @__PURE__ */ h.jsxs("div", { className: N, ref: M, children: [
|
|
876
|
+
/* @__PURE__ */ h.jsx(he, { label: l, required: b, inputId: g, className: F.label }),
|
|
877
877
|
/* @__PURE__ */ h.jsx(
|
|
878
|
-
|
|
878
|
+
en,
|
|
879
879
|
{
|
|
880
880
|
name: s,
|
|
881
881
|
isOpened: y,
|
|
882
882
|
comboboxId: g,
|
|
883
883
|
dropdownId: k,
|
|
884
|
-
onClick:
|
|
884
|
+
onClick: E,
|
|
885
885
|
selected: R,
|
|
886
|
-
placeholder:
|
|
886
|
+
placeholder: p,
|
|
887
887
|
disabled: m,
|
|
888
888
|
required: b
|
|
889
889
|
}
|
|
890
890
|
),
|
|
891
891
|
/* @__PURE__ */ h.jsx(
|
|
892
|
-
|
|
892
|
+
nn,
|
|
893
893
|
{
|
|
894
894
|
values: f,
|
|
895
895
|
selected: R,
|
|
@@ -901,19 +901,19 @@ const en = ({ value: n, isSelected: f, onSelect: o }) => {
|
|
|
901
901
|
}
|
|
902
902
|
)
|
|
903
903
|
] });
|
|
904
|
-
},
|
|
905
|
-
wrapper:
|
|
906
|
-
input:
|
|
907
|
-
label:
|
|
908
|
-
disabled:
|
|
909
|
-
},
|
|
904
|
+
}, tn = "_wrapper_1ab48_1", an = "_input_1ab48_9", on = "_label_1ab48_23", sn = "_disabled_1ab48_38", Q = {
|
|
905
|
+
wrapper: tn,
|
|
906
|
+
input: an,
|
|
907
|
+
label: on,
|
|
908
|
+
disabled: sn
|
|
909
|
+
}, dn = ({
|
|
910
910
|
id: n,
|
|
911
911
|
name: f,
|
|
912
912
|
label: o,
|
|
913
913
|
disabled: s,
|
|
914
914
|
required: l = !1,
|
|
915
915
|
onChange: b,
|
|
916
|
-
isLabelHidden:
|
|
916
|
+
isLabelHidden: p,
|
|
917
917
|
className: m,
|
|
918
918
|
...d
|
|
919
919
|
}) => {
|
|
@@ -935,18 +935,18 @@ const en = ({ value: n, isSelected: f, onSelect: o }) => {
|
|
|
935
935
|
required: l,
|
|
936
936
|
checked: y,
|
|
937
937
|
onChange: g,
|
|
938
|
-
"aria-label":
|
|
938
|
+
"aria-label": p ? o : void 0,
|
|
939
939
|
...d
|
|
940
940
|
}
|
|
941
941
|
),
|
|
942
|
-
/* @__PURE__ */ h.jsx(
|
|
942
|
+
/* @__PURE__ */ h.jsx(he, { label: o, required: l, inputId: n, className: C, isTextHidden: p })
|
|
943
943
|
] });
|
|
944
944
|
};
|
|
945
945
|
export {
|
|
946
946
|
V as ChopIcon,
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
947
|
+
ln as ChopLogicButton,
|
|
948
|
+
dn as ChopLogicCheckbox,
|
|
949
|
+
fn as ChopLogicSelect,
|
|
950
|
+
un as ChopLogicTextInput
|
|
951
951
|
};
|
|
952
952
|
//# sourceMappingURL=index.es.js.map
|