jcicl 0.0.295 → 0.0.299

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