jcicl 0.0.109 → 0.0.112
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/Close.js +8 -0
- package/.chunks/DefaultPropsProvider.js +76 -74
- package/.chunks/Input.js +13 -7
- package/.chunks/Portal.js +27 -26
- package/AppContainer/AppContainer.d.ts +4 -0
- package/AppContainer/AppContainer.js +1558 -50
- package/AppHeader/AppHeader.d.ts +2 -1
- package/AppHeader/AppHeader.js +143 -28
- package/Avatar/Avatar.js +12 -12
- package/AvatarWithImage/AvatarWithImage.js +5 -5
- package/Button/Button.d.ts +3 -2
- package/Button/Button.js +101 -76
- package/EditableInfoCard/EditableInfoCard.js +45 -46
- package/ErrorBoundary/ErrorBoundary.d.ts +1 -1
- package/Icon/Icon.js +6 -6
- package/ListButton/ListButton.d.ts +1 -3
- package/ListButton/ListButton.js +6 -6
- package/Nav/Nav.d.ts +3 -2
- package/Nav/Nav.js +57 -42
- package/Tooltip/Tooltip.js +69 -69
- package/WithLabel/WithLabel.d.ts +1 -1
- package/package.json +4 -2
- package/theme.d.ts +4 -4
- package/theme.js +9 -7
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { jsx as o, jsxs as n, Fragment as
|
|
2
|
-
import { useState as B, useEffect as
|
|
1
|
+
import { jsx as o, jsxs as n, Fragment as k } from "react/jsx-runtime";
|
|
2
|
+
import { useState as B, useEffect as N } from "react";
|
|
3
3
|
import { n as l } from "../.chunks/emotion-styled.browser.esm.js";
|
|
4
4
|
import { c as m } from "../.chunks/emotion-react.browser.esm.js";
|
|
5
|
-
import { c as
|
|
5
|
+
import { c as j } from "../.chunks/createSvgIcon.js";
|
|
6
|
+
import { X as O } from "../.chunks/Close.js";
|
|
6
7
|
import d from "../theme.js";
|
|
7
8
|
import { LabeledValue as Q } from "../LabeledValue/LabeledValue.js";
|
|
8
|
-
import { LabeledInput as
|
|
9
|
+
import { LabeledInput as Z } from "../LabeledInput/LabeledInput.js";
|
|
9
10
|
import L from "../Loading/Loading.js";
|
|
10
|
-
import
|
|
11
|
+
import M from "../WithLoading/WithLoading.js";
|
|
11
12
|
import { Flex as f } from "../Flex/Flex.js";
|
|
12
13
|
import { Tooltip as x } from "../Tooltip/Tooltip.js";
|
|
13
|
-
import { T as
|
|
14
|
-
import { B as
|
|
15
|
-
const
|
|
14
|
+
import { T as _ } from "../.chunks/Input.js";
|
|
15
|
+
import { B as oo } from "../.chunks/ButtonBase.js";
|
|
16
|
+
const eo = j(/* @__PURE__ */ o("path", {
|
|
16
17
|
d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"
|
|
17
|
-
}), "Edit"),
|
|
18
|
-
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
19
|
-
}), "Close"), to = C(/* @__PURE__ */ o("path", {
|
|
18
|
+
}), "Edit"), to = j(/* @__PURE__ */ o("path", {
|
|
20
19
|
d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
|
|
21
20
|
}), "Check"), T = l("div")(
|
|
22
21
|
({ width: t, padding: a, shadow: r, styles: u, isEditing: c }) => ({
|
|
@@ -44,7 +43,7 @@ const oo = C(/* @__PURE__ */ o("path", {
|
|
|
44
43
|
opacity: ${c ? "0" : "1"};
|
|
45
44
|
`
|
|
46
45
|
})
|
|
47
|
-
), ro = l(
|
|
46
|
+
), ro = l(_)({
|
|
48
47
|
backgroundColor: d.colors.white,
|
|
49
48
|
borderRadius: "0",
|
|
50
49
|
input: {
|
|
@@ -54,11 +53,11 @@ const oo = C(/* @__PURE__ */ o("path", {
|
|
|
54
53
|
padding: "0",
|
|
55
54
|
borderRadius: "0",
|
|
56
55
|
borderBottom: `1px solid ${d.colors.gray}`,
|
|
57
|
-
"&:focus
|
|
56
|
+
"&:focus-visible": {
|
|
58
57
|
boxShadow: `0 3px 2px -2px ${d.colors.darkGreen}`
|
|
59
58
|
}
|
|
60
59
|
},
|
|
61
|
-
"&:hover, :focus
|
|
60
|
+
"&:hover, :focus-visible": {
|
|
62
61
|
input: {
|
|
63
62
|
boxShadow: `0 3px 2px -2px ${d.colors.darkGreen}`
|
|
64
63
|
}
|
|
@@ -81,7 +80,7 @@ const oo = C(/* @__PURE__ */ o("path", {
|
|
|
81
80
|
opacity: ${t ? "1" : "0"};
|
|
82
81
|
transition: 920ms all ease-in-out;
|
|
83
82
|
`
|
|
84
|
-
})),
|
|
83
|
+
})), P = l("div")(
|
|
85
84
|
({ spacing: t, columns: a, numRows: r }) => ({
|
|
86
85
|
...m`
|
|
87
86
|
margin-top: calc(${t} * 0.75);
|
|
@@ -92,7 +91,7 @@ const oo = C(/* @__PURE__ */ o("path", {
|
|
|
92
91
|
grid-template-rows: repeat(${r}, 1fr);
|
|
93
92
|
`
|
|
94
93
|
})
|
|
95
|
-
), $ = l(
|
|
94
|
+
), $ = l(oo)(() => ({
|
|
96
95
|
...m`
|
|
97
96
|
width: 40px;
|
|
98
97
|
height: 40px;
|
|
@@ -101,9 +100,9 @@ const oo = C(/* @__PURE__ */ o("path", {
|
|
|
101
100
|
})), ao = l("div")`
|
|
102
101
|
position: relative;
|
|
103
102
|
width: 100%;
|
|
104
|
-
`,
|
|
103
|
+
`, R = l("div")`
|
|
105
104
|
height: 19px;
|
|
106
|
-
`,
|
|
105
|
+
`, vo = ({
|
|
107
106
|
decorativeElement: t,
|
|
108
107
|
title: a,
|
|
109
108
|
items: r = [],
|
|
@@ -111,12 +110,12 @@ const oo = C(/* @__PURE__ */ o("path", {
|
|
|
111
110
|
shadow: c = d.boxShadow.darkGreen,
|
|
112
111
|
spacing: V = "2rem",
|
|
113
112
|
titleSpacing: w = "1rem",
|
|
114
|
-
canEditTitle:
|
|
115
|
-
columns:
|
|
113
|
+
canEditTitle: C = !0,
|
|
114
|
+
columns: v = 3,
|
|
116
115
|
styles: Y,
|
|
117
116
|
width: E = "100%",
|
|
118
117
|
loading: I = !1,
|
|
119
|
-
titleLoading:
|
|
118
|
+
titleLoading: z = !1,
|
|
120
119
|
onSave: F = () => {
|
|
121
120
|
},
|
|
122
121
|
onCancel: G = () => {
|
|
@@ -124,27 +123,27 @@ const oo = C(/* @__PURE__ */ o("path", {
|
|
|
124
123
|
onEdit: W = () => {
|
|
125
124
|
}
|
|
126
125
|
}) => {
|
|
127
|
-
const b = r.reduce((e, i) => ({ ...e, [i.label]: i.value }), { titleValue: a }), [
|
|
128
|
-
|
|
126
|
+
const b = r.reduce((e, i) => ({ ...e, [i.label]: i.value }), { titleValue: a }), [X, g] = B(!1), [p, h] = B(b);
|
|
127
|
+
N(() => {
|
|
129
128
|
h(b);
|
|
130
129
|
}, [r]);
|
|
131
|
-
const
|
|
130
|
+
const U = () => {
|
|
132
131
|
W(), g(!0);
|
|
133
|
-
},
|
|
132
|
+
}, q = () => {
|
|
134
133
|
F(p), g(!1);
|
|
135
|
-
},
|
|
134
|
+
}, A = () => {
|
|
136
135
|
G(), h(b), g(!1);
|
|
137
|
-
},
|
|
138
|
-
h((
|
|
139
|
-
},
|
|
136
|
+
}, D = (e, i) => {
|
|
137
|
+
h((K) => ({ ...K, [e]: i }));
|
|
138
|
+
}, H = (e) => {
|
|
140
139
|
h((i) => ({ ...i, titleValue: e }));
|
|
141
|
-
},
|
|
140
|
+
}, J = Math.ceil(r.length / v), s = 50, y = { width: E, padding: u, shadow: c, styles: Y, isEditing: X }, S = { spacing: V, columns: v, numRows: J };
|
|
142
141
|
return /* @__PURE__ */ n(ao, { children: [
|
|
143
|
-
/* @__PURE__ */ n(T, { ...
|
|
142
|
+
/* @__PURE__ */ n(T, { ...y, children: [
|
|
144
143
|
/* @__PURE__ */ n(f, { width: "100%", gap: "1rem", justifyContent: "space-between", children: [
|
|
145
144
|
/* @__PURE__ */ n(f, { width: "100%", gap: w, alignItems: "center", children: [
|
|
146
145
|
t && t,
|
|
147
|
-
/* @__PURE__ */ o(
|
|
146
|
+
/* @__PURE__ */ o(M, { size: 36, loading: C && z, children: /* @__PURE__ */ o("h3", { children: a }) })
|
|
148
147
|
] }),
|
|
149
148
|
/* @__PURE__ */ o(
|
|
150
149
|
x,
|
|
@@ -163,12 +162,12 @@ const oo = C(/* @__PURE__ */ o("path", {
|
|
|
163
162
|
]
|
|
164
163
|
}
|
|
165
164
|
},
|
|
166
|
-
children: /* @__PURE__ */ o($, { onClick:
|
|
165
|
+
children: /* @__PURE__ */ o($, { onClick: U, children: /* @__PURE__ */ o(eo, {}) })
|
|
167
166
|
}
|
|
168
167
|
)
|
|
169
168
|
] }),
|
|
170
|
-
/* @__PURE__ */ o(
|
|
171
|
-
/* @__PURE__ */ o(
|
|
169
|
+
/* @__PURE__ */ o(P, { ...S, children: I ? /* @__PURE__ */ n(k, { children: [
|
|
170
|
+
/* @__PURE__ */ o(R, {}),
|
|
172
171
|
/* @__PURE__ */ o(
|
|
173
172
|
L,
|
|
174
173
|
{
|
|
@@ -182,14 +181,14 @@ const oo = C(/* @__PURE__ */ o("path", {
|
|
|
182
181
|
)
|
|
183
182
|
] }) : r == null ? void 0 : r.map((e) => /* @__PURE__ */ o(Q, { ...e }, e.label)) })
|
|
184
183
|
] }),
|
|
185
|
-
/* @__PURE__ */ n(no, { ...
|
|
184
|
+
/* @__PURE__ */ n(no, { ...y, children: [
|
|
186
185
|
/* @__PURE__ */ n(f, { width: "100%", justifyContent: "space-between", children: [
|
|
187
186
|
/* @__PURE__ */ n(f, { width: "100%", gap: w, alignItems: "center", children: [
|
|
188
187
|
t && t,
|
|
189
|
-
|
|
188
|
+
C ? /* @__PURE__ */ o(M, { size: 36, loading: z, children: /* @__PURE__ */ o(
|
|
190
189
|
ro,
|
|
191
190
|
{
|
|
192
|
-
onChange: (e) =>
|
|
191
|
+
onChange: (e) => H(e.target.value),
|
|
193
192
|
value: (p == null ? void 0 : p.titleValue) ?? a
|
|
194
193
|
}
|
|
195
194
|
) }) : /* @__PURE__ */ o("h3", { children: a })
|
|
@@ -211,7 +210,7 @@ const oo = C(/* @__PURE__ */ o("path", {
|
|
|
211
210
|
]
|
|
212
211
|
}
|
|
213
212
|
},
|
|
214
|
-
children: /* @__PURE__ */ o($, { onClick:
|
|
213
|
+
children: /* @__PURE__ */ o($, { onClick: A, children: /* @__PURE__ */ o(O, {}) })
|
|
215
214
|
}
|
|
216
215
|
),
|
|
217
216
|
/* @__PURE__ */ o(
|
|
@@ -231,12 +230,12 @@ const oo = C(/* @__PURE__ */ o("path", {
|
|
|
231
230
|
]
|
|
232
231
|
}
|
|
233
232
|
},
|
|
234
|
-
children: /* @__PURE__ */ o($, { onClick:
|
|
233
|
+
children: /* @__PURE__ */ o($, { onClick: q, children: /* @__PURE__ */ o(to, {}) })
|
|
235
234
|
}
|
|
236
235
|
)
|
|
237
236
|
] }),
|
|
238
|
-
/* @__PURE__ */ o(
|
|
239
|
-
/* @__PURE__ */ o(
|
|
237
|
+
/* @__PURE__ */ o(P, { ...S, children: I ? /* @__PURE__ */ n(k, { children: [
|
|
238
|
+
/* @__PURE__ */ o(R, {}),
|
|
240
239
|
/* @__PURE__ */ o(
|
|
241
240
|
L,
|
|
242
241
|
{
|
|
@@ -249,11 +248,11 @@ const oo = C(/* @__PURE__ */ o("path", {
|
|
|
249
248
|
}
|
|
250
249
|
)
|
|
251
250
|
] }) : r == null ? void 0 : r.map((e) => /* @__PURE__ */ o(
|
|
252
|
-
|
|
251
|
+
Z,
|
|
253
252
|
{
|
|
254
253
|
label: e.label,
|
|
255
254
|
value: p[e.label],
|
|
256
|
-
onChange: (i) =>
|
|
255
|
+
onChange: (i) => D(e.label, i.target.value)
|
|
257
256
|
},
|
|
258
257
|
e.label
|
|
259
258
|
)) })
|
|
@@ -261,6 +260,6 @@ const oo = C(/* @__PURE__ */ o("path", {
|
|
|
261
260
|
] });
|
|
262
261
|
};
|
|
263
262
|
export {
|
|
264
|
-
|
|
265
|
-
|
|
263
|
+
vo as EditableInfoCard,
|
|
264
|
+
vo as default
|
|
266
265
|
};
|
|
@@ -16,6 +16,6 @@ declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBou
|
|
|
16
16
|
error: any;
|
|
17
17
|
};
|
|
18
18
|
componentDidCatch(error: any, errorInfo: any): void;
|
|
19
|
-
render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
19
|
+
render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
20
20
|
}
|
|
21
21
|
export default ErrorBoundary;
|
package/Icon/Icon.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { B as c } from "../.chunks/ButtonBase.js";
|
|
3
3
|
import t from "../theme.js";
|
|
4
|
-
import { n as
|
|
5
|
-
const a =
|
|
4
|
+
import { n as l, i as p } from "../.chunks/emotion-styled.browser.esm.js";
|
|
5
|
+
const a = l("div", {
|
|
6
6
|
shouldForwardProp: (r) => p(r)
|
|
7
7
|
})(
|
|
8
8
|
({ iconColor: r = t.colors.darkGreen, backgroundColor: n = t.colors.mint, size: e = 40 }) => ({
|
|
@@ -20,13 +20,13 @@ const a = d("div", {
|
|
|
20
20
|
pointerEvents: "none"
|
|
21
21
|
}
|
|
22
22
|
})
|
|
23
|
-
), m =
|
|
23
|
+
), m = l(c)({
|
|
24
24
|
backgroundColor: "transparent",
|
|
25
25
|
borderRadius: "50%",
|
|
26
26
|
span: {
|
|
27
27
|
transition: "313ms all ease-in-out"
|
|
28
28
|
},
|
|
29
|
-
"&:hover, :focus": {
|
|
29
|
+
"&:hover, :focus-visible": {
|
|
30
30
|
span: {
|
|
31
31
|
backgroundColor: t.colors.grayO44
|
|
32
32
|
}
|
|
@@ -35,10 +35,10 @@ const a = d("div", {
|
|
|
35
35
|
icon: r,
|
|
36
36
|
iconColor: n,
|
|
37
37
|
backgroundColor: e,
|
|
38
|
-
size:
|
|
38
|
+
size: d,
|
|
39
39
|
...o
|
|
40
40
|
}) => {
|
|
41
|
-
const s = { iconColor: n, backgroundColor: e, size:
|
|
41
|
+
const s = { iconColor: n, backgroundColor: e, size: d };
|
|
42
42
|
return o != null && o.onClick ? /* @__PURE__ */ i(m, { ...o, children: /* @__PURE__ */ i(a, { ...s, children: r }) }) : /* @__PURE__ */ i(a, { ...s, children: r });
|
|
43
43
|
};
|
|
44
44
|
export {
|
|
@@ -5,9 +5,7 @@ export interface ListButtonProps extends ButtonBaseProps {
|
|
|
5
5
|
active?: boolean;
|
|
6
6
|
activeStyles?: CSSProperties;
|
|
7
7
|
}
|
|
8
|
-
declare const ListButton: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonBaseOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<
|
|
9
|
-
ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
|
|
10
|
-
}, "style" | "className" | "classes" | "children" | "sx" | "tabIndex" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef"> & {
|
|
8
|
+
declare const ListButton: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonBaseOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "className" | "classes" | "children" | "sx" | "tabIndex" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef"> & {
|
|
11
9
|
theme?: import('@emotion/react').Theme;
|
|
12
10
|
} & ListButtonProps, {}, {}>;
|
|
13
11
|
export default ListButton;
|
package/ListButton/ListButton.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as s, i } from "../.chunks/emotion-styled.browser.esm.js";
|
|
2
|
-
import
|
|
2
|
+
import e from "../theme.js";
|
|
3
3
|
import { B as p } from "../.chunks/ButtonBase.js";
|
|
4
4
|
const l = s(p, {
|
|
5
5
|
shouldForwardProp: (o) => i(o) && typeof o == "string"
|
|
6
|
-
})(({ padding: o = "1rem", active:
|
|
6
|
+
})(({ padding: o = "1rem", active: t, activeStyles: r }) => ({
|
|
7
7
|
display: "flex",
|
|
8
8
|
width: "100%",
|
|
9
9
|
height: "100%",
|
|
@@ -11,12 +11,12 @@ const l = s(p, {
|
|
|
11
11
|
fontSize: "inherit",
|
|
12
12
|
justifyContent: "flex-start",
|
|
13
13
|
transition: "201ms all ease-in-out",
|
|
14
|
-
...
|
|
15
|
-
boxShadow: `inset 0px -11px 6px -10px ${
|
|
14
|
+
...t && {
|
|
15
|
+
boxShadow: `inset 0px -11px 6px -10px ${e.colors.darkGreen}, inset 0px 11px 6px -10px ${e.colors.darkGreen}`,
|
|
16
16
|
...r
|
|
17
17
|
},
|
|
18
|
-
"&:hover, :focus": {
|
|
19
|
-
boxShadow: `inset 0px -11px 6px -10px ${
|
|
18
|
+
"&:hover, :focus-visible": {
|
|
19
|
+
boxShadow: `inset 0px -11px 6px -10px ${e.colors.green}, inset 0px 11px 6px -10px ${e.colors.green}`
|
|
20
20
|
}
|
|
21
21
|
}));
|
|
22
22
|
export {
|
package/Nav/Nav.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export interface NavItemProps {
|
|
2
2
|
label?: string;
|
|
3
|
-
icon?:
|
|
3
|
+
icon?: React.ReactNode;
|
|
4
4
|
onClick?: () => void;
|
|
5
5
|
active?: boolean;
|
|
6
|
-
actionsPanelContent?:
|
|
6
|
+
actionsPanelContent?: React.ReactNode;
|
|
7
7
|
}
|
|
8
8
|
export interface NavProps {
|
|
9
9
|
navItems: NavItemProps[];
|
|
10
10
|
activeRoute?: string;
|
|
11
11
|
navWidth?: string;
|
|
12
|
+
isTablet?: boolean;
|
|
12
13
|
}
|
|
13
14
|
export declare const Nav: React.FC<NavProps>;
|
|
14
15
|
export default Nav;
|
package/Nav/Nav.js
CHANGED
|
@@ -1,30 +1,39 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as s, jsxs as x } from "react/jsx-runtime";
|
|
2
2
|
import { useState as u } from "react";
|
|
3
|
-
import { n as
|
|
4
|
-
import
|
|
3
|
+
import { n as c, i as h } from "../.chunks/emotion-styled.browser.esm.js";
|
|
4
|
+
import r from "../theme.js";
|
|
5
5
|
import g from "../ScrollContainer/ScrollContainer.js";
|
|
6
|
-
import { B as
|
|
7
|
-
const C =
|
|
8
|
-
shouldForwardProp: (
|
|
9
|
-
})(({ active:
|
|
6
|
+
import { B as k } from "../.chunks/ButtonBase.js";
|
|
7
|
+
const C = c(k, {
|
|
8
|
+
shouldForwardProp: (n) => h(n)
|
|
9
|
+
})(({ active: n, isTablet: o }) => ({
|
|
10
10
|
display: "flex",
|
|
11
|
-
flexDirection: "column",
|
|
11
|
+
flexDirection: o ? "row" : "column",
|
|
12
12
|
alignItems: "center",
|
|
13
|
-
justifyContent: "center",
|
|
13
|
+
justifyContent: o ? "flex-start" : "center",
|
|
14
14
|
width: "100%",
|
|
15
|
-
padding: "0 8px 8px 8px",
|
|
15
|
+
padding: o ? "16px" : "0 8px 8px 8px",
|
|
16
16
|
transition: "313ms all ease-in-out",
|
|
17
|
-
backgroundColor:
|
|
18
|
-
boxShadow:
|
|
17
|
+
backgroundColor: n ? r.colors.sunlight : "transparent",
|
|
18
|
+
boxShadow: n ? r.boxShadow.darkGreen : "none",
|
|
19
|
+
...o && {
|
|
20
|
+
gap: "0.5rem"
|
|
21
|
+
},
|
|
19
22
|
"&:hover, :focus-visible": {
|
|
20
23
|
svg: {
|
|
21
|
-
|
|
24
|
+
...!o && {
|
|
25
|
+
backgroundColor: r.colors.sunlight
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
...o && {
|
|
29
|
+
boxShadow: r.boxShadow.darkGreen,
|
|
30
|
+
backgroundColor: `${r.colors.dandelion}99`
|
|
22
31
|
}
|
|
23
32
|
},
|
|
24
33
|
svg: {
|
|
25
34
|
fontSize: "2.1rem",
|
|
26
|
-
fill:
|
|
27
|
-
backgroundColor:
|
|
35
|
+
fill: r.colors.darkGreen,
|
|
36
|
+
backgroundColor: "transparent",
|
|
28
37
|
borderRadius: "50%",
|
|
29
38
|
padding: "8px",
|
|
30
39
|
display: "flex",
|
|
@@ -36,10 +45,14 @@ const C = a(v, {
|
|
|
36
45
|
fontFamily: "Roboto, sans-serif",
|
|
37
46
|
fontSize: "12px",
|
|
38
47
|
fontWeight: "bold",
|
|
39
|
-
color:
|
|
40
|
-
textAlign: "center"
|
|
48
|
+
color: r.colors.darkGreen,
|
|
49
|
+
textAlign: "center",
|
|
50
|
+
...o && {
|
|
51
|
+
fontSize: "1.5rem",
|
|
52
|
+
fontWeight: "500"
|
|
53
|
+
}
|
|
41
54
|
}
|
|
42
|
-
})),
|
|
55
|
+
})), v = c("div")(({ navWidth: n, isTablet: o }) => ({
|
|
43
56
|
display: "flex",
|
|
44
57
|
flexDirection: "column",
|
|
45
58
|
backgroundColor: "transparent",
|
|
@@ -47,32 +60,34 @@ const C = a(v, {
|
|
|
47
60
|
justifyContent: "flex-start",
|
|
48
61
|
maxHeight: "100%",
|
|
49
62
|
flexShrink: 0,
|
|
50
|
-
gap: "1rem",
|
|
51
|
-
width:
|
|
52
|
-
})),
|
|
53
|
-
navItems:
|
|
54
|
-
activeRoute:
|
|
55
|
-
navWidth: e = `${
|
|
63
|
+
gap: o ? 0 : "1rem",
|
|
64
|
+
width: n
|
|
65
|
+
})), z = ({
|
|
66
|
+
navItems: n,
|
|
67
|
+
activeRoute: o,
|
|
68
|
+
navWidth: e = `${r.constants.navDefaultWidth}px`,
|
|
69
|
+
isTablet: a
|
|
56
70
|
}) => {
|
|
57
|
-
const [
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
return /* @__PURE__ */ i(
|
|
61
|
-
|
|
71
|
+
const [d, l] = u(""), p = (i, t) => {
|
|
72
|
+
l(i), t();
|
|
73
|
+
};
|
|
74
|
+
return /* @__PURE__ */ s(g, { direction: "vertical", width: e, styles: { minWidth: e }, children: /* @__PURE__ */ s(v, { ...{ navWidth: e, isTablet: a }, children: n.map(({ icon: i, label: t = "", onClick: f = () => {
|
|
75
|
+
}, ...m }) => /* @__PURE__ */ x(
|
|
76
|
+
C,
|
|
62
77
|
{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
children:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
);
|
|
78
|
+
...m,
|
|
79
|
+
active: o ? o === t : d === t,
|
|
80
|
+
onClick: () => p(t, f),
|
|
81
|
+
isTablet: a,
|
|
82
|
+
children: [
|
|
83
|
+
i,
|
|
84
|
+
/* @__PURE__ */ s("span", { children: t })
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
t
|
|
88
|
+
)) }) });
|
|
74
89
|
};
|
|
75
90
|
export {
|
|
76
|
-
|
|
77
|
-
|
|
91
|
+
z as Nav,
|
|
92
|
+
z as default
|
|
78
93
|
};
|