jcicl 0.0.163 → 0.0.165
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/Accordion/Accordion.js +18 -17
- package/AppContainer/AppContainer.js +147 -150
- package/AppHeader/AppHeader.d.ts +2 -0
- package/AppHeader/AppHeader.js +115 -93
- package/package.json +1 -1
package/Accordion/Accordion.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { n, i as
|
|
2
|
+
import { useState as u } from "react";
|
|
3
|
+
import { n, i as y } from "../.chunks/emotion-styled.browser.esm.js";
|
|
4
4
|
import { c as d } from "../.chunks/emotion-react.browser.esm.js";
|
|
5
5
|
import c from "../theme.js";
|
|
6
6
|
import { Flex as a } from "../Flex/Flex.js";
|
|
7
|
-
import { c as
|
|
8
|
-
import { B as
|
|
9
|
-
const
|
|
7
|
+
import { c as b } from "../.chunks/createSvgIcon.js";
|
|
8
|
+
import { B as A } from "../.chunks/ButtonBase.js";
|
|
9
|
+
const j = b(/* @__PURE__ */ r("path", {
|
|
10
10
|
d: "M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"
|
|
11
|
-
}), "ArrowForwardIos"),
|
|
11
|
+
}), "ArrowForwardIos"), B = n("div")(({ padding: o, shadow: t, width: e }) => ({
|
|
12
12
|
...d`
|
|
13
13
|
h3 {
|
|
14
14
|
margin: 0;
|
|
@@ -24,7 +24,7 @@ const A = y(/* @__PURE__ */ r("path", {
|
|
|
24
24
|
background-color: ${c.colors.white};
|
|
25
25
|
width: ${e};
|
|
26
26
|
`
|
|
27
|
-
})),
|
|
27
|
+
})), $ = n("div")(({ expanded: o }) => ({
|
|
28
28
|
...d`
|
|
29
29
|
transition: 313ms all ease-in-out;
|
|
30
30
|
display: grid;
|
|
@@ -33,8 +33,8 @@ const A = y(/* @__PURE__ */ r("path", {
|
|
|
33
33
|
overflow: hidden;
|
|
34
34
|
}
|
|
35
35
|
`
|
|
36
|
-
})),
|
|
37
|
-
shouldForwardProp: (o) =>
|
|
36
|
+
})), v = n(A, {
|
|
37
|
+
shouldForwardProp: (o) => y(o) && typeof o == "string"
|
|
38
38
|
})(({ expanded: o }) => ({
|
|
39
39
|
...d`
|
|
40
40
|
transition: 201ms all linear;
|
|
@@ -44,27 +44,28 @@ const A = y(/* @__PURE__ */ r("path", {
|
|
|
44
44
|
height: 24px;
|
|
45
45
|
aspect-ratio: 1;
|
|
46
46
|
`
|
|
47
|
-
})),
|
|
47
|
+
})), G = ({
|
|
48
48
|
decorativeElement: o,
|
|
49
49
|
title: t,
|
|
50
50
|
children: e,
|
|
51
51
|
padding: l = "1rem 2rem",
|
|
52
52
|
shadow: m = c.boxShadows.darkGreen,
|
|
53
|
-
width: p = "360px"
|
|
53
|
+
width: p = "360px",
|
|
54
|
+
...f
|
|
54
55
|
}) => {
|
|
55
|
-
const [s,
|
|
56
|
-
return /* @__PURE__ */ i(
|
|
56
|
+
const [s, h] = u(!1), w = { padding: l, shadow: m, width: p }, x = { expanded: s }, g = { expanded: s };
|
|
57
|
+
return /* @__PURE__ */ i(B, { className: "jcAccordion", ...w, ...f, children: [
|
|
57
58
|
/* @__PURE__ */ i(a, { className: "jcAccordionHeader", alignItems: "center", justifyContent: "space-between", children: [
|
|
58
59
|
/* @__PURE__ */ i(a, { className: "jcAccordionTitle", width: "100%", gap: "1rem", alignItems: "center", children: [
|
|
59
60
|
o && o,
|
|
60
61
|
/* @__PURE__ */ r("h3", { children: t })
|
|
61
62
|
] }),
|
|
62
|
-
/* @__PURE__ */ r(
|
|
63
|
+
/* @__PURE__ */ r(v, { ...x, onClick: () => h(!s), children: /* @__PURE__ */ r(j, {}) })
|
|
63
64
|
] }),
|
|
64
|
-
/* @__PURE__ */ r(
|
|
65
|
+
/* @__PURE__ */ r($, { className: "jcAccordionBody", ...g, children: /* @__PURE__ */ r("div", { children: e }) })
|
|
65
66
|
] });
|
|
66
67
|
};
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
G as Accordion,
|
|
70
|
+
G as default
|
|
70
71
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsx as a, jsxs as T, Fragment as fe } from "react/jsx-runtime";
|
|
2
2
|
import * as x from "react";
|
|
3
3
|
import { useState as G } from "react";
|
|
4
|
-
import { c as
|
|
5
|
-
import { n as v, i as
|
|
4
|
+
import { c as se } from "../.chunks/createSvgIcon.js";
|
|
5
|
+
import { n as v, i as q } from "../.chunks/emotion-styled.browser.esm.js";
|
|
6
6
|
import { c as R } from "../.chunks/emotion-react.browser.esm.js";
|
|
7
|
-
import
|
|
7
|
+
import Ie from "../AppHeader/AppHeader.js";
|
|
8
8
|
import { Nav as F } from "../Nav/Nav.js";
|
|
9
9
|
import Y from "../ScrollContainer/ScrollContainer.js";
|
|
10
10
|
import { Button as K } from "../Button/Button.js";
|
|
11
11
|
import i from "../theme.js";
|
|
12
|
-
import { l as
|
|
13
|
-
import { X as
|
|
14
|
-
import { P as t, g as
|
|
15
|
-
import { u as
|
|
16
|
-
import { u as
|
|
12
|
+
import { l as Ae } from "../.chunks/jocologo.js";
|
|
13
|
+
import { X as je } from "../.chunks/Close.js";
|
|
14
|
+
import { P as t, g as Ue, a as Fe, s as ce, r as Ve, c as Z, u as We, b as _, d as Qe } from "../.chunks/DefaultPropsProvider.js";
|
|
15
|
+
import { u as Xe } from "../.chunks/index.js";
|
|
16
|
+
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 } from "../.chunks/Portal.js";
|
|
17
17
|
import { m as Ce } from "../.chunks/memoTheme.js";
|
|
18
|
-
import { g as
|
|
19
|
-
import { i as
|
|
20
|
-
import { c as
|
|
21
|
-
import { a as
|
|
22
|
-
function
|
|
18
|
+
import { g as qe, o as Te, d as eo, M as oo, P as ro } from "../.chunks/TextField.js";
|
|
19
|
+
import { i as to } from "../.chunks/useSlot.js";
|
|
20
|
+
import { c as no } from "../.chunks/chainPropTypes.js";
|
|
21
|
+
import { a as io, u as ao } from "../.chunks/TransitionGroupContext.js";
|
|
22
|
+
function so(e, o, r, n, c) {
|
|
23
23
|
const [l, u] = x.useState(() => c && r ? r(e).matches : n ? n(e).matches : o);
|
|
24
|
-
return
|
|
24
|
+
return io(() => {
|
|
25
25
|
if (!r)
|
|
26
26
|
return;
|
|
27
27
|
const f = r(e), p = () => {
|
|
@@ -32,10 +32,10 @@ function co(e, o, r, n, c) {
|
|
|
32
32
|
};
|
|
33
33
|
}, [e, r]), l;
|
|
34
34
|
}
|
|
35
|
-
const
|
|
35
|
+
const co = {
|
|
36
36
|
...x
|
|
37
|
-
},
|
|
38
|
-
function
|
|
37
|
+
}, Pe = co.useSyncExternalStore;
|
|
38
|
+
function lo(e, o, r, n, c) {
|
|
39
39
|
const l = x.useCallback(() => o, [o]), u = x.useMemo(() => {
|
|
40
40
|
if (c && r)
|
|
41
41
|
return () => r(e).matches;
|
|
@@ -51,19 +51,19 @@ function po(e, o, r, n, c) {
|
|
|
51
51
|
return [l, () => () => {
|
|
52
52
|
}];
|
|
53
53
|
const h = r(e);
|
|
54
|
-
return [() => h.matches, (
|
|
55
|
-
h.removeEventListener("change",
|
|
54
|
+
return [() => h.matches, (P) => (h.addEventListener("change", P), () => {
|
|
55
|
+
h.removeEventListener("change", P);
|
|
56
56
|
})];
|
|
57
57
|
}, [l, r, e]);
|
|
58
|
-
return
|
|
58
|
+
return Pe(p, f, u);
|
|
59
59
|
}
|
|
60
60
|
function ge(e, o = {}) {
|
|
61
|
-
const r =
|
|
61
|
+
const r = Ge(), n = typeof window < "u" && typeof window.matchMedia < "u", {
|
|
62
62
|
defaultMatches: c = !1,
|
|
63
63
|
matchMedia: l = n ? window.matchMedia : null,
|
|
64
64
|
ssrMatchMedia: u = null,
|
|
65
65
|
noSsr: f = !1
|
|
66
|
-
} =
|
|
66
|
+
} = qe({
|
|
67
67
|
name: "MuiUseMediaQuery",
|
|
68
68
|
props: o,
|
|
69
69
|
theme: r
|
|
@@ -72,13 +72,13 @@ function ge(e, o = {}) {
|
|
|
72
72
|
`));
|
|
73
73
|
let p = typeof e == "function" ? e(r) : e;
|
|
74
74
|
p = p.replace(/^@media( ?)/m, "");
|
|
75
|
-
const h = (
|
|
75
|
+
const h = (Pe !== void 0 ? lo : so)(p, c, l, u, f);
|
|
76
76
|
return process.env.NODE_ENV !== "production" && x.useDebugValue({
|
|
77
77
|
query: p,
|
|
78
78
|
match: h
|
|
79
79
|
}), h;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function po(e, o, r) {
|
|
82
82
|
const n = o.getBoundingClientRect(), c = r && r.getBoundingClientRect(), l = Te(o);
|
|
83
83
|
let u;
|
|
84
84
|
if (o.fakeTransform)
|
|
@@ -94,11 +94,11 @@ function ho(e, o, r) {
|
|
|
94
94
|
}
|
|
95
95
|
return e === "left" ? c ? `translateX(${c.right + f - n.left}px)` : `translateX(${l.innerWidth + f - n.left}px)` : e === "right" ? c ? `translateX(-${n.right - c.left - f}px)` : `translateX(-${n.left + n.width - f}px)` : e === "up" ? c ? `translateY(${c.bottom + p - n.top}px)` : `translateY(${l.innerHeight + p - n.top}px)` : c ? `translateY(-${n.top - c.top + n.height - p}px)` : `translateY(-${n.top + n.height - p}px)`;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function $e(e) {
|
|
98
98
|
return typeof e == "function" ? e() : e;
|
|
99
99
|
}
|
|
100
100
|
function J(e, o, r) {
|
|
101
|
-
const n =
|
|
101
|
+
const n = $e(r), c = po(e, o, n);
|
|
102
102
|
c && (o.style.webkitTransform = c, o.style.transform = c);
|
|
103
103
|
}
|
|
104
104
|
const Ee = /* @__PURE__ */ x.forwardRef(function(o, r) {
|
|
@@ -114,28 +114,28 @@ const Ee = /* @__PURE__ */ x.forwardRef(function(o, r) {
|
|
|
114
114
|
children: p,
|
|
115
115
|
container: b,
|
|
116
116
|
direction: h = "down",
|
|
117
|
-
easing:
|
|
118
|
-
in:
|
|
117
|
+
easing: P = c,
|
|
118
|
+
in: $,
|
|
119
119
|
onEnter: A,
|
|
120
120
|
onEntered: z,
|
|
121
121
|
onEntering: j,
|
|
122
122
|
onExit: E,
|
|
123
123
|
onExited: N,
|
|
124
124
|
onExiting: M,
|
|
125
|
-
style:
|
|
125
|
+
style: O,
|
|
126
126
|
timeout: H = l,
|
|
127
127
|
// eslint-disable-next-line react/prop-types
|
|
128
|
-
TransitionComponent:
|
|
128
|
+
TransitionComponent: L = Ke,
|
|
129
129
|
...B
|
|
130
|
-
} = o, d = x.useRef(null), w =
|
|
130
|
+
} = o, d = x.useRef(null), w = ao(Je(p), d, r), k = (s) => (g) => {
|
|
131
131
|
s && (g === void 0 ? s(d.current) : s(d.current, g));
|
|
132
132
|
}, y = k((s, g) => {
|
|
133
|
-
J(h, s, b),
|
|
133
|
+
J(h, s, b), Ze(s), A && A(s, g);
|
|
134
134
|
}), m = k((s, g) => {
|
|
135
135
|
const W = me({
|
|
136
136
|
timeout: H,
|
|
137
|
-
style:
|
|
138
|
-
easing:
|
|
137
|
+
style: O,
|
|
138
|
+
easing: P
|
|
139
139
|
}, {
|
|
140
140
|
mode: "enter"
|
|
141
141
|
});
|
|
@@ -144,51 +144,51 @@ const Ee = /* @__PURE__ */ x.forwardRef(function(o, r) {
|
|
|
144
144
|
}), s.style.transition = n.transitions.create("transform", {
|
|
145
145
|
...W
|
|
146
146
|
}), s.style.webkitTransform = "none", s.style.transform = "none", j && j(s, g);
|
|
147
|
-
}), S = k(z), U = k(M),
|
|
147
|
+
}), S = k(z), U = k(M), ee = k((s) => {
|
|
148
148
|
const g = me({
|
|
149
149
|
timeout: H,
|
|
150
|
-
style:
|
|
151
|
-
easing:
|
|
150
|
+
style: O,
|
|
151
|
+
easing: P
|
|
152
152
|
}, {
|
|
153
153
|
mode: "exit"
|
|
154
154
|
});
|
|
155
155
|
s.style.webkitTransition = n.transitions.create("-webkit-transform", g), s.style.transition = n.transitions.create("transform", g), J(h, s, b), E && E(s);
|
|
156
|
-
}),
|
|
156
|
+
}), oe = k((s) => {
|
|
157
157
|
s.style.webkitTransition = "", s.style.transition = "", N && N(s);
|
|
158
|
-
}),
|
|
158
|
+
}), re = (s) => {
|
|
159
159
|
u && u(d.current, s);
|
|
160
160
|
}, D = x.useCallback(() => {
|
|
161
161
|
d.current && J(h, d.current, b);
|
|
162
162
|
}, [h, b]);
|
|
163
163
|
return x.useEffect(() => {
|
|
164
|
-
if (
|
|
164
|
+
if ($ || h === "down" || h === "right")
|
|
165
165
|
return;
|
|
166
|
-
const s =
|
|
166
|
+
const s = eo(() => {
|
|
167
167
|
d.current && J(h, d.current, b);
|
|
168
168
|
}), g = Te(d.current);
|
|
169
169
|
return g.addEventListener("resize", s), () => {
|
|
170
170
|
s.clear(), g.removeEventListener("resize", s);
|
|
171
171
|
};
|
|
172
|
-
}, [h,
|
|
173
|
-
|
|
174
|
-
}, [
|
|
172
|
+
}, [h, $, b]), x.useEffect(() => {
|
|
173
|
+
$ || D();
|
|
174
|
+
}, [$, D]), /* @__PURE__ */ a(L, {
|
|
175
175
|
nodeRef: d,
|
|
176
176
|
onEnter: y,
|
|
177
177
|
onEntered: S,
|
|
178
178
|
onEntering: m,
|
|
179
|
-
onExit:
|
|
180
|
-
onExited:
|
|
179
|
+
onExit: ee,
|
|
180
|
+
onExited: oe,
|
|
181
181
|
onExiting: U,
|
|
182
|
-
addEndListener:
|
|
182
|
+
addEndListener: re,
|
|
183
183
|
appear: f,
|
|
184
|
-
in:
|
|
184
|
+
in: $,
|
|
185
185
|
timeout: H,
|
|
186
186
|
...B,
|
|
187
187
|
children: (s, g) => /* @__PURE__ */ x.cloneElement(p, {
|
|
188
188
|
ref: w,
|
|
189
189
|
style: {
|
|
190
|
-
visibility: s === "exited" &&
|
|
191
|
-
...
|
|
190
|
+
visibility: s === "exited" && !$ ? "hidden" : void 0,
|
|
191
|
+
...O,
|
|
192
192
|
...p.props.style
|
|
193
193
|
},
|
|
194
194
|
...g
|
|
@@ -215,14 +215,14 @@ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
|
|
|
215
215
|
/**
|
|
216
216
|
* A single child content element.
|
|
217
217
|
*/
|
|
218
|
-
children:
|
|
218
|
+
children: Ye.isRequired,
|
|
219
219
|
/**
|
|
220
220
|
* An HTML element, or a function that returns one.
|
|
221
221
|
* It's used to set the container the Slide is transitioning from.
|
|
222
222
|
*/
|
|
223
|
-
container:
|
|
223
|
+
container: no(t.oneOfType([_e, t.func]), (e) => {
|
|
224
224
|
if (e.open) {
|
|
225
|
-
const o =
|
|
225
|
+
const o = $e(e.container);
|
|
226
226
|
if (o && o.nodeType === 1) {
|
|
227
227
|
const r = o.getBoundingClientRect();
|
|
228
228
|
if (process.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0)
|
|
@@ -297,16 +297,16 @@ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
|
|
|
297
297
|
exit: t.number
|
|
298
298
|
})])
|
|
299
299
|
});
|
|
300
|
-
function
|
|
301
|
-
return
|
|
300
|
+
function ho(e) {
|
|
301
|
+
return Ue("MuiDrawer", e);
|
|
302
302
|
}
|
|
303
|
-
|
|
303
|
+
Fe("MuiDrawer", ["root", "docked", "paper", "paperAnchorLeft", "paperAnchorRight", "paperAnchorTop", "paperAnchorBottom", "paperAnchorDockedLeft", "paperAnchorDockedRight", "paperAnchorDockedTop", "paperAnchorDockedBottom", "modal"]);
|
|
304
304
|
const Me = (e, o) => {
|
|
305
305
|
const {
|
|
306
306
|
ownerState: r
|
|
307
307
|
} = e;
|
|
308
308
|
return [o.root, (r.variant === "permanent" || r.variant === "persistent") && o.docked, o.modal];
|
|
309
|
-
},
|
|
309
|
+
}, uo = (e) => {
|
|
310
310
|
const {
|
|
311
311
|
classes: o,
|
|
312
312
|
anchor: r,
|
|
@@ -317,8 +317,8 @@ const Me = (e, o) => {
|
|
|
317
317
|
modal: ["modal"],
|
|
318
318
|
paper: ["paper", `paperAnchor${Z(r)}`, n !== "temporary" && `paperAnchorDocked${Z(r)}`]
|
|
319
319
|
};
|
|
320
|
-
return
|
|
321
|
-
},
|
|
320
|
+
return Qe(c, ho, o);
|
|
321
|
+
}, fo = ce(oo, {
|
|
322
322
|
name: "MuiDrawer",
|
|
323
323
|
slot: "Root",
|
|
324
324
|
overridesResolver: Me
|
|
@@ -327,14 +327,14 @@ const Me = (e, o) => {
|
|
|
327
327
|
}) => ({
|
|
328
328
|
zIndex: (e.vars || e).zIndex.drawer
|
|
329
329
|
}))), be = ce("div", {
|
|
330
|
-
shouldForwardProp:
|
|
330
|
+
shouldForwardProp: Ve,
|
|
331
331
|
name: "MuiDrawer",
|
|
332
332
|
slot: "Docked",
|
|
333
333
|
skipVariantsResolver: !1,
|
|
334
334
|
overridesResolver: Me
|
|
335
335
|
})({
|
|
336
336
|
flex: "0 0 auto"
|
|
337
|
-
}),
|
|
337
|
+
}), mo = ce(ro, {
|
|
338
338
|
name: "MuiDrawer",
|
|
339
339
|
slot: "Paper",
|
|
340
340
|
overridesResolver: (e, o) => {
|
|
@@ -433,19 +433,19 @@ const Me = (e, o) => {
|
|
|
433
433
|
top: "down",
|
|
434
434
|
bottom: "up"
|
|
435
435
|
};
|
|
436
|
-
function
|
|
436
|
+
function go(e) {
|
|
437
437
|
return ["left", "right"].includes(e);
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function bo({
|
|
440
440
|
direction: e
|
|
441
441
|
}, o) {
|
|
442
|
-
return e === "rtl" &&
|
|
442
|
+
return e === "rtl" && go(o) ? He[o] : o;
|
|
443
443
|
}
|
|
444
444
|
const V = /* @__PURE__ */ x.forwardRef(function(o, r) {
|
|
445
|
-
const n =
|
|
445
|
+
const n = We({
|
|
446
446
|
props: o,
|
|
447
447
|
name: "MuiDrawer"
|
|
448
|
-
}), c = ke(), l =
|
|
448
|
+
}), c = ke(), l = Xe(), u = {
|
|
449
449
|
enter: c.transitions.duration.enteringScreen,
|
|
450
450
|
exit: c.transitions.duration.leavingScreen
|
|
451
451
|
}, {
|
|
@@ -453,8 +453,8 @@ const V = /* @__PURE__ */ x.forwardRef(function(o, r) {
|
|
|
453
453
|
BackdropProps: p,
|
|
454
454
|
children: b,
|
|
455
455
|
className: h,
|
|
456
|
-
elevation:
|
|
457
|
-
hideBackdrop:
|
|
456
|
+
elevation: P = 16,
|
|
457
|
+
hideBackdrop: $ = !1,
|
|
458
458
|
ModalProps: {
|
|
459
459
|
BackdropProps: A,
|
|
460
460
|
...z
|
|
@@ -464,32 +464,32 @@ const V = /* @__PURE__ */ x.forwardRef(function(o, r) {
|
|
|
464
464
|
PaperProps: N = {},
|
|
465
465
|
SlideProps: M,
|
|
466
466
|
// eslint-disable-next-line react/prop-types
|
|
467
|
-
TransitionComponent:
|
|
467
|
+
TransitionComponent: O = Ee,
|
|
468
468
|
transitionDuration: H = u,
|
|
469
|
-
variant:
|
|
469
|
+
variant: L = "temporary",
|
|
470
470
|
...B
|
|
471
471
|
} = n, d = x.useRef(!1);
|
|
472
472
|
x.useEffect(() => {
|
|
473
473
|
d.current = !0;
|
|
474
474
|
}, []);
|
|
475
|
-
const w =
|
|
475
|
+
const w = bo({
|
|
476
476
|
direction: l ? "rtl" : "ltr"
|
|
477
477
|
}, f), y = {
|
|
478
478
|
...n,
|
|
479
479
|
anchor: f,
|
|
480
|
-
elevation:
|
|
480
|
+
elevation: P,
|
|
481
481
|
open: E,
|
|
482
|
-
variant:
|
|
482
|
+
variant: L,
|
|
483
483
|
...B
|
|
484
|
-
}, m =
|
|
485
|
-
elevation:
|
|
484
|
+
}, m = uo(y), S = /* @__PURE__ */ a(mo, {
|
|
485
|
+
elevation: L === "temporary" ? P : 0,
|
|
486
486
|
square: !0,
|
|
487
487
|
...N,
|
|
488
488
|
className: _(m.paper, N.className),
|
|
489
489
|
ownerState: y,
|
|
490
490
|
children: b
|
|
491
491
|
});
|
|
492
|
-
if (
|
|
492
|
+
if (L === "permanent")
|
|
493
493
|
return /* @__PURE__ */ a(be, {
|
|
494
494
|
className: _(m.root, m.docked, h),
|
|
495
495
|
ownerState: y,
|
|
@@ -497,7 +497,7 @@ const V = /* @__PURE__ */ x.forwardRef(function(o, r) {
|
|
|
497
497
|
...B,
|
|
498
498
|
children: S
|
|
499
499
|
});
|
|
500
|
-
const U = /* @__PURE__ */ a(
|
|
500
|
+
const U = /* @__PURE__ */ a(O, {
|
|
501
501
|
in: E,
|
|
502
502
|
direction: He[w],
|
|
503
503
|
timeout: H,
|
|
@@ -505,13 +505,13 @@ const V = /* @__PURE__ */ x.forwardRef(function(o, r) {
|
|
|
505
505
|
...M,
|
|
506
506
|
children: S
|
|
507
507
|
});
|
|
508
|
-
return
|
|
508
|
+
return L === "persistent" ? /* @__PURE__ */ a(be, {
|
|
509
509
|
className: _(m.root, m.docked, h),
|
|
510
510
|
ownerState: y,
|
|
511
511
|
ref: r,
|
|
512
512
|
...B,
|
|
513
513
|
children: U
|
|
514
|
-
}) : /* @__PURE__ */ a(
|
|
514
|
+
}) : /* @__PURE__ */ a(fo, {
|
|
515
515
|
BackdropProps: {
|
|
516
516
|
...p,
|
|
517
517
|
...A,
|
|
@@ -521,7 +521,7 @@ const V = /* @__PURE__ */ x.forwardRef(function(o, r) {
|
|
|
521
521
|
open: E,
|
|
522
522
|
ownerState: y,
|
|
523
523
|
onClose: j,
|
|
524
|
-
hideBackdrop:
|
|
524
|
+
hideBackdrop: $,
|
|
525
525
|
ref: r,
|
|
526
526
|
...B,
|
|
527
527
|
...z,
|
|
@@ -558,7 +558,7 @@ process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
|
558
558
|
* The elevation of the drawer.
|
|
559
559
|
* @default 16
|
|
560
560
|
*/
|
|
561
|
-
elevation:
|
|
561
|
+
elevation: to,
|
|
562
562
|
/**
|
|
563
563
|
* If `true`, the backdrop is not rendered.
|
|
564
564
|
* @default false
|
|
@@ -614,16 +614,14 @@ process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
|
614
614
|
*/
|
|
615
615
|
variant: t.oneOf(["permanent", "persistent", "temporary"])
|
|
616
616
|
});
|
|
617
|
-
const xe =
|
|
617
|
+
const xe = se(/* @__PURE__ */ a("path", {
|
|
618
618
|
d: "m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"
|
|
619
|
-
}), "ArrowForward"),
|
|
620
|
-
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"
|
|
621
|
-
}), "Logout"), ve = q(/* @__PURE__ */ a("path", {
|
|
619
|
+
}), "ArrowForward"), ve = se(/* @__PURE__ */ a("path", {
|
|
622
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"
|
|
623
|
-
}), "Cancel"),
|
|
621
|
+
}), "Cancel"), xo = se(/* @__PURE__ */ a("path", {
|
|
624
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"
|
|
625
|
-
}), "MoreHoriz"),
|
|
626
|
-
shouldForwardProp: (e) =>
|
|
623
|
+
}), "MoreHoriz"), vo = v("div", {
|
|
624
|
+
shouldForwardProp: (e) => q(e)
|
|
627
625
|
})(({ backgroundColor: e }) => ({
|
|
628
626
|
display: "flex",
|
|
629
627
|
flexDirection: "column",
|
|
@@ -633,7 +631,7 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
633
631
|
height: "100vh",
|
|
634
632
|
fontFamily: "Roboto, sans-serif",
|
|
635
633
|
overflow: "hidden"
|
|
636
|
-
})),
|
|
634
|
+
})), wo = v("div")(
|
|
637
635
|
({ tabletPadding: e, mobile: o }) => ({
|
|
638
636
|
display: "flex",
|
|
639
637
|
flexDirection: o ? "column-reverse" : "row",
|
|
@@ -645,8 +643,8 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
645
643
|
boxSizing: "border-box",
|
|
646
644
|
minHeight: `calc(100% - ${i.constants.appHeaderHeight}px)`
|
|
647
645
|
})
|
|
648
|
-
),
|
|
649
|
-
shouldForwardProp: (e) =>
|
|
646
|
+
), yo = v("div", {
|
|
647
|
+
shouldForwardProp: (e) => q(e)
|
|
650
648
|
})(({ withActionsPanel: e, tablet: o, borderColor: r, backgroundColor: n }) => ({
|
|
651
649
|
display: "flex",
|
|
652
650
|
flexDirection: "column",
|
|
@@ -666,7 +664,7 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
666
664
|
...!e && {
|
|
667
665
|
border: "none"
|
|
668
666
|
}
|
|
669
|
-
})),
|
|
667
|
+
})), ko = v(V)(
|
|
670
668
|
({ shadowColor: e, backgroundColor: o }) => ({
|
|
671
669
|
...R`
|
|
672
670
|
top: ${i.constants.appHeaderHeight}px;
|
|
@@ -714,8 +712,8 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
714
712
|
}
|
|
715
713
|
}
|
|
716
714
|
`
|
|
717
|
-
})),
|
|
718
|
-
shouldForwardProp: (e) =>
|
|
715
|
+
})), Co = v("div", {
|
|
716
|
+
shouldForwardProp: (e) => q(e)
|
|
719
717
|
})(({ withActionsPanel: e, borderColor: o, backgroundColor: r, mobileScreen: n }) => ({
|
|
720
718
|
display: "flex",
|
|
721
719
|
overflow: "hidden",
|
|
@@ -737,7 +735,7 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
737
735
|
borderBottomLeftRadius: 0,
|
|
738
736
|
borderTopLeftRadius: 0
|
|
739
737
|
}
|
|
740
|
-
})),
|
|
738
|
+
})), To = v(V, {
|
|
741
739
|
shouldForwardProp: (e) => !["backgroundColor", "shadowColor"].includes(e)
|
|
742
740
|
})(({ backgroundColor: e, shadowColor: o }) => ({
|
|
743
741
|
...R`
|
|
@@ -755,7 +753,7 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
755
753
|
background-color: transparent;
|
|
756
754
|
}
|
|
757
755
|
`
|
|
758
|
-
})),
|
|
756
|
+
})), Po = v(V, {
|
|
759
757
|
shouldForwardProp: (e) => e != "backgroundColor"
|
|
760
758
|
})(({ backgroundColor: e }) => ({
|
|
761
759
|
...R`
|
|
@@ -777,8 +775,8 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
777
775
|
background-color: transparent;
|
|
778
776
|
}
|
|
779
777
|
`
|
|
780
|
-
})),
|
|
781
|
-
shouldForwardProp: (e) =>
|
|
778
|
+
})), $o = v("div", {
|
|
779
|
+
shouldForwardProp: (e) => q(e)
|
|
782
780
|
})(({ backgroundColor: e, open: o }) => ({
|
|
783
781
|
...R`
|
|
784
782
|
position: fixed;
|
|
@@ -792,14 +790,14 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
792
790
|
box-sizing: border-box;
|
|
793
791
|
padding: ${o ? "16px" : 0};
|
|
794
792
|
`
|
|
795
|
-
})),
|
|
793
|
+
})), Eo = v("h1")(({ color: e }) => ({
|
|
796
794
|
...R`
|
|
797
795
|
margin: 0;
|
|
798
796
|
font-size: 2.1rem;
|
|
799
797
|
font-family: 'Roboto';
|
|
800
798
|
color: ${e};
|
|
801
799
|
`
|
|
802
|
-
})),
|
|
800
|
+
})), Mo = v(V)(({ backgroundQuaternary: e }) => ({
|
|
803
801
|
...R`
|
|
804
802
|
top: ${i.constants.appHeaderHeight}px;
|
|
805
803
|
font-family: 'Roboto';
|
|
@@ -819,7 +817,7 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
819
817
|
background-color: transparent;
|
|
820
818
|
}
|
|
821
819
|
`
|
|
822
|
-
})),
|
|
820
|
+
})), Ho = v("img")(({ width: e, height: o }) => ({
|
|
823
821
|
...R`
|
|
824
822
|
width: ${e}px;
|
|
825
823
|
height: ${o}px;
|
|
@@ -832,7 +830,7 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
832
830
|
justify-content: ${e ? "start" : "space-between"};
|
|
833
831
|
padding: 8px 16px 8px 24px;
|
|
834
832
|
`
|
|
835
|
-
})),
|
|
833
|
+
})), Ro = v(V)(() => ({
|
|
836
834
|
...R`
|
|
837
835
|
top: ${i.constants.appHeaderHeight}px;
|
|
838
836
|
font-family: 'Roboto';
|
|
@@ -854,7 +852,7 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
854
852
|
background-color: transparent;
|
|
855
853
|
}
|
|
856
854
|
`
|
|
857
|
-
})),
|
|
855
|
+
})), Zo = ({
|
|
858
856
|
navProps: e,
|
|
859
857
|
appHeaderProps: o = {},
|
|
860
858
|
userInfo: r,
|
|
@@ -866,17 +864,17 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
866
864
|
children: p,
|
|
867
865
|
themeColors: b = {},
|
|
868
866
|
logoProps: h = {},
|
|
869
|
-
loggedIn:
|
|
870
|
-
mobileActionsPanelOpen:
|
|
867
|
+
loggedIn: P,
|
|
868
|
+
mobileActionsPanelOpen: $
|
|
871
869
|
}) => {
|
|
872
|
-
const [A, z] = G(!1), [j, E] = G(!1), [N, M] = G(!1), [
|
|
870
|
+
const [A, z] = G(!1), [j, E] = G(!1), [N, M] = G(!1), [O, H] = G(!1), { mobile: L = i.screenSizes.mobile, tablet: B = i.screenSizes.tablet } = f, d = ge(`(max-width: ${L})`), w = ge(`(max-width: ${B})`) && !d, k = !d && !w, {
|
|
873
871
|
backgroundPrimary: y = i.colors.whiteGreen,
|
|
874
872
|
backgroundSecondary: m = i.colors.whiteGreenA,
|
|
875
873
|
backgroundTertiary: S = i.colors.sage,
|
|
876
874
|
highlightPrimary: U = i.colors.sunlight,
|
|
877
|
-
backgroundQuaternary:
|
|
878
|
-
highlightSecondary:
|
|
879
|
-
highlightTertiary:
|
|
875
|
+
backgroundQuaternary: ee = i.colors.moss,
|
|
876
|
+
highlightSecondary: oe = i.colors.dandelion,
|
|
877
|
+
highlightTertiary: re = `${i.colors.dandelion}99`,
|
|
880
878
|
iconPrimary: D = i.colors.darkGreen,
|
|
881
879
|
shadowPrimary: s = i.colors.darkGreenO99,
|
|
882
880
|
shadowSecondary: g = i.boxShadows.darkGreen,
|
|
@@ -884,69 +882,68 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
884
882
|
borderPrimary: X = i.colors.green,
|
|
885
883
|
scrollColor: I = i.colors.darkGreenO99,
|
|
886
884
|
iconColors: Re
|
|
887
|
-
} = b, { logoSrc: le =
|
|
885
|
+
} = b, { logoSrc: le = Ae, logoWidth: pe = 36, logoHeight: de = 50 } = h, Se = {
|
|
888
886
|
backgroundPrimary: y,
|
|
889
887
|
backgroundSecondary: m,
|
|
890
888
|
backgroundTertiary: S,
|
|
891
889
|
highlightPrimary: U,
|
|
892
|
-
highlightSecondary:
|
|
893
|
-
highlightTertiary:
|
|
890
|
+
highlightSecondary: oe,
|
|
891
|
+
highlightTertiary: re,
|
|
894
892
|
borderPrimary: X,
|
|
895
893
|
iconPrimary: D,
|
|
896
894
|
shadowPrimary: s,
|
|
897
895
|
shadowSecondary: g,
|
|
898
896
|
shadowTertiary: W,
|
|
899
897
|
scrollColor: I
|
|
900
|
-
}, De = { logoSrc: le, logoWidth: pe, logoHeight: de },
|
|
901
|
-
} } = o, Q = { ...e, themeColors: Se }, Le = {
|
|
898
|
+
}, De = { logoSrc: le, logoWidth: pe, logoHeight: de }, te = l != null, ze = { ...o, navWidth: u, loggedIn: P }, Q = { ...e, themeColors: Se }, Ne = {
|
|
902
899
|
...Q,
|
|
903
900
|
navWidth: `${u}px`,
|
|
904
901
|
isMobile: d
|
|
905
902
|
}, he = [
|
|
906
|
-
{ label:
|
|
903
|
+
// { label: 'Log Out', icon: <LogoutIcon />, onClick: onLogout },
|
|
907
904
|
...c
|
|
908
905
|
].map((C) => ({
|
|
909
906
|
...C,
|
|
910
907
|
onClick: () => {
|
|
911
908
|
C.onClick && C.onClick(), M(!1);
|
|
912
909
|
}
|
|
913
|
-
})), { navItems:
|
|
910
|
+
})), { navItems: ne } = e, Oe = ne.map((C) => ({
|
|
914
911
|
...C,
|
|
915
912
|
onClick: () => {
|
|
916
913
|
C.onClick && C.onClick(), z(!1);
|
|
917
914
|
}
|
|
918
|
-
})),
|
|
915
|
+
})), ie = {
|
|
919
916
|
...Q,
|
|
920
917
|
navWidth: "100%",
|
|
921
918
|
isTablet: !0,
|
|
922
919
|
navItems: Oe
|
|
923
920
|
};
|
|
924
|
-
let
|
|
921
|
+
let ae = ne.map((C) => ({
|
|
925
922
|
...C,
|
|
926
923
|
onClick: () => {
|
|
927
924
|
C.onClick && C.onClick(), H(!1);
|
|
928
925
|
}
|
|
929
926
|
})), ue = [];
|
|
930
|
-
|
|
927
|
+
ne.length > 4 && d && (ue = ae.splice(3), ae.push({
|
|
931
928
|
label: "More",
|
|
932
|
-
icon: /* @__PURE__ */ a(
|
|
929
|
+
icon: /* @__PURE__ */ a(xo, {}),
|
|
933
930
|
onClick: () => H(!0)
|
|
934
931
|
}));
|
|
935
|
-
const
|
|
932
|
+
const Le = {
|
|
936
933
|
...Q,
|
|
937
934
|
navWidth: "100%",
|
|
938
|
-
navItems:
|
|
935
|
+
navItems: ae,
|
|
939
936
|
isMobile: !0,
|
|
940
|
-
activeRoute:
|
|
941
|
-
},
|
|
937
|
+
activeRoute: O ? "More" : Q.activeRoute
|
|
938
|
+
}, Be = {
|
|
942
939
|
...Q,
|
|
943
940
|
navWidth: "100%",
|
|
944
941
|
navItems: ue,
|
|
945
942
|
isTablet: !0
|
|
946
943
|
};
|
|
947
|
-
return /* @__PURE__ */ T(
|
|
944
|
+
return /* @__PURE__ */ T(vo, { backgroundColor: m, children: [
|
|
948
945
|
/* @__PURE__ */ a(
|
|
949
|
-
|
|
946
|
+
Ie,
|
|
950
947
|
{
|
|
951
948
|
...ze,
|
|
952
949
|
hamburgerMenu: w,
|
|
@@ -961,23 +958,23 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
961
958
|
userSettingsEnabled: n
|
|
962
959
|
}
|
|
963
960
|
),
|
|
964
|
-
/* @__PURE__ */ T(
|
|
965
|
-
k && /* @__PURE__ */ a(F, { ...
|
|
961
|
+
/* @__PURE__ */ T(wo, { tabletPadding: w, mobile: d, children: [
|
|
962
|
+
k && /* @__PURE__ */ a(F, { ...Ne }),
|
|
966
963
|
d && /* @__PURE__ */ T(fe, { children: [
|
|
967
|
-
/* @__PURE__ */ a(F, { ...
|
|
964
|
+
/* @__PURE__ */ a(F, { ...Le }),
|
|
968
965
|
/* @__PURE__ */ a(
|
|
969
|
-
|
|
966
|
+
Po,
|
|
970
967
|
{
|
|
971
|
-
open:
|
|
968
|
+
open: O,
|
|
972
969
|
onClose: () => H(!1),
|
|
973
970
|
backgroundColor: m,
|
|
974
971
|
anchor: "right",
|
|
975
|
-
children: /* @__PURE__ */ a(F, { ...
|
|
972
|
+
children: /* @__PURE__ */ a(F, { ...Be })
|
|
976
973
|
}
|
|
977
974
|
)
|
|
978
975
|
] }),
|
|
979
976
|
w && /* @__PURE__ */ T(
|
|
980
|
-
|
|
977
|
+
To,
|
|
981
978
|
{
|
|
982
979
|
open: A,
|
|
983
980
|
onClose: () => z(!1),
|
|
@@ -985,17 +982,17 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
985
982
|
shadowColor: s,
|
|
986
983
|
children: [
|
|
987
984
|
/* @__PURE__ */ T(ye, { children: [
|
|
988
|
-
/* @__PURE__ */ a(
|
|
989
|
-
/* @__PURE__ */ a(K, { variant: "icon", size: 36, onClick: () => z(!1), color: D, children: /* @__PURE__ */ a(
|
|
985
|
+
/* @__PURE__ */ a(Ho, { src: le, alt: "logo", width: pe, height: de }),
|
|
986
|
+
/* @__PURE__ */ a(K, { variant: "icon", size: 36, onClick: () => z(!1), color: D, children: /* @__PURE__ */ a(je, {}) })
|
|
990
987
|
] }),
|
|
991
|
-
/* @__PURE__ */ a(F, { ...
|
|
988
|
+
/* @__PURE__ */ a(F, { ...ie })
|
|
992
989
|
]
|
|
993
990
|
}
|
|
994
991
|
),
|
|
995
992
|
w && /* @__PURE__ */ T(
|
|
996
|
-
|
|
993
|
+
ko,
|
|
997
994
|
{
|
|
998
|
-
open: j &&
|
|
995
|
+
open: j && te,
|
|
999
996
|
onClose: () => E(!1),
|
|
1000
997
|
shadowColor: s,
|
|
1001
998
|
backgroundColor: S,
|
|
@@ -1017,7 +1014,7 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
1017
1014
|
}
|
|
1018
1015
|
),
|
|
1019
1016
|
(w || k) && /* @__PURE__ */ T(
|
|
1020
|
-
|
|
1017
|
+
Ro,
|
|
1021
1018
|
{
|
|
1022
1019
|
anchor: "right",
|
|
1023
1020
|
open: N,
|
|
@@ -1039,7 +1036,7 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
1039
1036
|
/* @__PURE__ */ a(
|
|
1040
1037
|
F,
|
|
1041
1038
|
{
|
|
1042
|
-
...
|
|
1039
|
+
...ie,
|
|
1043
1040
|
navItems: he,
|
|
1044
1041
|
themeColors: {
|
|
1045
1042
|
iconPrimary: i.colors.midnight,
|
|
@@ -1055,15 +1052,15 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
1055
1052
|
),
|
|
1056
1053
|
d && /* @__PURE__ */ T(fe, { children: [
|
|
1057
1054
|
/* @__PURE__ */ T(
|
|
1058
|
-
|
|
1055
|
+
Mo,
|
|
1059
1056
|
{
|
|
1060
1057
|
anchor: "right",
|
|
1061
1058
|
open: N,
|
|
1062
1059
|
onClose: () => M(!1),
|
|
1063
|
-
backgroundQuaternary:
|
|
1060
|
+
backgroundQuaternary: ee,
|
|
1064
1061
|
children: [
|
|
1065
1062
|
/* @__PURE__ */ T(ye, { children: [
|
|
1066
|
-
/* @__PURE__ */ a(
|
|
1063
|
+
/* @__PURE__ */ a(Eo, { color: i.colors.midnight, children: "Settings" }),
|
|
1067
1064
|
/* @__PURE__ */ a(
|
|
1068
1065
|
K,
|
|
1069
1066
|
{
|
|
@@ -1078,7 +1075,7 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
1078
1075
|
/* @__PURE__ */ a(
|
|
1079
1076
|
F,
|
|
1080
1077
|
{
|
|
1081
|
-
...
|
|
1078
|
+
...ie,
|
|
1082
1079
|
navItems: he,
|
|
1083
1080
|
themeColors: {
|
|
1084
1081
|
iconPrimary: i.colors.midnight,
|
|
@@ -1092,12 +1089,12 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
1092
1089
|
]
|
|
1093
1090
|
}
|
|
1094
1091
|
),
|
|
1095
|
-
/* @__PURE__ */ a(
|
|
1092
|
+
/* @__PURE__ */ a($o, { backgroundColor: S, open: $, children: /* @__PURE__ */ a(Y, { scrollColor: I, direction: "vertical", children: l }) })
|
|
1096
1093
|
] }),
|
|
1097
1094
|
!d && /* @__PURE__ */ T(
|
|
1098
|
-
|
|
1095
|
+
yo,
|
|
1099
1096
|
{
|
|
1100
|
-
withActionsPanel:
|
|
1097
|
+
withActionsPanel: te,
|
|
1101
1098
|
tablet: w,
|
|
1102
1099
|
borderColor: X,
|
|
1103
1100
|
backgroundColor: S,
|
|
@@ -1117,9 +1114,9 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
1117
1114
|
}
|
|
1118
1115
|
),
|
|
1119
1116
|
/* @__PURE__ */ a(
|
|
1120
|
-
|
|
1117
|
+
Co,
|
|
1121
1118
|
{
|
|
1122
|
-
withActionsPanel:
|
|
1119
|
+
withActionsPanel: te,
|
|
1123
1120
|
borderColor: X,
|
|
1124
1121
|
backgroundColor: y,
|
|
1125
1122
|
mobileScreen: d,
|
|
@@ -1130,5 +1127,5 @@ const xe = q(/* @__PURE__ */ a("path", {
|
|
|
1130
1127
|
] });
|
|
1131
1128
|
};
|
|
1132
1129
|
export {
|
|
1133
|
-
|
|
1130
|
+
Zo as default
|
|
1134
1131
|
};
|
package/AppHeader/AppHeader.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export interface AppHeaderProps {
|
|
|
24
24
|
userName?: string;
|
|
25
25
|
userSettingsEnabled?: boolean;
|
|
26
26
|
searchFilters?: SearchFilterProps[];
|
|
27
|
+
headerType?: 'search' | 'title' | 'searchAndTitle';
|
|
28
|
+
appTitle?: string;
|
|
27
29
|
}
|
|
28
30
|
declare const AppHeader: React.FC<AppHeaderProps>;
|
|
29
31
|
export default AppHeader;
|
package/AppHeader/AppHeader.js
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import { n as
|
|
5
|
-
import { c as
|
|
6
|
-
import { Search as
|
|
7
|
-
import { Button as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { c as
|
|
11
|
-
const
|
|
12
|
-
const n =
|
|
13
|
-
return
|
|
1
|
+
import { jsx as t, jsxs as p, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
+
import * as E from "react";
|
|
3
|
+
import Z, { useState as S, useLayoutEffect as ee } from "react";
|
|
4
|
+
import { n as h } from "../.chunks/emotion-styled.browser.esm.js";
|
|
5
|
+
import { c as b } from "../.chunks/emotion-react.browser.esm.js";
|
|
6
|
+
import { Search as A } from "../Search/Search.js";
|
|
7
|
+
import { Button as H } from "../Button/Button.js";
|
|
8
|
+
import I from "../Icon/Icon.js";
|
|
9
|
+
import te from "../WithLabel/WithLabel.js";
|
|
10
|
+
import { c as V } from "../.chunks/createSvgIcon.js";
|
|
11
|
+
const ne = Z[typeof document < "u" && document.createElement !== void 0 ? "useLayoutEffect" : "useEffect"], ie = (e) => {
|
|
12
|
+
const n = E.useRef(e);
|
|
13
|
+
return E.useEffect(() => {
|
|
14
14
|
n.current = e;
|
|
15
15
|
}), n;
|
|
16
16
|
};
|
|
17
|
-
function
|
|
17
|
+
function re() {
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
const c =
|
|
21
|
-
return
|
|
19
|
+
function oe(e, n, l = {}) {
|
|
20
|
+
const c = se(l.polyfill), a = ie(n);
|
|
21
|
+
return ne(() => {
|
|
22
22
|
let i = !1;
|
|
23
23
|
const d = e && "current" in e ? e.current : e;
|
|
24
|
-
if (!d) return
|
|
25
|
-
function r
|
|
26
|
-
i || a.current(
|
|
24
|
+
if (!d) return re;
|
|
25
|
+
function o(r, s) {
|
|
26
|
+
i || a.current(r, s);
|
|
27
27
|
}
|
|
28
|
-
return c.subscribe(d,
|
|
29
|
-
i = !0, c.unsubscribe(d,
|
|
28
|
+
return c.subscribe(d, o), () => {
|
|
29
|
+
i = !0, c.unsubscribe(d, o);
|
|
30
30
|
};
|
|
31
31
|
}, [e, c, a]), c.observer;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function ce(e) {
|
|
34
34
|
let n = !1, l = [];
|
|
35
35
|
const c = /* @__PURE__ */ new Map(), a = new (e || window.ResizeObserver)((i, d) => {
|
|
36
36
|
l = l.concat(i);
|
|
37
|
-
function
|
|
38
|
-
const
|
|
37
|
+
function o() {
|
|
38
|
+
const r = /* @__PURE__ */ new Set();
|
|
39
39
|
for (let s = 0; s < l.length; s++) {
|
|
40
|
-
if (
|
|
41
|
-
|
|
42
|
-
const
|
|
43
|
-
|
|
40
|
+
if (r.has(l[s].target)) continue;
|
|
41
|
+
r.add(l[s].target);
|
|
42
|
+
const f = c.get(l[s].target);
|
|
43
|
+
f == null || f.forEach((v) => v(l[s], d));
|
|
44
44
|
}
|
|
45
45
|
l = [], n = !1;
|
|
46
46
|
}
|
|
47
|
-
n || window.requestAnimationFrame(
|
|
47
|
+
n || window.requestAnimationFrame(o), n = !0;
|
|
48
48
|
});
|
|
49
49
|
return {
|
|
50
50
|
observer: a,
|
|
51
51
|
subscribe(i, d) {
|
|
52
|
-
var
|
|
52
|
+
var o;
|
|
53
53
|
a.observe(i);
|
|
54
|
-
const
|
|
55
|
-
|
|
54
|
+
const r = (o = c.get(i)) !== null && o !== void 0 ? o : [];
|
|
55
|
+
r.push(d), c.set(i, r);
|
|
56
56
|
},
|
|
57
57
|
unsubscribe(i, d) {
|
|
58
|
-
var
|
|
59
|
-
const
|
|
60
|
-
if (
|
|
58
|
+
var o;
|
|
59
|
+
const r = (o = c.get(i)) !== null && o !== void 0 ? o : [];
|
|
60
|
+
if (r.length === 1) {
|
|
61
61
|
a.unobserve(i), c.delete(i);
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
|
-
const s =
|
|
65
|
-
s !== -1 &&
|
|
64
|
+
const s = r.indexOf(d);
|
|
65
|
+
s !== -1 && r.splice(s, 1), c.set(i, r);
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
let
|
|
70
|
-
const
|
|
69
|
+
let z;
|
|
70
|
+
const se = (e) => z || (z = ce(e)), le = V(/* @__PURE__ */ t("path", {
|
|
71
71
|
d: "M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"
|
|
72
|
-
}), "Menu"),
|
|
72
|
+
}), "Menu"), L = V(/* @__PURE__ */ t("path", {
|
|
73
73
|
d: "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"
|
|
74
|
-
}), "PersonOutlineOutlined"),
|
|
74
|
+
}), "PersonOutlineOutlined"), R = h("div")(
|
|
75
75
|
({ mobile: e, shadowSecondary: n }) => ({
|
|
76
|
-
...
|
|
76
|
+
...b`
|
|
77
77
|
z-index: 1313;
|
|
78
78
|
display: flex;
|
|
79
79
|
flex-direction: row;
|
|
@@ -85,16 +85,16 @@ const ie = (e) => y || (y = ne(e)), oe = A(/* @__PURE__ */ t("path", {
|
|
|
85
85
|
box-shadow: ${e && n};
|
|
86
86
|
`
|
|
87
87
|
})
|
|
88
|
-
),
|
|
88
|
+
), _ = h("img")(({ width: e }) => ({
|
|
89
89
|
width: `${e}px`
|
|
90
|
-
})),
|
|
91
|
-
...
|
|
90
|
+
})), P = h("div")(({ height: e }) => ({
|
|
91
|
+
...b`
|
|
92
92
|
display: flex;
|
|
93
93
|
gap: 1rem;
|
|
94
94
|
height: ${e}px;
|
|
95
95
|
`
|
|
96
|
-
})),
|
|
97
|
-
...
|
|
96
|
+
})), de = h("div")(({ width: e, loggedIn: n }) => ({
|
|
97
|
+
...b`
|
|
98
98
|
width: ${e}px;
|
|
99
99
|
display: flex;
|
|
100
100
|
justify-content: center;
|
|
@@ -105,23 +105,31 @@ const ie = (e) => y || (y = ne(e)), oe = A(/* @__PURE__ */ t("path", {
|
|
|
105
105
|
white-space: nowrap;
|
|
106
106
|
}
|
|
107
107
|
`
|
|
108
|
-
})),
|
|
109
|
-
...
|
|
108
|
+
})), j = h("div")(({ visible: e }) => ({
|
|
109
|
+
...b`
|
|
110
110
|
z-index: ${e ? 1 : 0};
|
|
111
111
|
opacity: ${e ? 1 : 0};
|
|
112
112
|
pointer-events: ${e ? "auto" : "none"};
|
|
113
113
|
position: ${e ? "relative" : "absolute"};
|
|
114
114
|
`
|
|
115
|
-
})),
|
|
116
|
-
...
|
|
115
|
+
})), F = h("div")(() => ({
|
|
116
|
+
...b`
|
|
117
117
|
display: flex;
|
|
118
118
|
width: 1360px;
|
|
119
119
|
max-width: 100%;
|
|
120
|
+
align-items: center;
|
|
121
|
+
justify-content: center;
|
|
120
122
|
.MuiFormControl-root {
|
|
121
123
|
width: 100%;
|
|
122
124
|
}
|
|
125
|
+
|
|
126
|
+
h1 {
|
|
127
|
+
font-size: 32px;
|
|
128
|
+
line-height: 1;
|
|
129
|
+
margin: 0;
|
|
130
|
+
}
|
|
123
131
|
`
|
|
124
|
-
})),
|
|
132
|
+
})), xe = ({
|
|
125
133
|
isMobile: e,
|
|
126
134
|
loggedIn: n,
|
|
127
135
|
logoProps: l,
|
|
@@ -129,69 +137,83 @@ const ie = (e) => y || (y = ne(e)), oe = A(/* @__PURE__ */ t("path", {
|
|
|
129
137
|
themeProps: a,
|
|
130
138
|
hamburgerMenu: i,
|
|
131
139
|
iconColors: d,
|
|
132
|
-
userName:
|
|
133
|
-
userSettingsEnabled:
|
|
140
|
+
userName: o = "User",
|
|
141
|
+
userSettingsEnabled: r,
|
|
134
142
|
searchFilters: s,
|
|
135
|
-
onHamburgerMenuClick:
|
|
136
|
-
onUserMenuClick:
|
|
137
|
-
onLogin:
|
|
138
|
-
onSearch:
|
|
143
|
+
onHamburgerMenuClick: f,
|
|
144
|
+
onUserMenuClick: v,
|
|
145
|
+
onLogin: U,
|
|
146
|
+
onSearch: B = () => {
|
|
139
147
|
},
|
|
140
|
-
searchPlaceholder:
|
|
141
|
-
onInputChange:
|
|
148
|
+
searchPlaceholder: q = "Search",
|
|
149
|
+
onInputChange: D,
|
|
150
|
+
headerType: C = "search",
|
|
151
|
+
appTitle: O
|
|
142
152
|
}) => {
|
|
143
|
-
const [
|
|
144
|
-
shadowTertiary:
|
|
145
|
-
borderColor:
|
|
146
|
-
borderFocusColor:
|
|
153
|
+
const [g, $] = S(0), [u, G] = S(null), [x, J] = S(null), { logoSrc: y, logoWidth: W, logoHeight: w } = l, { shadowSecondary: K, shadowTertiary: N, iconPrimary: Q, borderPrimary: T } = a, k = {
|
|
154
|
+
shadowTertiary: N,
|
|
155
|
+
borderColor: T,
|
|
156
|
+
borderFocusColor: Q,
|
|
147
157
|
filters: s,
|
|
148
|
-
onSearch:
|
|
149
|
-
placeholder:
|
|
150
|
-
onChange:
|
|
158
|
+
onSearch: B,
|
|
159
|
+
placeholder: q,
|
|
160
|
+
onChange: D
|
|
161
|
+
};
|
|
162
|
+
ee(() => {
|
|
163
|
+
u && u.clientWidth > g && $(u.clientWidth), x && x.clientWidth > g && $(x.clientWidth);
|
|
164
|
+
}, [u, x]);
|
|
165
|
+
const X = (m) => {
|
|
166
|
+
m != null && m.clientWidth && m.clientWidth > g && $(m.clientWidth);
|
|
151
167
|
};
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
168
|
+
oe(u, () => X(u));
|
|
169
|
+
const M = () => {
|
|
170
|
+
if (C === "search")
|
|
171
|
+
return /* @__PURE__ */ t(A, { ...k });
|
|
172
|
+
if (C === "title")
|
|
173
|
+
return /* @__PURE__ */ t("h1", { children: O });
|
|
174
|
+
if (C === "searchAndTitle")
|
|
175
|
+
return /* @__PURE__ */ p(Y, { children: [
|
|
176
|
+
/* @__PURE__ */ t("h1", { children: O }),
|
|
177
|
+
/* @__PURE__ */ t(A, { ...k })
|
|
178
|
+
] });
|
|
157
179
|
};
|
|
158
|
-
return
|
|
159
|
-
/* @__PURE__ */ t(
|
|
160
|
-
/* @__PURE__ */ t(
|
|
180
|
+
return e ? /* @__PURE__ */ p(R, { mobile: !0, shadowSecondary: K, children: [
|
|
181
|
+
/* @__PURE__ */ t(P, { height: w, children: /* @__PURE__ */ t(_, { src: y, height: `${w}px`, width: W }) }),
|
|
182
|
+
/* @__PURE__ */ t(F, { children: /* @__PURE__ */ t(M, {}) }),
|
|
161
183
|
/* @__PURE__ */ t(
|
|
162
|
-
|
|
184
|
+
I,
|
|
163
185
|
{
|
|
164
|
-
icon: /* @__PURE__ */ t(
|
|
186
|
+
icon: /* @__PURE__ */ t(L, {}),
|
|
165
187
|
...d,
|
|
166
|
-
onClick:
|
|
188
|
+
onClick: r ? v : void 0
|
|
167
189
|
}
|
|
168
190
|
)
|
|
169
|
-
] }) : /* @__PURE__ */
|
|
170
|
-
/* @__PURE__ */
|
|
171
|
-
/* @__PURE__ */ t(
|
|
172
|
-
i && /* @__PURE__ */ t(
|
|
191
|
+
] }) : /* @__PURE__ */ p(R, { children: [
|
|
192
|
+
/* @__PURE__ */ p(P, { height: w, children: [
|
|
193
|
+
/* @__PURE__ */ t(_, { src: y, height: `${w}px`, width: W }),
|
|
194
|
+
i && /* @__PURE__ */ t(H, { variant: "icon", onClick: f, color: c, children: /* @__PURE__ */ t(le, {}) })
|
|
173
195
|
] }),
|
|
174
|
-
/* @__PURE__ */ t(
|
|
175
|
-
/* @__PURE__ */
|
|
176
|
-
/* @__PURE__ */ t(
|
|
177
|
-
|
|
196
|
+
/* @__PURE__ */ t(F, { children: /* @__PURE__ */ t(M, {}) }),
|
|
197
|
+
/* @__PURE__ */ p(de, { width: g, loggedIn: !!n, children: [
|
|
198
|
+
/* @__PURE__ */ t(j, { visible: !!n, ref: G, children: /* @__PURE__ */ t(
|
|
199
|
+
te,
|
|
178
200
|
{
|
|
179
201
|
id: "accountMenuContainer",
|
|
180
202
|
component: /* @__PURE__ */ t(
|
|
181
|
-
|
|
203
|
+
I,
|
|
182
204
|
{
|
|
183
|
-
icon: /* @__PURE__ */ t(
|
|
205
|
+
icon: /* @__PURE__ */ t(L, {}),
|
|
184
206
|
...d,
|
|
185
|
-
onClick:
|
|
207
|
+
onClick: r ? v : void 0
|
|
186
208
|
}
|
|
187
209
|
),
|
|
188
|
-
label: `Hi, ${
|
|
210
|
+
label: `Hi, ${o}!`
|
|
189
211
|
}
|
|
190
212
|
) }),
|
|
191
|
-
/* @__PURE__ */ t(
|
|
213
|
+
/* @__PURE__ */ t(j, { visible: !n, ref: J, children: /* @__PURE__ */ t(H, { id: "loginButtonContainer", onClick: U, children: "Log In" }) })
|
|
192
214
|
] })
|
|
193
215
|
] });
|
|
194
216
|
};
|
|
195
217
|
export {
|
|
196
|
-
|
|
218
|
+
xe as default
|
|
197
219
|
};
|
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.165",
|
|
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",
|