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/Nav/Nav.js CHANGED
@@ -1,38 +1,38 @@
1
- import { jsx as s, jsxs as x } from "react/jsx-runtime";
2
- import { useState as u } from "react";
3
- import { n as c, i as h } from "../.chunks/emotion-styled.browser.esm.js";
4
- import r from "../theme.js";
5
- import g from "../ScrollContainer/ScrollContainer.js";
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 C = c(k, {
8
- shouldForwardProp: (n) => h(n)
9
- })(({ active: n, isTablet: o }) => ({
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: o ? "row" : "column",
11
+ flexDirection: t ? "row" : "column",
12
12
  alignItems: "center",
13
- justifyContent: o ? "flex-start" : "center",
13
+ justifyContent: t ? "flex-start" : "center",
14
14
  width: "100%",
15
- padding: o ? "16px" : "0 8px 8px 8px",
15
+ padding: t ? "16px" : "0 8px 8px 8px",
16
16
  transition: "313ms all ease-in-out",
17
- backgroundColor: n ? r.colors.sunlight : "transparent",
18
- boxShadow: n ? r.boxShadow.darkGreen : "none",
19
- ...o && {
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
- ...!o && {
25
- backgroundColor: r.colors.sunlight
24
+ ...!t && {
25
+ backgroundColor: r
26
26
  }
27
27
  },
28
- ...o && {
29
- boxShadow: r.boxShadow.darkGreen,
30
- backgroundColor: `${r.colors.dandelion}99`
28
+ ...t && {
29
+ boxShadow: d.boxShadow.darkGreen,
30
+ backgroundColor: i
31
31
  }
32
32
  },
33
33
  svg: {
34
34
  fontSize: "2.1rem",
35
- fill: r.colors.darkGreen,
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: r.colors.darkGreen,
48
+ color: e,
49
49
  textAlign: "center",
50
- ...o && {
50
+ ...t && {
51
51
  fontSize: "1.5rem",
52
52
  fontWeight: "500"
53
53
  }
54
54
  }
55
- })), v = c("div")(({ navWidth: n, isTablet: o }) => ({
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: o ? 0 : "1rem",
64
- width: n
65
- })), z = ({
66
- navItems: n,
67
- activeRoute: o,
68
- navWidth: e = `${r.constants.navDefaultWidth}px`,
69
- isTablet: a
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 [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,
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
- ...m,
79
- active: o ? o === t : d === t,
80
- onClick: () => p(t, f),
81
- isTablet: a,
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
- i,
84
- /* @__PURE__ */ s("span", { children: t })
87
+ s,
88
+ /* @__PURE__ */ a("span", { children: n })
85
89
  ]
86
90
  },
87
- t
91
+ n
88
92
  )) }) });
89
93
  };
90
94
  export {
91
- z as Nav,
92
- z as default
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.112",
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",