jcicl 0.0.325 → 0.0.329

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: O,
45
+ inputValue: P,
46
46
  getOptionLabel: d
47
47
  }) => {
48
- let S = x ? O.trim() : O;
49
- a && (S = S.toLowerCase()), n && (S = Vo(S));
50
- const L = S ? y.filter((X) => {
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(S) : A.includes(S);
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: O = !1,
72
+ clearOnEscape: P = !1,
73
73
  componentName: d = "useAutocomplete",
74
- defaultValue: S = e.multiple ? it : null,
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: S,
119
+ default: I,
120
120
  name: d
121
- }), [P, Ce] = Po({
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 I = D(t);
136
- c = typeof I == "string" ? I : "";
135
+ const O = D(t);
136
+ c = typeof O == "string" ? O : "";
137
137
  }
138
- P !== c && (Ce(c), q && q(r, c, l));
139
- }, [D, P, $, q, Ce, y, s]), [se, Qe] = Po({
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 && P === D(s), j = se && !$e, T = j ? Ne(
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 ? "" : P,
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: P
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 I = K.current.querySelector(`[data-option-index="${t}"]`);
196
- if (I && (I.classList.add(`${a}-focused`), l === "keyboard" && I.classList.add(`${a}-focusVisible`), c.scrollHeight > c.clientHeight && l !== "mouse" && l !== "touch")) {
197
- const C = I, B = c.clientHeight + c.scrollTop, Le = C.offsetTop + C.offsetHeight;
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 I = eo((() => {
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: I,
220
+ index: O,
221
221
  reason: p,
222
222
  event: r
223
223
  }), i && t !== "reset")
224
- if (I === -1)
225
- k.current.value = P;
224
+ if (O === -1)
225
+ k.current.value = S;
226
226
  else {
227
- const C = D(T[I]);
228
- k.current.value = C, C.toLowerCase().indexOf(P.toLowerCase()) === 0 && P.length > 0 && k.current.setSelectionRange(P.length, C.length);
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 === P && ($ ? s.length === Q.value.length && Q.value.every((t, l) => D(s[l]) === D(t)) : r(Q.value, s))) {
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
- P,
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, I) => c === t[I]))
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, I = t;
313
+ let c = l, O = t;
314
314
  if ($) {
315
- if (I = Array.isArray(s) ? s.slice() : [], process.env.NODE_ENV !== "production") {
316
- const B = I.filter((Le) => W(t, Le));
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 = I.findIndex((B) => W(t, B));
321
- C === -1 ? I.push(t) : p !== "freeSolo" && (I.splice(C, 1), c = "removeOption");
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, I, c), pe(r, I, c, {
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
- P === "" && re(r, "toggleInput");
344
+ S === "" && re(r, "toggleInput");
345
345
  let l = G;
346
- G === -1 ? P === "" && 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);
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 && P !== "" && Pe === !1 && ($ && t.preventDefault(), ge(t, P, "createOption", "freeSolo"));
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")) : O && (P !== "" || $ && s.length > 0) && (t.preventDefault(), t.stopPropagation(), oo(t));
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 && P === "" && s.length > 0) {
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 && P === "" && s.length > 0 && G !== -1) {
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 && P !== "" ? ge(r, P, "blur", "freeSolo") : y && Oe(r, s, "blur"), re(r, "blur");
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
- P !== t && (Ce(t), mo(!1), q && q(r, t, "input")), t === "" ? !L && !$ && pe(r, null, "clear") : ne(r);
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 && (P === "" || !se) && (no(r), r.stopPropagation());
473
+ !A && (S === "" || !se) && (no(r), r.stopPropagation());
474
474
  };
475
- let R = le && P.length > 0;
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 I = oe(p);
483
- return l.length > 0 && l[l.length - 1].group === I ? l[l.length - 1].options.push(p) : (process.env.NODE_ENV !== "production" && (r.get(I) && !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(I, !0)), l.push({
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: I,
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: P,
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: P,
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: O = !1,
669
+ disableSticky: P = !1,
670
670
  inset: d = !1,
671
- ...S
671
+ ...I
672
672
  } = i, L = {
673
673
  ...i,
674
674
  color: h,
675
675
  component: x,
676
676
  disableGutters: y,
677
- disableSticky: O,
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
- ...S
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: O = !1,
876
+ disabled: P = !1,
877
877
  disableFocusRipple: d = !1,
878
- disableRipple: S = !1,
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: O,
885
+ disabled: P,
886
886
  disableFocusRipple: d,
887
- disableRipple: S,
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: O,
895
- disableRipple: S,
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: O
979
+ variant: P
980
980
  } = e, d = {
981
- root: ["root", O, a && "disabled", `size${f(i)}`, `color${f(b)}`, y && "clickable", y && `clickableColor${f(b)}`, x && "deletable", x && `deletableColor${f(b)}`, `${O}${f(b)}`],
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(O)}Color${f(b)}`]
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: O
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(O)}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[O], n[`${O}${f(i)}`]];
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: O,
1296
+ component: P,
1297
1297
  deleteIcon: d,
1298
- disabled: S = !1,
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 : O || "div", fe = {
1317
+ }, W = x !== !1 && A ? !0 : x, $ = W || E ? So : P || "div", fe = {
1318
1318
  ...i,
1319
1319
  component: $,
1320
- disabled: S,
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: O || "div",
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 && S ? !0 : void 0,
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 && S ? -1 : H,
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: O,
1487
+ inputFocused: P,
1488
1488
  popupOpen: d,
1489
- size: S
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", O && "inputFocused"],
1494
- tag: ["tag", `tagSize${f(S)}`],
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: O,
1848
+ ChipProps: P,
1849
1849
  className: d,
1850
- clearIcon: S = Bo || (Bo = /* @__PURE__ */ w($t, {
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: P,
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: P,
1953
+ paper: S,
1954
1954
  popper: Ce,
1955
1955
  ...j
1956
1956
  },
1957
1957
  slotProps: {
1958
- chip: O,
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, I] = Oo("popper", {
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
- ...I,
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: S
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
- ...O
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, S) => (
2693
+ onChange: (d, I) => (
2694
2694
  // @ts-ignore
2695
- h && h({ ...d, target: { ...d.target, value: `${S == null ? void 0 : S.value}` || "" } })
2695
+ h && h({ ...d, target: { ...d.target, value: `${I == null ? void 0 : I.value}` || "" } })
2696
2696
  ),
2697
- ...O,
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: d.target.innerText || "" } })
2710
+ h && h({ ...d, target: { ...d.target, value: I } })
2711
2711
  ),
2712
- ...O,
2712
+ ...P,
2713
2713
  renderInput: (d) => /* @__PURE__ */ w(zo, { ...d })
2714
2714
  }
2715
2715
  )
package/Table/Table.js CHANGED
@@ -1,22 +1,22 @@
1
- import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
- import ze, { forwardRef as X, createElement as F, useState as y, useMemo as T } from "react";
3
- import I from "../theme.js";
1
+ import { jsxs as s, jsx as o } from "react/jsx-runtime";
2
+ import je, { forwardRef as X, createElement as F, useState as y, useMemo as I } from "react";
3
+ import N from "../theme.js";
4
4
  import { n as i } from "../.chunks/emotion-styled.browser.esm.js";
5
- import { Button as Ae } from "../Button/Button.js";
6
- import { Flex as je } from "../Flex/Flex.js";
5
+ import { Button as ze } from "../Button/Button.js";
6
+ import { Flex as Ae } from "../Flex/Flex.js";
7
7
  /**
8
8
  * @license lucide-react v0.525.0 - ISC
9
9
  *
10
10
  * This source code is licensed under the ISC license.
11
11
  * See the LICENSE file in the root directory of this source tree.
12
12
  */
13
- const Be = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ie = (n) => n.replace(
13
+ const Te = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ne = (n) => n.replace(
14
14
  /^([A-Z])|[\s-_]+(\w)/g,
15
15
  (r, l, u) => u ? u.toUpperCase() : l.toLowerCase()
16
16
  ), G = (n) => {
17
- const r = Ie(n);
17
+ const r = Ne(n);
18
18
  return r.charAt(0).toUpperCase() + r.slice(1);
19
- }, P = (...n) => n.filter((r, l, u) => !!r && r.trim() !== "" && u.indexOf(r) === l).join(" ").trim(), _e = (n) => {
19
+ }, P = (...n) => n.filter((r, l, u) => !!r && r.trim() !== "" && u.indexOf(r) === l).join(" ").trim(), Be = (n) => {
20
20
  for (const r in n)
21
21
  if (r.startsWith("aria-") || r === "role" || r === "title")
22
22
  return !0;
@@ -44,31 +44,31 @@ var De = {
44
44
  * This source code is licensed under the ISC license.
45
45
  * See the LICENSE file in the root directory of this source tree.
46
46
  */
47
- const Te = X(
47
+ const Ie = X(
48
48
  ({
49
49
  color: n = "currentColor",
50
50
  size: r = 24,
51
51
  strokeWidth: l = 2,
52
52
  absoluteStrokeWidth: u,
53
- className: C = "",
53
+ className: m = "",
54
54
  children: g,
55
- iconNode: M,
56
- ...A
57
- }, s) => F(
55
+ iconNode: _,
56
+ ...z
57
+ }, a) => F(
58
58
  "svg",
59
59
  {
60
- ref: s,
60
+ ref: a,
61
61
  ...De,
62
62
  width: r,
63
63
  height: r,
64
64
  stroke: n,
65
65
  strokeWidth: u ? Number(l) * 24 / Number(r) : l,
66
- className: P("lucide", C),
67
- ...!g && !_e(A) && { "aria-hidden": "true" },
68
- ...A
66
+ className: P("lucide", m),
67
+ ...!g && !Be(z) && { "aria-hidden": "true" },
68
+ ...z
69
69
  },
70
70
  [
71
- ...M.map(([b, L]) => F(b, L)),
71
+ ..._.map(([b, M]) => F(b, M)),
72
72
  ...Array.isArray(g) ? g : [g]
73
73
  ]
74
74
  )
@@ -79,17 +79,17 @@ const Te = X(
79
79
  * This source code is licensed under the ISC license.
80
80
  * See the LICENSE file in the root directory of this source tree.
81
81
  */
82
- const z = (n, r) => {
82
+ const j = (n, r) => {
83
83
  const l = X(
84
- ({ className: u, ...C }, g) => F(Te, {
84
+ ({ className: u, ...m }, g) => F(Ie, {
85
85
  ref: g,
86
86
  iconNode: r,
87
87
  className: P(
88
- `lucide-${Be(G(n))}`,
88
+ `lucide-${Te(G(n))}`,
89
89
  `lucide-${n}`,
90
90
  u
91
91
  ),
92
- ...C
92
+ ...m
93
93
  })
94
94
  );
95
95
  return l.displayName = G(n), l;
@@ -100,21 +100,21 @@ const z = (n, r) => {
100
100
  * This source code is licensed under the ISC license.
101
101
  * See the LICENSE file in the root directory of this source tree.
102
102
  */
103
- const Me = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], N = z("chevron-down", Me);
103
+ const _e = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], $ = j("chevron-down", _e);
104
104
  /**
105
105
  * @license lucide-react v0.525.0 - ISC
106
106
  *
107
107
  * This source code is licensed under the ISC license.
108
108
  * See the LICENSE file in the root directory of this source tree.
109
109
  */
110
- const Le = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], J = z("chevron-up", Le);
110
+ const Me = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], J = j("chevron-up", Me);
111
111
  /**
112
112
  * @license lucide-react v0.525.0 - ISC
113
113
  *
114
114
  * This source code is licensed under the ISC license.
115
115
  * See the LICENSE file in the root directory of this source tree.
116
116
  */
117
- const Re = [
117
+ const Le = [
118
118
  [
119
119
  "path",
120
120
  {
@@ -131,7 +131,7 @@ const Re = [
131
131
  }
132
132
  ],
133
133
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
134
- ], We = z("eye-off", Re);
134
+ ], Re = j("eye-off", Le);
135
135
  /**
136
136
  * @license lucide-react v0.525.0 - ISC
137
137
  *
@@ -147,17 +147,17 @@ const Ee = [
147
147
  }
148
148
  ],
149
149
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
150
- ], $e = z("eye", Ee);
150
+ ], We = j("eye", Ee);
151
151
  /**
152
152
  * @license lucide-react v0.525.0 - ISC
153
153
  *
154
154
  * This source code is licensed under the ISC license.
155
155
  * See the LICENSE file in the root directory of this source tree.
156
156
  */
157
- const Ne = [
157
+ const $e = [
158
158
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
159
159
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
160
- ], Q = z("search", Ne);
160
+ ], Q = j("search", $e);
161
161
  /**
162
162
  * @license lucide-react v0.525.0 - ISC
163
163
  *
@@ -173,56 +173,56 @@ const Fe = [
173
173
  }
174
174
  ],
175
175
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
176
- ], Ve = z("settings", Fe);
176
+ ], Ve = j("settings", Fe);
177
177
  let v = "";
178
178
  const Ze = ({
179
179
  data: n = [],
180
180
  columnTitles: r = {},
181
181
  rowsPerPage: l = 19,
182
182
  title: u = "Data Table",
183
- onRowClick: C,
183
+ onRowClick: m,
184
184
  hiddenColumns: g = [],
185
- defaultSort: M = { key: "", direction: "asc" },
186
- extraActions: A
185
+ defaultSort: _ = { key: "", direction: "asc" },
186
+ extraActions: z
187
187
  }) => {
188
- const [s, b] = y(1), [, L] = y(""), [h, ee] = y(M), [w, _] = y(/* @__PURE__ */ new Set()), [R, V] = y(/* @__PURE__ */ new Set()), [U, oe] = y(!1), [O, te] = y(!1), d = T(() => n.length === 0 ? [] : Object.keys(n[0]).filter((e) => !g.includes(e)), [n]);
189
- ze.useEffect(() => {
190
- d.length > 0 && (V(new Set(d)), _(new Set(d)));
188
+ const [a, b] = y(1), [, M] = y(""), [h, ee] = y(_), [w, B] = y(/* @__PURE__ */ new Set()), [L, V] = y(/* @__PURE__ */ new Set()), [U, oe] = y(!1), [H, te] = y(!1), d = I(() => n.length === 0 ? [] : Object.keys(n[0]).filter((e) => !g.includes(e)), [n]);
189
+ je.useEffect(() => {
190
+ d.length > 0 && (V(new Set(d)), B(new Set(d)));
191
191
  }, [d]);
192
- const W = T(() => {
192
+ const R = I(() => {
193
193
  if (!v) return n;
194
194
  const e = w.size > 0 ? w : new Set(d);
195
195
  return n.filter((t) => Array.from(e).some((c) => {
196
196
  const f = t[c];
197
197
  return f && f.toString().toLowerCase().includes(v.toLowerCase());
198
198
  }));
199
- }, [n, v, w, d]), x = T(() => h.key ? [...W].sort((e, t) => e[h.key] < t[h.key] ? h.direction === "asc" ? -1 : 1 : e[h.key] > t[h.key] ? h.direction === "asc" ? 1 : -1 : 0) : W, [W, h]), D = d.filter((e) => R.has(e)), ne = () => {
199
+ }, [n, v, w, d]), x = I(() => h.key ? [...R].sort((e, t) => e[h.key] < t[h.key] ? h.direction === "asc" ? -1 : 1 : e[h.key] > t[h.key] ? h.direction === "asc" ? 1 : -1 : 0) : R, [R, h]), D = d.filter((e) => L.has(e)), ne = () => {
200
200
  if (!Array.isArray(x) || x.length === 0) return;
201
- const e = D.map((S) => r[S] || S), t = (S) => {
202
- const B = String(S ?? "");
203
- return /[",\n]/.test(B) ? `"${B.replace(/"/g, '""')}"` : B;
201
+ const e = D.map((k) => r[k] || k), t = (k) => {
202
+ const T = String(k ?? "");
203
+ return /[",\n]/.test(T) ? `"${T.replace(/"/g, '""')}"` : T;
204
204
  }, f = [
205
205
  e.join(","),
206
206
  // header row
207
- ...x.map((S) => D.map((B) => t(S[B])).join(","))
207
+ ...x.map((k) => D.map((T) => t(k[T])).join(","))
208
208
  ].join(`
209
- `), ve = new Blob([f], { type: "text/csv;charset=utf-8;" }), j = document.createElement("a");
210
- j.href = URL.createObjectURL(ve), j.download = "data.csv", document.body.appendChild(j), j.click(), document.body.removeChild(j);
211
- }, re = T(() => {
212
- const e = (s - 1) * l;
209
+ `), ve = new Blob([f], { type: "text/csv;charset=utf-8;" }), A = document.createElement("a");
210
+ A.href = URL.createObjectURL(ve), A.download = "data.csv", document.body.appendChild(A), A.click(), document.body.removeChild(A);
211
+ }, re = I(() => {
212
+ const e = (a - 1) * l;
213
213
  return x.slice(e, e + l);
214
- }, [x, s, l]), p = Math.ceil(x.length / l), ie = (e) => {
214
+ }, [x, a, l]), p = Math.ceil(x.length / l), ie = (e) => {
215
215
  ee((t) => ({
216
216
  key: e,
217
217
  direction: t.key === e && t.direction === "asc" ? "desc" : "asc"
218
218
  }));
219
- }, se = (e) => {
220
- _((t) => {
219
+ }, ae = (e) => {
220
+ B((t) => {
221
221
  const c = new Set(t);
222
222
  return c.has(e) ? c.delete(e) : c.add(e), c;
223
223
  });
224
- }, ae = () => {
225
- w.size === d.length ? _(/* @__PURE__ */ new Set()) : _(new Set(d));
224
+ }, se = () => {
225
+ w.size === d.length ? B(/* @__PURE__ */ new Set()) : B(new Set(d));
226
226
  }, ce = (e) => {
227
227
  V((t) => {
228
228
  const c = new Set(t);
@@ -230,17 +230,17 @@ const Ze = ({
230
230
  });
231
231
  }, le = (e) => {
232
232
  v = e;
233
- }, H = () => {
234
- L(v);
235
- }, m = {
233
+ }, O = () => {
234
+ M(v);
235
+ }, C = {
236
236
  thActive: {
237
- backgroundColor: I.colors.green,
238
- color: I.colors.white
237
+ backgroundColor: N.colors.green,
238
+ color: N.colors.white
239
239
  },
240
240
  paginationButtonActive: {
241
- backgroundColor: I.colors.green,
242
- color: I.colors.white,
243
- borderColor: I.colors.green
241
+ backgroundColor: N.colors.green,
242
+ color: N.colors.white,
243
+ borderColor: N.colors.green
244
244
  },
245
245
  paginationButtonDisabled: {
246
246
  opacity: 0.5,
@@ -258,7 +258,7 @@ const Ze = ({
258
258
  boxShadow: "0 2px 10px rgba(0, 0, 0, 0.1)",
259
259
  padding: "20px",
260
260
  fontFamily: "Arial, sans-serif",
261
- maxWidth: "100%",
261
+ width: "100%",
262
262
  overflow: "auto"
263
263
  }), pe = i("div")({
264
264
  display: "flex",
@@ -362,18 +362,18 @@ const Ze = ({
362
362
  backgroundColor: "#f0f8f0",
363
363
  color: "#005c00"
364
364
  }
365
- }), $ = i("input")({
365
+ }), W = i("input")({
366
366
  width: "16px",
367
367
  height: "16px",
368
368
  accentColor: "#009200"
369
- }), Ce = i("table")({
369
+ }), me = i("table")({
370
370
  width: "100%",
371
371
  borderCollapse: "collapse",
372
372
  backgroundColor: "#ffffff",
373
373
  borderRadius: "8px",
374
374
  overflow: "hidden",
375
375
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
376
- }), me = i("th")({
376
+ }), Ce = i("th")({
377
377
  backgroundColor: "#f8f9fa",
378
378
  color: "#333333",
379
379
  padding: "16px 12px",
@@ -407,13 +407,13 @@ const Ze = ({
407
407
  cursor: "pointer"
408
408
  }
409
409
  }
410
- })), ke = i("div")({
410
+ })), Se = i("div")({
411
411
  display: "flex",
412
412
  justifyContent: "center",
413
413
  alignItems: "center",
414
414
  marginTop: "20px",
415
415
  gap: "10px"
416
- }), k = i("button")({
416
+ }), S = i("button")({
417
417
  padding: "8px 12px",
418
418
  border: "1px solid #e0e0e0",
419
419
  borderRadius: "4px",
@@ -432,7 +432,7 @@ const Ze = ({
432
432
  opacity: 0.5,
433
433
  cursor: "not-allowed"
434
434
  }
435
- }), Se = i("div")({
435
+ }), ke = i("div")({
436
436
  fontSize: "14px",
437
437
  color: "#666666",
438
438
  textAlign: "center",
@@ -442,18 +442,18 @@ const Ze = ({
442
442
  color: "#666666",
443
443
  fontSize: "14px"
444
444
  });
445
- return /* @__PURE__ */ a(de, { children: [
446
- /* @__PURE__ */ a(pe, { children: [
447
- /* @__PURE__ */ a(he, { children: [
445
+ return /* @__PURE__ */ s(de, { className: "jcTableContainer", children: [
446
+ /* @__PURE__ */ s(pe, { className: "jcTableHeader", children: [
447
+ /* @__PURE__ */ s(he, { className: "jcTableTitleAndActions", children: [
448
448
  /* @__PURE__ */ o(fe, { children: u }),
449
- /* @__PURE__ */ a(je, { className: "jcTableExtraComponentsBox", gap: "9px", children: [
450
- A && A,
451
- /* @__PURE__ */ o(Ae, { onClick: ne, children: "Export to CSV" })
449
+ /* @__PURE__ */ s(Ae, { className: "jcTableExtraComponentsBox", gap: "9px", children: [
450
+ z && z,
451
+ /* @__PURE__ */ o(ze, { onClick: ne, children: "Export to CSV" })
452
452
  ] })
453
453
  ] }),
454
- /* @__PURE__ */ a(ue, { children: [
455
- /* @__PURE__ */ a(xe, { children: [
456
- /* @__PURE__ */ o(ge, { onClick: H }),
454
+ /* @__PURE__ */ s(ue, { className: "jcTableControls", children: [
455
+ /* @__PURE__ */ s(xe, { className: "jcTableSearchContainer", children: [
456
+ /* @__PURE__ */ o(ge, { onClick: O }),
457
457
  /* @__PURE__ */ o(
458
458
  be,
459
459
  {
@@ -462,21 +462,28 @@ const Ze = ({
462
462
  defaultValue: v,
463
463
  onChange: (e) => le(e.target.value),
464
464
  onKeyDown: (e) => {
465
- e.key === "Enter" && H();
465
+ e.key === "Enter" && O();
466
466
  }
467
467
  }
468
468
  )
469
469
  ] }),
470
- /* @__PURE__ */ a("div", { style: { position: "relative" }, children: [
471
- /* @__PURE__ */ a(q, { onClick: () => te(!O), children: [
472
- /* @__PURE__ */ o(Q, { size: 16 }),
473
- "Fields",
474
- /* @__PURE__ */ o(N, { size: 16 })
475
- ] }),
476
- O && /* @__PURE__ */ a(K, { children: [
477
- /* @__PURE__ */ a(E, { onClick: ae, children: [
470
+ /* @__PURE__ */ s("div", { style: { position: "relative" }, children: [
471
+ /* @__PURE__ */ s(
472
+ q,
473
+ {
474
+ className: "jcTableSearchFields",
475
+ onClick: () => te(!H),
476
+ children: [
477
+ /* @__PURE__ */ o(Q, { size: 16 }),
478
+ "Fields",
479
+ /* @__PURE__ */ o($, { size: 16 })
480
+ ]
481
+ }
482
+ ),
483
+ H && /* @__PURE__ */ s(K, { className: "jcTableSearchFieldsDropdown", children: [
484
+ /* @__PURE__ */ s(E, { onClick: se, children: [
478
485
  /* @__PURE__ */ o(
479
- $,
486
+ W,
480
487
  {
481
488
  type: "checkbox",
482
489
  checked: w.size === d.length,
@@ -487,50 +494,57 @@ const Ze = ({
487
494
  /* @__PURE__ */ o("span", { style: { fontWeight: "bold" }, children: "All" })
488
495
  ] }),
489
496
  /* @__PURE__ */ o("div", { style: { height: "1px", backgroundColor: "#e0e0e0", margin: "4px 0" } }),
490
- d.map((e) => /* @__PURE__ */ a(E, { onClick: () => se(e), children: [
491
- /* @__PURE__ */ o($, { type: "checkbox", checked: w.has(e), onChange: () => {
497
+ d.map((e) => /* @__PURE__ */ s(E, { onClick: () => ae(e), children: [
498
+ /* @__PURE__ */ o(W, { type: "checkbox", checked: w.has(e), onChange: () => {
492
499
  } }),
493
500
  /* @__PURE__ */ o("span", { children: r[e] || e })
494
501
  ] }, e))
495
502
  ] })
496
503
  ] }),
497
- /* @__PURE__ */ a("div", { style: { position: "relative" }, children: [
498
- /* @__PURE__ */ a(q, { onClick: () => oe(!U), children: [
499
- /* @__PURE__ */ o(Ve, { size: 16 }),
500
- "Columns",
501
- /* @__PURE__ */ o(N, { size: 16 })
502
- ] }),
503
- U && /* @__PURE__ */ o(K, { children: d.map((e) => /* @__PURE__ */ a(E, { onClick: () => ce(e), children: [
504
- /* @__PURE__ */ o($, { type: "checkbox", checked: R.has(e), onChange: () => {
504
+ /* @__PURE__ */ s("div", { style: { position: "relative" }, children: [
505
+ /* @__PURE__ */ s(
506
+ q,
507
+ {
508
+ className: "jcTableColumnSettings",
509
+ onClick: () => oe(!U),
510
+ children: [
511
+ /* @__PURE__ */ o(Ve, { size: 16 }),
512
+ "Columns",
513
+ /* @__PURE__ */ o($, { size: 16 })
514
+ ]
515
+ }
516
+ ),
517
+ U && /* @__PURE__ */ o(K, { className: "jcTableColumnSettingsDropdown", children: d.map((e) => /* @__PURE__ */ s(E, { onClick: () => ce(e), children: [
518
+ /* @__PURE__ */ o(W, { type: "checkbox", checked: L.has(e), onChange: () => {
505
519
  } }),
506
- R.has(e) ? /* @__PURE__ */ o($e, { size: 16 }) : /* @__PURE__ */ o(We, { size: 16 }),
520
+ L.has(e) ? /* @__PURE__ */ o(We, { size: 16 }) : /* @__PURE__ */ o(Re, { size: 16 }),
507
521
  /* @__PURE__ */ o("span", { children: r[e] || e })
508
522
  ] }, e)) })
509
523
  ] })
510
524
  ] })
511
525
  ] }),
512
- /* @__PURE__ */ a(Ce, { children: [
513
- /* @__PURE__ */ o("thead", { children: /* @__PURE__ */ o(Y, { interactableRow: !1, children: D.map((e) => /* @__PURE__ */ a(
514
- me,
526
+ /* @__PURE__ */ s(me, { className: "jcTableContent", children: [
527
+ /* @__PURE__ */ o("thead", { children: /* @__PURE__ */ o(Y, { interactableRow: !1, children: D.map((e) => /* @__PURE__ */ s(
528
+ Ce,
515
529
  {
516
- style: h.key === e ? m.thActive : {},
530
+ style: h.key === e ? C.thActive : {},
517
531
  onClick: () => ie(e),
518
532
  children: [
519
533
  r[e] || e,
520
- /* @__PURE__ */ o(we, { children: h.key === e ? h.direction === "asc" ? /* @__PURE__ */ o(J, { size: 16 }) : /* @__PURE__ */ o(N, { size: 16 }) : /* @__PURE__ */ o(J, { size: 16, style: { opacity: 0.313 } }) })
534
+ /* @__PURE__ */ o(we, { children: h.key === e ? h.direction === "asc" ? /* @__PURE__ */ o(J, { size: 16 }) : /* @__PURE__ */ o($, { size: 16 }) : /* @__PURE__ */ o(J, { size: 16, style: { opacity: 0.313 } }) })
521
535
  ]
522
536
  },
523
537
  e
524
538
  )) }) }),
525
- /* @__PURE__ */ o("tbody", { children: re.map((e, t) => /* @__PURE__ */ o(Y, { onClick: () => C && C(e), interactableRow: !!C, children: D.map((c) => /* @__PURE__ */ o(ye, { children: e[c] }, c)) }, t)) })
539
+ /* @__PURE__ */ o("tbody", { children: re.map((e, t) => /* @__PURE__ */ o(Y, { onClick: () => m && m(e), interactableRow: !!m, children: D.map((c) => /* @__PURE__ */ o(ye, { children: e[c] }, c)) }, t)) })
526
540
  ] }),
527
- /* @__PURE__ */ a(ke, { children: [
541
+ /* @__PURE__ */ s(Se, { children: [
528
542
  /* @__PURE__ */ o(
529
- k,
543
+ S,
530
544
  {
531
- style: s === 1 ? m.paginationButtonDisabled : {},
532
- onClick: () => b(Math.max(1, s - 1)),
533
- disabled: s === 1,
545
+ style: a === 1 ? C.paginationButtonDisabled : {},
546
+ onClick: () => b(Math.max(1, a - 1)),
547
+ disabled: a === 1,
534
548
  children: "Previous"
535
549
  }
536
550
  ),
@@ -540,9 +554,9 @@ const Ze = ({
540
554
  for (let t = 1; t <= p; t++)
541
555
  e.push(
542
556
  /* @__PURE__ */ o(
543
- k,
557
+ S,
544
558
  {
545
- style: s === t ? m.paginationButtonActive : {},
559
+ style: a === t ? C.paginationButtonActive : {},
546
560
  onClick: () => b(t),
547
561
  children: t
548
562
  },
@@ -552,33 +566,33 @@ const Ze = ({
552
566
  else {
553
567
  e.push(
554
568
  /* @__PURE__ */ o(
555
- k,
569
+ S,
556
570
  {
557
- style: s === 1 ? m.paginationButtonActive : {},
571
+ style: a === 1 ? C.paginationButtonActive : {},
558
572
  onClick: () => b(1),
559
573
  children: "1"
560
574
  },
561
575
  1
562
576
  )
563
- ), s > 3 && e.push(/* @__PURE__ */ o(Z, { children: "..." }, "ellipsis1"));
564
- const t = Math.max(2, s - 1), c = Math.min(p - 1, s + 1);
577
+ ), a > 3 && e.push(/* @__PURE__ */ o(Z, { children: "..." }, "ellipsis1"));
578
+ const t = Math.max(2, a - 1), c = Math.min(p - 1, a + 1);
565
579
  for (let f = t; f <= c; f++)
566
580
  e.push(
567
581
  /* @__PURE__ */ o(
568
- k,
582
+ S,
569
583
  {
570
- style: s === f ? m.paginationButtonActive : {},
584
+ style: a === f ? C.paginationButtonActive : {},
571
585
  onClick: () => b(f),
572
586
  children: f
573
587
  },
574
588
  f
575
589
  )
576
590
  );
577
- s < p - 2 && e.push(/* @__PURE__ */ o(Z, { children: "..." }, "ellipsis2")), p > 1 && e.push(
591
+ a < p - 2 && e.push(/* @__PURE__ */ o(Z, { children: "..." }, "ellipsis2")), p > 1 && e.push(
578
592
  /* @__PURE__ */ o(
579
- k,
593
+ S,
580
594
  {
581
- style: s === p ? m.paginationButtonActive : {},
595
+ style: a === p ? C.paginationButtonActive : {},
582
596
  onClick: () => b(p),
583
597
  children: p
584
598
  },
@@ -589,21 +603,21 @@ const Ze = ({
589
603
  return e;
590
604
  })(),
591
605
  /* @__PURE__ */ o(
592
- k,
606
+ S,
593
607
  {
594
- style: s === p ? m.paginationButtonDisabled : {},
595
- onClick: () => b(Math.min(p, s + 1)),
596
- disabled: s === p,
608
+ style: a === p ? C.paginationButtonDisabled : {},
609
+ onClick: () => b(Math.min(p, a + 1)),
610
+ disabled: a === p,
597
611
  children: "Next"
598
612
  }
599
613
  )
600
614
  ] }),
601
- /* @__PURE__ */ a(Se, { children: [
615
+ /* @__PURE__ */ s(ke, { children: [
602
616
  "Showing ",
603
- Math.min((s - 1) * l + 1, x.length),
617
+ Math.min((a - 1) * l + 1, x.length),
604
618
  " to",
605
619
  " ",
606
- Math.min(s * l, x.length),
620
+ Math.min(a * l, x.length),
607
621
  " of ",
608
622
  x.length,
609
623
  " entries"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.325",
4
+ "version": "0.0.329",
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",