jcicl 0.0.43 → 0.0.44

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.
@@ -1383,7 +1383,7 @@ const Bs = () => {
1383
1383
  y: s === "all" || s === "vertical" ? "scroll" : "hidden"
1384
1384
  },
1385
1385
  scrollbars: {
1386
- autoHide: "never",
1386
+ autoHide: "leave",
1387
1387
  autoHideDelay: 29
1388
1388
  }
1389
1389
  } };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.43",
4
+ "version": "0.0.44",
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",
@@ -2,6 +2,7 @@ export interface AppHeaderProps {
2
2
  loggedIn?: boolean;
3
3
  onLogin?: () => void;
4
4
  onUserMenuClick?: () => void;
5
+ navWidth?: number;
5
6
  }
6
7
  declare const AppHeader: React.FC<AppHeaderProps>;
7
8
  export default AppHeader;
@@ -1,31 +1,31 @@
1
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
2
  import { useState as a } from "react";
3
3
  import { n } from "../../.chunks/emotion-styled.browser.esm.js";
4
4
  import e from "../../theme.js";
5
- import { l as s } from "../../.chunks/jocologo.js";
5
+ import { l as c } from "../../.chunks/jocologo.js";
6
6
  import { Input as m } from "../../base/Input/Input.js";
7
- import { Button as c } from "../../base/Button/Button.js";
7
+ import { Button as p } from "../../base/Button/Button.js";
8
8
  import d from "../../base/Avatar/Avatar.js";
