jcicl 1.0.47 → 1.0.48

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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as i, jsxs as y, Fragment as ke } from "react/jsx-runtime";
2
- import * as N from "react";
2
+ import * as z from "react";
3
3
  import { useState as K } from "react";
4
4
  import { c as de } from "../.chunks/createSvgIcon.js";
5
5
  import { n as g, i as _ } from "../.chunks/emotion-styled.browser.esm.js";
@@ -44,7 +44,7 @@ function oe(e, o, a) {
44
44
  const n = De(a), l = ho(e, o, n);
45
45
  l && (o.style.webkitTransform = l, o.style.transform = l);
46
46
  }
47
- const ze = /* @__PURE__ */ N.forwardRef(function(o, a) {
47
+ const ze = /* @__PURE__ */ z.forwardRef(function(o, a) {
48
48
  const n = He(), l = {
49
49
  enter: n.transitions.easing.easeOut,
50
50
  exit: n.transitions.easing.sharp
@@ -62,7 +62,7 @@ const ze = /* @__PURE__ */ N.forwardRef(function(o, a) {
62
62
  onEnter: F,
63
63
  onEntered: W,
64
64
  onEntering: j,
65
- onExit: O,
65
+ onExit: N,
66
66
  onExited: $,
67
67
  onExiting: V,
68
68
  style: R,
@@ -70,12 +70,12 @@ const ze = /* @__PURE__ */ N.forwardRef(function(o, a) {
70
70
  // eslint-disable-next-line react/prop-types
71
71
  TransitionComponent: v = to,
72
72
  ...H
73
- } = o, h = N.useRef(null), G = po(ro(m), h, a), E = (s) => (f) => {
73
+ } = o, h = z.useRef(null), G = po(ro(m), h, a), E = (s) => (f) => {
74
74
  s && (f === void 0 ? s(h.current) : s(h.current, f));
75
75
  }, d = E((s, f) => {
76
76
  oe(b, s, u), no(s), F && F(s, f);
77
77
  }), p = E((s, f) => {
78
- const z = ye({
78
+ const D = ye({
79
79
  timeout: M,
80
80
  style: R,
81
81
  easing: B
@@ -83,11 +83,11 @@ const ze = /* @__PURE__ */ N.forwardRef(function(o, a) {
83
83
  mode: "enter"
84
84
  });
85
85
  s.style.webkitTransition = n.transitions.create("-webkit-transform", {
86
- ...z
86
+ ...D
87
87
  }), s.style.transition = n.transitions.create("transform", {
88
- ...z
88
+ ...D
89
89
  }), s.style.webkitTransform = "none", s.style.transform = "none", j && j(s, f);
90
- }), S = E(W), D = E(V), k = E((s) => {
90
+ }), O = E(W), S = E(V), k = E((s) => {
91
91
  const f = ye({
92
92
  timeout: M,
93
93
  style: R,
@@ -95,15 +95,15 @@ const ze = /* @__PURE__ */ N.forwardRef(function(o, a) {
95
95
  }, {
96
96
  mode: "exit"
97
97
  });
98
- s.style.webkitTransition = n.transitions.create("-webkit-transform", f), s.style.transition = n.transitions.create("transform", f), oe(b, s, u), O && O(s);
98
+ s.style.webkitTransition = n.transitions.create("-webkit-transform", f), s.style.transition = n.transitions.create("transform", f), oe(b, s, u), N && N(s);
99
99
  }), I = E((s) => {
100
100
  s.style.webkitTransition = "", s.style.transition = "", $ && $(s);
101
101
  }), ne = (s) => {
102
102
  x && x(h.current, s);
103
- }, q = N.useCallback(() => {
103
+ }, q = z.useCallback(() => {
104
104
  h.current && oe(b, h.current, u);
105
105
  }, [b, u]);
106
- return N.useEffect(() => {
106
+ return z.useEffect(() => {
107
107
  if (C || b === "down" || b === "right")
108
108
  return;
109
109
  const s = io(() => {
@@ -112,22 +112,22 @@ const ze = /* @__PURE__ */ N.forwardRef(function(o, a) {
112
112
  return f.addEventListener("resize", s), () => {
113
113
  s.clear(), f.removeEventListener("resize", s);
114
114
  };
115
- }, [b, C, u]), N.useEffect(() => {
115
+ }, [b, C, u]), z.useEffect(() => {
116
116
  C || q();
117
117
  }, [C, q]), /* @__PURE__ */ i(v, {
118
118
  nodeRef: h,
119
119
  onEnter: d,
120
- onEntered: S,
120
+ onEntered: O,
121
121
  onEntering: p,
122
122
  onExit: k,
123
123
  onExited: I,
124
- onExiting: D,
124
+ onExiting: S,
125
125
  addEndListener: ne,
126
126
  appear: c,
127
127
  in: C,
128
128
  timeout: M,
129
129
  ...H,
130
- children: (s, f) => /* @__PURE__ */ N.cloneElement(m, {
130
+ children: (s, f) => /* @__PURE__ */ z.cloneElement(m, {
131
131
  ref: G,
132
132
  style: {
133
133
  visibility: s === "exited" && !C ? "hidden" : void 0,
@@ -384,7 +384,7 @@ function xo({
384
384
  }, o) {
385
385
  return e === "rtl" && bo(o) ? Oe[o] : o;
386
386
  }
387
- const U = /* @__PURE__ */ N.forwardRef(function(o, a) {
387
+ const U = /* @__PURE__ */ z.forwardRef(function(o, a) {
388
388
  const n = Je({
389
389
  props: o,
390
390
  name: "MuiDrawer"
@@ -403,7 +403,7 @@ const U = /* @__PURE__ */ N.forwardRef(function(o, a) {
403
403
  ...W
404
404
  } = {},
405
405
  onClose: j,
406
- open: O = !1,
406
+ open: N = !1,
407
407
  PaperProps: $ = {},
408
408
  SlideProps: V,
409
409
  // eslint-disable-next-line react/prop-types
@@ -411,8 +411,8 @@ const U = /* @__PURE__ */ N.forwardRef(function(o, a) {
411
411
  transitionDuration: M = x,
412
412
  variant: v = "temporary",
413
413
  ...H
414
- } = n, h = N.useRef(!1);
415
- N.useEffect(() => {
414
+ } = n, h = z.useRef(!1);
415
+ z.useEffect(() => {
416
416
  h.current = !0;
417
417
  }, []);
418
418
  const G = xo({
@@ -421,10 +421,10 @@ const U = /* @__PURE__ */ N.forwardRef(function(o, a) {
421
421
  ...n,
422
422
  anchor: c,
423
423
  elevation: B,
424
- open: O,
424
+ open: N,
425
425
  variant: v,
426
426
  ...H
427
- }, p = fo(d), S = /* @__PURE__ */ i(go, {
427
+ }, p = fo(d), O = /* @__PURE__ */ i(go, {
428
428
  elevation: v === "temporary" ? B : 0,
429
429
  square: !0,
430
430
  ...$,
@@ -438,22 +438,22 @@ const U = /* @__PURE__ */ N.forwardRef(function(o, a) {
438
438
  ownerState: d,
439
439
  ref: a,
440
440
  ...H,
441
- children: S
441
+ children: O
442
442
  });
443
- const D = /* @__PURE__ */ i(R, {
444
- in: O,
443
+ const S = /* @__PURE__ */ i(R, {
444
+ in: N,
445
445
  direction: Oe[G],
446
446
  timeout: M,
447
447
  appear: h.current,
448
448
  ...V,
449
- children: S
449
+ children: O
450
450
  });
451
451
  return v === "persistent" ? /* @__PURE__ */ i($e, {
452
452
  className: ee(p.root, p.docked, b),
453
453
  ownerState: d,
454
454
  ref: a,
455
455
  ...H,
456
- children: D
456
+ children: S
457
457
  }) : /* @__PURE__ */ i(mo, {
458
458
  BackdropProps: {
459
459
  ...m,
@@ -461,14 +461,14 @@ const U = /* @__PURE__ */ N.forwardRef(function(o, a) {
461
461
  transitionDuration: M
462
462
  },
463
463
  className: ee(p.root, p.modal, b),
464
- open: O,
464
+ open: N,
465
465
  ownerState: d,
466
466
  onClose: j,
467
467
  hideBackdrop: C,
468
468
  ref: a,
469
469
  ...H,
470
470
  ...W,
471
- children: D
471
+ children: S
472
472
  });
473
473
  });
474
474
  process.env.NODE_ENV !== "production" && (U.propTypes = {
@@ -835,15 +835,15 @@ const Te = de(/* @__PURE__ */ i("path", {
835
835
  hasSiteBanner: j = !1
836
836
  }) => {
837
837
  var we;
838
- const [O, $] = K(!1), [V, R] = K(!1), [M, v] = K(!1), [H, h] = K(!1), { mobile: G = r.screenSizes.mobile, tablet: E = r.screenSizes.tablet } = u, d = Ce(`(max-width: ${G})`), p = Ce(`(max-width: ${E})`) && !d, S = !d && !p, {
839
- backgroundPrimary: D = r.colors.whiteGreen,
838
+ const [N, $] = K(!1), [V, R] = K(!1), [M, v] = K(!1), [H, h] = K(!1), { mobile: G = r.screenSizes.mobile, tablet: E = r.screenSizes.tablet } = u, d = Ce(`(max-width: ${G})`), p = Ce(`(max-width: ${E})`) && !d, O = !d && !p, {
839
+ backgroundPrimary: S = r.colors.whiteGreen,
840
840
  backgroundSecondary: k = r.colors.whiteGreenA,
841
841
  backgroundTertiary: I = r.colors.sage,
842
842
  highlightPrimary: ne = r.colors.sunlight,
843
843
  backgroundQuaternary: q = r.colors.moss,
844
844
  highlightSecondary: s = r.colors.dandelion,
845
845
  highlightTertiary: f = `${r.colors.dandelion}99`,
846
- iconPrimary: z = r.colors.darkGreen,
846
+ iconPrimary: D = r.colors.darkGreen,
847
847
  shadowPrimary: ie = r.colors.darkGreenO99,
848
848
  shadowSecondary: Q = r.boxShadows.darkGreen,
849
849
  shadowTertiary: he = r.boxShadows.darkGreenThick,
@@ -856,14 +856,14 @@ const Te = de(/* @__PURE__ */ i("path", {
856
856
  backgroundColor: r.colors.mint
857
857
  }
858
858
  } = B, { logoSrc: fe = Xe, logoWidth: me = 36, logoHeight: ge = 50 } = C, be = {
859
- backgroundPrimary: D,
859
+ backgroundPrimary: S,
860
860
  backgroundSecondary: k,
861
861
  backgroundTertiary: I,
862
862
  highlightPrimary: ne,
863
863
  highlightSecondary: s,
864
864
  highlightTertiary: f,
865
865
  borderPrimary: X,
866
- iconPrimary: z,
866
+ iconPrimary: D,
867
867
  shadowPrimary: ie,
868
868
  shadowSecondary: Q,
869
869
  shadowTertiary: he,
@@ -929,16 +929,16 @@ const Te = de(/* @__PURE__ */ i("path", {
929
929
  onHamburgerMenuClick: () => $(!0),
930
930
  onUserMenuClick: () => v(!0),
931
931
  logoProps: Ie,
932
- iconColor: z,
932
+ iconColor: D,
933
933
  isMobile: d,
934
- themeProps: { shadowSecondary: Q, shadowTertiary: he, iconPrimary: z, borderPrimary: X },
934
+ themeProps: { shadowSecondary: Q, shadowTertiary: he, iconPrimary: D, borderPrimary: X },
935
935
  iconColors: ue,
936
936
  userName: l == null ? void 0 : l.name,
937
937
  userSettingsEnabled: P
938
938
  }
939
939
  ),
940
940
  /* @__PURE__ */ y(ko, { tabletPadding: p, mobile: d, children: [
941
- S && /* @__PURE__ */ i(L, { ...Le }),
941
+ O && /* @__PURE__ */ i(L, { ...Le }),
942
942
  d && /* @__PURE__ */ y(ke, { children: [
943
943
  /* @__PURE__ */ i(L, { ...Ue }),
944
944
  /* @__PURE__ */ i(
@@ -955,14 +955,14 @@ const Te = de(/* @__PURE__ */ i("path", {
955
955
  p && /* @__PURE__ */ y(
956
956
  Po,
957
957
  {
958
- open: O,
958
+ open: N,
959
959
  onClose: () => $(!1),
960
960
  backgroundColor: k,
961
961
  shadowColor: ie,
962
962
  children: [
963
963
  /* @__PURE__ */ y(Me, { children: [
964
964
  /* @__PURE__ */ i(So, { src: fe, alt: "logo", width: me, height: ge }),
965
- /* @__PURE__ */ i(re, { variant: "icon", size: 36, onClick: () => $(!1), color: z, children: /* @__PURE__ */ i(Ye, {}) })
965
+ /* @__PURE__ */ i(re, { variant: "icon", size: 36, onClick: () => $(!1), color: D, children: /* @__PURE__ */ i(Ye, {}) })
966
966
  ] }),
967
967
  /* @__PURE__ */ i(L, { ...le })
968
968
  ]
@@ -982,7 +982,7 @@ const Te = de(/* @__PURE__ */ i("path", {
982
982
  variant: "icon",
983
983
  size: 24,
984
984
  onClick: () => R(!1),
985
- iconColor: z,
985
+ iconColor: D,
986
986
  highlight1: k,
987
987
  highlight2: k,
988
988
  children: /* @__PURE__ */ i(Pe, {})
@@ -992,7 +992,7 @@ const Te = de(/* @__PURE__ */ i("path", {
992
992
  ]
993
993
  }
994
994
  ),
995
- (p || S) && /* @__PURE__ */ y(
995
+ (p || O) && /* @__PURE__ */ y(
996
996
  Do,
997
997
  {
998
998
  anchor: "right",
@@ -1019,7 +1019,7 @@ const Te = de(/* @__PURE__ */ i("path", {
1019
1019
  navItems: xe,
1020
1020
  themeColors: {
1021
1021
  iconPrimary: r.colors.midnight,
1022
- highlightPrimary: D,
1022
+ highlightPrimary: S,
1023
1023
  highlightTertiary: k,
1024
1024
  shadowSecondary: Q,
1025
1025
  scrollColor: A
@@ -1058,7 +1058,7 @@ const Te = de(/* @__PURE__ */ i("path", {
1058
1058
  navItems: xe,
1059
1059
  themeColors: {
1060
1060
  iconPrimary: r.colors.midnight,
1061
- highlightPrimary: D,
1061
+ highlightPrimary: S,
1062
1062
  highlightTertiary: k,
1063
1063
  shadowSecondary: Q,
1064
1064
  scrollColor: A
@@ -1078,21 +1078,21 @@ const Te = de(/* @__PURE__ */ i("path", {
1078
1078
  borderColor: X,
1079
1079
  backgroundColor: I,
1080
1080
  children: [
1081
- S && /* @__PURE__ */ i(Z, { scrollColor: A, direction: "vertical", children: c && c }),
1081
+ O && /* @__PURE__ */ i(Z, { scrollColor: A, direction: "vertical", children: c && c }),
1082
1082
  p && /* @__PURE__ */ i(
1083
1083
  re,
1084
1084
  {
1085
1085
  variant: "icon",
1086
1086
  size: 36,
1087
1087
  onClick: () => R(!0),
1088
- color: z,
1088
+ color: D,
1089
1089
  children: /* @__PURE__ */ i(Te, {})
1090
1090
  }
1091
1091
  )
1092
1092
  ]
1093
1093
  }
1094
1094
  ),
1095
- S && /* @__PURE__ */ i(
1095
+ /* @__PURE__ */ i(
1096
1096
  Co,
1097
1097
  {
1098
1098
  show: se && se.length > 0,
@@ -1107,7 +1107,7 @@ const Te = de(/* @__PURE__ */ i("path", {
1107
1107
  {
1108
1108
  withActionsPanel: ae,
1109
1109
  borderColor: X,
1110
- backgroundColor: D,
1110
+ backgroundColor: S,
1111
1111
  mobileScreen: d,
1112
1112
  children: /* @__PURE__ */ i(Z, { scrollColor: A, children: b })
1113
1113
  }
@@ -1,14 +1,14 @@
1
1
  import { n as o } from "../.chunks/emotion-styled.browser.esm.js";
2
2
  import { c as r } from "../.chunks/emotion-react.browser.esm.js";
3
- import n from "../theme.js";
4
- const s = o("div")(
5
- ({ isMobile: e, hasPagination: t, color: i = n.colors.whiteGreen }) => ({
3
+ import t from "../theme.js";
4
+ const x = o("div")(
5
+ ({ isMobile: e, hasPagination: i, color: n = t.colors.whiteGreen }) => ({
6
6
  ...r`
7
7
  width: calc(100% - 72px);
8
8
  max-width: 1300px;
9
9
  position: fixed;
10
- bottom: ${t && e ? "128px" : t && !e ? "57px" : !t && e ? "74px" : "3px"};
11
- background-image: linear-gradient(to top, ${i}, ${i}00);
10
+ bottom: ${i && e ? "128px" : i && !e ? "57px" : !i && e ? "74px" : "3px"};
11
+ background-image: linear-gradient(to top, ${n}, ${n}00);
12
12
  pointer-events: none;
13
13
  height: 92px;
14
14
  box-sizing: border-box;
@@ -16,15 +16,18 @@ const s = o("div")(
16
16
  justify-content: center;
17
17
  align-items: center;
18
18
  z-index: 92;
19
+ @media (max-width: ${t.screenSizes.tablet}) {
20
+ width: calc(100% - 40px);
21
+ }
19
22
  `
20
23
  })
21
- ), a = o("div")(
22
- ({ color: e = n.colors.whiteGreen, hasSiteBanner: t = !1 }) => ({
24
+ ), s = o("div")(
25
+ ({ color: e = t.colors.whiteGreen, hasSiteBanner: i = !1 }) => ({
23
26
  ...r`
24
27
  width: calc(100% - 72px);
25
28
  max-width: 1300px;
26
29
  position: fixed;
27
- top: ${n.constants.appHeaderHeight + 1 + (t ? n.constants.siteBannerHeight : 0)}px;
30
+ top: ${t.constants.appHeaderHeight + 1 + (i ? t.constants.siteBannerHeight : 0)}px;
28
31
  background-image: linear-gradient(to bottom, ${e}, ${e}00);
29
32
  pointer-events: none;
30
33
  height: 29px;
@@ -33,10 +36,13 @@ const s = o("div")(
33
36
  justify-content: center;
34
37
  align-items: center;
35
38
  z-index: 92;
39
+ @media (max-width: ${t.screenSizes.tablet}) {
40
+ width: calc(100% - 40px);
41
+ }
36
42
  `
37
43
  })
38
44
  );
39
45
  export {
40
- s as BottomFade,
41
- a as TopFade
46
+ x as BottomFade,
47
+ s as TopFade
42
48
  };
package/Table/Table.d.ts CHANGED
@@ -21,6 +21,8 @@ export interface TableProps {
21
21
  notSortableColumns?: string[];
22
22
  notExportableColumns?: string[];
23
23
  showSearchByDate?: boolean;
24
+ scrollable?: boolean;
25
+ scrollableMinWidth?: string;
24
26
  }
25
27
  declare const DataTable: React.FC<TableProps>;
26
28
  export default DataTable;