jcicl 0.0.38 → 0.0.41

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.
@@ -2,7 +2,7 @@ export interface ScrollContainerProps {
2
2
  width?: string;
3
3
  height?: string;
4
4
  direction?: 'vertical' | 'horizontal' | 'all';
5
- style: React.CSSProperties;
5
+ style?: React.CSSProperties;
6
6
  }
7
7
  declare const ScrollContainer: React.FC<ScrollContainerProps & {
8
8
  children: React.ReactNode;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.38",
4
+ "version": "0.0.41",
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",
@@ -56,7 +56,7 @@ const C = s(v, {
56
56
  const [l, c] = x(""), d = (e, n) => {
57
57
  c(e), n();
58
58
  }, p = { navWidth: a };
59
- return /* @__PURE__ */ r(g, { style: { maxHeight: `calc(100vh - ${o.constants.appHeaderHeight}px)` }, children: /* @__PURE__ */ r(k, { ...p, children: t.map(({ icon: e, label: n = "", onClick: m = () => {
59
+ return /* @__PURE__ */ r(g, { style: { maxHeight: `calc(100vh - ${o.constants.appHeaderHeight}px - 8px)` }, children: /* @__PURE__ */ r(k, { ...p, children: t.map(({ icon: e, label: n = "", onClick: m = () => {
60
60
  }, ...f }) => /* @__PURE__ */ u(C, { ...f, active: i ? i === n : l === n, onClick: () => d(n, m), children: [
61
61
  e,
62
62
  /* @__PURE__ */ r("span", { children: n })
@@ -1,9 +1,10 @@
1
- import { jsxs as p, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
2
  import l from "../../supercomposite/AppHeader/AppHeader.js";
3
3
  import { Nav as s } from "../../supercomposite/Nav/Nav.js";
4
+ import c from "../../base/ScrollContainer/ScrollContainer.js";
4
5
  import { n as d } from "../../.chunks/emotion-styled.browser.esm.js";
5
6
  import o from "../../theme.js";
6
- const c = d("div")({
7
+ const x = d("div")({
7
8
  display: "flex",
8
9
  flexDirection: "column",
9
10
  width: "100%",
@@ -12,7 +13,7 @@ const c = d("div")({
12
13
  height: "100vh",
13
14
  fontFamily: "Roboto, sans-serif",
14
15
  overflow: "hidden"
15
- }), x = d("div")({
16
+ }), m = d("div")({
16
17
  display: "flex",
17
18
  flexDirection: "row",
18
19
  justifyContent: "flex-start",
@@ -21,7 +22,7 @@ const c = d("div")({
21
22
  padding: "4px 2px",
22
23
  paddingLeft: 0,
23
24
  height: `calc(100% - ${o.constants.appHeaderHeight}px - 8px)`
24
- }), f = d("div")(({ withActionsPanel: r }) => ({
25
+ }), h = d("div")(({ withActionsPanel: r }) => ({
25
26
  display: "flex",
26
27
  flexDirection: "column",
27
28
  opacity: r ? 1 : 0,
@@ -38,7 +39,7 @@ const c = d("div")({
38
39
  ...!r && {
39
40
  border: "none"
40
41
  }
41
- })), m = d("div")(({ withActionsPanel: r }) => ({
42
+ })), f = d("div")(({ withActionsPanel: r }) => ({
42
43
  display: "flex",
43
44
  backgroundColor: o.colors.whiteGreen,
44
45
  borderRadius: "4px",
@@ -51,22 +52,22 @@ const c = d("div")({
51
52
  h1: {
52
53
  margin: 0
53
54
  }
54
- })), R = ({
55
+ })), C = ({
55
56
  navProps: r,
56
- appHeaderProps: a,
57
- actionsPanelContent: e,
58
- children: n
57
+ appHeaderProps: p,
58
+ actionsPanelContent: i,
59
+ children: a
59
60
  }) => {
60
- const t = e != null;
61
- return /* @__PURE__ */ p(c, { children: [
62
- /* @__PURE__ */ i(l, { ...a }),
63
- /* @__PURE__ */ p(x, { children: [
64
- /* @__PURE__ */ i(s, { ...r }),
65
- /* @__PURE__ */ i(f, { withActionsPanel: t, children: e && e }),
66
- /* @__PURE__ */ i(m, { withActionsPanel: t, children: n })
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(c, { height: "calc(100% - 2px - 2rem)", children: /* @__PURE__ */ e(h, { withActionsPanel: t, children: i && i }) }),
67
+ /* @__PURE__ */ e(f, { withActionsPanel: t, children: a })
67
68
  ] })
68
69
  ] });
69
70
  };
70
71
  export {
71
- R as default
72
+ C as default
72
73
  };