jcicl 0.0.120 → 0.0.124
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/Input.js +328 -326
- package/AppContainer/AppContainer.d.ts +1 -0
- package/AppContainer/AppContainer.js +425 -398
- package/AppHeader/AppHeader.js +30 -30
- package/Button/Button.js +55 -54
- package/Flex/Flex.d.ts +1 -1
- package/Nav/Nav.d.ts +1 -0
- package/Nav/Nav.js +44 -43
- package/ScrollContainer/ScrollContainer.js +188 -188
- package/package.json +1 -1
- package/theme.d.ts +2 -0
- package/theme.js +14 -10
package/AppHeader/AppHeader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n, jsxs as x } from "react/jsx-runtime";
|
|
2
2
|
import * as S from "react";
|
|
3
|
-
import
|
|
3
|
+
import V, { useState as w, useLayoutEffect as B } from "react";
|
|
4
4
|
import { n as h } from "../.chunks/emotion-styled.browser.esm.js";
|
|
5
5
|
import { c as b } from "../.chunks/emotion-react.browser.esm.js";
|
|
6
6
|
import { I as W } from "../.chunks/Input.js";
|
|
@@ -8,7 +8,7 @@ import { Button as k } from "../Button/Button.js";
|
|
|
8
8
|
import E from "../Avatar/Avatar.js";
|
|
9
9
|
import q from "../WithLabel/WithLabel.js";
|
|
10
10
|
import { c as T } from "../.chunks/createSvgIcon.js";
|
|
11
|
-
const D =
|
|
11
|
+
const D = V[typeof document < "u" && document.createElement !== void 0 ? "useLayoutEffect" : "useEffect"], G = (e) => {
|
|
12
12
|
const t = S.useRef(e);
|
|
13
13
|
return S.useEffect(() => {
|
|
14
14
|
t.current = e;
|
|
@@ -17,22 +17,22 @@ const D = B[typeof document < "u" && document.createElement !== void 0 ? "useLay
|
|
|
17
17
|
function J() {
|
|
18
18
|
}
|
|
19
19
|
function K(e, t, l = {}) {
|
|
20
|
-
const c = Q(l.polyfill),
|
|
20
|
+
const c = Q(l.polyfill), a = G(t);
|
|
21
21
|
return D(() => {
|
|
22
22
|
let i = !1;
|
|
23
|
-
const
|
|
24
|
-
if (!
|
|
23
|
+
const d = e && "current" in e ? e.current : e;
|
|
24
|
+
if (!d) return J;
|
|
25
25
|
function r(o, s) {
|
|
26
|
-
i ||
|
|
26
|
+
i || a.current(o, s);
|
|
27
27
|
}
|
|
28
|
-
return c.subscribe(
|
|
29
|
-
i = !0, c.unsubscribe(
|
|
28
|
+
return c.subscribe(d, r), () => {
|
|
29
|
+
i = !0, c.unsubscribe(d, r);
|
|
30
30
|
};
|
|
31
|
-
}, [e, c,
|
|
31
|
+
}, [e, c, a]), c.observer;
|
|
32
32
|
}
|
|
33
33
|
function N(e) {
|
|
34
34
|
let t = !1, l = [];
|
|
35
|
-
const c = /* @__PURE__ */ new Map(),
|
|
35
|
+
const c = /* @__PURE__ */ new Map(), a = new (e || window.ResizeObserver)((i, d) => {
|
|
36
36
|
l = l.concat(i);
|
|
37
37
|
function r() {
|
|
38
38
|
const o = /* @__PURE__ */ new Set();
|
|
@@ -40,34 +40,34 @@ function N(e) {
|
|
|
40
40
|
if (o.has(l[s].target)) continue;
|
|
41
41
|
o.add(l[s].target);
|
|
42
42
|
const u = c.get(l[s].target);
|
|
43
|
-
u == null || u.forEach((p) => p(l[s],
|
|
43
|
+
u == null || u.forEach((p) => p(l[s], d));
|
|
44
44
|
}
|
|
45
45
|
l = [], t = !1;
|
|
46
46
|
}
|
|
47
47
|
t || window.requestAnimationFrame(r), t = !0;
|
|
48
48
|
});
|
|
49
49
|
return {
|
|
50
|
-
observer:
|
|
51
|
-
subscribe(i,
|
|
50
|
+
observer: a,
|
|
51
|
+
subscribe(i, d) {
|
|
52
52
|
var r;
|
|
53
|
-
|
|
53
|
+
a.observe(i);
|
|
54
54
|
const o = (r = c.get(i)) !== null && r !== void 0 ? r : [];
|
|
55
|
-
o.push(
|
|
55
|
+
o.push(d), c.set(i, o);
|
|
56
56
|
},
|
|
57
|
-
unsubscribe(i,
|
|
57
|
+
unsubscribe(i, d) {
|
|
58
58
|
var r;
|
|
59
59
|
const o = (r = c.get(i)) !== null && r !== void 0 ? r : [];
|
|
60
60
|
if (o.length === 1) {
|
|
61
|
-
|
|
61
|
+
a.unobserve(i), c.delete(i);
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
|
-
const s = o.indexOf(
|
|
64
|
+
const s = o.indexOf(d);
|
|
65
65
|
s !== -1 && o.splice(s, 1), c.set(i, o);
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
let
|
|
70
|
-
const Q = (e) =>
|
|
69
|
+
let C;
|
|
70
|
+
const Q = (e) => C || (C = N(e)), X = T(/* @__PURE__ */ n("path", {
|
|
71
71
|
d: "M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"
|
|
72
72
|
}), "Menu"), M = h("div")(
|
|
73
73
|
({ mobile: e, shadowSecondary: t }) => ({
|
|
@@ -124,27 +124,27 @@ const Q = (e) => $ || ($ = N(e)), X = T(/* @__PURE__ */ n("path", {
|
|
|
124
124
|
loggedIn: t,
|
|
125
125
|
logoProps: l,
|
|
126
126
|
iconColor: c,
|
|
127
|
-
themeProps:
|
|
127
|
+
themeProps: a,
|
|
128
128
|
hamburgerMenu: i,
|
|
129
|
-
avatarColors:
|
|
129
|
+
avatarColors: d,
|
|
130
130
|
onHamburgerMenuClick: r,
|
|
131
131
|
onUserMenuClick: o,
|
|
132
132
|
onLogin: s
|
|
133
133
|
}) => {
|
|
134
|
-
const [u, p] = w(0), [f, _] = w(null), [v, A] = w(null), { logoSrc:
|
|
135
|
-
|
|
134
|
+
const [u, p] = w(0), [f, _] = w(null), [v, A] = w(null), { logoSrc: $, logoWidth: y, logoHeight: g } = l, { shadowSecondary: H, shadowTertiary: j, iconPrimary: P, borderPrimary: F } = a, z = { shadowTertiary: j, borderColor: F, borderFocusColor: P };
|
|
135
|
+
B(() => {
|
|
136
136
|
f && f.clientWidth > u && p(f.clientWidth), v && v.clientWidth > u && p(v.clientWidth);
|
|
137
137
|
}, [f, v]);
|
|
138
|
-
const
|
|
138
|
+
const U = (m) => {
|
|
139
139
|
m != null && m.clientWidth && m.clientWidth > u && p(m.clientWidth);
|
|
140
140
|
};
|
|
141
|
-
return K(f, () =>
|
|
142
|
-
/* @__PURE__ */ n(I, { height: g, children: /* @__PURE__ */ n(O, { src:
|
|
141
|
+
return K(f, () => U(f)), e ? /* @__PURE__ */ x(M, { mobile: !0, shadowSecondary: H, children: [
|
|
142
|
+
/* @__PURE__ */ n(I, { height: g, children: /* @__PURE__ */ n(O, { src: $, height: `${g}px`, width: y }) }),
|
|
143
143
|
/* @__PURE__ */ n(R, { children: /* @__PURE__ */ n(W, { ...z, placeholder: "Search..." }) }),
|
|
144
|
-
/* @__PURE__ */ n(E, { ...
|
|
144
|
+
/* @__PURE__ */ n(E, { ...d, onClick: o })
|
|
145
145
|
] }) : /* @__PURE__ */ x(M, { children: [
|
|
146
146
|
/* @__PURE__ */ x(I, { height: g, children: [
|
|
147
|
-
/* @__PURE__ */ n(O, { src:
|
|
147
|
+
/* @__PURE__ */ n(O, { src: $, height: `${g}px`, width: y }),
|
|
148
148
|
i && /* @__PURE__ */ n(k, { variant: "icon", onClick: r, color: c, children: /* @__PURE__ */ n(X, {}) })
|
|
149
149
|
] }),
|
|
150
150
|
/* @__PURE__ */ n(R, { children: /* @__PURE__ */ n(W, { ...z, placeholder: "Search..." }) }),
|
|
@@ -153,7 +153,7 @@ const Q = (e) => $ || ($ = N(e)), X = T(/* @__PURE__ */ n("path", {
|
|
|
153
153
|
q,
|
|
154
154
|
{
|
|
155
155
|
id: "accountMenuContainer",
|
|
156
|
-
component: /* @__PURE__ */ n(E, { ...
|
|
156
|
+
component: /* @__PURE__ */ n(E, { ...d, onClick: o }),
|
|
157
157
|
label: "Welcome, User"
|
|
158
158
|
}
|
|
159
159
|
) }),
|
package/Button/Button.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as D, jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import * as x from "react";
|
|
3
3
|
import { g as U, a as _, s as c, r as H, c as i, f as A, u as q, b as I, P as t, d as J, e as b } from "../.chunks/DefaultPropsProvider.js";
|
|
4
4
|
import { m as K } from "../.chunks/memoTheme.js";
|
|
5
5
|
import { c as Q } from "../.chunks/createSimplePaletteValueFilter.js";
|
|
6
6
|
import { B as S } from "../.chunks/ButtonBase.js";
|
|
7
|
-
import {
|
|
7
|
+
import { i as X } from "../.chunks/emotion-styled.browser.esm.js";
|
|
8
|
+
import { c as Y } from "../.chunks/emotion-react.browser.esm.js";
|
|
8
9
|
import s from "../theme.js";
|
|
9
|
-
function
|
|
10
|
+
function Z(o) {
|
|
10
11
|
return U("MuiButton", o);
|
|
11
12
|
}
|
|
12
13
|
const u = _("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), h = /* @__PURE__ */ x.createContext({});
|
|
13
14
|
process.env.NODE_ENV !== "production" && (h.displayName = "ButtonGroupContext");
|
|
14
15
|
const O = /* @__PURE__ */ x.createContext(void 0);
|
|
15
16
|
process.env.NODE_ENV !== "production" && (O.displayName = "ButtonGroupButtonContext");
|
|
16
|
-
const
|
|
17
|
+
const oo = (o) => {
|
|
17
18
|
const {
|
|
18
19
|
color: n,
|
|
19
20
|
disableElevation: a,
|
|
@@ -26,7 +27,7 @@ const Z = (o) => {
|
|
|
26
27
|
label: ["label"],
|
|
27
28
|
startIcon: ["icon", "startIcon", `iconSize${i(e)}`],
|
|
28
29
|
endIcon: ["icon", "endIcon", `iconSize${i(e)}`]
|
|
29
|
-
}, y = J(f,
|
|
30
|
+
}, y = J(f, Z, p);
|
|
30
31
|
return {
|
|
31
32
|
...p,
|
|
32
33
|
// forward the focused, disabled, etc. classes to the ButtonBase
|
|
@@ -59,7 +60,7 @@ const Z = (o) => {
|
|
|
59
60
|
fontSize: 22
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
|
-
}],
|
|
63
|
+
}], to = c(S, {
|
|
63
64
|
shouldForwardProp: (o) => H(o) || o === "classes",
|
|
64
65
|
name: "MuiButton",
|
|
65
66
|
slot: "Root",
|
|
@@ -255,7 +256,7 @@ const Z = (o) => {
|
|
|
255
256
|
}
|
|
256
257
|
}]
|
|
257
258
|
};
|
|
258
|
-
})),
|
|
259
|
+
})), ao = c("span", {
|
|
259
260
|
name: "MuiButton",
|
|
260
261
|
slot: "StartIcon",
|
|
261
262
|
overridesResolver: (o, n) => {
|
|
@@ -276,7 +277,7 @@ const Z = (o) => {
|
|
|
276
277
|
marginLeft: -2
|
|
277
278
|
}
|
|
278
279
|
}, ...R]
|
|
279
|
-
}),
|
|
280
|
+
}), no = c("span", {
|
|
280
281
|
name: "MuiButton",
|
|
281
282
|
slot: "EndIcon",
|
|
282
283
|
overridesResolver: (o, n) => {
|
|
@@ -307,43 +308,43 @@ const Z = (o) => {
|
|
|
307
308
|
component: B = "button",
|
|
308
309
|
className: N,
|
|
309
310
|
disabled: z = !1,
|
|
310
|
-
disableElevation:
|
|
311
|
+
disableElevation: P = !1,
|
|
311
312
|
disableFocusRipple: $ = !1,
|
|
312
|
-
endIcon:
|
|
313
|
-
focusVisibleClassName:
|
|
313
|
+
endIcon: m,
|
|
314
|
+
focusVisibleClassName: T,
|
|
314
315
|
fullWidth: W = !1,
|
|
315
|
-
size:
|
|
316
|
-
startIcon:
|
|
316
|
+
size: V = "medium",
|
|
317
|
+
startIcon: C,
|
|
317
318
|
type: w,
|
|
318
|
-
variant:
|
|
319
|
+
variant: M = "text",
|
|
319
320
|
...j
|
|
320
321
|
} = p, g = {
|
|
321
322
|
...p,
|
|
322
323
|
color: y,
|
|
323
324
|
component: B,
|
|
324
325
|
disabled: z,
|
|
325
|
-
disableElevation:
|
|
326
|
+
disableElevation: P,
|
|
326
327
|
disableFocusRipple: $,
|
|
327
328
|
fullWidth: W,
|
|
328
|
-
size:
|
|
329
|
+
size: V,
|
|
329
330
|
type: w,
|
|
330
|
-
variant:
|
|
331
|
-
}, v =
|
|
331
|
+
variant: M
|
|
332
|
+
}, v = oo(g), G = C && /* @__PURE__ */ d(ao, {
|
|
332
333
|
className: v.startIcon,
|
|
333
334
|
ownerState: g,
|
|
334
|
-
children:
|
|
335
|
-
}), L =
|
|
335
|
+
children: C
|
|
336
|
+
}), L = m && /* @__PURE__ */ d(no, {
|
|
336
337
|
className: v.endIcon,
|
|
337
338
|
ownerState: g,
|
|
338
|
-
children:
|
|
339
|
-
}),
|
|
340
|
-
return /* @__PURE__ */
|
|
339
|
+
children: m
|
|
340
|
+
}), F = e || "";
|
|
341
|
+
return /* @__PURE__ */ D(to, {
|
|
341
342
|
ownerState: g,
|
|
342
|
-
className: I(r.className, v.root, N,
|
|
343
|
+
className: I(r.className, v.root, N, F),
|
|
343
344
|
component: B,
|
|
344
345
|
disabled: z,
|
|
345
346
|
focusRipple: !$,
|
|
346
|
-
focusVisibleClassName: I(v.focusVisible,
|
|
347
|
+
focusVisibleClassName: I(v.focusVisible, T),
|
|
347
348
|
ref: a,
|
|
348
349
|
type: w,
|
|
349
350
|
...j,
|
|
@@ -454,7 +455,7 @@ const E = c(k)`
|
|
|
454
455
|
justify-content: center;
|
|
455
456
|
align-items: center;
|
|
456
457
|
}
|
|
457
|
-
`,
|
|
458
|
+
`, ro = c(E)`
|
|
458
459
|
background-color: ${s.colors.green};
|
|
459
460
|
border-radius: 0;
|
|
460
461
|
height: 2.5rem;
|
|
@@ -474,46 +475,46 @@ const E = c(k)`
|
|
|
474
475
|
&:disabled {
|
|
475
476
|
background-color: ${s.colors.darkGreen};
|
|
476
477
|
}
|
|
477
|
-
`,
|
|
478
|
+
`, eo = c(E)`
|
|
478
479
|
color: ${s.colors.black};
|
|
479
480
|
border: 3px solid ${s.colors.blue};
|
|
480
481
|
padding: 0.5rem 2rem;
|
|
481
|
-
`,
|
|
482
|
+
`, io = c(S)`
|
|
482
483
|
border-radius: 8px;
|
|
483
|
-
`,
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
&:hover,
|
|
493
|
-
:focus-visible {
|
|
494
|
-
svg {
|
|
495
|
-
filter: drop-shadow(0 0 6px ${a}) drop-shadow(0 0 6px ${a})
|
|
496
|
-
drop-shadow(0 0 6px ${a}) drop-shadow(0 0 6px ${a});
|
|
497
|
-
}
|
|
498
|
-
}
|
|
484
|
+
`, so = c(S, {
|
|
485
|
+
shouldForwardProp: (o) => typeof o == "string" && X(o)
|
|
486
|
+
})(({ size: o, color: n, highlightColor: a }) => ({
|
|
487
|
+
...Y`
|
|
488
|
+
display: flex;
|
|
489
|
+
align-items: center;
|
|
490
|
+
justify-content: center;
|
|
491
|
+
background-color: transparent;
|
|
492
|
+
transition: 313ms all ease-in-out;
|
|
499
493
|
|
|
494
|
+
&:hover,
|
|
495
|
+
:focus-visible {
|
|
500
496
|
svg {
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
width: ${o}px;
|
|
504
|
-
height: ${o}px;
|
|
497
|
+
filter: drop-shadow(0 0 6px ${a}) drop-shadow(0 0 6px ${a})
|
|
498
|
+
drop-shadow(0 0 6px ${a}) drop-shadow(0 0 6px ${a});
|
|
505
499
|
}
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
svg {
|
|
503
|
+
transition: 313ms all ease-in-out;
|
|
504
|
+
fill: ${n};
|
|
505
|
+
width: ${o}px;
|
|
506
|
+
height: ${o}px;
|
|
507
|
+
}
|
|
508
|
+
`
|
|
509
|
+
})), fo = ({
|
|
509
510
|
variant: o = 1,
|
|
510
511
|
size: n = 50,
|
|
511
512
|
color: a = s.colors.darkGreen,
|
|
512
513
|
highlightColor: r = s.colors.dandelion,
|
|
513
514
|
children: e,
|
|
514
515
|
...l
|
|
515
|
-
}) => o === "unstyled" ? /* @__PURE__ */ d(
|
|
516
|
+
}) => o === "unstyled" ? /* @__PURE__ */ d(io, { ...l, children: e }) : o === 2 ? /* @__PURE__ */ d(eo, { ...l, children: /* @__PURE__ */ d("span", { children: e }) }) : o === "icon" ? /* @__PURE__ */ d(so, { ...{ size: n, color: a, highlightColor: r }, ...l, children: e }) : /* @__PURE__ */ d(ro, { ...l, children: /* @__PURE__ */ d("span", { children: e }) });
|
|
516
517
|
export {
|
|
517
|
-
|
|
518
|
-
|
|
518
|
+
fo as Button,
|
|
519
|
+
fo as default
|
|
519
520
|
};
|
package/Flex/Flex.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { default as React, CSSProperties } from 'react';
|
|
|
2
2
|
export interface FlexProps {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
alignItems?: 'flex-start' | 'center' | 'stretch' | 'flex-end';
|
|
5
|
-
justifyContent?: 'start' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
5
|
+
justifyContent?: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
6
6
|
placeContent?: string;
|
|
7
7
|
column?: boolean;
|
|
8
8
|
width?: string;
|
package/Nav/Nav.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export interface NavItemProps {
|
|
|
4
4
|
icon?: React.ReactNode;
|
|
5
5
|
onClick?: () => void;
|
|
6
6
|
active?: boolean;
|
|
7
|
+
/** This is defined only to enable type safe external management of the AppContainer actions panel */
|
|
7
8
|
actionsPanelContent?: React.ReactNode;
|
|
8
9
|
}
|
|
9
10
|
export interface NavProps {
|
package/Nav/Nav.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as c, jsxs as u } from "react/jsx-runtime";
|
|
2
2
|
import { useState as j } from "react";
|
|
3
|
-
import { n as
|
|
3
|
+
import { n as v, i as z } from "../.chunks/emotion-styled.browser.esm.js";
|
|
4
4
|
import P from "../theme.js";
|
|
5
5
|
import B from "../ScrollContainer/ScrollContainer.js";
|
|
6
6
|
import { B as D } from "../.chunks/ButtonBase.js";
|
|
7
|
-
const C =
|
|
8
|
-
shouldForwardProp: (
|
|
9
|
-
})(({ active:
|
|
7
|
+
const C = v(D, {
|
|
8
|
+
shouldForwardProp: (t) => z(t)
|
|
9
|
+
})(({ active: t, isTablet: n, highlight1: r, highlight3: i, iconColor: e, isMobile: s, shadowSecondary: d }) => ({
|
|
10
10
|
display: "flex",
|
|
11
11
|
flexDirection: n ? "row" : "column",
|
|
12
12
|
alignItems: "center",
|
|
@@ -14,18 +14,18 @@ const C = y(D, {
|
|
|
14
14
|
width: "100%",
|
|
15
15
|
padding: n ? "16px" : "0 8px 8px 8px",
|
|
16
16
|
transition: "313ms all ease-in-out",
|
|
17
|
-
backgroundColor:
|
|
18
|
-
boxShadow:
|
|
17
|
+
backgroundColor: t && !s ? r : "transparent",
|
|
18
|
+
boxShadow: t ? e : "none",
|
|
19
19
|
...n && {
|
|
20
20
|
gap: "0.5rem"
|
|
21
21
|
},
|
|
22
|
-
...
|
|
22
|
+
...s && {
|
|
23
23
|
padding: 0
|
|
24
24
|
},
|
|
25
25
|
"&:hover, :focus-visible": {
|
|
26
26
|
svg: {
|
|
27
27
|
...!n && {
|
|
28
|
-
backgroundColor:
|
|
28
|
+
backgroundColor: r
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
...n && {
|
|
@@ -42,7 +42,10 @@ const C = y(D, {
|
|
|
42
42
|
display: "flex",
|
|
43
43
|
alignItems: "center",
|
|
44
44
|
justifyContent: "center",
|
|
45
|
-
transition: "313ms all ease-in-out"
|
|
45
|
+
transition: "313ms all ease-in-out",
|
|
46
|
+
...s && t && {
|
|
47
|
+
backgroundColor: r
|
|
48
|
+
}
|
|
46
49
|
},
|
|
47
50
|
span: {
|
|
48
51
|
fontFamily: "Roboto, sans-serif",
|
|
@@ -55,76 +58,74 @@ const C = y(D, {
|
|
|
55
58
|
fontWeight: "500"
|
|
56
59
|
}
|
|
57
60
|
}
|
|
58
|
-
})),
|
|
61
|
+
})), y = v("div")(({ navWidth: t, isTablet: n, isMobile: r, shadowSecondary: i }) => ({
|
|
59
62
|
display: "flex",
|
|
60
|
-
flexDirection:
|
|
63
|
+
flexDirection: r ? "row" : "column",
|
|
61
64
|
backgroundColor: "transparent",
|
|
62
65
|
alignItems: "center",
|
|
63
|
-
justifyContent:
|
|
66
|
+
justifyContent: r ? "space-between" : "flex-start",
|
|
64
67
|
maxHeight: "100%",
|
|
65
68
|
flexShrink: 0,
|
|
66
69
|
gap: n ? 0 : "1rem",
|
|
67
|
-
width:
|
|
70
|
+
width: t,
|
|
68
71
|
boxSizing: "border-box",
|
|
69
|
-
...
|
|
72
|
+
...r && {
|
|
70
73
|
boxShadow: i,
|
|
71
|
-
zIndex: 1313
|
|
72
|
-
},
|
|
73
|
-
...t && {
|
|
74
|
+
zIndex: 1313,
|
|
74
75
|
padding: "4px 8px"
|
|
75
76
|
}
|
|
76
77
|
})), $ = ({
|
|
77
|
-
navItems:
|
|
78
|
+
navItems: t,
|
|
78
79
|
activeRoute: n,
|
|
79
|
-
navWidth:
|
|
80
|
+
navWidth: r = `${P.constants.navDefaultWidth}px`,
|
|
80
81
|
isTablet: i,
|
|
81
82
|
isMobile: e,
|
|
82
|
-
themeColors:
|
|
83
|
+
themeColors: s
|
|
83
84
|
}) => {
|
|
84
|
-
const [d, w] = j(""),
|
|
85
|
-
w(
|
|
86
|
-
}, { highlightPrimary:
|
|
87
|
-
return e ? /* @__PURE__ */
|
|
88
|
-
}, ...
|
|
85
|
+
const [d, w] = j(""), f = (a, o) => {
|
|
86
|
+
w(a), o();
|
|
87
|
+
}, { highlightPrimary: g, highlightTertiary: m, iconPrimary: x, shadowSecondary: p, scrollColor: S } = s, k = { navWidth: r, isTablet: i, shadowSecondary: p };
|
|
88
|
+
return e ? /* @__PURE__ */ c(y, { isTablet: !1, navWidth: "100%", isMobile: !0, shadowSecondary: p, children: t.map(({ icon: a, label: o = "", onClick: l = () => {
|
|
89
|
+
}, ...h }) => /* @__PURE__ */ u(
|
|
89
90
|
C,
|
|
90
91
|
{
|
|
91
|
-
...
|
|
92
|
+
...h,
|
|
92
93
|
active: n ? n === o : d === o,
|
|
93
|
-
onClick: () =>
|
|
94
|
+
onClick: () => f(o, l),
|
|
94
95
|
isTablet: i,
|
|
95
|
-
highlight1:
|
|
96
|
+
highlight1: g,
|
|
96
97
|
highlight3: m,
|
|
97
98
|
iconColor: x,
|
|
98
|
-
shadowSecondary:
|
|
99
|
+
shadowSecondary: p,
|
|
99
100
|
isMobile: !0,
|
|
100
101
|
children: [
|
|
101
|
-
|
|
102
|
-
/* @__PURE__ */
|
|
102
|
+
a,
|
|
103
|
+
/* @__PURE__ */ c("span", { children: o })
|
|
103
104
|
]
|
|
104
105
|
},
|
|
105
106
|
o
|
|
106
|
-
)) }) : /* @__PURE__ */
|
|
107
|
+
)) }) : /* @__PURE__ */ c(
|
|
107
108
|
B,
|
|
108
109
|
{
|
|
109
110
|
scrollColor: S,
|
|
110
111
|
direction: "vertical",
|
|
111
|
-
width:
|
|
112
|
-
styles: { minWidth:
|
|
113
|
-
children: /* @__PURE__ */
|
|
114
|
-
}, ...
|
|
112
|
+
width: r,
|
|
113
|
+
styles: { minWidth: r },
|
|
114
|
+
children: /* @__PURE__ */ c(y, { ...k, children: t.map(({ icon: a, label: o = "", onClick: l = () => {
|
|
115
|
+
}, ...h }) => /* @__PURE__ */ u(
|
|
115
116
|
C,
|
|
116
117
|
{
|
|
117
|
-
...
|
|
118
|
+
...h,
|
|
118
119
|
active: n ? n === o : d === o,
|
|
119
|
-
onClick: () =>
|
|
120
|
+
onClick: () => f(o, l),
|
|
120
121
|
isTablet: i,
|
|
121
|
-
highlight1:
|
|
122
|
+
highlight1: g,
|
|
122
123
|
highlight3: m,
|
|
123
124
|
iconColor: x,
|
|
124
|
-
shadowSecondary:
|
|
125
|
+
shadowSecondary: p,
|
|
125
126
|
children: [
|
|
126
|
-
|
|
127
|
-
/* @__PURE__ */
|
|
127
|
+
a,
|
|
128
|
+
/* @__PURE__ */ c("span", { children: o })
|
|
128
129
|
]
|
|
129
130
|
},
|
|
130
131
|
o
|