jcicl 0.0.313 → 0.0.317

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/Table/Table.js CHANGED
@@ -1,20 +1,21 @@
1
- import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
- import Se, { forwardRef as J, createElement as E, useState as m, useMemo as _ } from "react";
1
+ import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
+ import ve, { forwardRef as Q, createElement as N, useState as m, useMemo as D } from "react";
3
+ import B from "../theme.js";
3
4
  import { n as s } from "../.chunks/emotion-styled.browser.esm.js";
4
- import { Button as ve } from "../Button/Button.js";
5
+ import { Button as ze } from "../Button/Button.js";
5
6
  /**
6
7
  * @license lucide-react v0.525.0 - ISC
7
8
  *
8
9
  * This source code is licensed under the ISC license.
9
10
  * See the LICENSE file in the root directory of this source tree.
10
11
  */
11
- const ze = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ae = (n) => n.replace(
12
+ const Ae = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), je = (n) => n.replace(
12
13
  /^([A-Z])|[\s-_]+(\w)/g,
13
14
  (r, l, u) => u ? u.toUpperCase() : l.toLowerCase()
14
- ), Y = (n) => {
15
- const r = Ae(n);
15
+ ), Z = (n) => {
16
+ const r = je(n);
16
17
  return r.charAt(0).toUpperCase() + r.slice(1);
17
- }, Q = (...n) => n.filter((r, l, u) => !!r && r.trim() !== "" && u.indexOf(r) === l).join(" ").trim(), je = (n) => {
18
+ }, X = (...n) => n.filter((r, l, u) => !!r && r.trim() !== "" && u.indexOf(r) === l).join(" ").trim(), Be = (n) => {
18
19
  for (const r in n)
19
20
  if (r.startsWith("aria-") || r === "role" || r === "title")
20
21
  return !0;
@@ -25,7 +26,7 @@ const ze = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ae = (
25
26
  * This source code is licensed under the ISC license.
26
27
  * See the LICENSE file in the root directory of this source tree.
27
28
  */
28
- var Be = {
29
+ var Ie = {
29
30
  xmlns: "http://www.w3.org/2000/svg",
30
31
  width: 24,
31
32
  height: 24,
@@ -42,7 +43,7 @@ var Be = {
42
43
  * This source code is licensed under the ISC license.
43
44
  * See the LICENSE file in the root directory of this source tree.
44
45
  */
45
- const Ie = J(
46
+ const _e = Q(
46
47
  ({
47
48
  color: n = "currentColor",
48
49
  size: r = 24,
@@ -50,23 +51,23 @@ const Ie = J(
50
51
  absoluteStrokeWidth: u,
51
52
  className: C = "",
52
53
  children: g,
53
- iconNode: D,
54
+ iconNode: M,
54
55
  ...i
55
- }, b) => E(
56
+ }, b) => N(
56
57
  "svg",
57
58
  {
58
59
  ref: b,
59
- ...Be,
60
+ ...Ie,
60
61
  width: r,
61
62
  height: r,
62
63
  stroke: n,
63
64
  strokeWidth: u ? Number(l) * 24 / Number(r) : l,
64
- className: Q("lucide", C),
65
- ...!g && !je(i) && { "aria-hidden": "true" },
65
+ className: X("lucide", C),
66
+ ...!g && !Be(i) && { "aria-hidden": "true" },
66
67
  ...i
67
68
  },
68
69
  [
69
- ...D.map(([M, d]) => E(M, d)),
70
+ ...M.map(([T, d]) => N(T, d)),
70
71
  ...Array.isArray(g) ? g : [g]
71
72
  ]
72
73
  )
@@ -78,19 +79,19 @@ const Ie = J(
78
79
  * See the LICENSE file in the root directory of this source tree.
79
80
  */
80
81
  const z = (n, r) => {
81
- const l = J(
82
- ({ className: u, ...C }, g) => E(Ie, {
82
+ const l = Q(
83
+ ({ className: u, ...C }, g) => N(_e, {
83
84
  ref: g,
84
85
  iconNode: r,
85
- className: Q(
86
- `lucide-${ze(Y(n))}`,
86
+ className: X(
87
+ `lucide-${Ae(Z(n))}`,
87
88
  `lucide-${n}`,
88
89
  u
89
90
  ),
90
91
  ...C
91
92
  })
92
93
  );
93
- return l.displayName = Y(n), l;
94
+ return l.displayName = Z(n), l;
94
95
  };
95
96
  /**
96
97
  * @license lucide-react v0.525.0 - ISC
@@ -98,21 +99,21 @@ const z = (n, r) => {
98
99
  * This source code is licensed under the ISC license.
99
100
  * See the LICENSE file in the root directory of this source tree.
100
101
  */
101
- const _e = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], $ = z("chevron-down", _e);
102
+ const De = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], E = z("chevron-down", De);
102
103
  /**
103
104
  * @license lucide-react v0.525.0 - ISC
104
105
  *
105
106
  * This source code is licensed under the ISC license.
106
107
  * See the LICENSE file in the root directory of this source tree.
107
108
  */
108
- const De = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Z = z("chevron-up", De);
109
+ const Me = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], G = z("chevron-up", Me);
109
110
  /**
110
111
  * @license lucide-react v0.525.0 - ISC
111
112
  *
112
113
  * This source code is licensed under the ISC license.
113
114
  * See the LICENSE file in the root directory of this source tree.
114
115
  */
115
- const Me = [
116
+ const Te = [
116
117
  [
117
118
  "path",
118
119
  {
@@ -129,14 +130,14 @@ const Me = [
129
130
  }
130
131
  ],
131
132
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
132
- ], Te = z("eye-off", Me);
133
+ ], Le = z("eye-off", Te);
133
134
  /**
134
135
  * @license lucide-react v0.525.0 - ISC
135
136
  *
136
137
  * This source code is licensed under the ISC license.
137
138
  * See the LICENSE file in the root directory of this source tree.
138
139
  */
139
- const Le = [
140
+ const Re = [
140
141
  [
141
142
  "path",
142
143
  {
@@ -145,24 +146,24 @@ const Le = [
145
146
  }
146
147
  ],
147
148
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
148
- ], Re = z("eye", Le);
149
+ ], We = z("eye", Re);
149
150
  /**
150
151
  * @license lucide-react v0.525.0 - ISC
151
152
  *
152
153
  * This source code is licensed under the ISC license.
153
154
  * See the LICENSE file in the root directory of this source tree.
154
155
  */
155
- const We = [
156
+ const $e = [
156
157
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
157
158
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
158
- ], G = z("search", We);
159
+ ], J = z("search", $e);
159
160
  /**
160
161
  * @license lucide-react v0.525.0 - ISC
161
162
  *
162
163
  * This source code is licensed under the ISC license.
163
164
  * See the LICENSE file in the root directory of this source tree.
164
165
  */
165
- const $e = [
166
+ const Ee = [
166
167
  [
167
168
  "path",
168
169
  {
@@ -171,73 +172,73 @@ const $e = [
171
172
  }
172
173
  ],
173
174
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
174
- ], Ee = z("settings", $e);
175
+ ], Ne = z("settings", Ee);
175
176
  let v = "";
176
- const Oe = ({
177
+ const qe = ({
177
178
  data: n = [],
178
179
  columnTitles: r = {},
179
180
  rowsPerPage: l = 19,
180
181
  title: u = "Data Table",
181
182
  onRowClick: C,
182
183
  hiddenColumns: g = [],
183
- defaultSort: D = { key: "", direction: "asc" }
184
+ defaultSort: M = { key: "", direction: "asc" }
184
185
  }) => {
185
- const [i, b] = m(1), [, M] = m(""), [d, X] = m(D), [w, B] = m(/* @__PURE__ */ new Set()), [T, N] = m(/* @__PURE__ */ new Set()), [V, P] = m(!1), [F, ee] = m(!1), p = _(() => n.length === 0 ? [] : Object.keys(n[0]).filter((e) => !g.includes(e)), [n]);
186
- Se.useEffect(() => {
187
- p.length > 0 && (N(new Set(p)), B(new Set(p)));
186
+ const [i, b] = m(1), [, T] = m(""), [d, P] = m(M), [w, I] = m(/* @__PURE__ */ new Set()), [L, V] = m(/* @__PURE__ */ new Set()), [F, ee] = m(!1), [U, oe] = m(!1), p = D(() => n.length === 0 ? [] : Object.keys(n[0]).filter((e) => !g.includes(e)), [n]);
187
+ ve.useEffect(() => {
188
+ p.length > 0 && (V(new Set(p)), I(new Set(p)));
188
189
  }, [p]);
189
- const L = _(() => {
190
+ const R = D(() => {
190
191
  if (!v) return n;
191
192
  const e = w.size > 0 ? w : new Set(p);
192
- return n.filter((o) => Array.from(e).some((a) => {
193
- const h = o[a];
194
- return h && h.toString().toLowerCase().includes(v.toLowerCase());
193
+ return n.filter((t) => Array.from(e).some((a) => {
194
+ const f = t[a];
195
+ return f && f.toString().toLowerCase().includes(v.toLowerCase());
195
196
  }));
196
- }, [n, v, w, p]), x = _(() => d.key ? [...L].sort((e, o) => e[d.key] < o[d.key] ? d.direction === "asc" ? -1 : 1 : e[d.key] > o[d.key] ? d.direction === "asc" ? 1 : -1 : 0) : L, [L, d]), I = p.filter((e) => T.has(e)), te = () => {
197
+ }, [n, v, w, p]), x = D(() => d.key ? [...R].sort((e, t) => e[d.key] < t[d.key] ? d.direction === "asc" ? -1 : 1 : e[d.key] > t[d.key] ? d.direction === "asc" ? 1 : -1 : 0) : R, [R, d]), _ = p.filter((e) => L.has(e)), te = () => {
197
198
  if (!Array.isArray(x) || x.length === 0) return;
198
- const e = I.map((S) => r[S] || S), o = (S) => {
199
+ const e = _.map((S) => r[S] || S), t = (S) => {
199
200
  const j = String(S ?? "");
200
201
  return /[",\n]/.test(j) ? `"${j.replace(/"/g, '""')}"` : j;
201
- }, h = [
202
+ }, f = [
202
203
  e.join(","),
203
204
  // header row
204
- ...x.map((S) => I.map((j) => o(S[j])).join(","))
205
+ ...x.map((S) => _.map((j) => t(S[j])).join(","))
205
206
  ].join(`
206
- `), ke = new Blob([h], { type: "text/csv;charset=utf-8;" }), A = document.createElement("a");
207
- A.href = URL.createObjectURL(ke), A.download = "data.csv", document.body.appendChild(A), A.click(), document.body.removeChild(A);
208
- }, oe = _(() => {
207
+ `), Se = new Blob([f], { type: "text/csv;charset=utf-8;" }), A = document.createElement("a");
208
+ A.href = URL.createObjectURL(Se), A.download = "data.csv", document.body.appendChild(A), A.click(), document.body.removeChild(A);
209
+ }, ne = D(() => {
209
210
  const e = (i - 1) * l;
210
211
  return x.slice(e, e + l);
211
- }, [x, i, l]), f = Math.ceil(x.length / l), ne = (e) => {
212
- X((o) => ({
212
+ }, [x, i, l]), h = Math.ceil(x.length / l), re = (e) => {
213
+ P((t) => ({
213
214
  key: e,
214
- direction: o.key === e && o.direction === "asc" ? "desc" : "asc"
215
+ direction: t.key === e && t.direction === "asc" ? "desc" : "asc"
215
216
  }));
216
- }, re = (e) => {
217
- B((o) => {
218
- const a = new Set(o);
217
+ }, ie = (e) => {
218
+ I((t) => {
219
+ const a = new Set(t);
219
220
  return a.has(e) ? a.delete(e) : a.add(e), a;
220
221
  });
221
- }, ie = () => {
222
- w.size === p.length ? B(/* @__PURE__ */ new Set()) : B(new Set(p));
223
- }, se = (e) => {
224
- N((o) => {
225
- const a = new Set(o);
222
+ }, se = () => {
223
+ w.size === p.length ? I(/* @__PURE__ */ new Set()) : I(new Set(p));
224
+ }, ae = (e) => {
225
+ V((t) => {
226
+ const a = new Set(t);
226
227
  return a.has(e) ? a.delete(e) : a.add(e), a;
227
228
  });
228
- }, ae = (e) => {
229
+ }, ce = (e) => {
229
230
  v = e;
230
- }, U = () => {
231
- M(v);
231
+ }, O = () => {
232
+ T(v);
232
233
  }, y = {
233
234
  thActive: {
234
- backgroundColor: "#009200",
235
- color: "#ffffff"
235
+ backgroundColor: B.colors.green,
236
+ color: B.colors.white
236
237
  },
237
238
  paginationButtonActive: {
238
- backgroundColor: "#009200",
239
- color: "#ffffff",
240
- borderColor: "#009200"
239
+ backgroundColor: B.colors.green,
240
+ color: B.colors.white,
241
+ borderColor: B.colors.green
241
242
  },
242
243
  paginationButtonDisabled: {
243
244
  opacity: 0.5,
@@ -249,7 +250,7 @@ const Oe = ({
249
250
  textAlign: "center",
250
251
  marginTop: "10px"
251
252
  }
252
- }, ce = s("div")({
253
+ }, le = s("div")({
253
254
  backgroundColor: "#ffffff",
254
255
  borderRadius: "8px",
255
256
  boxShadow: "0 2px 10px rgba(0, 0, 0, 0.1)",
@@ -257,7 +258,7 @@ const Oe = ({
257
258
  fontFamily: "Arial, sans-serif",
258
259
  maxWidth: "100%",
259
260
  overflow: "auto"
260
- }), le = s("div")({
261
+ }), de = s("div")({
261
262
  display: "flex",
262
263
  flexDirection: "column",
263
264
  justifyContent: "space-between",
@@ -265,12 +266,12 @@ const Oe = ({
265
266
  marginBottom: "20px",
266
267
  flexWrap: "wrap",
267
268
  gap: "9px"
268
- }), de = s("div")({
269
+ }), pe = s("div")({
269
270
  display: "flex",
270
271
  justifyContent: "space-between",
271
272
  width: "100%",
272
273
  alignItems: "center"
273
- }), pe = s("h2")({
274
+ }), he = s("h2")({
274
275
  fontSize: "24px",
275
276
  fontWeight: "bold",
276
277
  color: "#000000",
@@ -282,12 +283,12 @@ const Oe = ({
282
283
  gap: "15px",
283
284
  alignItems: "center",
284
285
  flexWrap: "wrap"
285
- }), he = s("div")({
286
+ }), ue = s("div")({
286
287
  position: "relative",
287
288
  display: "flex",
288
289
  alignItems: "center",
289
290
  flexGrow: 1
290
- }), ue = s(G)({
291
+ }), xe = s(J)({
291
292
  position: "absolute",
292
293
  left: "13px",
293
294
  top: "10px",
@@ -299,7 +300,7 @@ const Oe = ({
299
300
  cursor: "pointer",
300
301
  color: "#009200"
301
302
  }
302
- }), xe = s("input")({
303
+ }), ge = s("input")({
303
304
  padding: "10px 15px 10px 40px",
304
305
  border: "2px solid #e0e0e0",
305
306
  borderRadius: "25px",
@@ -313,7 +314,7 @@ const Oe = ({
313
314
  borderColor: "#009200",
314
315
  boxShadow: "0 0 0 3px rgba(0, 146, 0, 0.1)"
315
316
  }
316
- }), O = s("button")({
317
+ }), H = s("button")({
317
318
  padding: "10px 15px",
318
319
  border: "2px solid #009200",
319
320
  borderRadius: "6px",
@@ -333,7 +334,7 @@ const Oe = ({
333
334
  transform: "translateY(-1px)",
334
335
  boxShadow: "0 4px 12px rgba(0, 146, 0, 0.3)"
335
336
  }
336
- }), H = s("div")({
337
+ }), q = s("div")({
337
338
  position: "absolute",
338
339
  top: "100%",
339
340
  right: 0,
@@ -346,7 +347,7 @@ const Oe = ({
346
347
  minWidth: "200px",
347
348
  maxHeight: "300px",
348
349
  overflowY: "auto"
349
- }), R = s("div")({
350
+ }), W = s("div")({
350
351
  padding: "12px 16px",
351
352
  display: "flex",
352
353
  alignItems: "center",
@@ -359,18 +360,18 @@ const Oe = ({
359
360
  backgroundColor: "#f0f8f0",
360
361
  color: "#005c00"
361
362
  }
362
- }), W = s("input")({
363
+ }), $ = s("input")({
363
364
  width: "16px",
364
365
  height: "16px",
365
366
  accentColor: "#009200"
366
- }), ge = s("table")({
367
+ }), be = s("table")({
367
368
  width: "100%",
368
369
  borderCollapse: "collapse",
369
370
  backgroundColor: "#ffffff",
370
371
  borderRadius: "8px",
371
372
  overflow: "hidden",
372
373
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
373
- }), be = s("th")({
374
+ }), Ce = s("th")({
374
375
  backgroundColor: "#f8f9fa",
375
376
  color: "#333333",
376
377
  padding: "16px 12px",
@@ -387,16 +388,16 @@ const Oe = ({
387
388
  backgroundColor: "#e8f5e8",
388
389
  color: "#005c00"
389
390
  }
390
- }), Ce = s("td")({
391
+ }), ye = s("td")({
391
392
  padding: "14px 12px",
392
393
  borderBottom: "1px solid #f0f0f0",
393
394
  fontSize: "14px",
394
395
  color: "#333333",
395
396
  transition: "all 0.2s ease"
396
- }), ye = s("span")({
397
+ }), me = s("span")({
397
398
  marginLeft: "8px",
398
399
  opacity: 0.6
399
- }), q = s("tr")(({ interactableRow: e }) => ({
400
+ }), K = s("tr")(({ interactableRow: e }) => ({
400
401
  transition: "all 0.2s ease",
401
402
  ...e && {
402
403
  "&:focus, &:hover, &:focus-within": {
@@ -404,7 +405,7 @@ const Oe = ({
404
405
  cursor: "pointer"
405
406
  }
406
407
  }
407
- })), me = s("div")({
408
+ })), we = s("div")({
408
409
  display: "flex",
409
410
  justifyContent: "center",
410
411
  alignItems: "center",
@@ -429,48 +430,48 @@ const Oe = ({
429
430
  opacity: 0.5,
430
431
  cursor: "not-allowed"
431
432
  }
432
- }), we = s("div")({
433
+ }), ke = s("div")({
433
434
  fontSize: "14px",
434
435
  color: "#666666",
435
436
  textAlign: "center",
436
437
  marginTop: "10px"
437
- }), K = s("span")({
438
+ }), Y = s("span")({
438
439
  padding: "8px 4px",
439
440
  color: "#666666",
440
441
  fontSize: "14px"
441
442
  });
442
- return /* @__PURE__ */ c(ce, { children: [
443
- /* @__PURE__ */ c(le, { children: [
444
- /* @__PURE__ */ c(de, { children: [
445
- /* @__PURE__ */ t(pe, { children: u }),
446
- /* @__PURE__ */ t(ve, { onClick: te, children: "Export to CSV" })
443
+ return /* @__PURE__ */ c(le, { children: [
444
+ /* @__PURE__ */ c(de, { children: [
445
+ /* @__PURE__ */ c(pe, { children: [
446
+ /* @__PURE__ */ o(he, { children: u }),
447
+ /* @__PURE__ */ o(ze, { onClick: te, children: "Export to CSV" })
447
448
  ] }),
448
449
  /* @__PURE__ */ c(fe, { children: [
449
- /* @__PURE__ */ c(he, { children: [
450
- /* @__PURE__ */ t(ue, { onClick: U }),
451
- /* @__PURE__ */ t(
452
- xe,
450
+ /* @__PURE__ */ c(ue, { children: [
451
+ /* @__PURE__ */ o(xe, { onClick: O }),
452
+ /* @__PURE__ */ o(
453
+ ge,
453
454
  {
454
455
  type: "text",
455
456
  placeholder: "Search...",
456
457
  defaultValue: v,
457
- onChange: (e) => ae(e.target.value),
458
+ onChange: (e) => ce(e.target.value),
458
459
  onKeyDown: (e) => {
459
- e.key === "Enter" && U();
460
+ e.key === "Enter" && O();
460
461
  }
461
462
  }
462
463
  )
463
464
  ] }),
464
465
  /* @__PURE__ */ c("div", { style: { position: "relative" }, children: [
465
- /* @__PURE__ */ c(O, { onClick: () => ee(!F), children: [
466
- /* @__PURE__ */ t(G, { size: 16 }),
466
+ /* @__PURE__ */ c(H, { onClick: () => oe(!U), children: [
467
+ /* @__PURE__ */ o(J, { size: 16 }),
467
468
  "Fields",
468
- /* @__PURE__ */ t($, { size: 16 })
469
+ /* @__PURE__ */ o(E, { size: 16 })
469
470
  ] }),
470
- F && /* @__PURE__ */ c(H, { children: [
471
- /* @__PURE__ */ c(R, { onClick: ie, children: [
472
- /* @__PURE__ */ t(
473
- W,
471
+ U && /* @__PURE__ */ c(q, { children: [
472
+ /* @__PURE__ */ c(W, { onClick: se, children: [
473
+ /* @__PURE__ */ o(
474
+ $,
474
475
  {
475
476
  type: "checkbox",
476
477
  checked: w.size === p.length,
@@ -478,48 +479,48 @@ const Oe = ({
478
479
  }
479
480
  }
480
481
  ),
481
- /* @__PURE__ */ t("span", { style: { fontWeight: "bold" }, children: "All" })
482
+ /* @__PURE__ */ o("span", { style: { fontWeight: "bold" }, children: "All" })
482
483
  ] }),
483
- /* @__PURE__ */ t("div", { style: { height: "1px", backgroundColor: "#e0e0e0", margin: "4px 0" } }),
484
- p.map((e) => /* @__PURE__ */ c(R, { onClick: () => re(e), children: [
485
- /* @__PURE__ */ t(W, { type: "checkbox", checked: w.has(e), onChange: () => {
484
+ /* @__PURE__ */ o("div", { style: { height: "1px", backgroundColor: "#e0e0e0", margin: "4px 0" } }),
485
+ p.map((e) => /* @__PURE__ */ c(W, { onClick: () => ie(e), children: [
486
+ /* @__PURE__ */ o($, { type: "checkbox", checked: w.has(e), onChange: () => {
486
487
  } }),
487
- /* @__PURE__ */ t("span", { children: r[e] || e })
488
+ /* @__PURE__ */ o("span", { children: r[e] || e })
488
489
  ] }, e))
489
490
  ] })
490
491
  ] }),
491
492
  /* @__PURE__ */ c("div", { style: { position: "relative" }, children: [
492
- /* @__PURE__ */ c(O, { onClick: () => P(!V), children: [
493
- /* @__PURE__ */ t(Ee, { size: 16 }),
493
+ /* @__PURE__ */ c(H, { onClick: () => ee(!F), children: [
494
+ /* @__PURE__ */ o(Ne, { size: 16 }),
494
495
  "Columns",
495
- /* @__PURE__ */ t($, { size: 16 })
496
+ /* @__PURE__ */ o(E, { size: 16 })
496
497
  ] }),
497
- V && /* @__PURE__ */ t(H, { children: p.map((e) => /* @__PURE__ */ c(R, { onClick: () => se(e), children: [
498
- /* @__PURE__ */ t(W, { type: "checkbox", checked: T.has(e), onChange: () => {
498
+ F && /* @__PURE__ */ o(q, { children: p.map((e) => /* @__PURE__ */ c(W, { onClick: () => ae(e), children: [
499
+ /* @__PURE__ */ o($, { type: "checkbox", checked: L.has(e), onChange: () => {
499
500
  } }),
500
- T.has(e) ? /* @__PURE__ */ t(Re, { size: 16 }) : /* @__PURE__ */ t(Te, { size: 16 }),
501
- /* @__PURE__ */ t("span", { children: r[e] || e })
501
+ L.has(e) ? /* @__PURE__ */ o(We, { size: 16 }) : /* @__PURE__ */ o(Le, { size: 16 }),
502
+ /* @__PURE__ */ o("span", { children: r[e] || e })
502
503
  ] }, e)) })
503
504
  ] })
504
505
  ] })
505
506
  ] }),
506
- /* @__PURE__ */ c(ge, { children: [
507
- /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ t(q, { interactableRow: !1, children: I.map((e) => /* @__PURE__ */ c(
508
- be,
507
+ /* @__PURE__ */ c(be, { children: [
508
+ /* @__PURE__ */ o("thead", { children: /* @__PURE__ */ o(K, { interactableRow: !1, children: _.map((e) => /* @__PURE__ */ c(
509
+ Ce,
509
510
  {
510
511
  style: d.key === e ? y.thActive : {},
511
- onClick: () => ne(e),
512
+ onClick: () => re(e),
512
513
  children: [
513
514
  r[e] || e,
514
- /* @__PURE__ */ t(ye, { children: d.key === e ? d.direction === "asc" ? /* @__PURE__ */ t(Z, { size: 16 }) : /* @__PURE__ */ t($, { size: 16 }) : /* @__PURE__ */ t(Z, { size: 16, style: { opacity: 0.313 } }) })
515
+ /* @__PURE__ */ o(me, { children: d.key === e ? d.direction === "asc" ? /* @__PURE__ */ o(G, { size: 16 }) : /* @__PURE__ */ o(E, { size: 16 }) : /* @__PURE__ */ o(G, { size: 16, style: { opacity: 0.313 } }) })
515
516
  ]
516
517
  },
517
518
  e
518
519
  )) }) }),
519
- /* @__PURE__ */ t("tbody", { children: oe.map((e, o) => /* @__PURE__ */ t(q, { onClick: () => C && C(e), interactableRow: !!C, children: I.map((a) => /* @__PURE__ */ t(Ce, { children: e[a] }, a)) }, o)) })
520
+ /* @__PURE__ */ o("tbody", { children: ne.map((e, t) => /* @__PURE__ */ o(K, { onClick: () => C && C(e), interactableRow: !!C, children: _.map((a) => /* @__PURE__ */ o(ye, { children: e[a] }, a)) }, t)) })
520
521
  ] }),
521
- /* @__PURE__ */ c(me, { children: [
522
- /* @__PURE__ */ t(
522
+ /* @__PURE__ */ c(we, { children: [
523
+ /* @__PURE__ */ o(
523
524
  k,
524
525
  {
525
526
  style: i === 1 ? y.paginationButtonDisabled : {},
@@ -530,22 +531,22 @@ const Oe = ({
530
531
  ),
531
532
  (() => {
532
533
  const e = [];
533
- if (f <= 5)
534
- for (let o = 1; o <= f; o++)
534
+ if (h <= 5)
535
+ for (let t = 1; t <= h; t++)
535
536
  e.push(
536
- /* @__PURE__ */ t(
537
+ /* @__PURE__ */ o(
537
538
  k,
538
539
  {
539
- style: i === o ? y.paginationButtonActive : {},
540
- onClick: () => b(o),
541
- children: o
540
+ style: i === t ? y.paginationButtonActive : {},
541
+ onClick: () => b(t),
542
+ children: t
542
543
  },
543
- o
544
+ t
544
545
  )
545
546
  );
546
547
  else {
547
548
  e.push(
548
- /* @__PURE__ */ t(
549
+ /* @__PURE__ */ o(
549
550
  k,
550
551
  {
551
552
  style: i === 1 ? y.paginationButtonActive : {},
@@ -554,45 +555,45 @@ const Oe = ({
554
555
  },
555
556
  1
556
557
  )
557
- ), i > 3 && e.push(/* @__PURE__ */ t(K, { children: "..." }, "ellipsis1"));
558
- const o = Math.max(2, i - 1), a = Math.min(f - 1, i + 1);
559
- for (let h = o; h <= a; h++)
558
+ ), i > 3 && e.push(/* @__PURE__ */ o(Y, { children: "..." }, "ellipsis1"));
559
+ const t = Math.max(2, i - 1), a = Math.min(h - 1, i + 1);
560
+ for (let f = t; f <= a; f++)
560
561
  e.push(
561
- /* @__PURE__ */ t(
562
+ /* @__PURE__ */ o(
562
563
  k,
563
564
  {
564
- style: i === h ? y.paginationButtonActive : {},
565
- onClick: () => b(h),
566
- children: h
565
+ style: i === f ? y.paginationButtonActive : {},
566
+ onClick: () => b(f),
567
+ children: f
567
568
  },
568
- h
569
+ f
569
570
  )
570
571
  );
571
- i < f - 2 && e.push(/* @__PURE__ */ t(K, { children: "..." }, "ellipsis2")), f > 1 && e.push(
572
- /* @__PURE__ */ t(
572
+ i < h - 2 && e.push(/* @__PURE__ */ o(Y, { children: "..." }, "ellipsis2")), h > 1 && e.push(
573
+ /* @__PURE__ */ o(
573
574
  k,
574
575
  {
575
- style: i === f ? y.paginationButtonActive : {},
576
- onClick: () => b(f),
577
- children: f
576
+ style: i === h ? y.paginationButtonActive : {},
577
+ onClick: () => b(h),
578
+ children: h
578
579
  },
579
- f
580
+ h
580
581
  )
581
582
  );
582
583
  }
583
584
  return e;
584
585
  })(),
585
- /* @__PURE__ */ t(
586
+ /* @__PURE__ */ o(
586
587
  k,
587
588
  {
588
- style: i === f ? y.paginationButtonDisabled : {},
589
- onClick: () => b(Math.min(f, i + 1)),
590
- disabled: i === f,
589
+ style: i === h ? y.paginationButtonDisabled : {},
590
+ onClick: () => b(Math.min(h, i + 1)),
591
+ disabled: i === h,
591
592
  children: "Next"
592
593
  }
593
594
  )
594
595
  ] }),
595
- /* @__PURE__ */ c(we, { children: [
596
+ /* @__PURE__ */ c(ke, { children: [
596
597
  "Showing ",
597
598
  Math.min((i - 1) * l + 1, x.length),
598
599
  " to",
@@ -605,5 +606,5 @@ const Oe = ({
605
606
  ] });
606
607
  };
607
608
  export {
608
- Oe as default
609
+ qe as default
609
610
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.313",
4
+ "version": "0.0.317",
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",