jcicl 0.0.110 → 0.0.114

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,58 +1,60 @@
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 }) => ({
10
- display: "flex",
11
- flexDirection: o ? "row" : "column",
12
- alignItems: "center",
13
- justifyContent: o ? "flex-start" : "center",
14
- width: "100%",
15
- padding: o ? "16px" : "0 8px 8px 8px",
16
- transition: "313ms all ease-in-out",
17
- backgroundColor: n ? r.colors.sunlight : "transparent",
18
- boxShadow: n ? r.boxShadow.darkGreen : "none",
19
- ...o && {
20
- gap: "0.5rem"
21
- },
22
- "&:hover, :focus-visible": {
23
- svg: {
24
- ...!o && {
25
- backgroundColor: r.colors.sunlight
26
- }
27
- },
28
- ...o && {
29
- boxShadow: r.boxShadow.darkGreen,
30
- backgroundColor: `${r.colors.dandelion}99`
31
- }
32
- },
33
- svg: {
34
- fontSize: "2.1rem",
35
- fill: r.colors.darkGreen,
36
- backgroundColor: "transparent",
37
- borderRadius: "50%",
38
- padding: "8px",
7
+ const w = c(k, {
8
+ shouldForwardProp: (o) => C(o)
9
+ })(
10
+ ({ active: o, isTablet: t, highlight1: r, highlight3: i, iconColor: e }) => ({
39
11
  display: "flex",
12
+ flexDirection: t ? "row" : "column",
40
13
  alignItems: "center",
41
- justifyContent: "center",
42
- transition: "313ms all ease-in-out"
43
- },
44
- span: {
45
- fontFamily: "Roboto, sans-serif",
46
- fontSize: "12px",
47
- fontWeight: "bold",
48
- color: r.colors.darkGreen,
49
- textAlign: "center",
50
- ...o && {
51
- fontSize: "1.5rem",
52
- fontWeight: "500"
14
+ justifyContent: t ? "flex-start" : "center",
15
+ width: "100%",
16
+ padding: t ? "16px" : "0 8px 8px 8px",
17
+ transition: "313ms all ease-in-out",
18
+ backgroundColor: o ? r : "transparent",
19
+ boxShadow: o ? e : "none",
20
+ ...t && {
21
+ gap: "0.5rem"
22
+ },
23
+ "&:hover, :focus-visible": {
24
+ svg: {
25
+ ...!t && {
26
+ backgroundColor: r
27
+ }
28
+ },
29
+ ...t && {
30
+ boxShadow: d.boxShadow.darkGreen,
31
+ backgroundColor: i
32
+ }
33
+ },
34
+ svg: {
35
+ fontSize: "2.1rem",
36
+ fill: e,
37
+ backgroundColor: "transparent",
38
+ borderRadius: "50%",
39
+ padding: "8px",
40
+ display: "flex",
41
+ alignItems: "center",
42
+ justifyContent: "center",
43
+ transition: "313ms all ease-in-out"
44
+ },
45
+ span: {
46
+ fontFamily: "Roboto, sans-serif",
47
+ fontSize: "12px",
48
+ fontWeight: "bold",
49
+ color: e,
50
+ textAlign: "center",
51
+ ...t && {
52
+ fontSize: "1.5rem",
53
+ fontWeight: "500"
54
+ }
53
55
  }
54
- }
55
- })), v = c("div")(({ navWidth: n, isTablet: o }) => ({
56
+ })
57
+ ), P = c("div")(({ navWidth: o, isTablet: t }) => ({
56
58
  display: "flex",
57
59
  flexDirection: "column",
58
60
  backgroundColor: "transparent",
@@ -60,34 +62,38 @@ const C = c(k, {
60
62
  justifyContent: "flex-start",
61
63
  maxHeight: "100%",
62
64
  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
65
+ gap: t ? 0 : "1rem",
66
+ width: o
67
+ })), W = ({
68
+ navItems: o,
69
+ activeRoute: t,
70
+ navWidth: r = `${d.constants.navDefaultWidth}px`,
71
+ isTablet: i,
72
+ themeColors: e
70
73
  }) => {
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,
74
+ const [l, p] = v(""), m = (s, n) => {
75
+ p(s), n();
76
+ }, { highlightPrimary: f, highlightTertiary: h, iconPrimary: g } = e;
77
+ 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 = () => {
78
+ }, ...u }) => /* @__PURE__ */ y(
79
+ w,
77
80
  {
78
- ...m,
79
- active: o ? o === t : d === t,
80
- onClick: () => p(t, f),
81
- isTablet: a,
81
+ ...u,
82
+ active: t ? t === n : l === n,
83
+ onClick: () => m(n, x),
84
+ isTablet: i,
85
+ highlight1: f,
86
+ highlight3: h,
87
+ iconColor: g,
82
88
  children: [
83
- i,
84
- /* @__PURE__ */ s("span", { children: t })
89
+ s,
90
+ /* @__PURE__ */ a("span", { children: n })
85
91
  ]
86
92
  },
87
- t
93
+ n
88
94
  )) }) });
89
95
  };
90
96
  export {
91
- z as Nav,
92
- z as default
97
+ W as Nav,
98
+ W as default
93
99
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.110",
4
+ "version": "0.0.114",
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;
@@ -18,11 +20,14 @@ export interface ThemeColors {
18
20
  indigo: string;
19
21
  lighterRed: string;
20
22
  lightRed: string;
23
+ lovemist: string;
21
24
  maroon: string;
22
25
  midnight: string;
23
26
  mint: string;
27
+ ocean: string;
24
28
  purple: string;
25
29
  sage: string;
30
+ sky: string;
26
31
  sunlight: string;
27
32
  veryLightGray: string;
28
33
  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",
@@ -20,11 +22,14 @@ const e = {
20
22
  indigo: "#4105c1",
21
23
  lighterRed: "#ffcccc",
22
24
  lightRed: "#eda4a4",
25
+ lovemist: "#90c5f7",
23
26
  maroon: "#5c0000",
24
27
  midnight: "#131313",
25
28
  mint: "#a4edb4",
29
+ ocean: "#279fcf",
26
30
  purple: "#920092",
27
31
  sage: "#bdd5c1",
32
+ sky: "#b3e0f2",
28
33
  sunlight: "#faf9e8",
29
34
  veryLightGray: "#fafafa",
30
35
  veryLightGrayO33: "#fafafa33",