jcicl 0.0.327 → 0.0.331
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.
|
@@ -42,14 +42,14 @@ function rt(e = {}) {
|
|
|
42
42
|
trim: x = !1
|
|
43
43
|
} = e;
|
|
44
44
|
return (y, {
|
|
45
|
-
inputValue:
|
|
45
|
+
inputValue: P,
|
|
46
46
|
getOptionLabel: d
|
|
47
47
|
}) => {
|
|
48
|
-
let
|
|
49
|
-
a && (
|
|
50
|
-
const L =
|
|
48
|
+
let I = x ? P.trim() : P;
|
|
49
|
+
a && (I = I.toLowerCase()), n && (I = Vo(I));
|
|
50
|
+
const L = I ? y.filter((X) => {
|
|
51
51
|
let A = (h || d)(X);
|
|
52
|
-
return a && (A = A.toLowerCase()), n && (A = Vo(A)), b === "start" ? A.startsWith(
|
|
52
|
+
return a && (A = A.toLowerCase()), n && (A = Vo(A)), b === "start" ? A.startsWith(I) : A.includes(I);
|
|
53
53
|
}) : y;
|
|
54
54
|
return typeof i == "number" ? L.slice(0, i) : L;
|
|
55
55
|
};
|
|
@@ -69,9 +69,9 @@ function st(e) {
|
|
|
69
69
|
autoSelect: h = !1,
|
|
70
70
|
blurOnSelect: x = !1,
|
|
71
71
|
clearOnBlur: y = !e.freeSolo,
|
|
72
|
-
clearOnEscape:
|
|
72
|
+
clearOnEscape: P = !1,
|
|
73
73
|
componentName: d = "useAutocomplete",
|
|
74
|
-
defaultValue:
|
|
74
|
+
defaultValue: I = e.multiple ? it : null,
|
|
75
75
|
disableClearable: L = !1,
|
|
76
76
|
disableCloseOnSelect: X = !1,
|
|
77
77
|
disabled: A,
|
|
@@ -116,9 +116,9 @@ function st(e) {
|
|
|
116
116
|
};
|
|
117
117
|
const je = m.useRef(!1), Be = m.useRef(!0), k = m.useRef(null), K = m.useRef(null), [Ue, Lo] = m.useState(null), [G, Xe] = m.useState(-1), bo = b ? 0 : -1, z = m.useRef(bo), [s, Ao] = Po({
|
|
118
118
|
controlled: go,
|
|
119
|
-
default:
|
|
119
|
+
default: I,
|
|
120
120
|
name: d
|
|
121
|
-
}), [
|
|
121
|
+
}), [S, Ce] = Po({
|
|
122
122
|
controlled: ye,
|
|
123
123
|
default: "",
|
|
124
124
|
name: d,
|
|
@@ -132,27 +132,27 @@ function st(e) {
|
|
|
132
132
|
else if (t == null)
|
|
133
133
|
c = "";
|
|
134
134
|
else {
|
|
135
|
-
const
|
|
136
|
-
c = typeof
|
|
135
|
+
const O = D(t);
|
|
136
|
+
c = typeof O == "string" ? O : "";
|
|
137
137
|
}
|
|
138
|
-
|
|
139
|
-
}, [D,
|
|
138
|
+
S !== c && (Ce(c), q && q(r, c, l));
|
|
139
|
+
}, [D, S, $, q, Ce, y, s]), [se, Qe] = Po({
|
|
140
140
|
controlled: xe,
|
|
141
141
|
default: !1,
|
|
142
142
|
name: d,
|
|
143
143
|
state: "open"
|
|
144
|
-
}), [Ze, mo] = m.useState(!0), Pe = !$ && s != null &&
|
|
144
|
+
}), [Ze, mo] = m.useState(!0), Pe = !$ && s != null && S === D(s), j = se && !$e, T = j ? Ne(
|
|
145
145
|
Ro.filter((r) => !(me && ($ ? s : [s]).some((t) => t !== null && W(r, t)))),
|
|
146
146
|
// we use the empty string to manipulate `filterOptions` to not filter any options
|
|
147
147
|
// i.e. the filter predicate always returns true
|
|
148
148
|
{
|
|
149
|
-
inputValue: Pe && Ze ? "" :
|
|
149
|
+
inputValue: Pe && Ze ? "" : S,
|
|
150
150
|
getOptionLabel: D
|
|
151
151
|
}
|
|
152
152
|
) : [], Q = nt({
|
|
153
153
|
filteredOptions: T,
|
|
154
154
|
value: s,
|
|
155
|
-
inputValue:
|
|
155
|
+
inputValue: S
|
|
156
156
|
});
|
|
157
157
|
m.useEffect(() => {
|
|
158
158
|
const r = s !== Q.value;
|
|
@@ -192,9 +192,9 @@ function st(e) {
|
|
|
192
192
|
c.scrollTop = 0;
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
|
-
const
|
|
196
|
-
if (
|
|
197
|
-
const C =
|
|
195
|
+
const O = K.current.querySelector(`[data-option-index="${t}"]`);
|
|
196
|
+
if (O && (O.classList.add(`${a}-focused`), l === "keyboard" && O.classList.add(`${a}-focusVisible`), c.scrollHeight > c.clientHeight && l !== "mouse" && l !== "touch")) {
|
|
197
|
+
const C = O, B = c.clientHeight + c.scrollTop, Le = C.offsetTop + C.offsetHeight;
|
|
198
198
|
Le > B ? c.scrollTop = Le - c.clientHeight : C.offsetTop - C.offsetHeight * (oe ? 1.3 : 0) < c.scrollTop && (c.scrollTop = C.offsetTop - C.offsetHeight * (oe ? 1.3 : 0));
|
|
199
199
|
}
|
|
200
200
|
}), Y = io(({
|
|
@@ -205,7 +205,7 @@ function st(e) {
|
|
|
205
205
|
}) => {
|
|
206
206
|
if (!j)
|
|
207
207
|
return;
|
|
208
|
-
const
|
|
208
|
+
const O = eo((() => {
|
|
209
209
|
const C = T.length - 1;
|
|
210
210
|
if (t === "reset")
|
|
211
211
|
return bo;
|
|
@@ -217,22 +217,22 @@ function st(e) {
|
|
|
217
217
|
return B < 0 ? B === -1 && de ? -1 : ue && z.current !== -1 || Math.abs(t) > 1 ? 0 : C : B > C ? B === C + 1 && de ? -1 : ue || Math.abs(t) > 1 ? C : 0 : B;
|
|
218
218
|
})(), l);
|
|
219
219
|
if (te({
|
|
220
|
-
index:
|
|
220
|
+
index: O,
|
|
221
221
|
reason: p,
|
|
222
222
|
event: r
|
|
223
223
|
}), i && t !== "reset")
|
|
224
|
-
if (
|
|
225
|
-
k.current.value =
|
|
224
|
+
if (O === -1)
|
|
225
|
+
k.current.value = S;
|
|
226
226
|
else {
|
|
227
|
-
const C = D(T[
|
|
228
|
-
k.current.value = C, C.toLowerCase().indexOf(
|
|
227
|
+
const C = D(T[O]);
|
|
228
|
+
k.current.value = C, C.toLowerCase().indexOf(S.toLowerCase()) === 0 && S.length > 0 && k.current.setSelectionRange(S.length, C.length);
|
|
229
229
|
}
|
|
230
230
|
}), ho = () => {
|
|
231
231
|
const r = (t, l) => {
|
|
232
232
|
const p = t ? D(t) : "", c = l ? D(l) : "";
|
|
233
233
|
return p === c;
|
|
234
234
|
};
|
|
235
|
-
if (z.current !== -1 && Q.filteredOptions && Q.filteredOptions.length !== T.length && Q.inputValue ===
|
|
235
|
+
if (z.current !== -1 && Q.filteredOptions && Q.filteredOptions.length !== T.length && Q.inputValue === S && ($ ? s.length === Q.value.length && Q.value.every((t, l) => D(s[l]) === D(t)) : r(Q.value, s))) {
|
|
236
236
|
const t = Q.filteredOptions[z.current];
|
|
237
237
|
if (t)
|
|
238
238
|
return T.findIndex((l) => D(l) === D(t));
|
|
@@ -286,7 +286,7 @@ function st(e) {
|
|
|
286
286
|
Y,
|
|
287
287
|
te,
|
|
288
288
|
j,
|
|
289
|
-
|
|
289
|
+
S,
|
|
290
290
|
$
|
|
291
291
|
]), yo = io((r) => {
|
|
292
292
|
Zo(K, r), r && Ke();
|
|
@@ -304,23 +304,23 @@ function st(e) {
|
|
|
304
304
|
se && (Qe(!1), _ && _(r, t));
|
|
305
305
|
}, pe = (r, t, l, p) => {
|
|
306
306
|
if ($) {
|
|
307
|
-
if (s.length === t.length && s.every((c,
|
|
307
|
+
if (s.length === t.length && s.every((c, O) => c === t[O]))
|
|
308
308
|
return;
|
|
309
309
|
} else if (s === t)
|
|
310
310
|
return;
|
|
311
311
|
fe && fe(r, t, l, p), Ao(t);
|
|
312
312
|
}, we = m.useRef(!1), ge = (r, t, l = "selectOption", p = "options") => {
|
|
313
|
-
let c = l,
|
|
313
|
+
let c = l, O = t;
|
|
314
314
|
if ($) {
|
|
315
|
-
if (
|
|
316
|
-
const B =
|
|
315
|
+
if (O = Array.isArray(s) ? s.slice() : [], process.env.NODE_ENV !== "production") {
|
|
316
|
+
const B = O.filter((Le) => W(t, Le));
|
|
317
317
|
B.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${d} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${B.length} matches.`].join(`
|
|
318
318
|
`));
|
|
319
319
|
}
|
|
320
|
-
const C =
|
|
321
|
-
C === -1 ?
|
|
320
|
+
const C = O.findIndex((B) => W(t, B));
|
|
321
|
+
C === -1 ? O.push(t) : p !== "freeSolo" && (O.splice(C, 1), c = "removeOption");
|
|
322
322
|
}
|
|
323
|
-
Oe(r,
|
|
323
|
+
Oe(r, O, c), pe(r, O, c, {
|
|
324
324
|
option: t
|
|
325
325
|
}), !X && (!r || !r.ctrlKey && !r.metaKey) && re(r, c), (x === !0 || x === "touch" && we.current || x === "mouse" && !we.current) && k.current.blur();
|
|
326
326
|
};
|
|
@@ -341,9 +341,9 @@ function st(e) {
|
|
|
341
341
|
const Ge = (r, t) => {
|
|
342
342
|
if (!$)
|
|
343
343
|
return;
|
|
344
|
-
|
|
344
|
+
S === "" && re(r, "toggleInput");
|
|
345
345
|
let l = G;
|
|
346
|
-
G === -1 ?
|
|
346
|
+
G === -1 ? S === "" && t === "previous" && (l = s.length - 1) : (l += t === "next" ? 1 : -1, l < 0 && (l = 0), l === s.length && (l = -1)), l = Te(l, t), Xe(l), Se(l);
|
|
347
347
|
}, oo = (r) => {
|
|
348
348
|
je.current = !0, Ce(""), q && q(r, "", "clear"), pe(r, $ ? [] : null, "clear");
|
|
349
349
|
}, ke = (r) => (t) => {
|
|
@@ -409,13 +409,13 @@ function st(e) {
|
|
|
409
409
|
if (t.preventDefault(), p)
|
|
410
410
|
return;
|
|
411
411
|
ge(t, l, "selectOption"), i && k.current.setSelectionRange(k.current.value.length, k.current.value.length);
|
|
412
|
-
} else le &&
|
|
412
|
+
} else le && S !== "" && Pe === !1 && ($ && t.preventDefault(), ge(t, S, "createOption", "freeSolo"));
|
|
413
413
|
break;
|
|
414
414
|
case "Escape":
|
|
415
|
-
j ? (t.preventDefault(), t.stopPropagation(), re(t, "escape")) :
|
|
415
|
+
j ? (t.preventDefault(), t.stopPropagation(), re(t, "escape")) : P && (S !== "" || $ && s.length > 0) && (t.preventDefault(), t.stopPropagation(), oo(t));
|
|
416
416
|
break;
|
|
417
417
|
case "Backspace":
|
|
418
|
-
if ($ && !$e &&
|
|
418
|
+
if ($ && !$e && S === "" && s.length > 0) {
|
|
419
419
|
const l = G === -1 ? s.length - 1 : G, p = s.slice();
|
|
420
420
|
p.splice(l, 1), pe(t, p, "removeOption", {
|
|
421
421
|
option: s[l]
|
|
@@ -423,7 +423,7 @@ function st(e) {
|
|
|
423
423
|
}
|
|
424
424
|
break;
|
|
425
425
|
case "Delete":
|
|
426
|
-
if ($ && !$e &&
|
|
426
|
+
if ($ && !$e && S === "" && s.length > 0 && G !== -1) {
|
|
427
427
|
const l = G, p = s.slice();
|
|
428
428
|
p.splice(l, 1), pe(t, p, "removeOption", {
|
|
429
429
|
option: s[l]
|
|
@@ -438,10 +438,10 @@ function st(e) {
|
|
|
438
438
|
k.current.focus();
|
|
439
439
|
return;
|
|
440
440
|
}
|
|
441
|
-
He(!1), Be.current = !0, je.current = !1, h && z.current !== -1 && j ? ge(r, T[z.current], "blur") : h && le &&
|
|
441
|
+
He(!1), Be.current = !0, je.current = !1, h && z.current !== -1 && j ? ge(r, T[z.current], "blur") : h && le && S !== "" ? ge(r, S, "blur", "freeSolo") : y && Oe(r, s, "blur"), re(r, "blur");
|
|
442
442
|
}, Re = (r) => {
|
|
443
443
|
const t = r.target.value;
|
|
444
|
-
|
|
444
|
+
S !== t && (Ce(t), mo(!1), q && q(r, t, "input")), t === "" ? !L && !$ && pe(r, null, "clear") : ne(r);
|
|
445
445
|
}, _e = (r) => {
|
|
446
446
|
const t = Number(r.currentTarget.getAttribute("data-option-index"));
|
|
447
447
|
z.current !== t && te({
|
|
@@ -470,20 +470,20 @@ function st(e) {
|
|
|
470
470
|
}, Ye = (r) => {
|
|
471
471
|
r.currentTarget.contains(r.target) && (k.current.focus(), Fe && Be.current && k.current.selectionEnd - k.current.selectionStart === 0 && k.current.select(), Be.current = !1);
|
|
472
472
|
}, N = (r) => {
|
|
473
|
-
!A && (
|
|
473
|
+
!A && (S === "" || !se) && (no(r), r.stopPropagation());
|
|
474
474
|
};
|
|
475
|
-
let R = le &&
|
|
475
|
+
let R = le && S.length > 0;
|
|
476
476
|
R = R || ($ ? s.length > 0 : s !== null);
|
|
477
477
|
let ae = T;
|
|
478
478
|
if (oe) {
|
|
479
479
|
const r = /* @__PURE__ */ new Map();
|
|
480
480
|
let t = !1;
|
|
481
481
|
ae = T.reduce((l, p, c) => {
|
|
482
|
-
const
|
|
483
|
-
return l.length > 0 && l[l.length - 1].group ===
|
|
482
|
+
const O = oe(p);
|
|
483
|
+
return l.length > 0 && l[l.length - 1].group === O ? l[l.length - 1].options.push(p) : (process.env.NODE_ENV !== "production" && (r.get(O) && !t && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${d} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), t = !0), r.set(O, !0)), l.push({
|
|
484
484
|
key: c,
|
|
485
485
|
index: c,
|
|
486
|
-
group:
|
|
486
|
+
group: O,
|
|
487
487
|
options: [p]
|
|
488
488
|
})), l;
|
|
489
489
|
}, []);
|
|
@@ -502,7 +502,7 @@ function st(e) {
|
|
|
502
502
|
}),
|
|
503
503
|
getInputProps: () => ({
|
|
504
504
|
id: U,
|
|
505
|
-
value:
|
|
505
|
+
value: S,
|
|
506
506
|
onBlur: to,
|
|
507
507
|
onFocus: vo,
|
|
508
508
|
onChange: Re,
|
|
@@ -571,7 +571,7 @@ function st(e) {
|
|
|
571
571
|
};
|
|
572
572
|
},
|
|
573
573
|
id: U,
|
|
574
|
-
inputValue:
|
|
574
|
+
inputValue: S,
|
|
575
575
|
value: s,
|
|
576
576
|
dirty: R,
|
|
577
577
|
expanded: j && Ue,
|
|
@@ -666,15 +666,15 @@ const ct = (e) => {
|
|
|
666
666
|
color: h = "default",
|
|
667
667
|
component: x = "li",
|
|
668
668
|
disableGutters: y = !1,
|
|
669
|
-
disableSticky:
|
|
669
|
+
disableSticky: P = !1,
|
|
670
670
|
inset: d = !1,
|
|
671
|
-
...
|
|
671
|
+
...I
|
|
672
672
|
} = i, L = {
|
|
673
673
|
...i,
|
|
674
674
|
color: h,
|
|
675
675
|
component: x,
|
|
676
676
|
disableGutters: y,
|
|
677
|
-
disableSticky:
|
|
677
|
+
disableSticky: P,
|
|
678
678
|
inset: d
|
|
679
679
|
}, X = ct(L);
|
|
680
680
|
return /* @__PURE__ */ w(ut, {
|
|
@@ -682,7 +682,7 @@ const ct = (e) => {
|
|
|
682
682
|
className: J(X.root, b),
|
|
683
683
|
ref: a,
|
|
684
684
|
ownerState: L,
|
|
685
|
-
...
|
|
685
|
+
...I
|
|
686
686
|
});
|
|
687
687
|
});
|
|
688
688
|
so && (so.muiSkipListHighlight = !0);
|
|
@@ -873,26 +873,26 @@ const ft = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
873
873
|
children: h,
|
|
874
874
|
className: x,
|
|
875
875
|
color: y = "default",
|
|
876
|
-
disabled:
|
|
876
|
+
disabled: P = !1,
|
|
877
877
|
disableFocusRipple: d = !1,
|
|
878
|
-
disableRipple:
|
|
878
|
+
disableRipple: I = !1,
|
|
879
879
|
size: L = "medium",
|
|
880
880
|
...X
|
|
881
881
|
} = i, A = {
|
|
882
882
|
...i,
|
|
883
883
|
edge: b,
|
|
884
884
|
color: y,
|
|
885
|
-
disabled:
|
|
885
|
+
disabled: P,
|
|
886
886
|
disableFocusRipple: d,
|
|
887
|
-
disableRipple:
|
|
887
|
+
disableRipple: I,
|
|
888
888
|
size: L
|
|
889
889
|
}, E = gt(A);
|
|
890
890
|
return /* @__PURE__ */ w(bt, {
|
|
891
891
|
className: J(E.root, x),
|
|
892
892
|
centerRipple: !0,
|
|
893
893
|
focusRipple: !d,
|
|
894
|
-
disabled:
|
|
895
|
-
disableRipple:
|
|
894
|
+
disabled: P,
|
|
895
|
+
disableRipple: I,
|
|
896
896
|
ref: a,
|
|
897
897
|
...X,
|
|
898
898
|
ownerState: A,
|
|
@@ -976,13 +976,13 @@ const g = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
976
976
|
iconColor: h,
|
|
977
977
|
onDelete: x,
|
|
978
978
|
clickable: y,
|
|
979
|
-
variant:
|
|
979
|
+
variant: P
|
|
980
980
|
} = e, d = {
|
|
981
|
-
root: ["root",
|
|
981
|
+
root: ["root", P, a && "disabled", `size${f(i)}`, `color${f(b)}`, y && "clickable", y && `clickableColor${f(b)}`, x && "deletable", x && `deletableColor${f(b)}`, `${P}${f(b)}`],
|
|
982
982
|
label: ["label", `label${f(i)}`],
|
|
983
983
|
avatar: ["avatar", `avatar${f(i)}`, `avatarColor${f(b)}`],
|
|
984
984
|
icon: ["icon", `icon${f(i)}`, `iconColor${f(h)}`],
|
|
985
|
-
deleteIcon: ["deleteIcon", `deleteIcon${f(i)}`, `deleteIconColor${f(b)}`, `deleteIcon${f(
|
|
985
|
+
deleteIcon: ["deleteIcon", `deleteIcon${f(i)}`, `deleteIconColor${f(b)}`, `deleteIcon${f(P)}Color${f(b)}`]
|
|
986
986
|
};
|
|
987
987
|
return fo(d, ht, n);
|
|
988
988
|
}, vt = F("div", {
|
|
@@ -997,7 +997,7 @@ const g = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
997
997
|
clickable: h,
|
|
998
998
|
onDelete: x,
|
|
999
999
|
size: y,
|
|
1000
|
-
variant:
|
|
1000
|
+
variant: P
|
|
1001
1001
|
} = a;
|
|
1002
1002
|
return [{
|
|
1003
1003
|
[`& .${g.avatar}`]: n.avatar
|
|
@@ -1018,8 +1018,8 @@ const g = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1018
1018
|
}, {
|
|
1019
1019
|
[`& .${g.deleteIcon}`]: n[`deleteIconColor${f(i)}`]
|
|
1020
1020
|
}, {
|
|
1021
|
-
[`& .${g.deleteIcon}`]: n[`deleteIcon${f(
|
|
1022
|
-
}, n.root, n[`size${f(y)}`], n[`color${f(i)}`], h && n.clickable, h && i !== "default" && n[`clickableColor${f(i)})`], x && n.deletable, x && i !== "default" && n[`deletableColor${f(i)}`], n[
|
|
1021
|
+
[`& .${g.deleteIcon}`]: n[`deleteIcon${f(P)}Color${f(i)}`]
|
|
1022
|
+
}, n.root, n[`size${f(y)}`], n[`color${f(i)}`], h && n.clickable, h && i !== "default" && n[`clickableColor${f(i)})`], x && n.deletable, x && i !== "default" && n[`deletableColor${f(i)}`], n[P], n[`${P}${f(i)}`]];
|
|
1023
1023
|
}
|
|
1024
1024
|
})(ee(({
|
|
1025
1025
|
theme: e
|
|
@@ -1293,9 +1293,9 @@ const _o = /* @__PURE__ */ m.forwardRef(function(n, a) {
|
|
|
1293
1293
|
className: h,
|
|
1294
1294
|
clickable: x,
|
|
1295
1295
|
color: y = "default",
|
|
1296
|
-
component:
|
|
1296
|
+
component: P,
|
|
1297
1297
|
deleteIcon: d,
|
|
1298
|
-
disabled:
|
|
1298
|
+
disabled: I = !1,
|
|
1299
1299
|
icon: L,
|
|
1300
1300
|
label: X,
|
|
1301
1301
|
onClick: A,
|
|
@@ -1314,10 +1314,10 @@ const _o = /* @__PURE__ */ m.forwardRef(function(n, a) {
|
|
|
1314
1314
|
M.currentTarget === M.target && jo(M) && M.preventDefault(), ue && ue(M);
|
|
1315
1315
|
}, ye = (M) => {
|
|
1316
1316
|
M.currentTarget === M.target && E && jo(M) && E(M), Ne && Ne(M);
|
|
1317
|
-
}, W = x !== !1 && A ? !0 : x, $ = W || E ? So :
|
|
1317
|
+
}, W = x !== !1 && A ? !0 : x, $ = W || E ? So : P || "div", fe = {
|
|
1318
1318
|
...i,
|
|
1319
1319
|
component: $,
|
|
1320
|
-
disabled:
|
|
1320
|
+
disabled: I,
|
|
1321
1321
|
size: me,
|
|
1322
1322
|
color: y,
|
|
1323
1323
|
iconColor: /* @__PURE__ */ m.isValidElement(L) && L.props.color || y,
|
|
@@ -1325,7 +1325,7 @@ const _o = /* @__PURE__ */ m.forwardRef(function(n, a) {
|
|
|
1325
1325
|
clickable: W,
|
|
1326
1326
|
variant: le
|
|
1327
1327
|
}, _ = yt(fe), ve = $ === So ? {
|
|
1328
|
-
component:
|
|
1328
|
+
component: P || "div",
|
|
1329
1329
|
focusVisibleClassName: _.focusVisible,
|
|
1330
1330
|
...E && {
|
|
1331
1331
|
disableRipple: !0
|
|
@@ -1349,12 +1349,12 @@ const _o = /* @__PURE__ */ m.forwardRef(function(n, a) {
|
|
|
1349
1349
|
})), process.env.NODE_ENV !== "production" && ie && xe && console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."), /* @__PURE__ */ De(vt, {
|
|
1350
1350
|
as: $,
|
|
1351
1351
|
className: J(_.root, h),
|
|
1352
|
-
disabled: W &&
|
|
1352
|
+
disabled: W && I ? !0 : void 0,
|
|
1353
1353
|
onClick: A,
|
|
1354
1354
|
onKeyDown: de,
|
|
1355
1355
|
onKeyUp: ye,
|
|
1356
1356
|
ref: ze,
|
|
1357
|
-
tabIndex: he &&
|
|
1357
|
+
tabIndex: he && I ? -1 : H,
|
|
1358
1358
|
ownerState: fe,
|
|
1359
1359
|
...ve,
|
|
1360
1360
|
...Ee,
|
|
@@ -1484,14 +1484,14 @@ const It = (e) => {
|
|
|
1484
1484
|
fullWidth: h,
|
|
1485
1485
|
hasClearIcon: x,
|
|
1486
1486
|
hasPopupIcon: y,
|
|
1487
|
-
inputFocused:
|
|
1487
|
+
inputFocused: P,
|
|
1488
1488
|
popupOpen: d,
|
|
1489
|
-
size:
|
|
1489
|
+
size: I
|
|
1490
1490
|
} = e, L = {
|
|
1491
1491
|
root: ["root", i && "expanded", b && "focused", h && "fullWidth", x && "hasClearIcon", y && "hasPopupIcon"],
|
|
1492
1492
|
inputRoot: ["inputRoot"],
|
|
1493
|
-
input: ["input",
|
|
1494
|
-
tag: ["tag", `tagSize${f(
|
|
1493
|
+
input: ["input", P && "inputFocused"],
|
|
1494
|
+
tag: ["tag", `tagSize${f(I)}`],
|
|
1495
1495
|
endAdornment: ["endAdornment"],
|
|
1496
1496
|
clearIndicator: ["clearIndicator"],
|
|
1497
1497
|
popupIndicator: ["popupIndicator", d && "popupIndicatorOpen"],
|
|
@@ -1845,9 +1845,9 @@ const It = (e) => {
|
|
|
1845
1845
|
autoHighlight: h = !1,
|
|
1846
1846
|
autoSelect: x = !1,
|
|
1847
1847
|
blurOnSelect: y = !1,
|
|
1848
|
-
ChipProps:
|
|
1848
|
+
ChipProps: P,
|
|
1849
1849
|
className: d,
|
|
1850
|
-
clearIcon:
|
|
1850
|
+
clearIcon: I = Bo || (Bo = /* @__PURE__ */ w($t, {
|
|
1851
1851
|
fontSize: "small"
|
|
1852
1852
|
})),
|
|
1853
1853
|
clearOnBlur: L = !i.freeSolo,
|
|
@@ -1893,7 +1893,7 @@ const It = (e) => {
|
|
|
1893
1893
|
openOnFocus: z = !1,
|
|
1894
1894
|
openText: s = "Open",
|
|
1895
1895
|
options: Ao,
|
|
1896
|
-
PaperComponent:
|
|
1896
|
+
PaperComponent: S,
|
|
1897
1897
|
PopperComponent: Ce,
|
|
1898
1898
|
popupIcon: Ie = Uo || (Uo = /* @__PURE__ */ w(Xo, {})),
|
|
1899
1899
|
readOnly: He = !1,
|
|
@@ -1950,12 +1950,12 @@ const It = (e) => {
|
|
|
1950
1950
|
}, R = It(N), ae = {
|
|
1951
1951
|
slots: {
|
|
1952
1952
|
listbox: go,
|
|
1953
|
-
paper:
|
|
1953
|
+
paper: S,
|
|
1954
1954
|
popper: Ce,
|
|
1955
1955
|
...j
|
|
1956
1956
|
},
|
|
1957
1957
|
slotProps: {
|
|
1958
|
-
chip:
|
|
1958
|
+
chip: P,
|
|
1959
1959
|
listbox: U,
|
|
1960
1960
|
...ue,
|
|
1961
1961
|
...T
|
|
@@ -1972,7 +1972,7 @@ const It = (e) => {
|
|
|
1972
1972
|
externalForwardedProps: ae,
|
|
1973
1973
|
ownerState: N,
|
|
1974
1974
|
className: R.paper
|
|
1975
|
-
}), [c,
|
|
1975
|
+
}), [c, O] = Oo("popper", {
|
|
1976
1976
|
elementType: Ko,
|
|
1977
1977
|
externalForwardedProps: ae,
|
|
1978
1978
|
ownerState: N,
|
|
@@ -2051,7 +2051,7 @@ const It = (e) => {
|
|
|
2051
2051
|
}, N);
|
|
2052
2052
|
}, ro = ae.slotProps.clearIndicator, ao = ae.slotProps.popupIndicator, Co = (v) => /* @__PURE__ */ w(Tt, {
|
|
2053
2053
|
as: c,
|
|
2054
|
-
...
|
|
2054
|
+
...O,
|
|
2055
2055
|
children: /* @__PURE__ */ w(kt, {
|
|
2056
2056
|
as: l,
|
|
2057
2057
|
...p,
|
|
@@ -2107,7 +2107,7 @@ const It = (e) => {
|
|
|
2107
2107
|
ownerState: N,
|
|
2108
2108
|
...ro,
|
|
2109
2109
|
className: J(R.clearIndicator, ro == null ? void 0 : ro.className),
|
|
2110
|
-
children:
|
|
2110
|
+
children: I
|
|
2111
2111
|
}) : null, qe ? /* @__PURE__ */ w(wt, {
|
|
2112
2112
|
...Y(),
|
|
2113
2113
|
disabled: H,
|
|
@@ -2672,7 +2672,7 @@ const Nt = ["colon"], Et = Jo("div", { shouldForwardProp: (e) => !Nt.includes(e)
|
|
|
2672
2672
|
onChange: h,
|
|
2673
2673
|
minWidth: x,
|
|
2674
2674
|
multiple: y,
|
|
2675
|
-
...
|
|
2675
|
+
...P
|
|
2676
2676
|
}) => /* @__PURE__ */ De(
|
|
2677
2677
|
Et,
|
|
2678
2678
|
{
|
|
@@ -2690,11 +2690,11 @@ const Nt = ["colon"], Et = Jo("div", { shouldForwardProp: (e) => !Nt.includes(e)
|
|
|
2690
2690
|
To,
|
|
2691
2691
|
{
|
|
2692
2692
|
options: a,
|
|
2693
|
-
onChange: (d,
|
|
2693
|
+
onChange: (d, I) => (
|
|
2694
2694
|
// @ts-ignore
|
|
2695
|
-
h && h({ ...d, target: { ...d.target, value: `${
|
|
2695
|
+
h && h({ ...d, target: { ...d.target, value: `${I == null ? void 0 : I.value}` || "" } })
|
|
2696
2696
|
),
|
|
2697
|
-
...
|
|
2697
|
+
...P,
|
|
2698
2698
|
renderInput: (d) => /* @__PURE__ */ w(zo, { ...d })
|
|
2699
2699
|
}
|
|
2700
2700
|
),
|
|
@@ -2705,11 +2705,11 @@ const Nt = ["colon"], Et = Jo("div", { shouldForwardProp: (e) => !Nt.includes(e)
|
|
|
2705
2705
|
multiple: !0,
|
|
2706
2706
|
disableCloseOnSelect: !0,
|
|
2707
2707
|
options: a,
|
|
2708
|
-
onChange: (d) => (
|
|
2708
|
+
onChange: (d, I) => (
|
|
2709
2709
|
// @ts-ignore
|
|
2710
|
-
h && h({ ...d, target: { ...d.target, value:
|
|
2710
|
+
h && h({ ...d, target: { ...d.target, value: I } })
|
|
2711
2711
|
),
|
|
2712
|
-
...
|
|
2712
|
+
...P,
|
|
2713
2713
|
renderInput: (d) => /* @__PURE__ */ w(zo, { ...d })
|
|
2714
2714
|
}
|
|
2715
2715
|
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type LabeledTextAreaProps } from './LabeledTextArea.tsx';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jcicl",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.331",
|
|
5
5
|
"description": "Component library for the websites of Johnson County Iowa",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://devops.jc.net/JCIT/Business%20Solutions%20Delivery/_git/JCComponentLibrary?path=%2FREADME.md&version=GBmaster",
|