jcicl 0.0.323 → 0.0.327

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