jcicl 0.0.133 → 0.0.135
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/AppContainer/AppContainer.js +46 -47
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as a, jsxs as T, Fragment as fe } from "react/jsx-runtime";
|
|
2
2
|
import * as x from "react";
|
|
3
|
-
import { useState as
|
|
4
|
-
import { c as
|
|
5
|
-
import { n as v, i as
|
|
3
|
+
import { useState as G } from "react";
|
|
4
|
+
import { c as q } from "../.chunks/createSvgIcon.js";
|
|
5
|
+
import { n as v, i as ee } from "../.chunks/emotion-styled.browser.esm.js";
|
|
6
6
|
import { c as R } from "../.chunks/emotion-react.browser.esm.js";
|
|
7
7
|
import Ae from "../AppHeader/AppHeader.js";
|
|
8
8
|
import { Nav as F } from "../Nav/Nav.js";
|
|
9
|
-
import
|
|
10
|
-
import { Button as
|
|
9
|
+
import Y from "../ScrollContainer/ScrollContainer.js";
|
|
10
|
+
import { Button as K } from "../Button/Button.js";
|
|
11
11
|
import i from "../theme.js";
|
|
12
12
|
import { l as je } from "../.chunks/jocologo.js";
|
|
13
13
|
import { X as Ue } from "../.chunks/Close.js";
|
|
14
|
-
import { P as r, g as Fe, a as Ve, s as ce, r as We, c as
|
|
14
|
+
import { P as r, g as Fe, a as Ve, s as ce, r as We, c as Z, u as Qe, b as _, d as Xe } from "../.chunks/DefaultPropsProvider.js";
|
|
15
15
|
import { u as Ge, e as Ye, H as _e, a as ke, g as Je, T as Ke, r as Ze, b as me, c as qe } from "../.chunks/Portal.js";
|
|
16
16
|
import { m as Ce } from "../.chunks/memoTheme.js";
|
|
17
17
|
import { g as eo, o as Te, d as oo, M as to, P as ro, i as no } from "../.chunks/TextField.js";
|
|
@@ -95,7 +95,7 @@ function ho(e, o, t) {
|
|
|
95
95
|
function Pe(e) {
|
|
96
96
|
return typeof e == "function" ? e() : e;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function J(e, o, t) {
|
|
99
99
|
const n = Pe(t), c = ho(e, o, n);
|
|
100
100
|
c && (o.style.webkitTransform = c, o.style.transform = c);
|
|
101
101
|
}
|
|
@@ -128,7 +128,7 @@ const Ee = /* @__PURE__ */ x.forwardRef(function(o, t) {
|
|
|
128
128
|
} = o, d = x.useRef(null), w = so(Je(p), d, t), k = (s) => (g) => {
|
|
129
129
|
s && (g === void 0 ? s(d.current) : s(d.current, g));
|
|
130
130
|
}, y = k((s, g) => {
|
|
131
|
-
|
|
131
|
+
J(h, s, b), Ze(s), A && A(s, g);
|
|
132
132
|
}), m = k((s, g) => {
|
|
133
133
|
const W = me({
|
|
134
134
|
timeout: H,
|
|
@@ -142,7 +142,7 @@ const Ee = /* @__PURE__ */ x.forwardRef(function(o, t) {
|
|
|
142
142
|
}), s.style.transition = n.transitions.create("transform", {
|
|
143
143
|
...W
|
|
144
144
|
}), s.style.webkitTransform = "none", s.style.transform = "none", j && j(s, g);
|
|
145
|
-
}), S = k(z), U = k(M),
|
|
145
|
+
}), S = k(z), U = k(M), oe = k((s) => {
|
|
146
146
|
const g = me({
|
|
147
147
|
timeout: H,
|
|
148
148
|
style: L,
|
|
@@ -150,19 +150,19 @@ const Ee = /* @__PURE__ */ x.forwardRef(function(o, t) {
|
|
|
150
150
|
}, {
|
|
151
151
|
mode: "exit"
|
|
152
152
|
});
|
|
153
|
-
s.style.webkitTransition = n.transitions.create("-webkit-transform", g), s.style.transition = n.transitions.create("transform", g),
|
|
153
|
+
s.style.webkitTransition = n.transitions.create("-webkit-transform", g), s.style.transition = n.transitions.create("transform", g), J(h, s, b), E && E(s);
|
|
154
154
|
}), te = k((s) => {
|
|
155
155
|
s.style.webkitTransition = "", s.style.transition = "", N && N(s);
|
|
156
156
|
}), re = (s) => {
|
|
157
157
|
u && u(d.current, s);
|
|
158
158
|
}, D = x.useCallback(() => {
|
|
159
|
-
d.current &&
|
|
159
|
+
d.current && J(h, d.current, b);
|
|
160
160
|
}, [h, b]);
|
|
161
161
|
return x.useEffect(() => {
|
|
162
162
|
if (P || h === "down" || h === "right")
|
|
163
163
|
return;
|
|
164
164
|
const s = oo(() => {
|
|
165
|
-
d.current &&
|
|
165
|
+
d.current && J(h, d.current, b);
|
|
166
166
|
}), g = Te(d.current);
|
|
167
167
|
return g.addEventListener("resize", s), () => {
|
|
168
168
|
s.clear(), g.removeEventListener("resize", s);
|
|
@@ -174,7 +174,7 @@ const Ee = /* @__PURE__ */ x.forwardRef(function(o, t) {
|
|
|
174
174
|
onEnter: y,
|
|
175
175
|
onEntered: S,
|
|
176
176
|
onEntering: m,
|
|
177
|
-
onExit:
|
|
177
|
+
onExit: oe,
|
|
178
178
|
onExited: te,
|
|
179
179
|
onExiting: U,
|
|
180
180
|
addEndListener: re,
|
|
@@ -313,7 +313,7 @@ const Me = (e, o) => {
|
|
|
313
313
|
root: ["root"],
|
|
314
314
|
docked: [(n === "permanent" || n === "persistent") && "docked"],
|
|
315
315
|
modal: ["modal"],
|
|
316
|
-
paper: ["paper", `paperAnchor${
|
|
316
|
+
paper: ["paper", `paperAnchor${Z(t)}`, n !== "temporary" && `paperAnchorDocked${Z(t)}`]
|
|
317
317
|
};
|
|
318
318
|
return Xe(c, uo, o);
|
|
319
319
|
}, mo = ce(to, {
|
|
@@ -339,7 +339,7 @@ const Me = (e, o) => {
|
|
|
339
339
|
const {
|
|
340
340
|
ownerState: t
|
|
341
341
|
} = e;
|
|
342
|
-
return [o.paper, o[`paperAnchor${
|
|
342
|
+
return [o.paper, o[`paperAnchor${Z(t.anchor)}`], t.variant !== "temporary" && o[`paperAnchorDocked${Z(t.anchor)}`]];
|
|
343
343
|
}
|
|
344
344
|
})(Ce(({
|
|
345
345
|
theme: e
|
|
@@ -483,13 +483,13 @@ const V = /* @__PURE__ */ x.forwardRef(function(o, t) {
|
|
|
483
483
|
elevation: O === "temporary" ? $ : 0,
|
|
484
484
|
square: !0,
|
|
485
485
|
...N,
|
|
486
|
-
className:
|
|
486
|
+
className: _(m.paper, N.className),
|
|
487
487
|
ownerState: y,
|
|
488
488
|
children: b
|
|
489
489
|
});
|
|
490
490
|
if (O === "permanent")
|
|
491
491
|
return /* @__PURE__ */ a(be, {
|
|
492
|
-
className:
|
|
492
|
+
className: _(m.root, m.docked, h),
|
|
493
493
|
ownerState: y,
|
|
494
494
|
ref: t,
|
|
495
495
|
...B,
|
|
@@ -504,7 +504,7 @@ const V = /* @__PURE__ */ x.forwardRef(function(o, t) {
|
|
|
504
504
|
children: S
|
|
505
505
|
});
|
|
506
506
|
return O === "persistent" ? /* @__PURE__ */ a(be, {
|
|
507
|
-
className:
|
|
507
|
+
className: _(m.root, m.docked, h),
|
|
508
508
|
ownerState: y,
|
|
509
509
|
ref: t,
|
|
510
510
|
...B,
|
|
@@ -515,7 +515,7 @@ const V = /* @__PURE__ */ x.forwardRef(function(o, t) {
|
|
|
515
515
|
...A,
|
|
516
516
|
transitionDuration: H
|
|
517
517
|
},
|
|
518
|
-
className:
|
|
518
|
+
className: _(m.root, m.modal, h),
|
|
519
519
|
open: E,
|
|
520
520
|
ownerState: y,
|
|
521
521
|
onClose: j,
|
|
@@ -612,16 +612,16 @@ process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
|
612
612
|
*/
|
|
613
613
|
variant: r.oneOf(["permanent", "persistent", "temporary"])
|
|
614
614
|
});
|
|
615
|
-
const xe =
|
|
615
|
+
const xe = q(/* @__PURE__ */ a("path", {
|
|
616
616
|
d: "m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"
|
|
617
|
-
}), "ArrowForward"), vo =
|
|
617
|
+
}), "ArrowForward"), vo = q(/* @__PURE__ */ a("path", {
|
|
618
618
|
d: "m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"
|
|
619
|
-
}), "Logout"), ve =
|
|
619
|
+
}), "Logout"), ve = q(/* @__PURE__ */ a("path", {
|
|
620
620
|
d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"
|
|
621
|
-
}), "Cancel"), wo =
|
|
621
|
+
}), "Cancel"), wo = q(/* @__PURE__ */ a("path", {
|
|
622
622
|
d: "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"
|
|
623
623
|
}), "MoreHoriz"), yo = v("div", {
|
|
624
|
-
shouldForwardProp: (e) =>
|
|
624
|
+
shouldForwardProp: (e) => ee(e)
|
|
625
625
|
})(({ backgroundColor: e }) => ({
|
|
626
626
|
display: "flex",
|
|
627
627
|
flexDirection: "column",
|
|
@@ -644,7 +644,7 @@ const xe = ee(/* @__PURE__ */ a("path", {
|
|
|
644
644
|
minHeight: `calc(100% - ${i.constants.appHeaderHeight}px)`
|
|
645
645
|
})
|
|
646
646
|
), Co = v("div", {
|
|
647
|
-
shouldForwardProp: (e) =>
|
|
647
|
+
shouldForwardProp: (e) => ee(e)
|
|
648
648
|
})(({ withActionsPanel: e, tablet: o, borderColor: t, backgroundColor: n }) => ({
|
|
649
649
|
display: "flex",
|
|
650
650
|
flexDirection: "column",
|
|
@@ -688,7 +688,7 @@ const xe = ee(/* @__PURE__ */ a("path", {
|
|
|
688
688
|
}
|
|
689
689
|
`
|
|
690
690
|
})
|
|
691
|
-
), we = v(
|
|
691
|
+
), we = v(K)(({ iconColor: e, highlight1: o, highlight2: t, rightDrawer: n = !1 }) => ({
|
|
692
692
|
...R`
|
|
693
693
|
position: absolute;
|
|
694
694
|
top: -0.5rem;
|
|
@@ -713,7 +713,7 @@ const xe = ee(/* @__PURE__ */ a("path", {
|
|
|
713
713
|
}
|
|
714
714
|
`
|
|
715
715
|
})), $o = v("div", {
|
|
716
|
-
shouldForwardProp: (e) =>
|
|
716
|
+
shouldForwardProp: (e) => ee(e)
|
|
717
717
|
})(({ withActionsPanel: e, borderColor: o, backgroundColor: t, mobileScreen: n }) => ({
|
|
718
718
|
display: "flex",
|
|
719
719
|
overflow: "hidden",
|
|
@@ -776,7 +776,7 @@ const xe = ee(/* @__PURE__ */ a("path", {
|
|
|
776
776
|
}
|
|
777
777
|
`
|
|
778
778
|
})), Mo = v("div", {
|
|
779
|
-
shouldForwardProp: (e) =>
|
|
779
|
+
shouldForwardProp: (e) => ee(e)
|
|
780
780
|
})(({ backgroundColor: e, open: o }) => ({
|
|
781
781
|
...R`
|
|
782
782
|
position: fixed;
|
|
@@ -830,7 +830,7 @@ const xe = ee(/* @__PURE__ */ a("path", {
|
|
|
830
830
|
justify-content: ${e ? "start" : "space-between"};
|
|
831
831
|
padding: 8px 16px 8px 24px;
|
|
832
832
|
`
|
|
833
|
-
})), Do = v(V)((
|
|
833
|
+
})), Do = v(V)(() => ({
|
|
834
834
|
...R`
|
|
835
835
|
top: ${i.constants.appHeaderHeight}px;
|
|
836
836
|
font-family: 'Roboto';
|
|
@@ -841,7 +841,7 @@ const xe = ee(/* @__PURE__ */ a("path", {
|
|
|
841
841
|
box-sizing: border-box;
|
|
842
842
|
top: ${i.constants.appHeaderHeight}px;
|
|
843
843
|
height: calc(100vh - ${i.constants.appHeaderHeight}px);
|
|
844
|
-
background-
|
|
844
|
+
background-color: ${i.colors.white};
|
|
845
845
|
box-shadow: 0 3px 6px 3px ${i.colors.gray};
|
|
846
846
|
padding: 0;
|
|
847
847
|
overflow: visible;
|
|
@@ -867,19 +867,19 @@ const xe = ee(/* @__PURE__ */ a("path", {
|
|
|
867
867
|
loggedIn: $,
|
|
868
868
|
mobileActionsPanelOpen: P
|
|
869
869
|
}) => {
|
|
870
|
-
const [A, z] =
|
|
870
|
+
const [A, z] = G(!1), [j, E] = G(!1), [N, M] = G(!1), [L, H] = G(!1), { mobile: O = i.screenSizes.mobile, tablet: B = i.screenSizes.tablet } = f, d = ge(`(max-width: ${O})`), w = ge(`(max-width: ${B})`) && !d, k = !d && !w, {
|
|
871
871
|
backgroundPrimary: y = i.colors.whiteGreen,
|
|
872
872
|
backgroundSecondary: m = i.colors.whiteGreenA,
|
|
873
873
|
backgroundTertiary: S = i.colors.sage,
|
|
874
874
|
highlightPrimary: U = i.colors.sunlight,
|
|
875
|
-
backgroundQuaternary:
|
|
875
|
+
backgroundQuaternary: oe = i.colors.moss,
|
|
876
876
|
highlightSecondary: te = i.colors.dandelion,
|
|
877
877
|
highlightTertiary: re = `${i.colors.dandelion}99`,
|
|
878
878
|
iconPrimary: D = i.colors.darkGreen,
|
|
879
879
|
shadowPrimary: s = i.colors.darkGreenO99,
|
|
880
880
|
shadowSecondary: g = i.boxShadows.darkGreen,
|
|
881
881
|
shadowTertiary: W = i.boxShadows.darkGreenThick,
|
|
882
|
-
borderPrimary:
|
|
882
|
+
borderPrimary: X = i.colors.green,
|
|
883
883
|
scrollColor: I = i.colors.darkGreenO99,
|
|
884
884
|
iconColors: Re
|
|
885
885
|
} = b, { logoSrc: le = je, logoWidth: pe = 36, logoHeight: de = 50 } = h, Se = {
|
|
@@ -889,7 +889,7 @@ const xe = ee(/* @__PURE__ */ a("path", {
|
|
|
889
889
|
highlightPrimary: U,
|
|
890
890
|
highlightSecondary: te,
|
|
891
891
|
highlightTertiary: re,
|
|
892
|
-
borderPrimary:
|
|
892
|
+
borderPrimary: X,
|
|
893
893
|
iconPrimary: D,
|
|
894
894
|
shadowPrimary: s,
|
|
895
895
|
shadowSecondary: g,
|
|
@@ -953,7 +953,7 @@ const xe = ee(/* @__PURE__ */ a("path", {
|
|
|
953
953
|
logoProps: De,
|
|
954
954
|
iconColor: D,
|
|
955
955
|
isMobile: d,
|
|
956
|
-
themeProps: { shadowSecondary: g, shadowTertiary: W, iconPrimary: D, borderPrimary:
|
|
956
|
+
themeProps: { shadowSecondary: g, shadowTertiary: W, iconPrimary: D, borderPrimary: X },
|
|
957
957
|
iconColors: Re,
|
|
958
958
|
userName: t == null ? void 0 : t.name,
|
|
959
959
|
userSettingsEnabled: n
|
|
@@ -984,7 +984,7 @@ const xe = ee(/* @__PURE__ */ a("path", {
|
|
|
984
984
|
children: [
|
|
985
985
|
/* @__PURE__ */ T(ye, { children: [
|
|
986
986
|
/* @__PURE__ */ a(So, { src: le, alt: "logo", width: pe, height: de }),
|
|
987
|
-
/* @__PURE__ */ a(
|
|
987
|
+
/* @__PURE__ */ a(K, { variant: "icon", size: 36, onClick: () => z(!1), color: D, children: /* @__PURE__ */ a(Ue, {}) })
|
|
988
988
|
] }),
|
|
989
989
|
/* @__PURE__ */ a(F, { ...ae })
|
|
990
990
|
]
|
|
@@ -1010,7 +1010,7 @@ const xe = ee(/* @__PURE__ */ a("path", {
|
|
|
1010
1010
|
children: /* @__PURE__ */ a(ve, {})
|
|
1011
1011
|
}
|
|
1012
1012
|
),
|
|
1013
|
-
/* @__PURE__ */ a(
|
|
1013
|
+
/* @__PURE__ */ a(Y, { scrollColor: I, direction: "vertical", children: l && l })
|
|
1014
1014
|
]
|
|
1015
1015
|
}
|
|
1016
1016
|
),
|
|
@@ -1020,7 +1020,6 @@ const xe = ee(/* @__PURE__ */ a("path", {
|
|
|
1020
1020
|
anchor: "right",
|
|
1021
1021
|
open: N,
|
|
1022
1022
|
onClose: () => M(!1),
|
|
1023
|
-
backgroundQuaternary: X,
|
|
1024
1023
|
children: [
|
|
1025
1024
|
/* @__PURE__ */ a(
|
|
1026
1025
|
we,
|
|
@@ -1029,7 +1028,7 @@ const xe = ee(/* @__PURE__ */ a("path", {
|
|
|
1029
1028
|
size: 24,
|
|
1030
1029
|
onClick: () => M(!1),
|
|
1031
1030
|
iconColor: i.colors.midnight,
|
|
1032
|
-
highlight1: i.colors.
|
|
1031
|
+
highlight1: i.colors.white,
|
|
1033
1032
|
highlight2: m,
|
|
1034
1033
|
rightDrawer: !0,
|
|
1035
1034
|
children: /* @__PURE__ */ a(ve, {})
|
|
@@ -1059,12 +1058,12 @@ const xe = ee(/* @__PURE__ */ a("path", {
|
|
|
1059
1058
|
anchor: "right",
|
|
1060
1059
|
open: N,
|
|
1061
1060
|
onClose: () => M(!1),
|
|
1062
|
-
backgroundQuaternary:
|
|
1061
|
+
backgroundQuaternary: oe,
|
|
1063
1062
|
children: [
|
|
1064
1063
|
/* @__PURE__ */ T(ye, { children: [
|
|
1065
1064
|
/* @__PURE__ */ a(Ho, { color: i.colors.midnight, children: "Settings" }),
|
|
1066
1065
|
/* @__PURE__ */ a(
|
|
1067
|
-
|
|
1066
|
+
K,
|
|
1068
1067
|
{
|
|
1069
1068
|
variant: "icon",
|
|
1070
1069
|
size: 36,
|
|
@@ -1091,19 +1090,19 @@ const xe = ee(/* @__PURE__ */ a("path", {
|
|
|
1091
1090
|
]
|
|
1092
1091
|
}
|
|
1093
1092
|
),
|
|
1094
|
-
/* @__PURE__ */ a(Mo, { backgroundColor: S, open: P, children: /* @__PURE__ */ a(
|
|
1093
|
+
/* @__PURE__ */ a(Mo, { backgroundColor: S, open: P, children: /* @__PURE__ */ a(Y, { scrollColor: I, direction: "vertical", children: l }) })
|
|
1095
1094
|
] }),
|
|
1096
1095
|
!d && /* @__PURE__ */ T(
|
|
1097
1096
|
Co,
|
|
1098
1097
|
{
|
|
1099
1098
|
withActionsPanel: ne,
|
|
1100
1099
|
tablet: w,
|
|
1101
|
-
borderColor:
|
|
1100
|
+
borderColor: X,
|
|
1102
1101
|
backgroundColor: S,
|
|
1103
1102
|
children: [
|
|
1104
|
-
k && /* @__PURE__ */ a(
|
|
1103
|
+
k && /* @__PURE__ */ a(Y, { scrollColor: I, direction: "vertical", children: l && l }),
|
|
1105
1104
|
w && /* @__PURE__ */ a(
|
|
1106
|
-
|
|
1105
|
+
K,
|
|
1107
1106
|
{
|
|
1108
1107
|
variant: "icon",
|
|
1109
1108
|
size: 36,
|
|
@@ -1119,10 +1118,10 @@ const xe = ee(/* @__PURE__ */ a("path", {
|
|
|
1119
1118
|
$o,
|
|
1120
1119
|
{
|
|
1121
1120
|
withActionsPanel: ne,
|
|
1122
|
-
borderColor:
|
|
1121
|
+
borderColor: X,
|
|
1123
1122
|
backgroundColor: y,
|
|
1124
1123
|
mobileScreen: d,
|
|
1125
|
-
children: /* @__PURE__ */ a(
|
|
1124
|
+
children: /* @__PURE__ */ a(Y, { scrollColor: I, children: p })
|
|
1126
1125
|
}
|
|
1127
1126
|
)
|
|
1128
1127
|
] })
|
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.135",
|
|
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",
|