jcicl 0.0.315 → 0.0.319

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
@@ -1,20 +1,20 @@
1
- import { jsxs as H, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as U, jsx as i } from "react/jsx-runtime";
2
2
  import * as B from "react";
3
- import { g as _, a as A, s, r as q, c as p, m as J, u as K, b as R, P as r, d as Q, e as $ } from "../.chunks/DefaultPropsProvider.js";
3
+ import { g as _, a as A, s, r as q, c as p, m as J, u as K, b as R, P as t, d as Q, e as $ } from "../.chunks/DefaultPropsProvider.js";
4
4
  import { m as X } from "../.chunks/memoTheme.js";
5
5
  import { c as Y } from "../.chunks/createSimplePaletteValueFilter.js";
6
- import { B as z } from "../.chunks/ButtonBase.js";
6
+ import { B as m } from "../.chunks/ButtonBase.js";
7
7
  import { i as Z } from "../.chunks/emotion-styled.browser.esm.js";
8
- import { c as g } from "../.chunks/emotion-react.browser.esm.js";
9
- import t from "../theme.js";
8
+ import { c as v } from "../.chunks/emotion-react.browser.esm.js";
9
+ import r from "../theme.js";
10
10
  function oo(o) {
11
11
  return _("MuiButton", o);
12
12
  }