9
- const l = n("div")({
9
+ const l = n("div")(({ navWidth: o }) => ({
10
10
  display: "grid",
11
11
  flexDirection: "row",
12
12
  padding: "4px 16px",
13
13
  backgroundColor: "transparent",
14
14
  alignItems: "center",
15
15
  justifyContent: "space-between",
16
- gridTemplateColumns: `minmax(${e.constants.navDefaultWidth + e.constants.actionsPaneWidth}px, 1fr) 2fr 1fr`
17
- }), p = n("img")({
16
+ gridTemplateColumns: `minmax(${o + e.constants.actionsPaneWidth}px, 1fr) 2fr 1fr`
17
+ })), f = n("img")({
18
18
  width: "36px"
19
- }), f = n("div")({}), g = n("div")({
19
+ }), g = n("div")({}), u = n("div")({
20
20
  justifySelf: "end"
21
- }), y = () => {
22
- const [r, o] = a(!1);
23
- return /* @__PURE__ */ i(l, { children: [
24
- /* @__PURE__ */ t(f, { children: /* @__PURE__ */ t(p, { src: s }) }),
21
+ }), k = ({ navWidth: o = e.constants.navDefaultWidth }) => {
22
+ const [i, r] = a(!1);
23
+ return /* @__PURE__ */ s(l, { ...{ navWidth: o }, children: [
24
+ /* @__PURE__ */ t(g, { children: /* @__PURE__ */ t(f, { src: c }) }),
25
25
  /* @__PURE__ */ t(m, { placeholder: "Search..." }),
26
- /* @__PURE__ */ t(g, { children: r ? /* @__PURE__ */ t(d, { onClick: () => o(!1) }) : /* @__PURE__ */ t(c, { onClick: () => o(!0), children: "Log In" }) })
26
+ /* @__PURE__ */ t(u, { children: i ? /* @__PURE__ */ t(d, { onClick: () => r(!1) }) : /* @__PURE__ */ t(p, { onClick: () => r(!0), children: "Log In" }) })
27
27
  ] });
28
28
  };
29
29
  export {
30
- y as default
30
+ k as default
31
31
  };
@@ -1,29 +1,30 @@
1
- import { jsx as r, jsxs as m } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as h } from "react/jsx-runtime";
2
2
  import { useState as u } from "react";
3
- import { n as s, i as x } from "../../.chunks/emotion-styled.browser.esm.js";
4
- import t from "../../theme.js";
3
+ import { n as a, i as x } from "../../.chunks/emotion-styled.browser.esm.js";
4
+ import o from "../../theme.js";
5
5
  import g from "../../base/ScrollContainer/ScrollContainer.js";
6
- import { B as v } from "../../.chunks/ButtonBase.js";
7
- const C = s(v, {
8
- shouldForwardProp: (n) => x(n)
9
- })(({ active: n }) => ({
6
+ import { B as C } from "../../.chunks/ButtonBase.js";
7
+ const k = a(C, {
8
+ shouldForwardProp: (t) => x(t)
9
+ })(({ active: t }) => ({
10
10
  display: "flex",
11
11
  flexDirection: "column",
12
12
  alignItems: "center",
13
13
  justifyContent: "center",
14
+ width: "100%",
14
15
  padding: "0 8px 8px 8px",
15
16
  transition: "313ms all ease-in-out",
16
- backgroundColor: n ? t.colors.sunlight : "transparent",
17
- boxShadow: n ? t.boxShadow.darkGreen : "none",
17
+ backgroundColor: t ? o.colors.sunlight : "transparent",
18
+ boxShadow: t ? o.boxShadow.darkGreen : "none",
18
19
  "&:hover, :focus-visible": {
19
20
  svg: {
20
- backgroundColor: t.colors.sunlight
21
+ backgroundColor: o.colors.sunlight
21
22
  }
22
23
  },
23
24
  svg: {
24
25
  fontSize: "2.1rem",
25
- fill: t.colors.darkGreen,
26
- backgroundColor: n ? t.colors.sunlight : "transparent",
26
+ fill: o.colors.darkGreen,
27
+ backgroundColor: t ? o.colors.sunlight : "transparent",
27
28
  borderRadius: "50%",
28
29
  padding: "8px",
29
30
  display: "flex",
@@ -35,10 +36,10 @@ const C = s(v, {
35
36
  fontFamily: "Roboto, sans-serif",
36
37
  fontSize: "12px",
37
38
  fontWeight: "bold",
38
- color: t.colors.darkGreen,
39
+ color: o.colors.darkGreen,
39
40
  textAlign: "center"
40
41
  }
41
- })), k = s("div")(({ navWidth: n }) => ({
42
+ })), v = a("div")(({ navWidth: t }) => ({
42
43
  display: "flex",
43
44
  flexDirection: "column",
44
45
  backgroundColor: "transparent",
@@ -47,30 +48,30 @@ const C = s(v, {
47
48
  maxHeight: "100%",
48
49
  flexShrink: 0,
49
50
  gap: "1rem",
50
- width: n
51
- })), A = ({
52
- navItems: n,
53
- activeRoute: i,
54
- navWidth: a = `${t.constants.navDefaultWidth}px`
51
+ width: t
52
+ })), D = ({
53
+ navItems: t,
54
+ activeRoute: s,
55
+ navWidth: e = `${o.constants.navDefaultWidth}px`
55
56
  }) => {
56
- const [l, c] = u(""), d = (e, o) => {
57
- c(e), o();
58
- }, p = { navWidth: a };
59
- return /* @__PURE__ */ r(
57
+ const [l, c] = u(""), d = (r, n) => {
58
+ c(r), n();
59
+ }, p = { navWidth: e };
60
+ return /* @__PURE__ */ i(
60
61
  g,
61
62
  {
62
- height: `calc(100vh - ${t.constants.appHeaderHeight}px - 8px)`,
63
- width: `${t.constants.navDefaultWidth}px`,
64
- styles: { minWidth: `${t.constants.navDefaultWidth}px` },
65
- children: /* @__PURE__ */ r(k, { ...p, children: n.map(({ icon: e, label: o = "", onClick: f = () => {
66
- }, ...h }) => /* @__PURE__ */ m(C, { ...h, active: i ? i === o : l === o, onClick: () => d(o, f), children: [
67
- e,
68
- /* @__PURE__ */ r("span", { children: o })
69
- ] }, o)) })
63
+ height: `calc(100vh - ${o.constants.appHeaderHeight}px - 8px)`,
64
+ width: e,
65
+ styles: { minWidth: e },
66
+ children: /* @__PURE__ */ i(v, { ...p, children: t.map(({ icon: r, label: n = "", onClick: m = () => {
67
+ }, ...f }) => /* @__PURE__ */ h(k, { ...f, active: s ? s === n : l === n, onClick: () => d(n, m), children: [
68
+ r,
69
+ /* @__PURE__ */ i("span", { children: n })
70
+ ] }, n)) })
70
71
  }
71
72
  );
72
73
  };
73
74
  export {
74
- A as Nav,
75
- A as default
75
+ D as Nav,
76
+ D as default
76
77
  };
@@ -5,6 +5,7 @@ export interface AppContainerProps {
5
5
  navProps: NavProps;
6
6
  appHeaderProps?: AppHeaderProps;
7
7
  actionsPanelContent?: React.ReactNode;
8
+ navWidth?: number;
8
9
  }
9
10
  declare const AppContainer: React.FC<PropsWithChildren<AppContainerProps>>;
10
11
  export default AppContainer;
@@ -1,10 +1,10 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import l from "../../supercomposite/AppHeader/AppHeader.js";
3
- import { Nav as s } from "../../supercomposite/Nav/Nav.js";
4
- import c from "../../base/ScrollContainer/ScrollContainer.js";
5
- import { n as d } from "../../.chunks/emotion-styled.browser.esm.js";
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
+ import x from "../../supercomposite/AppHeader/AppHeader.js";
3
+ import { Nav as f } from "../../supercomposite/Nav/Nav.js";
4
+ import m from "../../base/ScrollContainer/ScrollContainer.js";
5
+ import { n as t } from "../../.chunks/emotion-styled.browser.esm.js";
6
6
  import o from "../../theme.js";
7
- const x = d("div")({
7
+ const h = t("div")({
8
8
  display: "flex",
9
9
  flexDirection: "column",
10
10
  width: "100%",
@@ -13,7 +13,7 @@ const x = d("div")({
13
13
  height: "100vh",
14
14
  fontFamily: "Roboto, sans-serif",
15
15
  overflow: "hidden"
16
- }), m = d("div")({
16
+ }), g = t("div")({
17
17
  display: "flex",
18
18
  flexDirection: "row",
19
19
  justifyContent: "flex-start",
@@ -22,7 +22,7 @@ const x = d("div")({
22
22
  padding: "4px 2px",
23
23
  paddingLeft: 0,
24
24
  height: `calc(100% - ${o.constants.appHeaderHeight}px - 8px)`
25
- }), f = d("div")(({ withActionsPanel: r }) => ({
25
+ }), u = t("div")(({ withActionsPanel: r }) => ({
26
26
  display: "flex",
27
27
  flexDirection: "column",
28
28
  opacity: r ? 1 : 0,
@@ -39,7 +39,7 @@ const x = d("div")({
39
39
  ...!r && {
40
40
  border: "none"
41
41
  }
42
- })), h = d("div")(({ withActionsPanel: r }) => ({
42
+ })), b = t("div")(({ withActionsPanel: r }) => ({
43
43
  display: "flex",
44
44
  backgroundColor: o.colors.whiteGreen,
45
45
  borderRadius: "4px",
@@ -52,22 +52,23 @@ const x = d("div")({
52
52
  h1: {
53
53
  margin: 0
54
54
  }
55
- })), C = ({
55
+ })), D = ({
56
56
  navProps: r,
57
57
  appHeaderProps: p,
58
58
  actionsPanelContent: i,
59
- children: a
59
+ navWidth: d = o.constants.navDefaultWidth,
60
+ children: l
60
61
  }) => {
61
- const t = i != null;
62
- return /* @__PURE__ */ n(x, { children: [
63
- /* @__PURE__ */ e(l, { ...p }),
64
- /* @__PURE__ */ n(m, { children: [
65
- /* @__PURE__ */ e(s, { ...r }),
66
- /* @__PURE__ */ e(f, { withActionsPanel: t, children: /* @__PURE__ */ e(c, { children: i && i }) }),
67
- /* @__PURE__ */ e(h, { withActionsPanel: t, children: a })
62
+ const n = i != null, s = { ...p, navWidth: d }, c = { ...r, navWidth: `${d}px` };
63
+ return /* @__PURE__ */ a(h, { children: [
64
+ /* @__PURE__ */ e(x, { ...s }),
65
+ /* @__PURE__ */ a(g, { children: [
66
+ /* @__PURE__ */ e(f, { ...c }),
67
+ /* @__PURE__ */ e(u, { withActionsPanel: n, children: /* @__PURE__ */ e(m, { children: i && i }) }),
68
+ /* @__PURE__ */ e(b, { withActionsPanel: n, children: l })
68
69
  ] })
69
70
  ] });
70
71
  };
71
72
  export {
72
- C as default
73
+ D as default
73
74
  };