jcicl 0.0.303 → 0.0.307

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