jcicl 0.0.343 → 1.0.1
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/.chunks/AppHeader.js +222 -0
- package/.chunks/ButtonBase.js +1 -1
- package/.chunks/Portal.js +1 -1
- package/.chunks/TransitionGroupContext.js +2 -2
- package/AppContainer/AppContainer.js +161 -154
- package/AppHeader/AppHeader.js +11 -219
- package/AppHeader/index.js +2 -2
- package/Button/Button.js +76 -67
- package/DefaultTemplate/DefaultTemplate.js +93 -98
- package/LabeledDropdown/LabeledDropdown.js +67 -67
- package/LabeledInput/LabeledInput.js +15 -13
- package/LabeledTextArea/LabeledTextArea.js +5 -5
- package/Nav/Nav.d.ts +5 -0
- package/Nav/Nav.js +390 -89
- package/Search/Search.js +29 -27
- package/Table/Table.d.ts +2 -2
- package/Table/Table.js +474 -426
- package/ThemeContext.d.ts +3 -0
- package/ThemeContext.js +10 -0
- package/index.js +5 -5
- package/package.json +2 -1
- package/theme.d.ts +79 -1
- package/theme.js +52 -10
- package/themeUtils.d.ts +35 -0
- package/themeUtils.js +88 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsx as i, jsxs as $, Fragment as
|
|
1
|
+
import { jsx as i, jsxs as $, Fragment as we } from "react/jsx-runtime";
|
|
2
2
|
import * as D from "react";
|
|
3
3
|
import { useState as J } from "react";
|
|
4
4
|
import { c as ce } from "../.chunks/createSvgIcon.js";
|
|
5
5
|
import { n as g, i as Y } from "../.chunks/emotion-styled.browser.esm.js";
|
|
6
6
|
import { c as R } from "../.chunks/emotion-react.browser.esm.js";
|
|
7
|
-
import
|
|
7
|
+
import { P as We, A as Ve } from "../.chunks/AppHeader.js";
|
|
8
8
|
import { Nav as A } from "../Nav/Nav.js";
|
|
9
9
|
import K from "../ScrollContainer/ScrollContainer.js";
|
|
10
10
|
import { Button as oe } from "../Button/Button.js";
|
|
11
11
|
import t from "../theme.js";
|
|
12
|
-
import { l as
|
|
13
|
-
import { X as
|
|
14
|
-
import { P as r, g as
|
|
15
|
-
import { u as
|
|
16
|
-
import { a as
|
|
17
|
-
import { m as
|
|
18
|
-
import { o as
|
|
19
|
-
import { P as
|
|
20
|
-
import { i as
|
|
21
|
-
import { e as
|
|
22
|
-
import { c as
|
|
23
|
-
import { a as
|
|
24
|
-
import { u as
|
|
25
|
-
function
|
|
26
|
-
const n = o.getBoundingClientRect(), l = a && a.getBoundingClientRect(), M =
|
|
12
|
+
import { l as Ge } from "../.chunks/jocologo.js";
|
|
13
|
+
import { X as Xe } from "../.chunks/Close.js";
|
|
14
|
+
import { P as r, g as Ye, a as _e, s as pe, r as qe, c as re, u as Qe, b as Z, d as Je } from "../.chunks/DefaultPropsProvider.js";
|
|
15
|
+
import { u as Ke } from "../.chunks/index.js";
|
|
16
|
+
import { a as Me } from "../.chunks/useTheme.js";
|
|
17
|
+
import { m as He } from "../.chunks/memoTheme.js";
|
|
18
|
+
import { o as Ee, d as Ze, M as eo } from "../.chunks/TextField.js";
|
|
19
|
+
import { P as oo } from "../.chunks/Paper.js";
|
|
20
|
+
import { i as ro } from "../.chunks/integerPropType.js";
|
|
21
|
+
import { e as to, H as no, g as io, T as ao, r as so, a as ke } from "../.chunks/Portal.js";
|
|
22
|
+
import { c as lo } from "../.chunks/chainPropTypes.js";
|
|
23
|
+
import { a as co } from "../.chunks/TransitionGroupContext.js";
|
|
24
|
+
import { u as ye } from "../.chunks/useMediaQuery.js";
|
|
25
|
+
function po(e, o, a) {
|
|
26
|
+
const n = o.getBoundingClientRect(), l = a && a.getBoundingClientRect(), M = Ee(o);
|
|
27
27
|
let w;
|
|
28
28
|
if (o.fakeTransform)
|
|
29
29
|
w = o.fakeTransform;
|
|
@@ -38,15 +38,15 @@ function lo(e, o, a) {
|
|
|
38
38
|
}
|
|
39
39
|
return e === "left" ? l ? `translateX(${l.right + p - n.left}px)` : `translateX(${M.innerWidth + p - n.left}px)` : e === "right" ? l ? `translateX(-${n.right - l.left - p}px)` : `translateX(-${n.left + n.width - p}px)` : e === "up" ? l ? `translateY(${l.bottom + f - n.top}px)` : `translateY(${M.innerHeight + f - n.top}px)` : l ? `translateY(-${n.top - l.top + n.height - f}px)` : `translateY(-${n.top + n.height - f}px)`;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function De(e) {
|
|
42
42
|
return typeof e == "function" ? e() : e;
|
|
43
43
|
}
|
|
44
44
|
function ee(e, o, a) {
|
|
45
|
-
const n =
|
|
45
|
+
const n = De(a), l = po(e, o, n);
|
|
46
46
|
l && (o.style.webkitTransform = l, o.style.transform = l);
|
|
47
47
|
}
|
|
48
|
-
const
|
|
49
|
-
const n =
|
|
48
|
+
const Se = /* @__PURE__ */ D.forwardRef(function(o, a) {
|
|
49
|
+
const n = Me(), l = {
|
|
50
50
|
enter: n.transitions.easing.easeOut,
|
|
51
51
|
exit: n.transitions.easing.sharp
|
|
52
52
|
}, M = {
|
|
@@ -65,18 +65,18 @@ const De = /* @__PURE__ */ D.forwardRef(function(o, a) {
|
|
|
65
65
|
onEntering: F,
|
|
66
66
|
onExit: C,
|
|
67
67
|
onExited: N,
|
|
68
|
-
onExiting:
|
|
68
|
+
onExiting: O,
|
|
69
69
|
style: S,
|
|
70
70
|
timeout: k = M,
|
|
71
71
|
// eslint-disable-next-line react/prop-types
|
|
72
|
-
TransitionComponent: H =
|
|
72
|
+
TransitionComponent: H = ao,
|
|
73
73
|
...P
|
|
74
|
-
} = o, m = D.useRef(null), V =
|
|
74
|
+
} = o, m = D.useRef(null), V = co(io(f), m, a), d = (s) => (c) => {
|
|
75
75
|
s && (c === void 0 ? s(m.current) : s(m.current, c));
|
|
76
76
|
}, u = d((s, c) => {
|
|
77
|
-
ee(b, s, h),
|
|
77
|
+
ee(b, s, h), so(s), L && L(s, c);
|
|
78
78
|
}), x = d((s, c) => {
|
|
79
|
-
const j =
|
|
79
|
+
const j = ke({
|
|
80
80
|
timeout: k,
|
|
81
81
|
style: S,
|
|
82
82
|
easing: z
|
|
@@ -88,8 +88,8 @@ const De = /* @__PURE__ */ D.forwardRef(function(o, a) {
|
|
|
88
88
|
}), s.style.transition = n.transitions.create("transform", {
|
|
89
89
|
...j
|
|
90
90
|
}), s.style.webkitTransform = "none", s.style.transform = "none", F && F(s, c);
|
|
91
|
-
}), E = d(W), v = d(
|
|
92
|
-
const c =
|
|
91
|
+
}), E = d(W), v = d(O), I = d((s) => {
|
|
92
|
+
const c = ke({
|
|
93
93
|
timeout: k,
|
|
94
94
|
style: S,
|
|
95
95
|
easing: z
|
|
@@ -107,9 +107,9 @@ const De = /* @__PURE__ */ D.forwardRef(function(o, a) {
|
|
|
107
107
|
return D.useEffect(() => {
|
|
108
108
|
if (T || b === "down" || b === "right")
|
|
109
109
|
return;
|
|
110
|
-
const s =
|
|
110
|
+
const s = Ze(() => {
|
|
111
111
|
m.current && ee(b, m.current, h);
|
|
112
|
-
}), c =
|
|
112
|
+
}), c = Ee(m.current);
|
|
113
113
|
return c.addEventListener("resize", s), () => {
|
|
114
114
|
s.clear(), c.removeEventListener("resize", s);
|
|
115
115
|
};
|
|
@@ -120,7 +120,7 @@ const De = /* @__PURE__ */ D.forwardRef(function(o, a) {
|
|
|
120
120
|
onEnter: u,
|
|
121
121
|
onEntered: E,
|
|
122
122
|
onEntering: x,
|
|
123
|
-
onExit:
|
|
123
|
+
onExit: I,
|
|
124
124
|
onExited: te,
|
|
125
125
|
onExiting: v,
|
|
126
126
|
addEndListener: ne,
|
|
@@ -139,7 +139,7 @@ const De = /* @__PURE__ */ D.forwardRef(function(o, a) {
|
|
|
139
139
|
})
|
|
140
140
|
});
|
|
141
141
|
});
|
|
142
|
-
process.env.NODE_ENV !== "production" && (
|
|
142
|
+
process.env.NODE_ENV !== "production" && (Se.propTypes = {
|
|
143
143
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
144
144
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
145
145
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -159,14 +159,14 @@ process.env.NODE_ENV !== "production" && (De.propTypes = {
|
|
|
159
159
|
/**
|
|
160
160
|
* A single child content element.
|
|
161
161
|
*/
|
|
162
|
-
children:
|
|
162
|
+
children: to.isRequired,
|
|
163
163
|
/**
|
|
164
164
|
* An HTML element, or a function that returns one.
|
|
165
165
|
* It's used to set the container the Slide is transitioning from.
|
|
166
166
|
*/
|
|
167
|
-
container:
|
|
167
|
+
container: lo(r.oneOfType([no, r.func]), (e) => {
|
|
168
168
|
if (e.open) {
|
|
169
|
-
const o =
|
|
169
|
+
const o = De(e.container);
|
|
170
170
|
if (o && o.nodeType === 1) {
|
|
171
171
|
const a = o.getBoundingClientRect();
|
|
172
172
|
if (process.env.NODE_ENV !== "test" && a.top === 0 && a.left === 0 && a.right === 0 && a.bottom === 0)
|
|
@@ -241,16 +241,16 @@ process.env.NODE_ENV !== "production" && (De.propTypes = {
|
|
|
241
241
|
exit: r.number
|
|
242
242
|
})])
|
|
243
243
|
});
|
|
244
|
-
function
|
|
245
|
-
return
|
|
244
|
+
function ho(e) {
|
|
245
|
+
return Ye("MuiDrawer", e);
|
|
246
246
|
}
|
|
247
|
-
|
|
248
|
-
const
|
|
247
|
+
_e("MuiDrawer", ["root", "docked", "paper", "paperAnchorLeft", "paperAnchorRight", "paperAnchorTop", "paperAnchorBottom", "paperAnchorDockedLeft", "paperAnchorDockedRight", "paperAnchorDockedTop", "paperAnchorDockedBottom", "modal"]);
|
|
248
|
+
const ze = (e, o) => {
|
|
249
249
|
const {
|
|
250
250
|
ownerState: a
|
|
251
251
|
} = e;
|
|
252
252
|
return [o.root, (a.variant === "permanent" || a.variant === "persistent") && o.docked, o.modal];
|
|
253
|
-
},
|
|
253
|
+
}, uo = (e) => {
|
|
254
254
|
const {
|
|
255
255
|
classes: o,
|
|
256
256
|
anchor: a,
|
|
@@ -261,24 +261,24 @@ const Se = (e, o) => {
|
|
|
261
261
|
modal: ["modal"],
|
|
262
262
|
paper: ["paper", `paperAnchor${re(a)}`, n !== "temporary" && `paperAnchorDocked${re(a)}`]
|
|
263
263
|
};
|
|
264
|
-
return
|
|
265
|
-
},
|
|
264
|
+
return Je(l, ho, o);
|
|
265
|
+
}, fo = pe(eo, {
|
|
266
266
|
name: "MuiDrawer",
|
|
267
267
|
slot: "Root",
|
|
268
|
-
overridesResolver:
|
|
269
|
-
})(
|
|
268
|
+
overridesResolver: ze
|
|
269
|
+
})(He(({
|
|
270
270
|
theme: e
|
|
271
271
|
}) => ({
|
|
272
272
|
zIndex: (e.vars || e).zIndex.drawer
|
|
273
|
-
}))),
|
|
274
|
-
shouldForwardProp:
|
|
273
|
+
}))), Ce = pe("div", {
|
|
274
|
+
shouldForwardProp: qe,
|
|
275
275
|
name: "MuiDrawer",
|
|
276
276
|
slot: "Docked",
|
|
277
277
|
skipVariantsResolver: !1,
|
|
278
|
-
overridesResolver:
|
|
278
|
+
overridesResolver: ze
|
|
279
279
|
})({
|
|
280
280
|
flex: "0 0 auto"
|
|
281
|
-
}),
|
|
281
|
+
}), mo = pe(oo, {
|
|
282
282
|
name: "MuiDrawer",
|
|
283
283
|
slot: "Paper",
|
|
284
284
|
overridesResolver: (e, o) => {
|
|
@@ -287,7 +287,7 @@ const Se = (e, o) => {
|
|
|
287
287
|
} = e;
|
|
288
288
|
return [o.paper, o[`paperAnchor${re(a.anchor)}`], a.variant !== "temporary" && o[`paperAnchorDocked${re(a.anchor)}`]];
|
|
289
289
|
}
|
|
290
|
-
})(
|
|
290
|
+
})(He(({
|
|
291
291
|
theme: e
|
|
292
292
|
}) => ({
|
|
293
293
|
overflowY: "auto",
|
|
@@ -371,25 +371,25 @@ const Se = (e, o) => {
|
|
|
371
371
|
borderTop: `1px solid ${(e.vars || e).palette.divider}`
|
|
372
372
|
}
|
|
373
373
|
}]
|
|
374
|
-
}))),
|
|
374
|
+
}))), Ne = {
|
|
375
375
|
left: "right",
|
|
376
376
|
right: "left",
|
|
377
377
|
top: "down",
|
|
378
378
|
bottom: "up"
|
|
379
379
|
};
|
|
380
|
-
function
|
|
380
|
+
function go(e) {
|
|
381
381
|
return ["left", "right"].includes(e);
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function bo({
|
|
384
384
|
direction: e
|
|
385
385
|
}, o) {
|
|
386
|
-
return e === "rtl" &&
|
|
386
|
+
return e === "rtl" && go(o) ? Ne[o] : o;
|
|
387
387
|
}
|
|
388
388
|
const U = /* @__PURE__ */ D.forwardRef(function(o, a) {
|
|
389
|
-
const n =
|
|
389
|
+
const n = Qe({
|
|
390
390
|
props: o,
|
|
391
391
|
name: "MuiDrawer"
|
|
392
|
-
}), l =
|
|
392
|
+
}), l = Me(), M = Ke(), w = {
|
|
393
393
|
enter: l.transitions.duration.enteringScreen,
|
|
394
394
|
exit: l.transitions.duration.leavingScreen
|
|
395
395
|
}, {
|
|
@@ -406,9 +406,9 @@ const U = /* @__PURE__ */ D.forwardRef(function(o, a) {
|
|
|
406
406
|
onClose: F,
|
|
407
407
|
open: C = !1,
|
|
408
408
|
PaperProps: N = {},
|
|
409
|
-
SlideProps:
|
|
409
|
+
SlideProps: O,
|
|
410
410
|
// eslint-disable-next-line react/prop-types
|
|
411
|
-
TransitionComponent: S =
|
|
411
|
+
TransitionComponent: S = Se,
|
|
412
412
|
transitionDuration: k = w,
|
|
413
413
|
variant: H = "temporary",
|
|
414
414
|
...P
|
|
@@ -416,7 +416,7 @@ const U = /* @__PURE__ */ D.forwardRef(function(o, a) {
|
|
|
416
416
|
D.useEffect(() => {
|
|
417
417
|
m.current = !0;
|
|
418
418
|
}, []);
|
|
419
|
-
const V =
|
|
419
|
+
const V = bo({
|
|
420
420
|
direction: M ? "rtl" : "ltr"
|
|
421
421
|
}, p), u = {
|
|
422
422
|
...n,
|
|
@@ -425,7 +425,7 @@ const U = /* @__PURE__ */ D.forwardRef(function(o, a) {
|
|
|
425
425
|
open: C,
|
|
426
426
|
variant: H,
|
|
427
427
|
...P
|
|
428
|
-
}, x =
|
|
428
|
+
}, x = uo(u), E = /* @__PURE__ */ i(mo, {
|
|
429
429
|
elevation: H === "temporary" ? z : 0,
|
|
430
430
|
square: !0,
|
|
431
431
|
...N,
|
|
@@ -434,7 +434,7 @@ const U = /* @__PURE__ */ D.forwardRef(function(o, a) {
|
|
|
434
434
|
children: h
|
|
435
435
|
});
|
|
436
436
|
if (H === "permanent")
|
|
437
|
-
return /* @__PURE__ */ i(
|
|
437
|
+
return /* @__PURE__ */ i(Ce, {
|
|
438
438
|
className: Z(x.root, x.docked, b),
|
|
439
439
|
ownerState: u,
|
|
440
440
|
ref: a,
|
|
@@ -443,19 +443,19 @@ const U = /* @__PURE__ */ D.forwardRef(function(o, a) {
|
|
|
443
443
|
});
|
|
444
444
|
const v = /* @__PURE__ */ i(S, {
|
|
445
445
|
in: C,
|
|
446
|
-
direction:
|
|
446
|
+
direction: Ne[V],
|
|
447
447
|
timeout: k,
|
|
448
448
|
appear: m.current,
|
|
449
|
-
...
|
|
449
|
+
...O,
|
|
450
450
|
children: E
|
|
451
451
|
});
|
|
452
|
-
return H === "persistent" ? /* @__PURE__ */ i(
|
|
452
|
+
return H === "persistent" ? /* @__PURE__ */ i(Ce, {
|
|
453
453
|
className: Z(x.root, x.docked, b),
|
|
454
454
|
ownerState: u,
|
|
455
455
|
ref: a,
|
|
456
456
|
...P,
|
|
457
457
|
children: v
|
|
458
|
-
}) : /* @__PURE__ */ i(
|
|
458
|
+
}) : /* @__PURE__ */ i(fo, {
|
|
459
459
|
BackdropProps: {
|
|
460
460
|
...f,
|
|
461
461
|
...L,
|
|
@@ -502,7 +502,7 @@ process.env.NODE_ENV !== "production" && (U.propTypes = {
|
|
|
502
502
|
* The elevation of the drawer.
|
|
503
503
|
* @default 16
|
|
504
504
|
*/
|
|
505
|
-
elevation:
|
|
505
|
+
elevation: ro,
|
|
506
506
|
/**
|
|
507
507
|
* If `true`, the backdrop is not rendered.
|
|
508
508
|
* @default false
|
|
@@ -558,13 +558,13 @@ process.env.NODE_ENV !== "production" && (U.propTypes = {
|
|
|
558
558
|
*/
|
|
559
559
|
variant: r.oneOf(["permanent", "persistent", "temporary"])
|
|
560
560
|
});
|
|
561
|
-
const
|
|
561
|
+
const $e = ce(/* @__PURE__ */ i("path", {
|
|
562
562
|
d: "m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"
|
|
563
|
-
}), "ArrowForward"),
|
|
563
|
+
}), "ArrowForward"), Te = ce(/* @__PURE__ */ i("path", {
|
|
564
564
|
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"
|
|
565
|
-
}), "Cancel"),
|
|
565
|
+
}), "Cancel"), xo = ce(/* @__PURE__ */ i("path", {
|
|
566
566
|
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"
|
|
567
|
-
}), "MoreHoriz"),
|
|
567
|
+
}), "MoreHoriz"), vo = g("div", {
|
|
568
568
|
shouldForwardProp: (e) => Y(e)
|
|
569
569
|
})(({ backgroundColor: e }) => ({
|
|
570
570
|
display: "flex",
|
|
@@ -575,7 +575,7 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
575
575
|
height: "100vh",
|
|
576
576
|
fontFamily: "Roboto, sans-serif",
|
|
577
577
|
overflow: "hidden"
|
|
578
|
-
})),
|
|
578
|
+
})), wo = g("div")(
|
|
579
579
|
({ tabletPadding: e, mobile: o }) => ({
|
|
580
580
|
display: "flex",
|
|
581
581
|
flexDirection: o ? "column-reverse" : "row",
|
|
@@ -587,7 +587,7 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
587
587
|
boxSizing: "border-box",
|
|
588
588
|
minHeight: `calc(100% - ${t.constants.appHeaderHeight}px)`
|
|
589
589
|
})
|
|
590
|
-
),
|
|
590
|
+
), ko = g("div", {
|
|
591
591
|
shouldForwardProp: (e) => Y(e)
|
|
592
592
|
})(({ withActionsPanel: e, tablet: o, borderColor: a, backgroundColor: n }) => ({
|
|
593
593
|
display: "flex",
|
|
@@ -608,7 +608,7 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
608
608
|
...!e && {
|
|
609
609
|
border: "none"
|
|
610
610
|
}
|
|
611
|
-
})),
|
|
611
|
+
})), yo = g("div", {
|
|
612
612
|
shouldForwardProp: (e) => Y(e)
|
|
613
613
|
})(({ show: e, width: o = t.constants.navDefaultWidth, borderColor: a, backgroundColor: n }) => ({
|
|
614
614
|
display: "flex",
|
|
@@ -629,7 +629,7 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
629
629
|
...!e && {
|
|
630
630
|
border: "none"
|
|
631
631
|
}
|
|
632
|
-
})),
|
|
632
|
+
})), Co = g(U)(
|
|
633
633
|
({ shadowColor: e, backgroundColor: o }) => ({
|
|
634
634
|
...R`
|
|
635
635
|
top: ${t.constants.appHeaderHeight}px;
|
|
@@ -653,7 +653,7 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
653
653
|
}
|
|
654
654
|
`
|
|
655
655
|
})
|
|
656
|
-
),
|
|
656
|
+
), Pe = g(oe)(({ iconColor: e, highlight1: o, highlight2: a, rightDrawer: n = !1 }) => ({
|
|
657
657
|
...R`
|
|
658
658
|
position: absolute;
|
|
659
659
|
top: -0.5rem;
|
|
@@ -677,7 +677,7 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
679
|
`
|
|
680
|
-
})),
|
|
680
|
+
})), $o = g("div", {
|
|
681
681
|
shouldForwardProp: (e) => Y(e)
|
|
682
682
|
})(({ withActionsPanel: e, borderColor: o, backgroundColor: a, mobileScreen: n }) => ({
|
|
683
683
|
display: "flex",
|
|
@@ -700,7 +700,7 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
700
700
|
borderBottomLeftRadius: 0,
|
|
701
701
|
borderTopLeftRadius: 0
|
|
702
702
|
}
|
|
703
|
-
})),
|
|
703
|
+
})), To = g(U, {
|
|
704
704
|
shouldForwardProp: (e) => !["backgroundColor", "shadowColor"].includes(e)
|
|
705
705
|
})(({ backgroundColor: e, shadowColor: o }) => ({
|
|
706
706
|
...R`
|
|
@@ -718,7 +718,7 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
718
718
|
background-color: transparent;
|
|
719
719
|
}
|
|
720
720
|
`
|
|
721
|
-
})),
|
|
721
|
+
})), Po = g(U, {
|
|
722
722
|
shouldForwardProp: (e) => e != "backgroundColor"
|
|
723
723
|
})(({ backgroundColor: e }) => ({
|
|
724
724
|
...R`
|
|
@@ -740,7 +740,7 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
740
740
|
background-color: transparent;
|
|
741
741
|
}
|
|
742
742
|
`
|
|
743
|
-
})),
|
|
743
|
+
})), Ro = g("div", {
|
|
744
744
|
shouldForwardProp: (e) => Y(e)
|
|
745
745
|
})(({ backgroundColor: e, open: o }) => ({
|
|
746
746
|
...R`
|
|
@@ -755,14 +755,14 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
755
755
|
box-sizing: border-box;
|
|
756
756
|
padding: ${o ? "16px" : 0};
|
|
757
757
|
`
|
|
758
|
-
})),
|
|
758
|
+
})), Mo = g("h1")(({ color: e }) => ({
|
|
759
759
|
...R`
|
|
760
760
|
margin: 0;
|
|
761
761
|
font-size: 2.1rem;
|
|
762
762
|
font-family: 'Roboto';
|
|
763
763
|
color: ${e};
|
|
764
764
|
`
|
|
765
|
-
})),
|
|
765
|
+
})), Ho = g(U)(({ backgroundQuaternary: e }) => ({
|
|
766
766
|
...R`
|
|
767
767
|
top: ${t.constants.appHeaderHeight}px;
|
|
768
768
|
font-family: 'Roboto';
|
|
@@ -782,12 +782,12 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
782
782
|
background-color: transparent;
|
|
783
783
|
}
|
|
784
784
|
`
|
|
785
|
-
})),
|
|
785
|
+
})), Eo = g("img")(({ width: e, height: o }) => ({
|
|
786
786
|
...R`
|
|
787
787
|
width: ${e}px;
|
|
788
788
|
height: ${o}px;
|
|
789
789
|
`
|
|
790
|
-
})),
|
|
790
|
+
})), Re = g("div")(({ justifyStart: e }) => ({
|
|
791
791
|
...R`
|
|
792
792
|
display: flex;
|
|
793
793
|
flex-direction: row;
|
|
@@ -795,7 +795,7 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
795
795
|
justify-content: ${e ? "start" : "space-between"};
|
|
796
796
|
padding: 8px 16px 8px 24px;
|
|
797
797
|
`
|
|
798
|
-
})),
|
|
798
|
+
})), Do = g(U)(() => ({
|
|
799
799
|
...R`
|
|
800
800
|
top: ${t.constants.appHeaderHeight}px;
|
|
801
801
|
font-family: 'Roboto';
|
|
@@ -817,7 +817,7 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
817
817
|
background-color: transparent;
|
|
818
818
|
}
|
|
819
819
|
`
|
|
820
|
-
})),
|
|
820
|
+
})), rr = ({
|
|
821
821
|
navProps: e,
|
|
822
822
|
subnavItems: o,
|
|
823
823
|
activeSubnavRoute: a,
|
|
@@ -834,11 +834,11 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
834
834
|
loggedIn: L,
|
|
835
835
|
mobileActionsPanelOpen: W
|
|
836
836
|
}) => {
|
|
837
|
-
var
|
|
838
|
-
const [F, C] = J(!1), [N,
|
|
837
|
+
var ve;
|
|
838
|
+
const [F, C] = J(!1), [N, O] = J(!1), [S, k] = J(!1), [H, P] = J(!1), { mobile: m = t.screenSizes.mobile, tablet: V = t.screenSizes.tablet } = h, d = ye(`(max-width: ${m})`), u = ye(`(max-width: ${V})`) && !d, x = !d && !u, {
|
|
839
839
|
backgroundPrimary: E = t.colors.whiteGreen,
|
|
840
840
|
backgroundSecondary: v = t.colors.whiteGreenA,
|
|
841
|
-
backgroundTertiary:
|
|
841
|
+
backgroundTertiary: I = t.colors.sage,
|
|
842
842
|
highlightPrimary: te = t.colors.sunlight,
|
|
843
843
|
backgroundQuaternary: ne = t.colors.moss,
|
|
844
844
|
highlightSecondary: _ = t.colors.dandelion,
|
|
@@ -847,31 +847,38 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
847
847
|
shadowPrimary: j = t.colors.darkGreenO99,
|
|
848
848
|
shadowSecondary: q = t.boxShadows.darkGreen,
|
|
849
849
|
shadowTertiary: de = t.boxShadows.darkGreenThick,
|
|
850
|
-
borderPrimary:
|
|
850
|
+
borderPrimary: G = t.colors.green,
|
|
851
851
|
scrollColor: B = t.colors.darkGreenO99,
|
|
852
|
-
|
|
853
|
-
|
|
852
|
+
loadingColor: Oe = t.colors.green,
|
|
853
|
+
iconColors: he = {
|
|
854
|
+
icon: /* @__PURE__ */ i(We, {}),
|
|
855
|
+
iconColor: t.colors.darkGreen,
|
|
856
|
+
backgroundColor: t.colors.mint
|
|
857
|
+
}
|
|
858
|
+
} = z, { logoSrc: ue = Ge, logoWidth: fe = 36, logoHeight: me = 50 } = T, ge = {
|
|
854
859
|
backgroundPrimary: E,
|
|
855
860
|
backgroundSecondary: v,
|
|
856
|
-
backgroundTertiary:
|
|
861
|
+
backgroundTertiary: I,
|
|
857
862
|
highlightPrimary: te,
|
|
858
863
|
highlightSecondary: _,
|
|
859
864
|
highlightTertiary: s,
|
|
860
|
-
borderPrimary:
|
|
865
|
+
borderPrimary: G,
|
|
861
866
|
iconPrimary: c,
|
|
862
867
|
shadowPrimary: j,
|
|
863
868
|
shadowSecondary: q,
|
|
864
869
|
shadowTertiary: de,
|
|
865
|
-
scrollColor: B
|
|
866
|
-
|
|
867
|
-
|
|
870
|
+
scrollColor: B,
|
|
871
|
+
loadingColor: Oe,
|
|
872
|
+
iconColors: he
|
|
873
|
+
}, Ie = { logoSrc: ue, logoWidth: fe, logoHeight: me }, ie = p != null, Be = { ...n, navWidth: f, loggedIn: L }, X = { ...e, themeColors: ge }, Ae = {
|
|
874
|
+
...X,
|
|
868
875
|
navWidth: `${f}px`,
|
|
869
876
|
isMobile: d
|
|
870
|
-
}, { navItems: Q } = e, ae = o || ((
|
|
871
|
-
themeColors:
|
|
877
|
+
}, { navItems: Q } = e, ae = o || ((ve = Q.find((y) => y.label === (e == null ? void 0 : e.activeRoute))) == null ? void 0 : ve.subnavItems) || [], Le = {
|
|
878
|
+
themeColors: ge,
|
|
872
879
|
activeRoute: a,
|
|
873
880
|
navItems: ae
|
|
874
|
-
},
|
|
881
|
+
}, be = [
|
|
875
882
|
// { label: 'Log Out', icon: <LogoutIcon />, onClick: onLogout },
|
|
876
883
|
...w
|
|
877
884
|
].map((y) => ({
|
|
@@ -879,106 +886,106 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
879
886
|
onClick: () => {
|
|
880
887
|
y.onClick && y.onClick(), k(!1);
|
|
881
888
|
}
|
|
882
|
-
})),
|
|
889
|
+
})), Fe = Q.map((y) => ({
|
|
883
890
|
...y,
|
|
884
891
|
onClick: () => {
|
|
885
892
|
y.onClick && y.onClick(), C(!1);
|
|
886
893
|
}
|
|
887
894
|
})), se = {
|
|
888
|
-
...
|
|
895
|
+
...X,
|
|
889
896
|
navWidth: "100%",
|
|
890
897
|
isTablet: !0,
|
|
891
|
-
navItems:
|
|
898
|
+
navItems: Fe
|
|
892
899
|
};
|
|
893
900
|
let le = Q.map((y) => ({
|
|
894
901
|
...y,
|
|
895
902
|
onClick: () => {
|
|
896
903
|
y.onClick && y.onClick(), P(!1);
|
|
897
904
|
}
|
|
898
|
-
})),
|
|
899
|
-
Q.length > 4 && d && (
|
|
905
|
+
})), xe = [];
|
|
906
|
+
Q.length > 4 && d && (xe = le.splice(3), le.push({
|
|
900
907
|
label: "More",
|
|
901
|
-
icon: /* @__PURE__ */ i(
|
|
908
|
+
icon: /* @__PURE__ */ i(xo, {}),
|
|
902
909
|
onClick: () => P(!0)
|
|
903
910
|
}));
|
|
904
|
-
const
|
|
905
|
-
...
|
|
911
|
+
const je = {
|
|
912
|
+
...X,
|
|
906
913
|
navWidth: "100%",
|
|
907
914
|
navItems: le,
|
|
908
915
|
isMobile: !0,
|
|
909
|
-
activeRoute: H ? "More" :
|
|
910
|
-
},
|
|
911
|
-
...
|
|
916
|
+
activeRoute: H ? "More" : X.activeRoute
|
|
917
|
+
}, Ue = {
|
|
918
|
+
...X,
|
|
912
919
|
navWidth: "100%",
|
|
913
|
-
navItems:
|
|
920
|
+
navItems: xe,
|
|
914
921
|
isTablet: !0
|
|
915
922
|
};
|
|
916
|
-
return /* @__PURE__ */ $(
|
|
923
|
+
return /* @__PURE__ */ $(vo, { backgroundColor: v, children: [
|
|
917
924
|
/* @__PURE__ */ i(
|
|
918
|
-
|
|
925
|
+
Ve,
|
|
919
926
|
{
|
|
920
|
-
...
|
|
927
|
+
...Be,
|
|
921
928
|
hamburgerMenu: u,
|
|
922
929
|
onHamburgerMenuClick: () => C(!0),
|
|
923
930
|
onUserMenuClick: () => k(!0),
|
|
924
931
|
logoProps: Ie,
|
|
925
932
|
iconColor: c,
|
|
926
933
|
isMobile: d,
|
|
927
|
-
themeProps: { shadowSecondary: q, shadowTertiary: de, iconPrimary: c, borderPrimary:
|
|
928
|
-
iconColors:
|
|
934
|
+
themeProps: { shadowSecondary: q, shadowTertiary: de, iconPrimary: c, borderPrimary: G },
|
|
935
|
+
iconColors: he,
|
|
929
936
|
userName: l == null ? void 0 : l.name,
|
|
930
937
|
userSettingsEnabled: M
|
|
931
938
|
}
|
|
932
939
|
),
|
|
933
|
-
/* @__PURE__ */ $(
|
|
934
|
-
x && /* @__PURE__ */ i(A, { ...
|
|
935
|
-
d && /* @__PURE__ */ $(
|
|
936
|
-
/* @__PURE__ */ i(A, { ...
|
|
940
|
+
/* @__PURE__ */ $(wo, { tabletPadding: u, mobile: d, children: [
|
|
941
|
+
x && /* @__PURE__ */ i(A, { ...Ae }),
|
|
942
|
+
d && /* @__PURE__ */ $(we, { children: [
|
|
943
|
+
/* @__PURE__ */ i(A, { ...je }),
|
|
937
944
|
/* @__PURE__ */ i(
|
|
938
|
-
|
|
945
|
+
Po,
|
|
939
946
|
{
|
|
940
947
|
open: H,
|
|
941
948
|
onClose: () => P(!1),
|
|
942
949
|
backgroundColor: v,
|
|
943
950
|
anchor: "right",
|
|
944
|
-
children: /* @__PURE__ */ i(A, { ...
|
|
951
|
+
children: /* @__PURE__ */ i(A, { ...Ue })
|
|
945
952
|
}
|
|
946
953
|
)
|
|
947
954
|
] }),
|
|
948
955
|
u && /* @__PURE__ */ $(
|
|
949
|
-
|
|
956
|
+
To,
|
|
950
957
|
{
|
|
951
958
|
open: F,
|
|
952
959
|
onClose: () => C(!1),
|
|
953
960
|
backgroundColor: v,
|
|
954
961
|
shadowColor: j,
|
|
955
962
|
children: [
|
|
956
|
-
/* @__PURE__ */ $(
|
|
957
|
-
/* @__PURE__ */ i(
|
|
958
|
-
/* @__PURE__ */ i(oe, { variant: "icon", size: 36, onClick: () => C(!1), color: c, children: /* @__PURE__ */ i(
|
|
963
|
+
/* @__PURE__ */ $(Re, { children: [
|
|
964
|
+
/* @__PURE__ */ i(Eo, { src: ue, alt: "logo", width: fe, height: me }),
|
|
965
|
+
/* @__PURE__ */ i(oe, { variant: "icon", size: 36, onClick: () => C(!1), color: c, children: /* @__PURE__ */ i(Xe, {}) })
|
|
959
966
|
] }),
|
|
960
967
|
/* @__PURE__ */ i(A, { ...se })
|
|
961
968
|
]
|
|
962
969
|
}
|
|
963
970
|
),
|
|
964
971
|
u && /* @__PURE__ */ $(
|
|
965
|
-
|
|
972
|
+
Co,
|
|
966
973
|
{
|
|
967
974
|
open: N && ie,
|
|
968
|
-
onClose: () =>
|
|
975
|
+
onClose: () => O(!1),
|
|
969
976
|
shadowColor: j,
|
|
970
|
-
backgroundColor:
|
|
977
|
+
backgroundColor: I,
|
|
971
978
|
children: [
|
|
972
979
|
/* @__PURE__ */ i(
|
|
973
|
-
|
|
980
|
+
Pe,
|
|
974
981
|
{
|
|
975
982
|
variant: "icon",
|
|
976
983
|
size: 24,
|
|
977
|
-
onClick: () =>
|
|
984
|
+
onClick: () => O(!1),
|
|
978
985
|
iconColor: c,
|
|
979
986
|
highlight1: v,
|
|
980
987
|
highlight2: v,
|
|
981
|
-
children: /* @__PURE__ */ i(
|
|
988
|
+
children: /* @__PURE__ */ i(Te, {})
|
|
982
989
|
}
|
|
983
990
|
),
|
|
984
991
|
/* @__PURE__ */ i(K, { scrollColor: B, direction: "vertical", children: p && p })
|
|
@@ -986,14 +993,14 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
986
993
|
}
|
|
987
994
|
),
|
|
988
995
|
(u || x) && /* @__PURE__ */ $(
|
|
989
|
-
|
|
996
|
+
Do,
|
|
990
997
|
{
|
|
991
998
|
anchor: "right",
|
|
992
999
|
open: S,
|
|
993
1000
|
onClose: () => k(!1),
|
|
994
1001
|
children: [
|
|
995
1002
|
/* @__PURE__ */ i(
|
|
996
|
-
|
|
1003
|
+
Pe,
|
|
997
1004
|
{
|
|
998
1005
|
variant: "icon",
|
|
999
1006
|
size: 24,
|
|
@@ -1002,14 +1009,14 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
1002
1009
|
highlight1: t.colors.white,
|
|
1003
1010
|
highlight2: v,
|
|
1004
1011
|
rightDrawer: !0,
|
|
1005
|
-
children: /* @__PURE__ */ i(
|
|
1012
|
+
children: /* @__PURE__ */ i(Te, {})
|
|
1006
1013
|
}
|
|
1007
1014
|
),
|
|
1008
1015
|
/* @__PURE__ */ i(
|
|
1009
1016
|
A,
|
|
1010
1017
|
{
|
|
1011
1018
|
...se,
|
|
1012
|
-
navItems:
|
|
1019
|
+
navItems: be,
|
|
1013
1020
|
themeColors: {
|
|
1014
1021
|
iconPrimary: t.colors.midnight,
|
|
1015
1022
|
highlightPrimary: E,
|
|
@@ -1022,17 +1029,17 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
1022
1029
|
]
|
|
1023
1030
|
}
|
|
1024
1031
|
),
|
|
1025
|
-
d && /* @__PURE__ */ $(
|
|
1032
|
+
d && /* @__PURE__ */ $(we, { children: [
|
|
1026
1033
|
/* @__PURE__ */ $(
|
|
1027
|
-
|
|
1034
|
+
Ho,
|
|
1028
1035
|
{
|
|
1029
1036
|
anchor: "right",
|
|
1030
1037
|
open: S,
|
|
1031
1038
|
onClose: () => k(!1),
|
|
1032
1039
|
backgroundQuaternary: ne,
|
|
1033
1040
|
children: [
|
|
1034
|
-
/* @__PURE__ */ $(
|
|
1035
|
-
/* @__PURE__ */ i(
|
|
1041
|
+
/* @__PURE__ */ $(Re, { children: [
|
|
1042
|
+
/* @__PURE__ */ i(Mo, { color: t.colors.midnight, children: "Settings" }),
|
|
1036
1043
|
/* @__PURE__ */ i(
|
|
1037
1044
|
oe,
|
|
1038
1045
|
{
|
|
@@ -1040,7 +1047,7 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
1040
1047
|
size: 36,
|
|
1041
1048
|
onClick: () => k(!1),
|
|
1042
1049
|
color: t.colors.midnight,
|
|
1043
|
-
children: /* @__PURE__ */ i(
|
|
1050
|
+
children: /* @__PURE__ */ i($e, {})
|
|
1044
1051
|
}
|
|
1045
1052
|
)
|
|
1046
1053
|
] }),
|
|
@@ -1048,7 +1055,7 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
1048
1055
|
A,
|
|
1049
1056
|
{
|
|
1050
1057
|
...se,
|
|
1051
|
-
navItems:
|
|
1058
|
+
navItems: be,
|
|
1052
1059
|
themeColors: {
|
|
1053
1060
|
iconPrimary: t.colors.midnight,
|
|
1054
1061
|
highlightPrimary: E,
|
|
@@ -1061,15 +1068,15 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
1061
1068
|
]
|
|
1062
1069
|
}
|
|
1063
1070
|
),
|
|
1064
|
-
/* @__PURE__ */ i(
|
|
1071
|
+
/* @__PURE__ */ i(Ro, { backgroundColor: I, open: W, children: /* @__PURE__ */ i(K, { scrollColor: B, direction: "vertical", children: p }) })
|
|
1065
1072
|
] }),
|
|
1066
1073
|
!d && /* @__PURE__ */ $(
|
|
1067
|
-
|
|
1074
|
+
ko,
|
|
1068
1075
|
{
|
|
1069
1076
|
withActionsPanel: ie,
|
|
1070
1077
|
tablet: u,
|
|
1071
|
-
borderColor:
|
|
1072
|
-
backgroundColor:
|
|
1078
|
+
borderColor: G,
|
|
1079
|
+
backgroundColor: I,
|
|
1073
1080
|
children: [
|
|
1074
1081
|
x && /* @__PURE__ */ i(K, { scrollColor: B, direction: "vertical", children: p && p }),
|
|
1075
1082
|
u && /* @__PURE__ */ i(
|
|
@@ -1077,29 +1084,29 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
1077
1084
|
{
|
|
1078
1085
|
variant: "icon",
|
|
1079
1086
|
size: 36,
|
|
1080
|
-
onClick: () =>
|
|
1087
|
+
onClick: () => O(!0),
|
|
1081
1088
|
color: c,
|
|
1082
|
-
children: /* @__PURE__ */ i(
|
|
1089
|
+
children: /* @__PURE__ */ i($e, {})
|
|
1083
1090
|
}
|
|
1084
1091
|
)
|
|
1085
1092
|
]
|
|
1086
1093
|
}
|
|
1087
1094
|
),
|
|
1088
1095
|
x && /* @__PURE__ */ i(
|
|
1089
|
-
|
|
1096
|
+
yo,
|
|
1090
1097
|
{
|
|
1091
1098
|
show: ae && ae.length > 0,
|
|
1092
|
-
borderColor:
|
|
1093
|
-
backgroundColor:
|
|
1099
|
+
borderColor: G,
|
|
1100
|
+
backgroundColor: I,
|
|
1094
1101
|
width: f,
|
|
1095
|
-
children: /* @__PURE__ */ i(A, { ...
|
|
1102
|
+
children: /* @__PURE__ */ i(A, { ...Le })
|
|
1096
1103
|
}
|
|
1097
1104
|
),
|
|
1098
1105
|
/* @__PURE__ */ i(
|
|
1099
|
-
|
|
1106
|
+
$o,
|
|
1100
1107
|
{
|
|
1101
1108
|
withActionsPanel: ie,
|
|
1102
|
-
borderColor:
|
|
1109
|
+
borderColor: G,
|
|
1103
1110
|
backgroundColor: E,
|
|
1104
1111
|
mobileScreen: d,
|
|
1105
1112
|
children: /* @__PURE__ */ i(K, { scrollColor: B, children: b })
|
|
@@ -1109,5 +1116,5 @@ const Ce = ce(/* @__PURE__ */ i("path", {
|
|
|
1109
1116
|
] });
|
|
1110
1117
|
};
|
|
1111
1118
|
export {
|
|
1112
|
-
|
|
1119
|
+
rr as default
|
|
1113
1120
|
};
|