jcicl 0.0.112 → 0.0.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AppContainer/AppContainer.d.ts +8 -4
- package/AppContainer/AppContainer.js +925 -776
- package/AppHeader/AppHeader.d.ts +8 -0
- package/AppHeader/AppHeader.js +85 -78
- package/AppHeader/index.d.ts +1 -1
- package/Button/Button.d.ts +3 -1
- package/Button/Button.js +80 -76
- package/Nav/Nav.d.ts +12 -0
- package/Nav/Nav.js +49 -45
- package/Nav/index.d.ts +1 -1
- package/package.json +1 -1
- package/theme.d.ts +6 -0
- package/theme.js +6 -0
package/Nav/Nav.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { n as c, i as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { jsx as a, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import { useState as v } from "react";
|
|
3
|
+
import { n as c, i as C } from "../.chunks/emotion-styled.browser.esm.js";
|
|
4
|
+
import d from "../theme.js";
|
|
5
|
+
import S from "../ScrollContainer/ScrollContainer.js";
|
|
6
6
|
import { B as k } from "../.chunks/ButtonBase.js";
|
|
7
|
-
const
|
|
8
|
-
shouldForwardProp: (
|
|
9
|
-
})(({ active:
|
|
7
|
+
const w = c(k, {
|
|
8
|
+
shouldForwardProp: (o) => C(o)
|
|
9
|
+
})(({ active: o, isTablet: t, highlight1: r, highlight3: i, iconColor: e }) => ({
|
|
10
10
|
display: "flex",
|
|
11
|
-
flexDirection:
|
|
11
|
+
flexDirection: t ? "row" : "column",
|
|
12
12
|
alignItems: "center",
|
|
13
|
-
justifyContent:
|
|
13
|
+
justifyContent: t ? "flex-start" : "center",
|
|
14
14
|
width: "100%",
|
|
15
|
-
padding:
|
|
15
|
+
padding: t ? "16px" : "0 8px 8px 8px",
|
|
16
16
|
transition: "313ms all ease-in-out",
|
|
17
|
-
backgroundColor:
|
|
18
|
-
boxShadow:
|
|
19
|
-
...
|
|
17
|
+
backgroundColor: o ? r : "transparent",
|
|
18
|
+
boxShadow: o ? e : "none",
|
|
19
|
+
...t && {
|
|
20
20
|
gap: "0.5rem"
|
|
21
21
|
},
|
|
22
22
|
"&:hover, :focus-visible": {
|
|
23
23
|
svg: {
|
|
24
|
-
...!
|
|
25
|
-
backgroundColor: r
|
|
24
|
+
...!t && {
|
|
25
|
+
backgroundColor: r
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
...
|
|
29
|
-
boxShadow:
|
|
30
|
-
backgroundColor:
|
|
28
|
+
...t && {
|
|
29
|
+
boxShadow: d.boxShadow.darkGreen,
|
|
30
|
+
backgroundColor: i
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
svg: {
|
|
34
34
|
fontSize: "2.1rem",
|
|
35
|
-
fill:
|
|
35
|
+
fill: e,
|
|
36
36
|
backgroundColor: "transparent",
|
|
37
37
|
borderRadius: "50%",
|
|
38
38
|
padding: "8px",
|
|
@@ -45,14 +45,14 @@ const C = c(k, {
|
|
|
45
45
|
fontFamily: "Roboto, sans-serif",
|
|
46
46
|
fontSize: "12px",
|
|
47
47
|
fontWeight: "bold",
|
|
48
|
-
color:
|
|
48
|
+
color: e,
|
|
49
49
|
textAlign: "center",
|
|
50
|
-
...
|
|
50
|
+
...t && {
|
|
51
51
|
fontSize: "1.5rem",
|
|
52
52
|
fontWeight: "500"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
})),
|
|
55
|
+
})), P = c("div")(({ navWidth: o, isTablet: t }) => ({
|
|
56
56
|
display: "flex",
|
|
57
57
|
flexDirection: "column",
|
|
58
58
|
backgroundColor: "transparent",
|
|
@@ -60,34 +60,38 @@ const C = c(k, {
|
|
|
60
60
|
justifyContent: "flex-start",
|
|
61
61
|
maxHeight: "100%",
|
|
62
62
|
flexShrink: 0,
|
|
63
|
-
gap:
|
|
64
|
-
width:
|
|
65
|
-
})),
|
|
66
|
-
navItems:
|
|
67
|
-
activeRoute:
|
|
68
|
-
navWidth:
|
|
69
|
-
isTablet:
|
|
63
|
+
gap: t ? 0 : "1rem",
|
|
64
|
+
width: o
|
|
65
|
+
})), W = ({
|
|
66
|
+
navItems: o,
|
|
67
|
+
activeRoute: t,
|
|
68
|
+
navWidth: r = `${d.constants.navDefaultWidth}px`,
|
|
69
|
+
isTablet: i,
|
|
70
|
+
themeColors: e
|
|
70
71
|
}) => {
|
|
71
|
-
const [
|
|
72
|
-
|
|
73
|
-
};
|
|
74
|
-
return /* @__PURE__ */
|
|
75
|
-
}, ...
|
|
76
|
-
|
|
72
|
+
const [l, p] = v(""), m = (s, n) => {
|
|
73
|
+
p(s), n();
|
|
74
|
+
}, { highlightPrimary: f, highlightTertiary: h, iconPrimary: g } = e;
|
|
75
|
+
return /* @__PURE__ */ a(S, { direction: "vertical", width: r, styles: { minWidth: r }, children: /* @__PURE__ */ a(P, { ...{ navWidth: r, isTablet: i }, children: o.map(({ icon: s, label: n = "", onClick: x = () => {
|
|
76
|
+
}, ...u }) => /* @__PURE__ */ y(
|
|
77
|
+
w,
|
|
77
78
|
{
|
|
78
|
-
...
|
|
79
|
-
active:
|
|
80
|
-
onClick: () =>
|
|
81
|
-
isTablet:
|
|
79
|
+
...u,
|
|
80
|
+
active: t ? t === n : l === n,
|
|
81
|
+
onClick: () => m(n, x),
|
|
82
|
+
isTablet: i,
|
|
83
|
+
highlight1: f,
|
|
84
|
+
highlight3: h,
|
|
85
|
+
iconColor: g,
|
|
82
86
|
children: [
|
|
83
|
-
|
|
84
|
-
/* @__PURE__ */
|
|
87
|
+
s,
|
|
88
|
+
/* @__PURE__ */ a("span", { children: n })
|
|
85
89
|
]
|
|
86
90
|
},
|
|
87
|
-
|
|
91
|
+
n
|
|
88
92
|
)) }) });
|
|
89
93
|
};
|
|
90
94
|
export {
|
|
91
|
-
|
|
92
|
-
|
|
95
|
+
W as Nav,
|
|
96
|
+
W as default
|
|
93
97
|
};
|
package/Nav/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, type NavItemProps } from './Nav';
|
|
1
|
+
export { default, type NavProps, type NavItemProps, type TemplateThemeProps } from './Nav';
|
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.116",
|
|
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",
|
package/theme.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export interface ThemeColors {
|
|
|
3
3
|
blue: string;
|
|
4
4
|
burgundy: string;
|
|
5
5
|
charcoal: string;
|
|
6
|
+
cobalt: string;
|
|
7
|
+
cornflower: string;
|
|
6
8
|
dandelion: string;
|
|
7
9
|
darkBlue: string;
|
|
8
10
|
darkerGreen: string;
|
|
@@ -13,16 +15,20 @@ export interface ThemeColors {
|
|
|
13
15
|
gold: string;
|
|
14
16
|
gold2: string;
|
|
15
17
|
gray: string;
|
|
18
|
+
gray2: string;
|
|
16
19
|
grayO44: string;
|
|
17
20
|
green: string;
|
|
18
21
|
indigo: string;
|
|
19
22
|
lighterRed: string;
|
|
20
23
|
lightRed: string;
|
|
24
|
+
lovemist: string;
|
|
21
25
|
maroon: string;
|
|
22
26
|
midnight: string;
|
|
23
27
|
mint: string;
|
|
28
|
+
ocean: string;
|
|
24
29
|
purple: string;
|
|
25
30
|
sage: string;
|
|
31
|
+
sky: string;
|
|
26
32
|
sunlight: string;
|
|
27
33
|
veryLightGray: string;
|
|
28
34
|
veryLightGrayO33: string;
|
package/theme.js
CHANGED
|
@@ -5,6 +5,8 @@ const e = {
|
|
|
5
5
|
blue: "#1976d2",
|
|
6
6
|
burgundy: "#920920",
|
|
7
7
|
charcoal: "#404040",
|
|
8
|
+
cobalt: "#022961",
|
|
9
|
+
cornflower: "#6aa7fc",
|
|
8
10
|
dandelion: "#fffacd",
|
|
9
11
|
darkBlue: "#10517c",
|
|
10
12
|
darkerGreen: "#124000",
|
|
@@ -15,16 +17,20 @@ const e = {
|
|
|
15
17
|
gold: "#fab62d",
|
|
16
18
|
gold2: "#fcba03",
|
|
17
19
|
gray: "#727272",
|
|
20
|
+
gray2: "#dddddd",
|
|
18
21
|
grayO44: "#72727244",
|
|
19
22
|
green: "#009200",
|
|
20
23
|
indigo: "#4105c1",
|
|
21
24
|
lighterRed: "#ffcccc",
|
|
22
25
|
lightRed: "#eda4a4",
|
|
26
|
+
lovemist: "#90c5f7",
|
|
23
27
|
maroon: "#5c0000",
|
|
24
28
|
midnight: "#131313",
|
|
25
29
|
mint: "#a4edb4",
|
|
30
|
+
ocean: "#279fcf",
|
|
26
31
|
purple: "#920092",
|
|
27
32
|
sage: "#bdd5c1",
|
|
33
|
+
sky: "#b3e0f2",
|
|
28
34
|
sunlight: "#faf9e8",
|
|
29
35
|
veryLightGray: "#fafafa",
|
|
30
36
|
veryLightGrayO33: "#fafafa33",
|