jcicl 0.0.321 → 0.0.325

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 {
@@ -1,8 +1,11 @@
1
1
  import { CheckboxProps } from '@mui/material/Checkbox';
2
- export type LabeledCheckboxProps = {
2
+ export interface StyleProps {
3
+ displayMode?: boolean;
4
+ }
5
+ export type LabeledCheckboxProps = StyleProps & CheckboxProps & {
3
6
  label: string;
4
7
  colon?: boolean;
5
8
  noLabel?: boolean;
6
- } & CheckboxProps;
9
+ };
7
10
  export declare const LabeledCheckbox: React.FC<LabeledCheckboxProps>;
8
11
  export default LabeledCheckbox;
@@ -1,20 +1,20 @@
1
- import { jsxs as z, jsx as r } from "react/jsx-runtime";
2
- import { n as oe } from "../.chunks/emotion-styled.browser.esm.js";
3
- import { c as te } from "../.chunks/emotion-react.browser.esm.js";
1
+ import { jsxs as z, jsx as c } from "react/jsx-runtime";
2
+ import { n as te } from "../.chunks/emotion-styled.browser.esm.js";
3
+ import { c as T } from "../.chunks/emotion-react.browser.esm.js";
4
4
  import ae from "../theme.js";
5
5
  import * as v from "react";
6
- import { g as E, a as q, s as O, r as V, b as U, P as e, c as b, d as H, e as T, u as se } from "../.chunks/DefaultPropsProvider.js";
7
- import { u as ne } from "../.chunks/useFormControl.js";
8
- import { B as ce } from "../.chunks/ButtonBase.js";
9
- import { u as re } from "../.chunks/useControlled.js";
10
- import { r as D } from "../.chunks/TransitionGroupContext.js";
6
+ import { g as q, a as V, s as O, r as U, b as H, P as e, c as b, d as D, e as L, u as ne } from "../.chunks/DefaultPropsProvider.js";
7
+ import { u as se } from "../.chunks/useFormControl.js";
8
+ import { B as re } from "../.chunks/ButtonBase.js";
9
+ import { u as ce } from "../.chunks/useControlled.js";
10
+ import { r as _ } from "../.chunks/TransitionGroupContext.js";
11
11
  import { c as P } from "../.chunks/createSvgIcon.js";
12
12
  import { m as ie } from "../.chunks/memoTheme.js";
13
- import { c as L } from "../.chunks/createSimplePaletteValueFilter.js";
13
+ import { c as E } from "../.chunks/createSimplePaletteValueFilter.js";
14
14
  function le(o) {
15
- return E("PrivateSwitchBase", o);
15
+ return q("PrivateSwitchBase", o);
16
16
  }
17
- q("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
17
+ V("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
18
18
  const de = (o) => {
19
19
  const {
20
20
  classes: t,
@@ -25,8 +25,8 @@ const de = (o) => {
25
25
  root: ["root", a && "checked", s && "disabled", n && `edge${b(n)}`],
26
26
  input: ["input"]
27
27
  };
28
- return H(l, le, t);
29
- }, pe = O(ce)({
28
+ return D(l, le, t);
29
+ }, pe = O(re)({
30
30
  padding: 9,
31
31
  borderRadius: "50%",
32
32
  variants: [{
@@ -63,7 +63,7 @@ const de = (o) => {
63
63
  }
64
64
  }]
65
65
  }), ue = O("input", {
66
- shouldForwardProp: V
66
+ shouldForwardProp: U
67
67
  })({
68
68
  cursor: "inherit",
69
69
  position: "absolute",
@@ -75,7 +75,7 @@ const de = (o) => {
75
75
  margin: 0,
76
76
  padding: 0,
77
77
  zIndex: 1
78
- }), _ = /* @__PURE__ */ v.forwardRef(function(t, a) {
78
+ }), W = /* @__PURE__ */ v.forwardRef(function(t, a) {
79
79
  const {
80
80
  autoFocus: s,
81
81
  checked: n,
@@ -88,77 +88,77 @@ const de = (o) => {
88
88
  icon: w,
89
89
  id: B,
90
90
  inputProps: I,
91
- inputRef: C,
92
- name: y,
91
+ inputRef: y,
92
+ name: C,
93
93
  onBlur: f,
94
94
  onChange: h,
95
95
  onFocus: F,
96
- readOnly: A,
97
- required: G = !1,
98
- tabIndex: J,
96
+ readOnly: G,
97
+ required: J = !1,
98
+ tabIndex: K,
99
99
  type: x,
100
- value: j,
101
- ...K
102
- } = t, [$, Q] = re({
100
+ value: $,
101
+ ...Q
102
+ } = t, [j, X] = ce({
103
103
  controlled: n,
104
104
  default: !!d,
105
105
  name: "SwitchBase",
106
106
  state: "checked"
107
- }), i = ne(), X = (c) => {
108
- F && F(c), i && i.onFocus && i.onFocus(c);
109
- }, Y = (c) => {
110
- f && f(c), i && i.onBlur && i.onBlur(c);
111
- }, Z = (c) => {
112
- if (c.nativeEvent.defaultPrevented)
107
+ }), i = se(), Y = (r) => {
108
+ F && F(r), i && i.onFocus && i.onFocus(r);
109
+ }, Z = (r) => {
110
+ f && f(r), i && i.onBlur && i.onBlur(r);
111
+ }, ee = (r) => {
112
+ if (r.nativeEvent.defaultPrevented)
113
113
  return;
114
- const M = c.target.checked;
115
- Q(M), h && h(c, M);
114
+ const M = r.target.checked;
115
+ X(M), h && h(r, M);
116
116
  };
117
117
  let m = k;
118
118
  i && typeof m > "u" && (m = i.disabled);
119
- const ee = x === "checkbox" || x === "radio", R = {
119
+ const oe = x === "checkbox" || x === "radio", R = {
120
120
  ...t,
121
- checked: $,
121
+ checked: j,
122
122
  disabled: m,
123
123
  disableFocusRipple: g,
124
124
  edge: u
125
125
  }, N = de(R);
126
126
  return /* @__PURE__ */ z(pe, {
127
127
  component: "span",
128
- className: U(N.root, p),
128
+ className: H(N.root, p),
129
129
  centerRipple: !0,
130
130
  focusRipple: !g,
131
131
  disabled: m,
132
132
  tabIndex: null,
133
133
  role: void 0,
134
- onFocus: X,
135
- onBlur: Y,
134
+ onFocus: Y,
135
+ onBlur: Z,
136
136
  ownerState: R,
137
137
  ref: a,
138
- ...K,
139
- children: [/* @__PURE__ */ r(ue, {
138
+ ...Q,
139
+ children: [/* @__PURE__ */ c(ue, {
140
140
  autoFocus: s,
141
141
  checked: n,
142
142
  defaultChecked: d,
143
143
  className: N.input,
144
144
  disabled: m,
145
- id: ee ? B : void 0,
146
- name: y,
147
- onChange: Z,
148
- readOnly: A,
149
- ref: C,
150
- required: G,
145
+ id: oe ? B : void 0,
146
+ name: C,
147
+ onChange: ee,
148
+ readOnly: G,
149
+ ref: y,
150
+ required: J,
151
151
  ownerState: R,
152
- tabIndex: J,
152
+ tabIndex: K,
153
153
  type: x,
154
- ...x === "checkbox" && j === void 0 ? {} : {
155
- value: j
154
+ ...x === "checkbox" && $ === void 0 ? {} : {
155
+ value: $
156
156
  },
157
157
  ...I
158
- }), $ ? l : w]
158
+ }), j ? l : w]
159
159
  });
160
160
  });
161
- process.env.NODE_ENV !== "production" && (_.propTypes = {
161
+ process.env.NODE_ENV !== "production" && (W.propTypes = {
162
162
  /**
163
163
  * If `true`, the `input` element is focused during the first mount.
164
164
  */
@@ -215,7 +215,7 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
215
215
  /**
216
216
  * Pass a ref to the `input` element.
217
217
  */
218
- inputRef: D,
218
+ inputRef: _,
219
219
  /*
220
220
  * @ignore
221
221
  */
@@ -261,17 +261,17 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
261
261
  */
262
262
  value: e.any
263
263
  });
264
- const fe = P(/* @__PURE__ */ r("path", {
264
+ const fe = P(/* @__PURE__ */ c("path", {
265
265
  d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
266
- }), "CheckBoxOutlineBlank"), he = P(/* @__PURE__ */ r("path", {
266
+ }), "CheckBoxOutlineBlank"), he = P(/* @__PURE__ */ c("path", {
267
267
  d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
268
- }), "CheckBox"), me = P(/* @__PURE__ */ r("path", {
268
+ }), "CheckBox"), me = P(/* @__PURE__ */ c("path", {
269
269
  d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
270
270
  }), "IndeterminateCheckBox");
271
271
  function be(o) {
272
- return E("MuiCheckbox", o);
272
+ return q("MuiCheckbox", o);
273
273
  }
274
- const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), ke = (o) => {
274
+ const S = V("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), ke = (o) => {
275
275
  const {
276
276
  classes: t,
277
277
  indeterminate: a,
@@ -279,14 +279,14 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
279
279
  size: n
280
280
  } = o, l = {
281
281
  root: ["root", a && "indeterminate", `color${b(s)}`, `size${b(n)}`]
282
- }, p = H(l, be, t);
282
+ }, p = D(l, be, t);
283
283
  return {
284
284
  ...t,
285
285
  // forward the disabled and checked classes to the SwitchBase
286
286
  ...p
287
287
  };
288
- }, ge = O(_, {
289
- shouldForwardProp: (o) => V(o) || o === "classes",
288
+ }, ge = O(W, {
289
+ shouldForwardProp: (o) => U(o) || o === "classes",
290
290
  name: "MuiCheckbox",
291
291
  slot: "Root",
292
292
  overridesResolver: (o, t) => {
@@ -306,20 +306,20 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
306
306
  },
307
307
  style: {
308
308
  "&:hover": {
309
- backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : T(o.palette.action.active, o.palette.action.hoverOpacity)
309
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : L(o.palette.action.active, o.palette.action.hoverOpacity)
310
310
  }
311
311
  }
312
- }, ...Object.entries(o.palette).filter(L()).map(([t]) => ({
312
+ }, ...Object.entries(o.palette).filter(E()).map(([t]) => ({
313
313
  props: {
314
314
  color: t,
315
315
  disableRipple: !1
316
316
  },
317
317
  style: {
318
318
  "&:hover": {
319
- backgroundColor: o.vars ? `rgba(${o.vars.palette[t].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : T(o.palette[t].main, o.palette.action.hoverOpacity)
319
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[t].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : L(o.palette[t].main, o.palette.action.hoverOpacity)
320
320
  }
321
321
  }
322
- })), ...Object.entries(o.palette).filter(L()).map(([t]) => ({
322
+ })), ...Object.entries(o.palette).filter(E()).map(([t]) => ({
323
323
  props: {
324
324
  color: t
325
325
  },
@@ -345,14 +345,14 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
345
345
  }
346
346
  }
347
347
  }]
348
- }))), Ce = /* @__PURE__ */ r(he, {}), ye = /* @__PURE__ */ r(fe, {}), xe = /* @__PURE__ */ r(me, {}), W = /* @__PURE__ */ v.forwardRef(function(t, a) {
349
- const s = se({
348
+ }))), ye = /* @__PURE__ */ c(he, {}), Ce = /* @__PURE__ */ c(fe, {}), xe = /* @__PURE__ */ c(me, {}), A = /* @__PURE__ */ v.forwardRef(function(t, a) {
349
+ const s = ne({
350
350
  props: t,
351
351
  name: "MuiCheckbox"
352
352
  }), {
353
- checkedIcon: n = Ce,
353
+ checkedIcon: n = ye,
354
354
  color: l = "primary",
355
- icon: p = ye,
355
+ icon: p = Ce,
356
356
  indeterminate: d = !1,
357
357
  indeterminateIcon: k = xe,
358
358
  inputProps: g,
@@ -360,33 +360,33 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
360
360
  disableRipple: w = !1,
361
361
  className: B,
362
362
  ...I
363
- } = s, C = d ? k : p, y = d ? k : n, f = {
363
+ } = s, y = d ? k : p, C = d ? k : n, f = {
364
364
  ...s,
365
365
  disableRipple: w,
366
366
  color: l,
367
367
  indeterminate: d,
368
368
  size: u
369
369
  }, h = ke(f);
370
- return /* @__PURE__ */ r(ge, {
370
+ return /* @__PURE__ */ c(ge, {
371
371
  type: "checkbox",
372
372
  inputProps: {
373
373
  "data-indeterminate": d,
374
374
  ...g
375
375
  },
376
- icon: /* @__PURE__ */ v.cloneElement(C, {
377
- fontSize: C.props.fontSize ?? u
378
- }),
379
- checkedIcon: /* @__PURE__ */ v.cloneElement(y, {
376
+ icon: /* @__PURE__ */ v.cloneElement(y, {
380
377
  fontSize: y.props.fontSize ?? u
381
378
  }),
379
+ checkedIcon: /* @__PURE__ */ v.cloneElement(C, {
380
+ fontSize: C.props.fontSize ?? u
381
+ }),
382
382
  ownerState: f,
383
383
  ref: a,
384
- className: U(h.root, B),
384
+ className: H(h.root, B),
385
385
  ...I,
386
386
  classes: h
387
387
  });
388
388
  });
389
- process.env.NODE_ENV !== "production" && (W.propTypes = {
389
+ process.env.NODE_ENV !== "production" && (A.propTypes = {
390
390
  // ┌────────────────────────────── Warning ──────────────────────────────┐
391
391
  // │ These PropTypes are generated from the TypeScript type definitions. │
392
392
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -458,7 +458,7 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
458
458
  /**
459
459
  * Pass a ref to the `input` element.
460
460
  */
461
- inputRef: D,
461
+ inputRef: _,
462
462
  /**
463
463
  * Callback fired when the state is changed.
464
464
  *
@@ -487,8 +487,8 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
487
487
  */
488
488
  value: e.any
489
489
  });
490
- const ve = oe("div")(() => ({
491
- ...te`
490
+ const ve = te("div")(({ displayMode: o }) => ({
491
+ ...T`
492
492
  display: flex;
493
493
  flex-wrap: nowrap;
494
494
  align-items: flex-end;
@@ -510,18 +510,29 @@ const ve = oe("div")(() => ({
510
510
  .Mui-checked {
511
511
  color: ${ae.colors.green} !important;
512
512
  }
513
+
514
+ ${o && T`
515
+ .Mui-disabled {
516
+ color: inherit !important;
517
+ -webkit-text-fill-color: inherit !important;
518
+ background-color: transparent !important;
519
+ opacity: 1 !important;
520
+ cursor: default !important;
521
+ }
522
+ `}
513
523
  `
514
524
  })), Me = ({
515
525
  label: o,
516
526
  colon: t = !0,
517
- noLabel: a = !1,
518
- ...s
519
- }) => /* @__PURE__ */ z(ve, { className: "jcLabeledCheckbox", children: [
520
- !a && /* @__PURE__ */ z("span", { className: "jcCheckboxLabel", children: [
527
+ displayMode: a = !1,
528
+ noLabel: s = !1,
529
+ ...n
530
+ }) => /* @__PURE__ */ z(ve, { displayMode: a, className: "jcLabeledCheckbox", children: [
531
+ !s && /* @__PURE__ */ z("span", { className: "jcCheckboxLabel", children: [
521
532
  o,
522
533
  t && ":"
523
534
  ] }),
524
- /* @__PURE__ */ r(W, { ...s })
535
+ /* @__PURE__ */ c(A, { ...n })
525
536
  ] });
526
537
  export {
527
538
  Me as LabeledCheckbox,
@@ -1,10 +1,10 @@
1
1
  import { InputProps } from '../../../../../../../../../src/components/base/Input';
2
2
  export interface StyleProps {
3
3
  grid?: boolean;
4
+ displayMode?: boolean;
4
5
  }
5
- export type LabeledCurrencyInputProps = InputProps & {
6
+ export type LabeledCurrencyInputProps = InputProps & StyleProps & {
6
7
  label: string;
7
- grid?: boolean;
8
8
  noLabel?: boolean;
9
9
  defaultValue?: string;
10
10
  };
@@ -1,10 +1,10 @@
1
- import { jsxs as p, jsx as g } from "react/jsx-runtime";
2
- import { useState as d } from "react";
3
- import { n as w } from "../.chunks/emotion-styled.browser.esm.js";
4
- import { c as x } from "../.chunks/emotion-react.browser.esm.js";
5
- import { Input as y } from "../Input/Input.js";
6
- const I = w("div")(({ grid: r }) => ({
7
- ...x`
1
+ import { jsxs as l, jsx as y } from "react/jsx-runtime";
2
+ import { useState as b } from "react";
3
+ import { n as h } from "../.chunks/emotion-styled.browser.esm.js";
4
+ import { c } from "../.chunks/emotion-react.browser.esm.js";
5
+ import { Input as w } from "../Input/Input.js";
6
+ const x = h("div")(({ grid: r, displayMode: n }) => ({
7
+ ...c`
8
8
  display: flex;
9
9
  flex-wrap: nowrap;
10
10
  gap: 9px;
@@ -22,36 +22,47 @@ const I = w("div")(({ grid: r }) => ({
22
22
  .MuiCurrencyInputBase-root {
23
23
  width: ${r && "100%"};
24
24
  }
25
+
26
+ ${n && c`
27
+ .Mui-disabled {
28
+ color: inherit !important;
29
+ -webkit-text-fill-color: inherit !important;
30
+ background-color: transparent !important;
31
+ opacity: 1 !important;
32
+ cursor: default !important;
33
+ }
34
+ `}
25
35
  `
26
- })), j = ({
36
+ })), L = ({
27
37
  label: r,
28
- grid: l = !0,
29
- noLabel: m = !1,
30
- onChange: a,
31
- defaultValue: n,
32
- ...c
38
+ grid: n = !0,
39
+ displayMode: m = !1,
40
+ noLabel: u = !1,
41
+ onChange: i,
42
+ defaultValue: o,
43
+ ...f
33
44
  }) => {
34
- let t = (n == null ? void 0 : n.replace(/[^0-9.-]+/g, "")) ?? "";
35
- t && (t = new Intl.NumberFormat("en-US", {
45
+ let e = (o == null ? void 0 : o.replace(/[^0-9.-]+/g, "")) ?? "";
46
+ e && (e = new Intl.NumberFormat("en-US", {
36
47
  style: "decimal",
37
48
  maximumFractionDigits: 2
38
- }).format(Number(t)));
39
- const [u, o] = d(t);
40
- return /* @__PURE__ */ p(I, { grid: l, className: "jcLabeledCurrencyInput", children: [
41
- !m && /* @__PURE__ */ p("span", { children: [
49
+ }).format(Number(e)));
50
+ const [d, a] = b(e);
51
+ return /* @__PURE__ */ l(x, { ...{ grid: n, displayMode: m }, className: "jcLabeledCurrencyInput", children: [
52
+ !u && /* @__PURE__ */ l("span", { children: [
42
53
  r,
43
54
  ":"
44
55
  ] }),
45
- /* @__PURE__ */ g(y, { ...c, onChange: (i) => {
46
- const { value: f } = i.target, e = f.replace(/[^0-9.-]+/g, ""), s = new Intl.NumberFormat("en-US", {
56
+ /* @__PURE__ */ y(w, { ...f, onChange: (s) => {
57
+ const { value: g } = s.target, t = g.replace(/[^0-9.-]+/g, ""), p = new Intl.NumberFormat("en-US", {
47
58
  style: "decimal",
48
59
  maximumFractionDigits: 2
49
- }).format(Number(e) || 0);
50
- e && e.length > 1 && e[e.length - 1] === "." ? o(s + ".") : o(e ? s : ""), a && a(i);
51
- }, value: `$${u}` })
60
+ }).format(Number(t) || 0);
61
+ t && t.length > 1 && t[t.length - 1] === "." ? a(p + ".") : a(t ? p : ""), i && i(s);
62
+ }, value: `$${d}` })
52
63
  ] });
53
64
  };
54
65
  export {
55
- j as LabeledCurrencyInput,
56
- j as default
66
+ L as LabeledCurrencyInput,
67
+ L as default
57
68
  };
@@ -1,10 +1,10 @@
1
1
  import { InputProps } from '../../../../../../../../../src/components/base/Input';
2
2
  export interface StyleProps {
3
3
  grid?: boolean;
4
+ displayMode?: boolean;
4
5
  }
5
- export type LabeledInputProps = InputProps & {
6
+ export type LabeledInputProps = InputProps & StyleProps & {
6
7
  label?: string;
7
- grid?: boolean;
8
8
  noLabel?: boolean;
9
9
  limit?: number;
10
10
  };
@@ -1,9 +1,9 @@
1
- import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
- import { n } from "../.chunks/emotion-styled.browser.esm.js";
3
- import { c as l } from "../.chunks/emotion-react.browser.esm.js";
4
- import { Input as i } from "../Input/Input.js";
5
- const f = n("div")(({ grid: t }) => ({
6
- ...l`
1
+ import { jsxs as r, jsx as s } from "react/jsx-runtime";
2
+ import { n as l } from "../.chunks/emotion-styled.browser.esm.js";
3
+ import { c as a } from "../.chunks/emotion-react.browser.esm.js";
4
+ import { Input as d } from "../Input/Input.js";
5
+ const f = l("div")(({ grid: t, displayMode: o }) => ({
6
+ ...a`
7
7
  display: flex;
8
8
  flex-wrap: nowrap;
9
9
  gap: 9px;
@@ -21,21 +21,32 @@ const f = n("div")(({ grid: t }) => ({
21
21
  .MuiInputBase-root {
22
22
  width: ${t && "100%"};
23
23
  }
24
+
25
+ ${o && a`
26
+ .Mui-disabled {
27
+ color: inherit !important;
28
+ -webkit-text-fill-color: inherit !important;
29
+ background-color: transparent !important;
30
+ opacity: 1 !important;
31
+ cursor: default !important;
32
+ }
33
+ `}
24
34
  `
25
- })), w = ({
35
+ })), x = ({
26
36
  label: t,
27
37
  grid: o = !0,
28
- noLabel: p = !1,
29
- limit: s,
30
- ...a
31
- }) => /* @__PURE__ */ e(f, { grid: o, className: "jcLabeledInput", children: [
32
- !p && /* @__PURE__ */ e("span", { children: [
38
+ displayMode: e = !1,
39
+ noLabel: i = !1,
40
+ limit: p,
41
+ ...n
42
+ }) => /* @__PURE__ */ r(f, { grid: o, displayMode: e, className: "jcLabeledInput", children: [
43
+ !i && /* @__PURE__ */ r("span", { children: [
33
44
  t,
34
45
  ":"
35
46
  ] }),
36
- /* @__PURE__ */ r(i, { ...a, slotProps: { htmlInput: { limit: s } } })
47
+ /* @__PURE__ */ s(d, { ...n, slotProps: { htmlInput: { limit: p } } })
37
48
  ] });
38
49
  export {
39
- w as LabeledInput,
40
- w as default
50
+ x as LabeledInput,
51
+ x as default
41
52
  };
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";
5
- import { Button as ze } from "../Button/Button.js";
1
+ import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
+ import ze, { forwardRef as X, createElement as F, useState as y, useMemo as T } from "react";
3
+ import I from "../theme.js";
4
+ import { n as i } from "../.chunks/emotion-styled.browser.esm.js";
5
+ import { Button as Ae } from "../Button/Button.js";
6
+ import { Flex as je } from "../Flex/Flex.js";
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 Be = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ie = (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 = Ie(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(), _e = (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,7 +44,7 @@ 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 Te = X(
47
48
  ({
48
49
  color: n = "currentColor",
49
50
  size: r = 24,
@@ -52,22 +53,22 @@ const _e = Q(
52
53
  className: C = "",
53
54
  children: g,
54
55
  iconNode: M,
55
- ...i
56
- }, b) => N(
56
+ ...A
57
+ }, s) => F(
57
58
  "svg",
58
59
  {
59
- ref: b,
60
- ...Ie,
60
+ ref: s,
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", C),
67
+ ...!g && !_e(A) && { "aria-hidden": "true" },
68
+ ...A
68
69
  },
69
70
  [
70
- ...M.map(([T, d]) => N(T, d)),
71
+ ...M.map(([b, L]) => F(b, L)),
71
72
  ...Array.isArray(g) ? g : [g]
72
73
  ]
73
74
  )
@@ -79,19 +80,19 @@ const _e = Q(
79
80
  * See the LICENSE file in the root directory of this source tree.
80
81
  */
81
82
  const z = (n, r) => {
82
- const l = Q(
83
- ({ className: u, ...C }, g) => N(_e, {
83
+ const l = X(
84
+ ({ className: u, ...C }, g) => F(Te, {
84
85
  ref: g,
85
86
  iconNode: r,
86
- className: X(
87
- `lucide-${Ae(Z(n))}`,
87
+ className: P(
88
+ `lucide-${Be(G(n))}`,
88
89
  `lucide-${n}`,
89
90
  u
90
91
  ),
91
92
  ...C
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 Me = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], N = z("chevron-down", Me);
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 Le = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], J = z("chevron-up", Le);
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 Re = [
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
+ ], We = z("eye-off", Re);
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,24 +147,24 @@ const Re = [
146
147
  }
147
148
  ],
148
149
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
149
- ], We = z("eye", Re);
150
+ ], $e = z("eye", Ee);
150
151
  /**
151
152
  * @license lucide-react v0.525.0 - ISC
152
153
  *
153
154
  * This source code is licensed under the ISC license.
154
155
  * See the LICENSE file in the root directory of this source tree.
155
156
  */
156
- const $e = [
157
+ const Ne = [
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 = z("search", Ne);
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 = z("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
183
  onRowClick: C,
183
184
  hiddenColumns: g = [],
184
- defaultSort: M = { key: "", direction: "asc" }
185
+ defaultSort: M = { key: "", direction: "asc" },
186
+ extraActions: A
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 [s, b] = y(1), [, L] = y(""), [h, ee] = y(M), [w, _] = y(/* @__PURE__ */ new Set()), [R, V] = y(/* @__PURE__ */ new Set()), [U, oe] = y(!1), [O, te] = y(!1), d = T(() => n.length === 0 ? [] : Object.keys(n[0]).filter((e) => !g.includes(e)), [n]);
189
+ ze.useEffect(() => {
190
+ d.length > 0 && (V(new Set(d)), _(new Set(d)));
191
+ }, [d]);
192
+ const W = T(() => {
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 = T(() => h.key ? [...W].sort((e, t) => e[h.key] < t[h.key] ? h.direction === "asc" ? -1 : 1 : e[h.key] > t[h.key] ? h.direction === "asc" ? 1 : -1 : 0) : W, [W, h]), D = d.filter((e) => R.has(e)), ne = () => {
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((S) => r[S] || S), t = (S) => {
202
+ const B = String(S ?? "");
203
+ return /[",\n]/.test(B) ? `"${B.replace(/"/g, '""')}"` : B;
202
204
  }, f = [
203
205
  e.join(","),
204
206
  // header row
205
- ...x.map((S) => _.map((j) => t(S[j])).join(","))
207
+ ...x.map((S) => D.map((B) => t(S[B])).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;" }), j = document.createElement("a");
210
+ j.href = URL.createObjectURL(ve), j.download = "data.csv", document.body.appendChild(j), j.click(), document.body.removeChild(j);
211
+ }, re = T(() => {
212
+ const e = (s - 1) * l;
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, s, 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
+ }, se = (e) => {
220
+ _((t) => {
221
+ const c = new Set(t);
222
+ return c.has(e) ? c.delete(e) : c.add(e), c;
221
223
  });
222
- }, se = () => {
223
- w.size === p.length ? I(/* @__PURE__ */ new Set()) : I(new Set(p));
224
- }, ae = (e) => {
224
+ }, ae = () => {
225
+ w.size === d.length ? _(/* @__PURE__ */ new Set()) : _(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
- }, O = () => {
232
- T(v);
233
- }, y = {
233
+ }, H = () => {
234
+ L(v);
235
+ }, m = {
234
236
  thActive: {
235
- backgroundColor: B.colors.green,
236
- color: B.colors.white
237
+ backgroundColor: I.colors.green,
238
+ color: I.colors.white
237
239
  },
238
240
  paginationButtonActive: {
239
- backgroundColor: B.colors.green,
240
- color: B.colors.white,
241
- borderColor: B.colors.green
241
+ backgroundColor: I.colors.green,
242
+ color: I.colors.white,
243
+ borderColor: I.colors.green
242
244
  },
243
245
  paginationButtonDisabled: {
244
246
  opacity: 0.5,
@@ -250,7 +252,7 @@ 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)",
@@ -258,7 +260,7 @@ const qe = ({
258
260
  fontFamily: "Arial, sans-serif",
259
261
  maxWidth: "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
+ }), $ = i("input")({
364
366
  width: "16px",
365
367
  height: "16px",
366
368
  accentColor: "#009200"
367
- }), be = s("table")({
369
+ }), Ce = 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
+ }), me = 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
+ })), ke = 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
+ }), k = i("button")({
415
417
  padding: "8px 12px",
416
418
  border: "1px solid #e0e0e0",
417
419
  borderRadius: "4px",
@@ -430,51 +432,54 @@ const qe = ({
430
432
  opacity: 0.5,
431
433
  cursor: "not-allowed"
432
434
  }
433
- }), ke = s("div")({
435
+ }), Se = 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__ */ a(de, { children: [
446
+ /* @__PURE__ */ a(pe, { children: [
447
+ /* @__PURE__ */ a(he, { children: [
448
+ /* @__PURE__ */ o(fe, { children: u }),
449
+ /* @__PURE__ */ a(je, { className: "jcTableExtraComponentsBox", gap: "9px", children: [
450
+ A && A,
451
+ /* @__PURE__ */ o(Ae, { onClick: ne, children: "Export to CSV" })
452
+ ] })
448
453
  ] }),
449
- /* @__PURE__ */ c(fe, { children: [
450
- /* @__PURE__ */ c(ue, { children: [
451
- /* @__PURE__ */ o(xe, { onClick: O }),
454
+ /* @__PURE__ */ a(ue, { children: [
455
+ /* @__PURE__ */ a(xe, { children: [
456
+ /* @__PURE__ */ o(ge, { onClick: H }),
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
- e.key === "Enter" && O();
465
+ e.key === "Enter" && H();
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 }),
470
+ /* @__PURE__ */ a("div", { style: { position: "relative" }, children: [
471
+ /* @__PURE__ */ a(q, { onClick: () => te(!O), children: [
472
+ /* @__PURE__ */ o(Q, { size: 16 }),
468
473
  "Fields",
469
- /* @__PURE__ */ o(E, { size: 16 })
474
+ /* @__PURE__ */ o(N, { size: 16 })
470
475
  ] }),
471
- U && /* @__PURE__ */ c(q, { children: [
472
- /* @__PURE__ */ c(W, { onClick: se, children: [
476
+ O && /* @__PURE__ */ a(K, { children: [
477
+ /* @__PURE__ */ a(E, { onClick: ae, children: [
473
478
  /* @__PURE__ */ o(
474
479
  $,
475
480
  {
476
481
  type: "checkbox",
477
- checked: w.size === p.length,
482
+ checked: w.size === d.length,
478
483
  onChange: () => {
479
484
  }
480
485
  }
@@ -482,62 +487,62 @@ const qe = ({
482
487
  /* @__PURE__ */ o("span", { style: { fontWeight: "bold" }, children: "All" })
483
488
  ] }),
484
489
  /* @__PURE__ */ o("div", { style: { height: "1px", backgroundColor: "#e0e0e0", margin: "4px 0" } }),
485
- p.map((e) => /* @__PURE__ */ c(W, { onClick: () => ie(e), children: [
490
+ d.map((e) => /* @__PURE__ */ a(E, { onClick: () => se(e), children: [
486
491
  /* @__PURE__ */ o($, { type: "checkbox", checked: w.has(e), onChange: () => {
487
492
  } }),
488
493
  /* @__PURE__ */ o("span", { children: r[e] || e })
489
494
  ] }, e))
490
495
  ] })
491
496
  ] }),
492
- /* @__PURE__ */ c("div", { style: { position: "relative" }, children: [
493
- /* @__PURE__ */ c(H, { onClick: () => ee(!F), children: [
494
- /* @__PURE__ */ o(Ne, { size: 16 }),
497
+ /* @__PURE__ */ a("div", { style: { position: "relative" }, children: [
498
+ /* @__PURE__ */ a(q, { onClick: () => oe(!U), children: [
499
+ /* @__PURE__ */ o(Ve, { size: 16 }),
495
500
  "Columns",
496
- /* @__PURE__ */ o(E, { size: 16 })
501
+ /* @__PURE__ */ o(N, { size: 16 })
497
502
  ] }),
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: () => {
503
+ U && /* @__PURE__ */ o(K, { children: d.map((e) => /* @__PURE__ */ a(E, { onClick: () => ce(e), children: [
504
+ /* @__PURE__ */ o($, { type: "checkbox", checked: R.has(e), onChange: () => {
500
505
  } }),
501
- L.has(e) ? /* @__PURE__ */ o(We, { size: 16 }) : /* @__PURE__ */ o(Le, { size: 16 }),
506
+ R.has(e) ? /* @__PURE__ */ o($e, { size: 16 }) : /* @__PURE__ */ o(We, { size: 16 }),
502
507
  /* @__PURE__ */ o("span", { children: r[e] || e })
503
508
  ] }, e)) })
504
509
  ] })
505
510
  ] })
506
511
  ] }),
507
- /* @__PURE__ */ c(be, { children: [
508
- /* @__PURE__ */ o("thead", { children: /* @__PURE__ */ o(K, { interactableRow: !1, children: _.map((e) => /* @__PURE__ */ c(
509
- Ce,
512
+ /* @__PURE__ */ a(Ce, { children: [
513
+ /* @__PURE__ */ o("thead", { children: /* @__PURE__ */ o(Y, { interactableRow: !1, children: D.map((e) => /* @__PURE__ */ a(
514
+ me,
510
515
  {
511
- style: d.key === e ? y.thActive : {},
512
- onClick: () => re(e),
516
+ style: h.key === e ? m.thActive : {},
517
+ onClick: () => ie(e),
513
518
  children: [
514
519
  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 } }) })
520
+ /* @__PURE__ */ o(we, { children: h.key === e ? h.direction === "asc" ? /* @__PURE__ */ o(J, { size: 16 }) : /* @__PURE__ */ o(N, { size: 16 }) : /* @__PURE__ */ o(J, { size: 16, style: { opacity: 0.313 } }) })
516
521
  ]
517
522
  },
518
523
  e
519
524
  )) }) }),
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)) })
525
+ /* @__PURE__ */ o("tbody", { children: re.map((e, t) => /* @__PURE__ */ o(Y, { onClick: () => C && C(e), interactableRow: !!C, children: D.map((c) => /* @__PURE__ */ o(ye, { children: e[c] }, c)) }, t)) })
521
526
  ] }),
522
- /* @__PURE__ */ c(we, { children: [
527
+ /* @__PURE__ */ a(ke, { children: [
523
528
  /* @__PURE__ */ o(
524
529
  k,
525
530
  {
526
- style: i === 1 ? y.paginationButtonDisabled : {},
527
- onClick: () => b(Math.max(1, i - 1)),
528
- disabled: i === 1,
531
+ style: s === 1 ? m.paginationButtonDisabled : {},
532
+ onClick: () => b(Math.max(1, s - 1)),
533
+ disabled: s === 1,
529
534
  children: "Previous"
530
535
  }
531
536
  ),
532
537
  (() => {
533
538
  const e = [];
534
- if (h <= 5)
535
- for (let t = 1; t <= h; t++)
539
+ if (p <= 5)
540
+ for (let t = 1; t <= p; t++)
536
541
  e.push(
537
542
  /* @__PURE__ */ o(
538
543
  k,
539
544
  {
540
- style: i === t ? y.paginationButtonActive : {},
545
+ style: s === t ? m.paginationButtonActive : {},
541
546
  onClick: () => b(t),
542
547
  children: t
543
548
  },
@@ -549,35 +554,35 @@ const qe = ({
549
554
  /* @__PURE__ */ o(
550
555
  k,
551
556
  {
552
- style: i === 1 ? y.paginationButtonActive : {},
557
+ style: s === 1 ? m.paginationButtonActive : {},
553
558
  onClick: () => b(1),
554
559
  children: "1"
555
560
  },
556
561
  1
557
562
  )
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++)
563
+ ), s > 3 && e.push(/* @__PURE__ */ o(Z, { children: "..." }, "ellipsis1"));
564
+ const t = Math.max(2, s - 1), c = Math.min(p - 1, s + 1);
565
+ for (let f = t; f <= c; f++)
561
566
  e.push(
562
567
  /* @__PURE__ */ o(
563
568
  k,
564
569
  {
565
- style: i === f ? y.paginationButtonActive : {},
570
+ style: s === f ? m.paginationButtonActive : {},
566
571
  onClick: () => b(f),
567
572
  children: f
568
573
  },
569
574
  f
570
575
  )
571
576
  );
572
- i < h - 2 && e.push(/* @__PURE__ */ o(Y, { children: "..." }, "ellipsis2")), h > 1 && e.push(
577
+ s < p - 2 && e.push(/* @__PURE__ */ o(Z, { children: "..." }, "ellipsis2")), p > 1 && e.push(
573
578
  /* @__PURE__ */ o(
574
579
  k,
575
580
  {
576
- style: i === h ? y.paginationButtonActive : {},
577
- onClick: () => b(h),
578
- children: h
581
+ style: s === p ? m.paginationButtonActive : {},
582
+ onClick: () => b(p),
583
+ children: p
579
584
  },
580
- h
585
+ p
581
586
  )
582
587
  );
583
588
  }
@@ -586,19 +591,19 @@ const qe = ({
586
591
  /* @__PURE__ */ o(
587
592
  k,
588
593
  {
589
- style: i === h ? y.paginationButtonDisabled : {},
590
- onClick: () => b(Math.min(h, i + 1)),
591
- disabled: i === h,
594
+ style: s === p ? m.paginationButtonDisabled : {},
595
+ onClick: () => b(Math.min(p, s + 1)),
596
+ disabled: s === p,
592
597
  children: "Next"
593
598
  }
594
599
  )
595
600
  ] }),
596
- /* @__PURE__ */ c(ke, { children: [
601
+ /* @__PURE__ */ a(Se, { children: [
597
602
  "Showing ",
598
- Math.min((i - 1) * l + 1, x.length),
603
+ Math.min((s - 1) * l + 1, x.length),
599
604
  " to",
600
605
  " ",
601
- Math.min(i * l, x.length),
606
+ Math.min(s * l, x.length),
602
607
  " of ",
603
608
  x.length,
604
609
  " entries"
@@ -606,5 +611,5 @@ const qe = ({
606
611
  ] });
607
612
  };
608
613
  export {
609
- qe as default
614
+ Ze as default
610
615
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.321",
4
+ "version": "0.0.325",
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",