jcicl 0.0.82 → 0.0.84

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.
@@ -1,15 +1,18 @@
1
- import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import m from "../../base/Flex/Flex.js";
3
- const h = ({
4
- label: r,
5
- component: t,
1
+ import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
+ import s from "../../base/Flex/Flex.js";
3
+ import { n as m } from "../../.chunks/emotion-styled.browser.esm.js";
4
+ const a = m("label")`
5
+ text-align: left;
6
+ `, f = ({
7
+ label: e,
8
+ component: r,
6
9
  fontSize: i = "inherit",
7
10
  styles: n,
8
- ...s
9
- }) => /* @__PURE__ */ l(m, { gap: "0.5rem", alignItems: "center", styles: { ...n, fontSize: i }, ...s, children: [
10
- /* @__PURE__ */ e("div", { id: r, children: t }),
11
- /* @__PURE__ */ e("label", { htmlFor: r, children: r })
11
+ ...l
12
+ }) => /* @__PURE__ */ o(s, { gap: "0.5rem", alignItems: "center", styles: { ...n, fontSize: i }, ...l, children: [
13
+ /* @__PURE__ */ t("div", { id: e, children: r }),
14
+ /* @__PURE__ */ t(a, { htmlFor: e, children: e })
12
15
  ] });
13
16
  export {
14
- h as default
17
+ f as default
15
18
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.82",
4
+ "version": "0.0.84",
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",
@@ -1,10 +1,10 @@
1
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
- import e from "../../theme.js";
4
+ import r from "../../theme.js";
5
5
  import { l as c } from "../../.chunks/jocologo.js";
6
- import { I as m } from "../../.chunks/Input.js";
7
- import { Button as p } from "../../base/Button/Button.js";
6
+ import { I as p } from "../../.chunks/Input.js";
7
+ import { Button as m } from "../../base/Button/Button.js";
8
8
  import d from "../../base/Avatar/Avatar.js";
9
9
  const l = n("div")(({ navWidth: o }) => ({
10
10
  display: "grid",
@@ -13,17 +13,19 @@ const l = n("div")(({ navWidth: o }) => ({
13
13
  backgroundColor: "transparent",
14
14
  alignItems: "center",
15
15
  justifyContent: "space-between",
16
- gridTemplateColumns: `minmax(${o + e.constants.actionsPaneWidth}px, 1fr) 2fr 1fr`
16
+ gridTemplateColumns: `minmax(${o + r.constants.actionsPaneWidth}px, 1fr) 2fr 1fr`
17
17
  })), f = n("img")({
18
18
  width: "36px"
19
- }), g = n("div")({}), u = n("div")({
19
+ }), g = n("div")({
20
+ height: "50px"
21
+ }), h = n("div")({
20
22
  justifySelf: "end"
21
- }), k = ({ navWidth: o = e.constants.navDefaultWidth }) => {
22
- const [i, r] = a(!1);
23
+ }), k = ({ navWidth: o = r.constants.navDefaultWidth }) => {
24
+ const [i, e] = a(!1);
23
25
  return /* @__PURE__ */ s(l, { ...{ navWidth: o }, children: [
24
- /* @__PURE__ */ t(g, { children: /* @__PURE__ */ t(f, { src: c }) }),
25
- /* @__PURE__ */ t(m, { placeholder: "Search..." }),
26
- /* @__PURE__ */ t(u, { children: i ? /* @__PURE__ */ t(d, { onClick: () => r(!1) }) : /* @__PURE__ */ t(p, { onClick: () => r(!0), children: "Log In" }) })
26
+ /* @__PURE__ */ t(g, { children: /* @__PURE__ */ t(f, { src: c, height: "50px" }) }),
27
+ /* @__PURE__ */ t(p, { placeholder: "Search..." }),
28
+ /* @__PURE__ */ t(h, { children: i ? /* @__PURE__ */ t(d, { onClick: () => e(!1) }) : /* @__PURE__ */ t(m, { onClick: () => e(!0), children: "Log In" }) })
27
29
  ] });
28
30
  };
29
31
  export {
@@ -1,10 +1,10 @@
1
1
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import m from "../../supercomposite/AppHeader/AppHeader.js";
2
+ import h from "../../supercomposite/AppHeader/AppHeader.js";
3
3
  import { Nav as f } from "../../supercomposite/Nav/Nav.js";
4
- import l from "../../base/ScrollContainer/ScrollContainer.js";
4
+ import p from "../../base/ScrollContainer/ScrollContainer.js";
5
5
  import { n as d } from "../../.chunks/emotion-styled.browser.esm.js";
6
6
  import o from "../../theme.js";
7
- const h = d("div")({
7
+ const m = d("div")({
8
8
  display: "flex",
9
9
  flexDirection: "column",
10
10
  width: "100vw",
@@ -41,35 +41,36 @@ const h = d("div")({
41
41
  }
42
42
  })), b = d("div")(({ withActionsPanel: r }) => ({
43
43
  display: "flex",
44
+ overflow: "hidden",
44
45
  backgroundColor: o.colors.whiteGreen,
45
46
  borderRadius: "4px",
46
47
  borderBottomLeftRadius: r ? 0 : "4px",
47
48
  borderTopLeftRadius: r ? 0 : "4px",
48
49
  border: `1px solid ${o.colors.green}`,
49
50
  width: "100%",
50
- minHeight: "100%",
51
+ height: `calc(100vh - ${o.constants.appHeaderHeight}px - 6px)`,
51
52
  boxSizing: "border-box",
52
53
  padding: "1rem",
53
54
  h1: {
54
55
  margin: 0
55
56
  }
56
- })), k = ({
57
+ })), $ = ({
57
58
  navProps: r,
58
- appHeaderProps: p,
59
+ appHeaderProps: l,
59
60
  actionsPanelContent: i,
60
61
  navWidth: t = o.constants.navDefaultWidth,
61
62
  children: s
62
63
  }) => {
63
- const n = i != null, c = { ...p, navWidth: t }, x = { ...r, navWidth: `${t}px` };
64
- return /* @__PURE__ */ a(h, { children: [
65
- /* @__PURE__ */ e(m, { ...c }),
64
+ const n = i != null, c = { ...l, navWidth: t }, x = { ...r, navWidth: `${t}px` };
65
+ return /* @__PURE__ */ a(m, { children: [
66
+ /* @__PURE__ */ e(h, { ...c }),
66
67
  /* @__PURE__ */ a(g, { children: [
67
68
  /* @__PURE__ */ e(f, { ...x }),
68
- /* @__PURE__ */ e(u, { withActionsPanel: n, children: /* @__PURE__ */ e(l, { direction: "vertical", children: i && i }) }),
69
- /* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(b, { withActionsPanel: n, children: s }) })
69
+ /* @__PURE__ */ e(u, { withActionsPanel: n, children: /* @__PURE__ */ e(p, { direction: "vertical", children: i && i }) }),
70
+ /* @__PURE__ */ e(b, { withActionsPanel: n, children: /* @__PURE__ */ e(p, { children: s }) })
70
71
  ] })
71
72
  ] });
72
73
  };
73
74
  export {
74
- k as default
75
+ $ as default
75
76
  };
package/theme.js CHANGED
@@ -31,7 +31,7 @@ const e = {
31
31
  whiteGreenA: "#dae8de"
32
32
  },
33
33
  constants: {
34
- appHeaderHeight: 54,
34
+ appHeaderHeight: 58,
35
35
  actionsPaneWidth: 201,
36
36
  navDefaultWidth: 75
37
37
  },