13
- const v = A("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), E = /* @__PURE__ */ B.createContext({});
13
+ const g = A("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), E = /* @__PURE__ */ B.createContext({});
14
14
  process.env.NODE_ENV !== "production" && (E.displayName = "ButtonGroupContext");
15
15
  const T = /* @__PURE__ */ B.createContext(void 0);
16
16
  process.env.NODE_ENV !== "production" && (T.displayName = "ButtonGroupButtonContext");
17
- const to = (o) => {
17
+ const ro = (o) => {
18
18
  const {
19
19
  color: a,
20
20
  disableElevation: n,
@@ -60,7 +60,7 @@ const to = (o) => {
60
60
  fontSize: 22
61
61
  }
62
62
  }
63
- }], ro = s(z, {
63
+ }], to = s(m, {
64
64
  shouldForwardProp: (o) => q(o) || o === "classes",
65
65
  name: "MuiButton",
66
66
  slot: "Root",
@@ -86,7 +86,7 @@ const to = (o) => {
86
86
  "&:hover": {
87
87
  textDecoration: "none"
88
88
  },
89
- [`&.${v.disabled}`]: {
89
+ [`&.${g.disabled}`]: {
90
90
  color: (o.vars || o).palette.action.disabled
91
91
  },
92
92
  variants: [{
@@ -107,10 +107,10 @@ const to = (o) => {
107
107
  "&:active": {
108
108
  boxShadow: (o.vars || o).shadows[8]
109
109
  },
110
- [`&.${v.focusVisible}`]: {
110
+ [`&.${g.focusVisible}`]: {
111
111
  boxShadow: (o.vars || o).shadows[6]
112
112
  },
113
- [`&.${v.disabled}`]: {
113
+ [`&.${g.disabled}`]: {
114
114
  color: (o.vars || o).palette.action.disabled,
115
115
  boxShadow: (o.vars || o).shadows[0],
116
116
  backgroundColor: (o.vars || o).palette.action.disabledBackground
@@ -126,7 +126,7 @@ const to = (o) => {
126
126
  borderColor: "var(--variant-outlinedBorder, currentColor)",
127
127
  backgroundColor: "var(--variant-outlinedBg)",
128
128
  color: "var(--variant-outlinedColor)",
129
- [`&.${v.disabled}`]: {
129
+ [`&.${g.disabled}`]: {
130
130
  border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
131
131
  }
132
132
  }
@@ -237,13 +237,13 @@ const to = (o) => {
237
237
  "&:hover": {
238
238
  boxShadow: "none"
239
239
  },
240
- [`&.${v.focusVisible}`]: {
240
+ [`&.${g.focusVisible}`]: {
241
241
  boxShadow: "none"
242
242
  },
243
243
  "&:active": {
244
244
  boxShadow: "none"
245
245
  },
246
- [`&.${v.disabled}`]: {
246
+ [`&.${g.disabled}`]: {
247
247
  boxShadow: "none"
248
248
  }
249
249
  }
@@ -306,7 +306,7 @@ const to = (o) => {
306
306
  children: x,
307
307
  color: f = "primary",
308
308
  component: l = "button",
309
- className: m,
309
+ className: h,
310
310
  disabled: c = !1,
311
311
  disableElevation: C = !1,
312
312
  disableFocusRipple: k = !1,
@@ -329,7 +329,7 @@ const to = (o) => {
329
329
  size: M,
330
330
  type: N,
331
331
  variant: G
332
- }, y = to(w), L = O && /* @__PURE__ */ i(ao, {
332
+ }, y = ro(w), L = O && /* @__PURE__ */ i(ao, {
333
333
  className: y.startIcon,
334
334
  ownerState: w,
335
335
  children: O
@@ -337,10 +337,10 @@ const to = (o) => {
337
337
  className: y.endIcon,
338
338
  ownerState: w,
339
339
  children: I
340
- }), U = d || "";
341
- return /* @__PURE__ */ H(ro, {
340
+ }), H = d || "";
341
+ return /* @__PURE__ */ U(to, {
342
342
  ownerState: w,
343
- className: R(e.className, y.root, m, U),
343
+ className: R(e.className, y.root, h, H),
344
344
  component: l,
345
345
  disabled: c,
346
346
  focusRipple: !k,
@@ -360,42 +360,42 @@ process.env.NODE_ENV !== "production" && (j.propTypes = {
360
360
  /**
361
361
  * The content of the component.
362
362
  */
363
- children: r.node,
363
+ children: t.node,
364
364
  /**
365
365
  * Override or extend the styles applied to the component.
366
366
  */
367
- classes: r.object,
367
+ classes: t.object,
368
368
  /**
369
369
  * @ignore
370
370
  */
371
- className: r.string,
371
+ className: t.string,
372
372
  /**
373
373
  * The color of the component.
374
374
  * It supports both default and custom theme colors, which can be added as shown in the
375
375
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
376
376
  * @default 'primary'
377
377
  */
378
- color: r.oneOfType([r.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), r.string]),
378
+ color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), t.string]),
379
379
  /**
380
380
  * The component used for the root node.
381
381
  * Either a string to use a HTML element or a component.
382
382
  */
383
- component: r.elementType,
383
+ component: t.elementType,
384
384
  /**
385
385
  * If `true`, the component is disabled.
386
386
  * @default false
387
387
  */
388
- disabled: r.bool,
388
+ disabled: t.bool,
389
389
  /**
390
390
  * If `true`, no elevation is used.
391
391
  * @default false
392
392
  */
393
- disableElevation: r.bool,
393
+ disableElevation: t.bool,
394
394
  /**
395
395
  * If `true`, the keyboard focus ripple is disabled.
396
396
  * @default false
397
397
  */
398
- disableFocusRipple: r.bool,
398
+ disableFocusRipple: t.bool,
399
399
  /**
400
400
  * If `true`, the ripple effect is disabled.
401
401
  *
@@ -403,87 +403,87 @@ process.env.NODE_ENV !== "production" && (j.propTypes = {
403
403
  * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
404
404
  * @default false
405
405
  */
406
- disableRipple: r.bool,
406
+ disableRipple: t.bool,
407
407
  /**
408
408
  * Element placed after the children.
409
409
  */
410
- endIcon: r.node,
410
+ endIcon: t.node,
411
411
  /**
412
412
  * @ignore
413
413
  */
414
- focusVisibleClassName: r.string,
414
+ focusVisibleClassName: t.string,
415
415
  /**
416
416
  * If `true`, the button will take up the full width of its container.
417
417
  * @default false
418
418
  */
419
- fullWidth: r.bool,
419
+ fullWidth: t.bool,
420
420
  /**
421
421
  * The URL to link to when the button is clicked.
422
422
  * If defined, an `a` element will be used as the root node.
423
423
  */
424
- href: r.string,
424
+ href: t.string,
425
425
  /**
426
426
  * The size of the component.
427
427
  * `small` is equivalent to the dense button styling.
428
428
  * @default 'medium'
429
429
  */
430
- size: r.oneOfType([r.oneOf(["small", "medium", "large"]), r.string]),
430
+ size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
431
431
  /**
432
432
  * Element placed before the children.
433
433
  */
434
- startIcon: r.node,
434
+ startIcon: t.node,
435
435
  /**
436
436
  * The system prop that allows defining system overrides as well as additional CSS styles.
437
437
  */
438
- sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
438
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
439
439
  /**
440
440
  * @ignore
441
441
  */
442
- type: r.oneOfType([r.oneOf(["button", "reset", "submit"]), r.string]),
442
+ type: t.oneOfType([t.oneOf(["button", "reset", "submit"]), t.string]),
443
443
  /**
444
444
  * The variant to use.
445
445
  * @default 'text'
446
446
  */
447
- variant: r.oneOfType([r.oneOf(["contained", "outlined", "text"]), r.string])
447
+ variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
448
448
  });
449
449
  const S = s(j)`
450
450
  text-transform: none;
451
451
  &:disabled {
452
452
  opacity: 0.5;
453
- color: ${t.colors.black};
453
+ color: ${r.colors.black};
454
454
  display: flex;
455
455
  justify-content: center;
456
456
  align-items: center;
457
457
  }
458
458
  `, eo = s(S)`
459
- background-color: ${t.colors.green};
459
+ background-color: ${r.colors.green};
460
460
  border-radius: 0;
461
461
  height: 2.5rem;
462
462
  border: 2px solid transparent;
463
- color: ${t.colors.white};
463
+ color: ${r.colors.white};
464
464
  transition: 313ms all ease-in;
465
465
  border-radius: 32px;
466
466
  font-weight: 400;
467
467
  padding: 0.75rem 2rem;
468
468
  font-size: 1rem;
469
- box-shadow: ${t.boxShadows.gray63};
469
+ box-shadow: ${r.boxShadows.gray63};
470
470
  &:hover,
471
471
  :focus-visible {
472
- background-color: ${t.colors.darkGreen};
473
- box-shadow: ${t.boxShadows.black63};
472
+ background-color: ${r.colors.darkGreen};
473
+ box-shadow: ${r.boxShadows.black63};
474
474
  }
475
475
  &:disabled {
476
- background-color: ${t.colors.darkGreen};
476
+ background-color: ${r.colors.darkGreen};
477
477
  }
478
478
  `, io = s(S)(
479
479
  ({
480
- customBackgroundColor: o = t.colors.green,
481
- customHoverColor: a = t.colors.darkGreen,
482
- customTextColor: n = t.colors.white,
483
- customShadow1: e = t.boxShadows.gray63,
484
- customShadow2: d = t.boxShadows.black63
480
+ customBackgroundColor: o = r.colors.green,
481
+ customHoverColor: a = r.colors.darkGreen,
482
+ customTextColor: n = r.colors.white,
483
+ customShadow1: e = r.boxShadows.gray63,
484
+ customShadow2: d = r.boxShadows.black63
485
485
  }) => ({
486
- ...g`
486
+ ...v`
487
487
  background-color: ${o};
488
488
  border-radius: 0;
489
489
  height: 2.5rem;
@@ -506,55 +506,71 @@ const S = s(j)`
506
506
  `
507
507
  })
508
508
  ), so = s(S)`
509
- color: ${t.colors.black};
510
- border: 3px solid ${t.colors.blue};
511
- padding: 0.5rem 2rem;
512
- `, h = s(S)(({ width: o = "114px" }) => ({
513
- ...g`
509
+ background-color: ${r.colors.gold};
510
+ border-radius: 0;
511
+ height: 2.5rem;
512
+ border: 2px solid transparent;
513
+ color: ${r.colors.midnight};
514
+ transition: 313ms all ease-in;
515
+ border-radius: 32px;
516
+ font-weight: 400;
517
+ padding: 0.75rem 2rem;
518
+ font-size: 19px;
519
+ box-shadow: ${r.boxShadows.gray63};
520
+ &:hover,
521
+ :focus-visible {
522
+ background-color: ${r.colors.goldHover};
523
+ box-shadow: ${r.boxShadows.gray63};
524
+ }
525
+ &:disabled {
526
+ background-color: ${r.colors.goldHover};
527
+ }
528
+ `, z = s(S)(({ width: o = "114px" }) => ({
529
+ ...v`
514
530
  box-sizing: border-box;
515
- background-color: ${t.colors.bibiBlue};
531
+ background-color: ${r.colors.bibiBlue};
516
532
  border-radius: 0;
517
533
  height: 47px;
518
534
  width: ${o};
519
535
  border: 2px solid transparent;
520
- color: ${t.colors.white};
536
+ color: ${r.colors.white};
521
537
  transition: 108ms all ease-in;
522
538
  font-weight: 500;
523
539
  padding: 0;
524
540
  font-size: 19px;
525
541
  &:hover,
526
542
  :focus-visible {
527
- background-color: ${t.colors.bibiBlueHover};
543
+ background-color: ${r.colors.bibiBlueHover};
528
544
  }
529
545
  `
530
- })), lo = s(h)(({ active: o }) => ({
531
- ...g`
532
- background-color: ${o && t.colors.white};
533
- color: ${o && t.colors.bibiBlue};
546
+ })), lo = s(z)(({ active: o }) => ({
547
+ ...v`
548
+ background-color: ${o && r.colors.white};
549
+ color: ${o && r.colors.bibiBlue};
534
550
  &:hover,
535
551
  :focus-visible {
536
- background-color: ${t.colors.white};
537
- color: ${t.colors.bibiBlue};
552
+ background-color: ${r.colors.white};
553
+ color: ${r.colors.bibiBlue};
538
554
  }
539
555
  `
540
- })), co = s(h)(() => ({
541
- ...g`
542
- background-color: ${t.colors.white};
543
- color: ${t.colors.bibiBlue};
556
+ })), co = s(z)(() => ({
557
+ ...v`
558
+ background-color: ${r.colors.white};
559
+ color: ${r.colors.bibiBlue};
544
560
  &:hover,
545
561
  :focus-visible {
546
- background-color: ${t.colors.bibiBlue};
547
- border: 2px solid ${t.colors.white};
548
- color: ${t.colors.white};
562
+ background-color: ${r.colors.bibiBlue};
563
+ border: 2px solid ${r.colors.white};
564
+ color: ${r.colors.white};
549
565
  }
550
566
  `
551
- })), po = s(z)`
567
+ })), po = s(m)`
552
568
  border-radius: 8px;
553
- `, uo = s(z, {
569
+ `, uo = s(m, {
554
570
  shouldForwardProp: (o) => typeof o == "string" && Z(o)
555
571
  })(
556
572
  ({ size: o, color: a, highlightColor: n, hoverColor: e }) => ({
557
- ...g`
573
+ ...v`
558
574
  display: flex;
559
575
  align-items: center;
560
576
  justify-content: center;
@@ -579,36 +595,36 @@ const S = s(j)`
579
595
  `
580
596
  })
581
597
  ), bo = s(S)(({ active: o }) => ({
582
- ...g`
598
+ ...v`
583
599
  box-sizing: border-box;
584
- background-color: ${o ? t.colors.black : t.colors.white};
600
+ background-color: ${o ? r.colors.black : r.colors.white};
585
601
  height: 28px;
586
602
  border-radius: 18px;
587
603
  display: flex;
588
604
  align-items: center;
589
605
  justify-content: center;
590
- border: 2px solid ${o ? "transparent" : t.colors.black};
591
- color: ${o ? t.colors.white : t.colors.black};
606
+ border: 2px solid ${o ? "transparent" : r.colors.black};
607
+ color: ${o ? r.colors.white : r.colors.black};
592
608
  transition: 108ms all ease-in;
593
609
  font-weight: 500;
594
610
 
595
611
  &:hover,
596
612
  :focus-visible {
597
- background-color: ${o ? t.colors.charcoal : t.colors.gray2};
613
+ background-color: ${o ? r.colors.charcoal : r.colors.gray2};
598
614
  }
599
615
  `
600
616
  })), wo = ({
601
617
  variant: o = 1,
602
618
  size: a = 50,
603
- color: n = t.colors.darkGreen,
604
- highlightColor: e = t.colors.dandelion,
605
- hoverColor: d = t.colors.green,
606
- backgroundColor: u = t.colors.darkGreen,
607
- textColor: b = t.colors.white,
608
- customShadow1: x = t.boxShadows.gray63,
609
- customShadow2: f = t.boxShadows.black63,
619
+ color: n = r.colors.darkGreen,
620
+ highlightColor: e = r.colors.dandelion,
621
+ hoverColor: d = r.colors.green,
622
+ backgroundColor: u = r.colors.darkGreen,
623
+ textColor: b = r.colors.white,
624
+ customShadow1: x = r.boxShadows.gray63,
625
+ customShadow2: f = r.boxShadows.black63,
610
626
  children: l,
611
- active: m,
627
+ active: h,
612
628
  ...c
613
629
  }) => o === "custom" ? /* @__PURE__ */ i(
614
630
  io,
@@ -622,7 +638,7 @@ const S = s(j)`
622
638
  ...c,
623
639
  children: l
624
640
  }
625
- ) : o === "bibi" ? /* @__PURE__ */ i(h, { ...c, children: l }) : o === "bibiOutlined" ? /* @__PURE__ */ i(lo, { ...c, children: l }) : o === "bibiInverse" ? /* @__PURE__ */ i(co, { ...c, children: l }) : o === "unstyled" ? /* @__PURE__ */ i(po, { ...c, children: l }) : o === 2 ? /* @__PURE__ */ i(so, { ...c, children: /* @__PURE__ */ i("span", { children: l }) }) : o === "icon" ? /* @__PURE__ */ i(uo, { className: "jcIconButton", ...{ size: a, color: n, highlightColor: e, hoverColor: d }, ...c, children: l }) : o === "filter" ? /* @__PURE__ */ i(bo, { className: "jcFilterButton", active: m, ...c, children: l }) : /* @__PURE__ */ i(eo, { ...c, children: /* @__PURE__ */ i("span", { children: l }) });
641
+ ) : o === "bibi" ? /* @__PURE__ */ i(z, { ...c, children: l }) : o === "bibiOutlined" ? /* @__PURE__ */ i(lo, { ...c, children: l }) : o === "bibiInverse" ? /* @__PURE__ */ i(co, { ...c, children: l }) : o === "unstyled" ? /* @__PURE__ */ i(po, { ...c, children: l }) : o === 2 ? /* @__PURE__ */ i(so, { ...c, children: /* @__PURE__ */ i("span", { children: l }) }) : o === "icon" ? /* @__PURE__ */ i(uo, { className: "jcIconButton", ...{ size: a, color: n, highlightColor: e, hoverColor: d }, ...c, children: l }) : o === "filter" ? /* @__PURE__ */ i(bo, { className: "jcFilterButton", active: h, ...c, children: l }) : /* @__PURE__ */ i(eo, { ...c, children: /* @__PURE__ */ i("span", { children: l }) });
626
642
  export {
627
643
  wo as Button,
628
644
  wo as default
@@ -2,7 +2,8 @@ import { LabeledInputProps } from '../../../../../../../../../src/components/com
2
2
  import { LabeledCurrencyInputProps } from '../../../../../../../../../src/components/composite/LabeledCurrencyInput';
3
3
  import { LabeledCheckboxProps } from '../../../../../../../../../src/components/composite/LabeledCheckbox';
4
4
  import { LabeledDropdownProps } from '../../../../../../../../../src/components/composite/LabeledDropdown';
5
- export type AllInputProps = LabeledInputProps & LabeledCheckboxProps & LabeledDropdownProps & LabeledCurrencyInputProps;
5
+ import { LabeledTextAreaProps } from '../../../../../../../../../src/components/composite/LabeledTextArea/LabeledTextArea';
6
+ export type AllInputProps = LabeledInputProps & LabeledCheckboxProps & LabeledDropdownProps & LabeledCurrencyInputProps & LabeledTextAreaProps;
6
7
  export type FormInputProps = AllInputProps & {
7
8
  type?: 'text' | 'dropdown' | 'date' | 'number' | 'checkbox' | 'radio' | 'textarea' | 'currency';
8
9
  };
@@ -1,13 +1,14 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { LabeledInput as t } from "../LabeledInput/LabeledInput.js";
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { LabeledInput as o } from "../LabeledInput/LabeledInput.js";
3
3
  import { LabeledCurrencyInput as m } from "../LabeledCurrencyInput/LabeledCurrencyInput.js";
4
- import { LabeledCheckbox as n } from "../LabeledCheckbox/LabeledCheckbox.js";
5
- import { LabeledDropdown as d } from "../LabeledDropdown/LabeledDropdown.js";
6
- const l = (r) => {
4
+ import { LabeledCheckbox as f } from "../LabeledCheckbox/LabeledCheckbox.js";
5
+ import { LabeledDropdown as a } from "../LabeledDropdown/LabeledDropdown.js";
6
+ import { LabeledTextArea as d } from "../LabeledTextArea/LabeledTextArea.js";
7
+ const i = (r) => {
7
8
  const { type: e = "text" } = r;
8
- return e === "dropdown" || e === "multiDropdown" ? /* @__PURE__ */ o(d, { ...r }) : e === "checkbox" ? /* @__PURE__ */ o(n, { ...r }) : e === "currency" ? /* @__PURE__ */ o(m, { ...r }) : /* @__PURE__ */ o(t, { ...r, type: e });
9
+ return e === "dropdown" || e === "multiDropdown" ? /* @__PURE__ */ t(a, { ...r }) : e === "checkbox" ? /* @__PURE__ */ t(f, { ...r }) : e === "currency" ? /* @__PURE__ */ t(m, { ...r }) : e === "textarea" ? /* @__PURE__ */ t(d, { ...r }) : /* @__PURE__ */ t(o, { ...r, type: e });
9
10
  };
10
11
  export {
11
- l as FormInput,
12
- l as default
12
+ i as FormInput,
13
+ i as default
13
14
  };
@@ -0,0 +1,9 @@
1
+ import { TextFieldProps } from '@mui/material/TextField';
2
+ export interface StyleProps {
3
+ grid?: boolean;
4
+ }
5
+ export type LabeledTextAreaProps = TextFieldProps & {
6
+ label?: string;
7
+ };
8
+ export declare const LabeledTextArea: React.FC<LabeledTextAreaProps>;
9
+ export default LabeledTextArea;
@@ -0,0 +1,54 @@
1
+ import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
+ import { n as s } from "../.chunks/emotion-styled.browser.esm.js";
3
+ import { c as a } from "../.chunks/emotion-react.browser.esm.js";
4
+ import o from "../theme.js";
5
+ import { T as n } from "../.chunks/TextField.js";
6
+ const d = s("div")(() => ({
7
+ ...a`
8
+ display: flex;
9
+ flex-direction: column;
10
+ font-family: 'Roboto', sans-serif;
11
+
12
+ span {
13
+ font-weight: bold;
14
+ margin-bottom: 3px;
15
+ }
16
+
17
+ .MuiInputBase-root {
18
+ padding: 0px;
19
+
20
+ textarea {
21
+ &:hover,
22
+ :focus {
23
+ box-shadow: ${o.boxShadows.green} inset;
24
+ }
25
+ width: 100%;
26
+ padding: 13px;
27
+ border: 1px solid ${o.colors.formBorder};
28
+ border-radius: 9px;
29
+ resize: vertical;
30
+ min-height: 130px;
31
+ font-family: inherit;
32
+ transition: all 313ms ease;
33
+ background: transparent;
34
+ }
35
+
36
+ fieldset {
37
+ border: none;
38
+ }
39
+
40
+ &.Mui-focused {
41
+ fieldset {
42
+ border: none;
43
+ }
44
+ }
45
+ }
46
+ `
47
+ })), c = ({ label: e, ...t }) => /* @__PURE__ */ i(d, { className: "jcLabeledTextArea", children: [
48
+ e && /* @__PURE__ */ r("span", { children: e }),
49
+ /* @__PURE__ */ r(n, { ...t, multiline: !0, fullWidth: !0, rows: 1 })
50
+ ] });
51
+ export {
52
+ c as LabeledTextArea,
53
+ c as default
54
+ };
package/Table/Table.js CHANGED
@@ -1,20 +1,21 @@
1
- import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
- import Se, { forwardRef as J, createElement as E, useState as m, useMemo as _ } from "react";
1
+ import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
+ import ve, { forwardRef as Q, createElement as N, useState as m, useMemo as D } from "react";
3
+ import B from "../theme.js";
3
4
  import { n as s } from "../.chunks/emotion-styled.browser.esm.js";
4
- import { Button as ve } from "../Button/Button.js";
5
+ import { Button as ze } from "../Button/Button.js";
5
6
  /**
6
7
  * @license lucide-react v0.525.0 - ISC
7
8
  *
8
9
  * This source code is licensed under the ISC license.
9
10
  * See the LICENSE file in the root directory of this source tree.
10
11
  */
11
- const ze = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ae = (n) => n.replace(
12
+ const Ae = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), je = (n) => n.replace(
12
13
  /^([A-Z])|[\s-_]+(\w)/g,
13
14
  (r, l, u) => u ? u.toUpperCase() : l.toLowerCase()
14
- ), Y = (n) => {
15
- const r = Ae(n);
15
+ ), Z = (n) => {
16
+ const r = je(n);
16
17
  return r.charAt(0).toUpperCase() + r.slice(1);
17
- }, Q = (...n) => n.filter((r, l, u) => !!r && r.trim() !== "" && u.indexOf(r) === l).join(" ").trim(), je = (n) => {
18
+ }, X = (...n) => n.filter((r, l, u) => !!r && r.trim() !== "" && u.indexOf(r) === l).join(" ").trim(), Be = (n) => {
18
19
  for (const r in n)
19
20
  if (r.startsWith("aria-") || r === "role" || r === "title")
20
21
  return !0;
@@ -25,7 +26,7 @@ const ze = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ae = (
25
26
  * This source code is licensed under the ISC license.
26
27
  * See the LICENSE file in the root directory of this source tree.
27
28
  */
28
- var Be = {
29
+ var Ie = {
29
30
  xmlns: "http://www.w3.org/2000/svg",
30
31
  width: 24,
31
32
  height: 24,
@@ -42,7 +43,7 @@ var Be = {
42
43
  * This source code is licensed under the ISC license.
43
44
  * See the LICENSE file in the root directory of this source tree.
44
45
  */
45
- const Ie = J(
46
+ const _e = Q(
46
47
  ({
47
48
  color: n = "currentColor",
48
49
  size: r = 24,
@@ -50,23 +51,23 @@ const Ie = J(
50
51
  absoluteStrokeWidth: u,
51
52
  className: C = "",
52
53
  children: g,
53
- iconNode: D,
54
+ iconNode: M,
54
55
  ...i
55
- }, b) => E(
56
+ }, b) => N(
56
57
  "svg",
57
58
  {
58
59
  ref: b,
59
- ...Be,
60
+ ...Ie,
60
61
  width: r,
61
62
  height: r,
62
63
  stroke: n,
63
64
  strokeWidth: u ? Number(l) * 24 / Number(r) : l,
64
- className: Q("lucide", C),
65
- ...!g && !je(i) && { "aria-hidden": "true" },
65
+ className: X("lucide", C),
66
+ ...!g && !Be(i) && { "aria-hidden": "true" },
66
67
  ...i
67
68
  },
68
69
  [
69
- ...D.map(([M, d]) => E(M, d)),
70
+ ...M.map(([T, d]) => N(T, d)),
70
71
  ...Array.isArray(g) ? g : [g]
71
72
  ]
72
73
  )
@@ -78,19 +79,19 @@ const Ie = J(
78
79
  * See the LICENSE file in the root directory of this source tree.
79
80
  */
80
81
  const z = (n, r) => {
81
- const l = J(
82
- ({ className: u, ...C }, g) => E(Ie, {
82
+ const l = Q(
83
+ ({ className: u, ...C }, g) => N(_e, {
83
84
  ref: g,
84
85
  iconNode: r,
85
- className: Q(
86
- `lucide-${ze(Y(n))}`,
86
+ className: X(
87
+ `lucide-${Ae(Z(n))}`,
87
88
  `lucide-${n}`,
88
89
  u
89
90
  ),
90
91
  ...C
91
92
  })
92
93
  );
93
- return l.displayName = Y(n), l;
94
+ return l.displayName = Z(n), l;
94
95
  };
95
96
  /**
96
97
  * @license lucide-react v0.525.0 - ISC
@@ -98,21 +99,21 @@ const z = (n, r) => {
98
99
  * This source code is licensed under the ISC license.
99
100
  * See the LICENSE file in the root directory of this source tree.
100
101
  */
101
- const _e = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], $ = z("chevron-down", _e);
102
+ const De = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], E = z("chevron-down", De);
102
103
  /**
103
104
  * @license lucide-react v0.525.0 - ISC
104
105
  *
105
106
  * This source code is licensed under the ISC license.
106
107
  * See the LICENSE file in the root directory of this source tree.
107
108
  */
108
- const De = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Z = z("chevron-up", De);
109
+ const Me = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], G = z("chevron-up", Me);
109
110
  /**
110
111
  * @license lucide-react v0.525.0 - ISC
111
112
  *
112
113
  * This source code is licensed under the ISC license.
113
114
  * See the LICENSE file in the root directory of this source tree.
114
115
  */
115
- const Me = [
116
+ const Te = [
116
117
  [
117
118
  "path",
118
119
  {
@@ -129,14 +130,14 @@ const Me = [
129
130
  }
130
131
  ],
131
132
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
132
- ], Te = z("eye-off", Me);
133
+ ], Le = z("eye-off", Te);
133
134
  /**
134
135
  * @license lucide-react v0.525.0 - ISC
135
136
  *
136
137
  * This source code is licensed under the ISC license.
137
138
  * See the LICENSE file in the root directory of this source tree.
138
139
  */
139
- const Le = [
140
+ const Re = [
140
141
  [
141
142
  "path",
142
143
  {
@@ -145,24 +146,24 @@ const Le = [
145
146
  }
146
147
  ],
147
148
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
148
- ], Re = z("eye", Le);
149
+ ], We = z("eye", Re);
149
150
  /**
150
151
  * @license lucide-react v0.525.0 - ISC
151
152
  *
152
153
  * This source code is licensed under the ISC license.
153
154
  * See the LICENSE file in the root directory of this source tree.
154
155
  */
155
- const We = [
156
+ const $e = [
156
157
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
157
158
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
158
- ], G = z("search", We);
159
+ ], J = z("search", $e);
159
160
  /**
160
161
  * @license lucide-react v0.525.0 - ISC
161
162
  *
162
163
  * This source code is licensed under the ISC license.
163
164
  * See the LICENSE file in the root directory of this source tree.
164
165
  */
165
- const $e = [
166
+ const Ee = [
166
167
  [
167
168
  "path",
168
169
  {
@@ -171,73 +172,73 @@ const $e = [
171
172
  }
172
173
  ],
173
174
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
174
- ], Ee = z("settings", $e);
175
+ ], Ne = z("settings", Ee);
175
176
  let v = "";
176
- const Oe = ({
177
+ const qe = ({
177
178
  data: n = [],
178
179
  columnTitles: r = {},
179
180
  rowsPerPage: l = 19,
180
181
  title: u = "Data Table",
181
182
  onRowClick: C,
182
183
  hiddenColumns: g = [],
183
- defaultSort: D = { key: "", direction: "asc" }
184
+ defaultSort: M = { key: "", direction: "asc" }
184
185
  }) => {
185
- const [i, b] = m(1), [, M] = m(""), [d, X] = m(D), [w, B] = m(/* @__PURE__ */ new Set()), [T, N] = m(/* @__PURE__ */ new Set()), [V, P] = m(!1), [F, ee] = m(!1), p = _(() => n.length === 0 ? [] : Object.keys(n[0]).filter((e) => !g.includes(e)), [n]);
186
- Se.useEffect(() => {
187
- p.length > 0 && (N(new Set(p)), B(new Set(p)));
186
+ const [i, b] = m(1), [, T] = m(""), [d, P] = m(M), [w, I] = m(/* @__PURE__ */ new Set()), [L, V] = m(/* @__PURE__ */ new Set()), [F, ee] = m(!1), [U, oe] = m(!1), p = D(() => n.length === 0 ? [] : Object.keys(n[0]).filter((e) => !g.includes(e)), [n]);
187
+ ve.useEffect(() => {
188
+ p.length > 0 && (V(new Set(p)), I(new Set(p)));
188
189
  }, [p]);
189
- const L = _(() => {
190
+ const R = D(() => {
190
191
  if (!v) return n;
191
192
  const e = w.size > 0 ? w : new Set(p);
192
- return n.filter((o) => Array.from(e).some((a) => {
193
- const h = o[a];
194
- return h && h.toString().toLowerCase().includes(v.toLowerCase());
193
+ return n.filter((t) => Array.from(e).some((a) => {
194
+ const f = t[a];
195
+ return f && f.toString().toLowerCase().includes(v.toLowerCase());
195
196
  }));
196
- }, [n, v, w, p]), x = _(() => d.key ? [...L].sort((e, o) => e[d.key] < o[d.key] ? d.direction === "asc" ? -1 : 1 : e[d.key] > o[d.key] ? d.direction === "asc" ? 1 : -1 : 0) : L, [L, d]), I = p.filter((e) => T.has(e)), te = () => {
197
+ }, [n, v, w, p]), x = D(() => d.key ? [...R].sort((e, t) => e[d.key] < t[d.key] ? d.direction === "asc" ? -1 : 1 : e[d.key] > t[d.key] ? d.direction === "asc" ? 1 : -1 : 0) : R, [R, d]), _ = p.filter((e) => L.has(e)), te = () => {
197
198
  if (!Array.isArray(x) || x.length === 0) return;
198
- const e = I.map((S) => r[S] || S), o = (S) => {
199
+ const e = _.map((S) => r[S] || S), t = (S) => {
199
200
  const j = String(S ?? "");
200
201
  return /[",\n]/.test(j) ? `"${j.replace(/"/g, '""')}"` : j;
201
- }, h = [
202
+ }, f = [
202
203
  e.join(","),
203
204
  // header row
204
- ...x.map((S) => I.map((j) => o(S[j])).join(","))
205
+ ...x.map((S) => _.map((j) => t(S[j])).join(","))
205
206
  ].join(`
206
- `), ke = new Blob([h], { type: "text/csv;charset=utf-8;" }), A = document.createElement("a");
207
- A.href = URL.createObjectURL(ke), A.download = "data.csv", document.body.appendChild(A), A.click(), document.body.removeChild(A);
208
- }, oe = _(() => {
207
+ `), Se = new Blob([f], { type: "text/csv;charset=utf-8;" }), A = document.createElement("a");
208
+ A.href = URL.createObjectURL(Se), A.download = "data.csv", document.body.appendChild(A), A.click(), document.body.removeChild(A);
209
+ }, ne = D(() => {
209
210
  const e = (i - 1) * l;
210
211
  return x.slice(e, e + l);
211
- }, [x, i, l]), f = Math.ceil(x.length / l), ne = (e) => {
212
- X((o) => ({
212
+ }, [x, i, l]), h = Math.ceil(x.length / l), re = (e) => {
213
+ P((t) => ({
213
214
  key: e,
214
- direction: o.key === e && o.direction === "asc" ? "desc" : "asc"
215
+ direction: t.key === e && t.direction === "asc" ? "desc" : "asc"
215
216
  }));
216
- }, re = (e) => {
217
- B((o) => {
218
- const a = new Set(o);
217
+ }, ie = (e) => {
218
+ I((t) => {
219
+ const a = new Set(t);
219
220
  return a.has(e) ? a.delete(e) : a.add(e), a;
220
221
  });
221
- }, ie = () => {
222
- w.size === p.length ? B(/* @__PURE__ */ new Set()) : B(new Set(p));
223
- }, se = (e) => {
224
- N((o) => {
225
- const a = new Set(o);
222
+ }, se = () => {
223
+ w.size === p.length ? I(/* @__PURE__ */ new Set()) : I(new Set(p));
224
+ }, ae = (e) => {
225
+ V((t) => {
226
+ const a = new Set(t);
226
227
  return a.has(e) ? a.delete(e) : a.add(e), a;
227
228
  });
228
- }, ae = (e) => {
229
+ }, ce = (e) => {
229
230
  v = e;
230
- }, U = () => {
231
- M(v);
231
+ }, O = () => {
232
+ T(v);
232
233
  }, y = {
233
234
  thActive: {
234
- backgroundColor: "#009200",
235
- color: "#ffffff"
235
+ backgroundColor: B.colors.green,
236
+ color: B.colors.white
236
237
  },
237
238
  paginationButtonActive: {
238
- backgroundColor: "#009200",
239
- color: "#ffffff",
240
- borderColor: "#009200"
239
+ backgroundColor: B.colors.green,
240
+ color: B.colors.white,
241
+ borderColor: B.colors.green
241
242
  },
242
243
  paginationButtonDisabled: {
243
244
  opacity: 0.5,
@@ -249,7 +250,7 @@ const Oe = ({
249
250
  textAlign: "center",
250
251
  marginTop: "10px"
251
252
  }
252
- }, ce = s("div")({
253
+ }, le = s("div")({
253
254
  backgroundColor: "#ffffff",
254
255
  borderRadius: "8px",
255
256
  boxShadow: "0 2px 10px rgba(0, 0, 0, 0.1)",
@@ -257,7 +258,7 @@ const Oe = ({
257
258
  fontFamily: "Arial, sans-serif",
258
259
  maxWidth: "100%",
259
260
  overflow: "auto"
260
- }), le = s("div")({
261
+ }), de = s("div")({
261
262
  display: "flex",
262
263
  flexDirection: "column",
263
264
  justifyContent: "space-between",
@@ -265,12 +266,12 @@ const Oe = ({
265
266
  marginBottom: "20px",
266
267
  flexWrap: "wrap",
267
268
  gap: "9px"
268
- }), de = s("div")({
269
+ }), pe = s("div")({
269
270
  display: "flex",
270
271
  justifyContent: "space-between",
271
272
  width: "100%",
272
273
  alignItems: "center"
273
- }), pe = s("h2")({
274
+ }), he = s("h2")({
274
275
  fontSize: "24px",
275
276
  fontWeight: "bold",
276
277
  color: "#000000",
@@ -282,12 +283,12 @@ const Oe = ({
282
283
  gap: "15px",
283
284
  alignItems: "center",
284
285
  flexWrap: "wrap"
285
- }), he = s("div")({
286
+ }), ue = s("div")({
286
287
  position: "relative",
287
288
  display: "flex",
288
289
  alignItems: "center",
289
290
  flexGrow: 1
290
- }), ue = s(G)({
291
+ }), xe = s(J)({
291
292
  position: "absolute",
292
293
  left: "13px",
293
294
  top: "10px",
@@ -299,7 +300,7 @@ const Oe = ({
299
300
  cursor: "pointer",
300
301
  color: "#009200"
301
302
  }
302
- }), xe = s("input")({
303
+ }), ge = s("input")({
303
304
  padding: "10px 15px 10px 40px",
304
305
  border: "2px solid #e0e0e0",
305
306
  borderRadius: "25px",
@@ -313,7 +314,7 @@ const Oe = ({
313
314
  borderColor: "#009200",
314
315
  boxShadow: "0 0 0 3px rgba(0, 146, 0, 0.1)"
315
316
  }
316
- }), O = s("button")({
317
+ }), H = s("button")({
317
318
  padding: "10px 15px",
318
319
  border: "2px solid #009200",
319
320
  borderRadius: "6px",
@@ -333,7 +334,7 @@ const Oe = ({
333
334
  transform: "translateY(-1px)",
334
335
  boxShadow: "0 4px 12px rgba(0, 146, 0, 0.3)"
335
336
  }
336
- }), H = s("div")({
337
+ }), q = s("div")({
337
338
  position: "absolute",
338
339
  top: "100%",
339
340
  right: 0,
@@ -346,7 +347,7 @@ const Oe = ({
346
347
  minWidth: "200px",
347
348
  maxHeight: "300px",
348
349
  overflowY: "auto"
349
- }), R = s("div")({
350
+ }), W = s("div")({
350
351
  padding: "12px 16px",
351
352
  display: "flex",
352
353
  alignItems: "center",
@@ -359,18 +360,18 @@ const Oe = ({
359
360
  backgroundColor: "#f0f8f0",
360
361
  color: "#005c00"
361
362
  }
362
- }), W = s("input")({
363
+ }), $ = s("input")({
363
364
  width: "16px",
364
365
  height: "16px",
365
366
  accentColor: "#009200"
366
- }), ge = s("table")({
367
+ }), be = s("table")({
367
368
  width: "100%",
368
369
  borderCollapse: "collapse",
369
370
  backgroundColor: "#ffffff",
370
371
  borderRadius: "8px",
371
372
  overflow: "hidden",
372
373
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
373
- }), be = s("th")({
374
+ }), Ce = s("th")({
374
375
  backgroundColor: "#f8f9fa",
375
376
  color: "#333333",
376
377
  padding: "16px 12px",
@@ -387,16 +388,16 @@ const Oe = ({
387
388
  backgroundColor: "#e8f5e8",
388
389
  color: "#005c00"
389
390
  }
390
- }), Ce = s("td")({
391
+ }), ye = s("td")({
391
392
  padding: "14px 12px",
392
393
  borderBottom: "1px solid #f0f0f0",
393
394
  fontSize: "14px",
394
395
  color: "#333333",
395
396
  transition: "all 0.2s ease"
396
- }), ye = s("span")({
397
+ }), me = s("span")({
397
398
  marginLeft: "8px",
398
399
  opacity: 0.6
399
- }), q = s("tr")(({ interactableRow: e }) => ({
400
+ }), K = s("tr")(({ interactableRow: e }) => ({
400
401
  transition: "all 0.2s ease",
401
402
  ...e && {
402
403
  "&:focus, &:hover, &:focus-within": {
@@ -404,7 +405,7 @@ const Oe = ({
404
405
  cursor: "pointer"
405
406
  }
406
407
  }
407
- })), me = s("div")({
408
+ })), we = s("div")({
408
409
  display: "flex",
409
410
  justifyContent: "center",
410
411
  alignItems: "center",
@@ -429,48 +430,48 @@ const Oe = ({
429
430
  opacity: 0.5,
430
431
  cursor: "not-allowed"
431
432
  }
432
- }), we = s("div")({
433
+ }), ke = s("div")({
433
434
  fontSize: "14px",
434
435
  color: "#666666",
435
436
  textAlign: "center",
436
437
  marginTop: "10px"
437
- }), K = s("span")({
438
+ }), Y = s("span")({
438
439
  padding: "8px 4px",
439
440
  color: "#666666",
440
441
  fontSize: "14px"
441
442
  });
442
- return /* @__PURE__ */ c(ce, { children: [
443
- /* @__PURE__ */ c(le, { children: [
444
- /* @__PURE__ */ c(de, { children: [
445
- /* @__PURE__ */ t(pe, { children: u }),
446
- /* @__PURE__ */ t(ve, { onClick: te, children: "Export to CSV" })
443
+ return /* @__PURE__ */ c(le, { children: [
444
+ /* @__PURE__ */ c(de, { children: [
445
+ /* @__PURE__ */ c(pe, { children: [
446
+ /* @__PURE__ */ o(he, { children: u }),
447
+ /* @__PURE__ */ o(ze, { onClick: te, children: "Export to CSV" })
447
448
  ] }),
448
449
  /* @__PURE__ */ c(fe, { children: [
449
- /* @__PURE__ */ c(he, { children: [
450
- /* @__PURE__ */ t(ue, { onClick: U }),
451
- /* @__PURE__ */ t(
452
- xe,
450
+ /* @__PURE__ */ c(ue, { children: [
451
+ /* @__PURE__ */ o(xe, { onClick: O }),
452
+ /* @__PURE__ */ o(
453
+ ge,
453
454
  {
454
455
  type: "text",
455
456
  placeholder: "Search...",
456
457
  defaultValue: v,
457
- onChange: (e) => ae(e.target.value),
458
+ onChange: (e) => ce(e.target.value),
458
459
  onKeyDown: (e) => {
459
- e.key === "Enter" && U();
460
+ e.key === "Enter" && O();
460
461
  }
461
462
  }
462
463
  )
463
464
  ] }),
464
465
  /* @__PURE__ */ c("div", { style: { position: "relative" }, children: [
465
- /* @__PURE__ */ c(O, { onClick: () => ee(!F), children: [
466
- /* @__PURE__ */ t(G, { size: 16 }),
466
+ /* @__PURE__ */ c(H, { onClick: () => oe(!U), children: [
467
+ /* @__PURE__ */ o(J, { size: 16 }),
467
468
  "Fields",
468
- /* @__PURE__ */ t($, { size: 16 })
469
+ /* @__PURE__ */ o(E, { size: 16 })
469
470
  ] }),
470
- F && /* @__PURE__ */ c(H, { children: [
471
- /* @__PURE__ */ c(R, { onClick: ie, children: [
472
- /* @__PURE__ */ t(
473
- W,
471
+ U && /* @__PURE__ */ c(q, { children: [
472
+ /* @__PURE__ */ c(W, { onClick: se, children: [
473
+ /* @__PURE__ */ o(
474
+ $,
474
475
  {
475
476
  type: "checkbox",
476
477
  checked: w.size === p.length,
@@ -478,48 +479,48 @@ const Oe = ({
478
479
  }
479
480
  }
480
481
  ),
481
- /* @__PURE__ */ t("span", { style: { fontWeight: "bold" }, children: "All" })
482
+ /* @__PURE__ */ o("span", { style: { fontWeight: "bold" }, children: "All" })
482
483
  ] }),
483
- /* @__PURE__ */ t("div", { style: { height: "1px", backgroundColor: "#e0e0e0", margin: "4px 0" } }),
484
- p.map((e) => /* @__PURE__ */ c(R, { onClick: () => re(e), children: [
485
- /* @__PURE__ */ t(W, { type: "checkbox", checked: w.has(e), onChange: () => {
484
+ /* @__PURE__ */ o("div", { style: { height: "1px", backgroundColor: "#e0e0e0", margin: "4px 0" } }),
485
+ p.map((e) => /* @__PURE__ */ c(W, { onClick: () => ie(e), children: [
486
+ /* @__PURE__ */ o($, { type: "checkbox", checked: w.has(e), onChange: () => {
486
487
  } }),
487
- /* @__PURE__ */ t("span", { children: r[e] || e })
488
+ /* @__PURE__ */ o("span", { children: r[e] || e })
488
489
  ] }, e))
489
490
  ] })
490
491
  ] }),
491
492
  /* @__PURE__ */ c("div", { style: { position: "relative" }, children: [
492
- /* @__PURE__ */ c(O, { onClick: () => P(!V), children: [
493
- /* @__PURE__ */ t(Ee, { size: 16 }),
493
+ /* @__PURE__ */ c(H, { onClick: () => ee(!F), children: [
494
+ /* @__PURE__ */ o(Ne, { size: 16 }),
494
495
  "Columns",
495
- /* @__PURE__ */ t($, { size: 16 })
496
+ /* @__PURE__ */ o(E, { size: 16 })
496
497
  ] }),
497
- V && /* @__PURE__ */ t(H, { children: p.map((e) => /* @__PURE__ */ c(R, { onClick: () => se(e), children: [
498
- /* @__PURE__ */ t(W, { type: "checkbox", checked: T.has(e), onChange: () => {
498
+ F && /* @__PURE__ */ o(q, { children: p.map((e) => /* @__PURE__ */ c(W, { onClick: () => ae(e), children: [
499
+ /* @__PURE__ */ o($, { type: "checkbox", checked: L.has(e), onChange: () => {
499
500
  } }),
500
- T.has(e) ? /* @__PURE__ */ t(Re, { size: 16 }) : /* @__PURE__ */ t(Te, { size: 16 }),
501
- /* @__PURE__ */ t("span", { children: r[e] || e })
501
+ L.has(e) ? /* @__PURE__ */ o(We, { size: 16 }) : /* @__PURE__ */ o(Le, { size: 16 }),
502
+ /* @__PURE__ */ o("span", { children: r[e] || e })
502
503
  ] }, e)) })
503
504
  ] })
504
505
  ] })
505
506
  ] }),
506
- /* @__PURE__ */ c(ge, { children: [
507
- /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ t(q, { interactableRow: !1, children: I.map((e) => /* @__PURE__ */ c(
508
- be,
507
+ /* @__PURE__ */ c(be, { children: [
508
+ /* @__PURE__ */ o("thead", { children: /* @__PURE__ */ o(K, { interactableRow: !1, children: _.map((e) => /* @__PURE__ */ c(
509
+ Ce,
509
510
  {
510
511
  style: d.key === e ? y.thActive : {},
511
- onClick: () => ne(e),
512
+ onClick: () => re(e),
512
513
  children: [
513
514
  r[e] || e,
514
- /* @__PURE__ */ t(ye, { children: d.key === e ? d.direction === "asc" ? /* @__PURE__ */ t(Z, { size: 16 }) : /* @__PURE__ */ t($, { size: 16 }) : /* @__PURE__ */ t(Z, { size: 16, style: { opacity: 0.313 } }) })
515
+ /* @__PURE__ */ o(me, { children: d.key === e ? d.direction === "asc" ? /* @__PURE__ */ o(G, { size: 16 }) : /* @__PURE__ */ o(E, { size: 16 }) : /* @__PURE__ */ o(G, { size: 16, style: { opacity: 0.313 } }) })
515
516
  ]
516
517
  },
517
518
  e
518
519
  )) }) }),
519
- /* @__PURE__ */ t("tbody", { children: oe.map((e, o) => /* @__PURE__ */ t(q, { onClick: () => C && C(e), interactableRow: !!C, children: I.map((a) => /* @__PURE__ */ t(Ce, { children: e[a] }, a)) }, o)) })
520
+ /* @__PURE__ */ o("tbody", { children: ne.map((e, t) => /* @__PURE__ */ o(K, { onClick: () => C && C(e), interactableRow: !!C, children: _.map((a) => /* @__PURE__ */ o(ye, { children: e[a] }, a)) }, t)) })
520
521
  ] }),
521
- /* @__PURE__ */ c(me, { children: [
522
- /* @__PURE__ */ t(
522
+ /* @__PURE__ */ c(we, { children: [
523
+ /* @__PURE__ */ o(
523
524
  k,
524
525
  {
525
526
  style: i === 1 ? y.paginationButtonDisabled : {},
@@ -530,22 +531,22 @@ const Oe = ({
530
531
  ),
531
532
  (() => {
532
533
  const e = [];
533
- if (f <= 5)
534
- for (let o = 1; o <= f; o++)
534
+ if (h <= 5)
535
+ for (let t = 1; t <= h; t++)
535
536
  e.push(
536
- /* @__PURE__ */ t(
537
+ /* @__PURE__ */ o(
537
538
  k,
538
539
  {
539
- style: i === o ? y.paginationButtonActive : {},
540
- onClick: () => b(o),
541
- children: o
540
+ style: i === t ? y.paginationButtonActive : {},
541
+ onClick: () => b(t),
542
+ children: t
542
543
  },
543
- o
544
+ t
544
545
  )
545
546
  );
546
547
  else {
547
548
  e.push(
548
- /* @__PURE__ */ t(
549
+ /* @__PURE__ */ o(
549
550
  k,
550
551
  {
551
552
  style: i === 1 ? y.paginationButtonActive : {},
@@ -554,45 +555,45 @@ const Oe = ({
554
555
  },
555
556
  1
556
557
  )
557
- ), i > 3 && e.push(/* @__PURE__ */ t(K, { children: "..." }, "ellipsis1"));
558
- const o = Math.max(2, i - 1), a = Math.min(f - 1, i + 1);
559
- for (let h = o; h <= a; h++)
558
+ ), i > 3 && e.push(/* @__PURE__ */ o(Y, { children: "..." }, "ellipsis1"));
559
+ const t = Math.max(2, i - 1), a = Math.min(h - 1, i + 1);
560
+ for (let f = t; f <= a; f++)
560
561
  e.push(
561
- /* @__PURE__ */ t(
562
+ /* @__PURE__ */ o(
562
563
  k,
563
564
  {
564
- style: i === h ? y.paginationButtonActive : {},
565
- onClick: () => b(h),
566
- children: h
565
+ style: i === f ? y.paginationButtonActive : {},
566
+ onClick: () => b(f),
567
+ children: f
567
568
  },
568
- h
569
+ f
569
570
  )
570
571
  );
571
- i < f - 2 && e.push(/* @__PURE__ */ t(K, { children: "..." }, "ellipsis2")), f > 1 && e.push(
572
- /* @__PURE__ */ t(
572
+ i < h - 2 && e.push(/* @__PURE__ */ o(Y, { children: "..." }, "ellipsis2")), h > 1 && e.push(
573
+ /* @__PURE__ */ o(
573
574
  k,
574
575
  {
575
- style: i === f ? y.paginationButtonActive : {},
576
- onClick: () => b(f),
577
- children: f
576
+ style: i === h ? y.paginationButtonActive : {},
577
+ onClick: () => b(h),
578
+ children: h
578
579
  },
579
- f
580
+ h
580
581
  )
581
582
  );
582
583
  }
583
584
  return e;
584
585
  })(),
585
- /* @__PURE__ */ t(
586
+ /* @__PURE__ */ o(
586
587
  k,
587
588
  {
588
- style: i === f ? y.paginationButtonDisabled : {},
589
- onClick: () => b(Math.min(f, i + 1)),
590
- disabled: i === f,
589
+ style: i === h ? y.paginationButtonDisabled : {},
590
+ onClick: () => b(Math.min(h, i + 1)),
591
+ disabled: i === h,
591
592
  children: "Next"
592
593
  }
593
594
  )
594
595
  ] }),
595
- /* @__PURE__ */ c(we, { children: [
596
+ /* @__PURE__ */ c(ke, { children: [
596
597
  "Showing ",
597
598
  Math.min((i - 1) * l + 1, x.length),
598
599
  " to",
@@ -605,5 +606,5 @@ const Oe = ({
605
606
  ] });
606
607
  };
607
608
  export {
608
- Oe as default
609
+ qe as default
609
610
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.315",
4
+ "version": "0.0.319",
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",
package/theme.d.ts CHANGED
@@ -16,10 +16,13 @@ export interface ThemeColors {
16
16
  darkGreenO99: string;
17
17
  darkRed: string;
18
18
  emerald: string;
19
+ formBorder: string;
19
20
  gold: string;
21
+ goldHover: string;
20
22
  gold2: string;
21
23
  gray: string;
22
24
  gray2: string;
25
+ gray3: string;
23
26
  grayO44: string;
24
27
  green: string;
25
28
  indigo: string;
package/theme.js CHANGED
@@ -21,10 +21,13 @@ const a = {
21
21
  darkGreenO99: "#005c0099",
22
22
  darkRed: "#800000",
23
23
  emerald: "#004d24",
24
+ formBorder: "rgb(114,114,114)",
24
25
  gold: "#fab62d",
26
+ goldHover: "#e0a022",
25
27
  gold2: "#fcba03",
26
28
  gray: "#727272",
27
29
  gray2: "#dddddd",
30
+ gray3: "#666666",
28
31
  grayO44: "#72727244",
29
32
  green: "#009200",
30
33
  indigo: "#4105c1",