jcicl 0.0.315 → 0.0.317
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 +104 -88
- package/Table/Table.js +151 -150
- package/package.json +1 -1
- package/theme.d.ts +2 -0
- package/theme.js +2 -0
package/Button/Button.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
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
|
|
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
|
|
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
|
|
9
|
-
import
|
|
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
|
|
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
|
|
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
|
-
}],
|
|
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
|
-
[`&.${
|
|
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
|
-
[`&.${
|
|
110
|
+
[`&.${g.focusVisible}`]: {
|
|
111
111
|
boxShadow: (o.vars || o).shadows[6]
|
|
112
112
|
},
|
|
113
|
-
[`&.${
|
|
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
|
-
[`&.${
|
|
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
|
-
[`&.${
|
|
240
|
+
[`&.${g.focusVisible}`]: {
|
|
241
241
|
boxShadow: "none"
|
|
242
242
|
},
|
|
243
243
|
"&:active": {
|
|
244
244
|
boxShadow: "none"
|
|
245
245
|
},
|
|
246
|
-
[`&.${
|
|
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:
|
|
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 =
|
|
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
|
-
}),
|
|
341
|
-
return /* @__PURE__ */
|
|
340
|
+
}), H = d || "";
|
|
341
|
+
return /* @__PURE__ */ U(to, {
|
|
342
342
|
ownerState: w,
|
|
343
|
-
className: R(e.className, y.root,
|
|
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:
|
|
363
|
+
children: t.node,
|
|
364
364
|
/**
|
|
365
365
|
* Override or extend the styles applied to the component.
|
|
366
366
|
*/
|
|
367
|
-
classes:
|
|
367
|
+
classes: t.object,
|
|
368
368
|
/**
|
|
369
369
|
* @ignore
|
|
370
370
|
*/
|
|
371
|
-
className:
|
|
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:
|
|
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:
|
|
383
|
+
component: t.elementType,
|
|
384
384
|
/**
|
|
385
385
|
* If `true`, the component is disabled.
|
|
386
386
|
* @default false
|
|
387
387
|
*/
|
|
388
|
-
disabled:
|
|
388
|
+
disabled: t.bool,
|
|
389
389
|
/**
|
|
390
390
|
* If `true`, no elevation is used.
|
|
391
391
|
* @default false
|
|
392
392
|
*/
|
|
393
|
-
disableElevation:
|
|
393
|
+
disableElevation: t.bool,
|
|
394
394
|
/**
|
|
395
395
|
* If `true`, the keyboard focus ripple is disabled.
|
|
396
396
|
* @default false
|
|
397
397
|
*/
|
|
398
|
-
disableFocusRipple:
|
|
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:
|
|
406
|
+
disableRipple: t.bool,
|
|
407
407
|
/**
|
|
408
408
|
* Element placed after the children.
|
|
409
409
|
*/
|
|
410
|
-
endIcon:
|
|
410
|
+
endIcon: t.node,
|
|
411
411
|
/**
|
|
412
412
|
* @ignore
|
|
413
413
|
*/
|
|
414
|
-
focusVisibleClassName:
|
|
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:
|
|
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:
|
|
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:
|
|
430
|
+
size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
|
|
431
431
|
/**
|
|
432
432
|
* Element placed before the children.
|
|
433
433
|
*/
|
|
434
|
-
startIcon:
|
|
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:
|
|
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:
|
|
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:
|
|
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: ${
|
|
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: ${
|
|
459
|
+
background-color: ${r.colors.green};
|
|
460
460
|
border-radius: 0;
|
|
461
461
|
height: 2.5rem;
|
|
462
462
|
border: 2px solid transparent;
|
|
463
|
-
color: ${
|
|
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: ${
|
|
469
|
+
box-shadow: ${r.boxShadows.gray63};
|
|
470
470
|
&:hover,
|
|
471
471
|
:focus-visible {
|
|
472
|
-
background-color: ${
|
|
473
|
-
box-shadow: ${
|
|
472
|
+
background-color: ${r.colors.darkGreen};
|
|
473
|
+
box-shadow: ${r.boxShadows.black63};
|
|
474
474
|
}
|
|
475
475
|
&:disabled {
|
|
476
|
-
background-color: ${
|
|
476
|
+
background-color: ${r.colors.darkGreen};
|
|
477
477
|
}
|
|
478
478
|
`, io = s(S)(
|
|
479
479
|
({
|
|
480
|
-
customBackgroundColor: o =
|
|
481
|
-
customHoverColor: a =
|
|
482
|
-
customTextColor: n =
|
|
483
|
-
customShadow1: e =
|
|
484
|
-
customShadow2: d =
|
|
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
|
-
...
|
|
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: ${
|
|
510
|
-
border:
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
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: ${
|
|
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: ${
|
|
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: ${
|
|
543
|
+
background-color: ${r.colors.bibiBlueHover};
|
|
528
544
|
}
|
|
529
545
|
`
|
|
530
|
-
})), lo = s(
|
|
531
|
-
...
|
|
532
|
-
background-color: ${o &&
|
|
533
|
-
color: ${o &&
|
|
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: ${
|
|
537
|
-
color: ${
|
|
552
|
+
background-color: ${r.colors.white};
|
|
553
|
+
color: ${r.colors.bibiBlue};
|
|
538
554
|
}
|
|
539
555
|
`
|
|
540
|
-
})), co = s(
|
|
541
|
-
...
|
|
542
|
-
background-color: ${
|
|
543
|
-
color: ${
|
|
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: ${
|
|
547
|
-
border: 2px solid ${
|
|
548
|
-
color: ${
|
|
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(
|
|
567
|
+
})), po = s(m)`
|
|
552
568
|
border-radius: 8px;
|
|
553
|
-
`, uo = s(
|
|
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
|
-
...
|
|
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
|
-
...
|
|
598
|
+
...v`
|
|
583
599
|
box-sizing: border-box;
|
|
584
|
-
background-color: ${o ?
|
|
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" :
|
|
591
|
-
color: ${o ?
|
|
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 ?
|
|
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 =
|
|
604
|
-
highlightColor: e =
|
|
605
|
-
hoverColor: d =
|
|
606
|
-
backgroundColor: u =
|
|
607
|
-
textColor: b =
|
|
608
|
-
customShadow1: x =
|
|
609
|
-
customShadow2: f =
|
|
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:
|
|
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(
|
|
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
|
package/Table/Table.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { jsxs as c, jsx as
|
|
2
|
-
import
|
|
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
|
|
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
|
|
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
|
-
),
|
|
15
|
-
const r =
|
|
15
|
+
), Z = (n) => {
|
|
16
|
+
const r = je(n);
|
|
16
17
|
return r.charAt(0).toUpperCase() + r.slice(1);
|
|
17
|
-
},
|
|
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
|
|
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
|
|
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:
|
|
54
|
+
iconNode: M,
|
|
54
55
|
...i
|
|
55
|
-
}, b) =>
|
|
56
|
+
}, b) => N(
|
|
56
57
|
"svg",
|
|
57
58
|
{
|
|
58
59
|
ref: b,
|
|
59
|
-
...
|
|
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:
|
|
65
|
-
...!g && !
|
|
65
|
+
className: X("lucide", C),
|
|
66
|
+
...!g && !Be(i) && { "aria-hidden": "true" },
|
|
66
67
|
...i
|
|
67
68
|
},
|
|
68
69
|
[
|
|
69
|
-
...
|
|
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 =
|
|
82
|
-
({ className: u, ...C }, g) =>
|
|
82
|
+
const l = Q(
|
|
83
|
+
({ className: u, ...C }, g) => N(_e, {
|
|
83
84
|
ref: g,
|
|
84
85
|
iconNode: r,
|
|
85
|
-
className:
|
|
86
|
-
`lucide-${
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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
|
-
],
|
|
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
|
|
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
|
-
],
|
|
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
|
|
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
|
-
],
|
|
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
|
|
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
|
-
],
|
|
175
|
+
], Ne = z("settings", Ee);
|
|
175
176
|
let v = "";
|
|
176
|
-
const
|
|
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:
|
|
184
|
+
defaultSort: M = { key: "", direction: "asc" }
|
|
184
185
|
}) => {
|
|
185
|
-
const [i, b] = m(1), [,
|
|
186
|
-
|
|
187
|
-
p.length > 0 && (
|
|
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
|
|
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((
|
|
193
|
-
const
|
|
194
|
-
return
|
|
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 =
|
|
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 =
|
|
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
|
-
},
|
|
202
|
+
}, f = [
|
|
202
203
|
e.join(","),
|
|
203
204
|
// header row
|
|
204
|
-
...x.map((S) =>
|
|
205
|
+
...x.map((S) => _.map((j) => t(S[j])).join(","))
|
|
205
206
|
].join(`
|
|
206
|
-
`),
|
|
207
|
-
A.href = URL.createObjectURL(
|
|
208
|
-
},
|
|
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]),
|
|
212
|
-
|
|
212
|
+
}, [x, i, l]), h = Math.ceil(x.length / l), re = (e) => {
|
|
213
|
+
P((t) => ({
|
|
213
214
|
key: e,
|
|
214
|
-
direction:
|
|
215
|
+
direction: t.key === e && t.direction === "asc" ? "desc" : "asc"
|
|
215
216
|
}));
|
|
216
|
-
},
|
|
217
|
-
|
|
218
|
-
const a = new Set(
|
|
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
|
-
},
|
|
222
|
-
w.size === p.length ?
|
|
223
|
-
},
|
|
224
|
-
|
|
225
|
-
const a = new Set(
|
|
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
|
-
},
|
|
229
|
+
}, ce = (e) => {
|
|
229
230
|
v = e;
|
|
230
|
-
},
|
|
231
|
-
|
|
231
|
+
}, O = () => {
|
|
232
|
+
T(v);
|
|
232
233
|
}, y = {
|
|
233
234
|
thActive: {
|
|
234
|
-
backgroundColor:
|
|
235
|
-
color:
|
|
235
|
+
backgroundColor: B.colors.green,
|
|
236
|
+
color: B.colors.white
|
|
236
237
|
},
|
|
237
238
|
paginationButtonActive: {
|
|
238
|
-
backgroundColor:
|
|
239
|
-
color:
|
|
240
|
-
borderColor:
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
269
|
+
}), pe = s("div")({
|
|
269
270
|
display: "flex",
|
|
270
271
|
justifyContent: "space-between",
|
|
271
272
|
width: "100%",
|
|
272
273
|
alignItems: "center"
|
|
273
|
-
}),
|
|
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
|
-
}),
|
|
286
|
+
}), ue = s("div")({
|
|
286
287
|
position: "relative",
|
|
287
288
|
display: "flex",
|
|
288
289
|
alignItems: "center",
|
|
289
290
|
flexGrow: 1
|
|
290
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
363
|
+
}), $ = s("input")({
|
|
363
364
|
width: "16px",
|
|
364
365
|
height: "16px",
|
|
365
366
|
accentColor: "#009200"
|
|
366
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
397
|
+
}), me = s("span")({
|
|
397
398
|
marginLeft: "8px",
|
|
398
399
|
opacity: 0.6
|
|
399
|
-
}),
|
|
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
|
-
})),
|
|
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
|
-
}),
|
|
433
|
+
}), ke = s("div")({
|
|
433
434
|
fontSize: "14px",
|
|
434
435
|
color: "#666666",
|
|
435
436
|
textAlign: "center",
|
|
436
437
|
marginTop: "10px"
|
|
437
|
-
}),
|
|
438
|
+
}), Y = s("span")({
|
|
438
439
|
padding: "8px 4px",
|
|
439
440
|
color: "#666666",
|
|
440
441
|
fontSize: "14px"
|
|
441
442
|
});
|
|
442
|
-
return /* @__PURE__ */ c(
|
|
443
|
-
/* @__PURE__ */ c(
|
|
444
|
-
/* @__PURE__ */ c(
|
|
445
|
-
/* @__PURE__ */
|
|
446
|
-
/* @__PURE__ */
|
|
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(
|
|
450
|
-
/* @__PURE__ */
|
|
451
|
-
/* @__PURE__ */
|
|
452
|
-
|
|
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) =>
|
|
458
|
+
onChange: (e) => ce(e.target.value),
|
|
458
459
|
onKeyDown: (e) => {
|
|
459
|
-
e.key === "Enter" &&
|
|
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(
|
|
466
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ c(H, { onClick: () => oe(!U), children: [
|
|
467
|
+
/* @__PURE__ */ o(J, { size: 16 }),
|
|
467
468
|
"Fields",
|
|
468
|
-
/* @__PURE__ */
|
|
469
|
+
/* @__PURE__ */ o(E, { size: 16 })
|
|
469
470
|
] }),
|
|
470
|
-
|
|
471
|
-
/* @__PURE__ */ c(
|
|
472
|
-
/* @__PURE__ */
|
|
473
|
-
|
|
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__ */
|
|
482
|
+
/* @__PURE__ */ o("span", { style: { fontWeight: "bold" }, children: "All" })
|
|
482
483
|
] }),
|
|
483
|
-
/* @__PURE__ */
|
|
484
|
-
p.map((e) => /* @__PURE__ */ c(
|
|
485
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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(
|
|
493
|
-
/* @__PURE__ */
|
|
493
|
+
/* @__PURE__ */ c(H, { onClick: () => ee(!F), children: [
|
|
494
|
+
/* @__PURE__ */ o(Ne, { size: 16 }),
|
|
494
495
|
"Columns",
|
|
495
|
-
/* @__PURE__ */
|
|
496
|
+
/* @__PURE__ */ o(E, { size: 16 })
|
|
496
497
|
] }),
|
|
497
|
-
|
|
498
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
501
|
-
/* @__PURE__ */
|
|
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(
|
|
507
|
-
/* @__PURE__ */
|
|
508
|
-
|
|
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: () =>
|
|
512
|
+
onClick: () => re(e),
|
|
512
513
|
children: [
|
|
513
514
|
r[e] || e,
|
|
514
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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(
|
|
522
|
-
/* @__PURE__ */
|
|
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 (
|
|
534
|
-
for (let
|
|
534
|
+
if (h <= 5)
|
|
535
|
+
for (let t = 1; t <= h; t++)
|
|
535
536
|
e.push(
|
|
536
|
-
/* @__PURE__ */
|
|
537
|
+
/* @__PURE__ */ o(
|
|
537
538
|
k,
|
|
538
539
|
{
|
|
539
|
-
style: i ===
|
|
540
|
-
onClick: () => b(
|
|
541
|
-
children:
|
|
540
|
+
style: i === t ? y.paginationButtonActive : {},
|
|
541
|
+
onClick: () => b(t),
|
|
542
|
+
children: t
|
|
542
543
|
},
|
|
543
|
-
|
|
544
|
+
t
|
|
544
545
|
)
|
|
545
546
|
);
|
|
546
547
|
else {
|
|
547
548
|
e.push(
|
|
548
|
-
/* @__PURE__ */
|
|
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__ */
|
|
558
|
-
const
|
|
559
|
-
for (let
|
|
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__ */
|
|
562
|
+
/* @__PURE__ */ o(
|
|
562
563
|
k,
|
|
563
564
|
{
|
|
564
|
-
style: i ===
|
|
565
|
-
onClick: () => b(
|
|
566
|
-
children:
|
|
565
|
+
style: i === f ? y.paginationButtonActive : {},
|
|
566
|
+
onClick: () => b(f),
|
|
567
|
+
children: f
|
|
567
568
|
},
|
|
568
|
-
|
|
569
|
+
f
|
|
569
570
|
)
|
|
570
571
|
);
|
|
571
|
-
i <
|
|
572
|
-
/* @__PURE__ */
|
|
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 ===
|
|
576
|
-
onClick: () => b(
|
|
577
|
-
children:
|
|
576
|
+
style: i === h ? y.paginationButtonActive : {},
|
|
577
|
+
onClick: () => b(h),
|
|
578
|
+
children: h
|
|
578
579
|
},
|
|
579
|
-
|
|
580
|
+
h
|
|
580
581
|
)
|
|
581
582
|
);
|
|
582
583
|
}
|
|
583
584
|
return e;
|
|
584
585
|
})(),
|
|
585
|
-
/* @__PURE__ */
|
|
586
|
+
/* @__PURE__ */ o(
|
|
586
587
|
k,
|
|
587
588
|
{
|
|
588
|
-
style: i ===
|
|
589
|
-
onClick: () => b(Math.min(
|
|
590
|
-
disabled: i ===
|
|
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(
|
|
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
|
-
|
|
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.
|
|
4
|
+
"version": "0.0.317",
|
|
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
package/theme.js
CHANGED
|
@@ -22,9 +22,11 @@ const a = {
|
|
|
22
22
|
darkRed: "#800000",
|
|
23
23
|
emerald: "#004d24",
|
|
24
24
|
gold: "#fab62d",
|
|
25
|
+
goldHover: "#e0a022",
|
|
25
26
|
gold2: "#fcba03",
|
|
26
27
|
gray: "#727272",
|
|
27
28
|
gray2: "#dddddd",
|
|
29
|
+
gray3: "#666666",
|
|
28
30
|
grayO44: "#72727244",
|
|
29
31
|
green: "#009200",
|
|
30
32
|
indigo: "#4105c1",
|